/* ============================================
   BRAND FOOTER (Large Logo with Cutoff Effect)
   ============================================ */

.brand-footer {
    position: relative;
    overflow: hidden;
    height: clamp(80px, 15vw, 180px);
    background: var(--bg-primary);
}

/* Elegant ambient glow from top */
.brand-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(80, 100, 140, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="light"] .brand-footer::before {
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(160, 180, 220, 0.06) 0%, transparent 60%);
}

.brand-footer__content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.brand-footer__logo {
    height: clamp(120px, 25vw, 320px);
    width: auto;
    opacity: 0.15;
    user-select: none;
    pointer-events: none;
}

[data-theme="light"] .brand-footer__logo {
    opacity: 0.12;
}

/* ============================================
   UNIFIED FOOTER (CTA + STATS + LINKS)
   ============================================ */

.unified-footer {
    background: var(--bg-primary);
    position: relative;
}

/* Top gradient to blend with carousel section */
.unified-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(
        180deg,
        rgba(18, 18, 20, 0.95) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .unified-footer::before {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 247, 0.95) 0%,
        transparent 100%
    );
}

/* CTA Section */
.unified-footer__cta {
    padding: 120px 0;
    background: var(--gradient-hero);
    text-align: center;
}

.unified-footer__cta-content h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.unified-footer__cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.unified-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.unified-footer__btn:hover {
    opacity: 0.9;
}

/* Stats Strip */
.unified-footer__stats {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Compact Stats - Above CTA */
.unified-footer__stats--compact {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(
        180deg,
        rgba(18, 18, 20, 0.95) 0%,
        rgba(22, 22, 26, 0.98) 50%,
        rgba(18, 18, 20, 0.95) 100%
    );
    border-top: none;
    border-bottom: none;
    overflow: hidden;
}

/* Subtle noise texture overlay */
.unified-footer__stats--compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Subtle radial glow */
.unified-footer__stats--compact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 150%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.015) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Top edge highlight */
.unified-footer__stats--compact .unified-footer__stats-grid {
    position: relative;
    z-index: 1;
}

.unified-footer__stats--compact .unified-footer__stat-value {
    font-size: 32px;
    letter-spacing: -0.02em;
}

.unified-footer__stats--compact .unified-footer__stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* Light theme adjustments */
[data-theme="light"] .unified-footer__stats--compact {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 247, 0.95) 0%,
        rgba(240, 240, 242, 0.98) 50%,
        rgba(245, 245, 247, 0.95) 100%
    );
}

[data-theme="light"] .unified-footer__stats--compact::after {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.02) 0%,
        transparent 60%
    );
}

[data-theme="light"] .unified-footer__stats--compact .unified-footer__stat-label {
    color: rgba(0, 0, 0, 0.45);
}

/* Luxury dividers between stats */
.unified-footer__stats--compact .unified-footer__stat-divider {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
}

[data-theme="light"] .unified-footer__stats--compact .unified-footer__stat-divider {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 50%,
        transparent 100%
    );
}

/* Smooth top edge blend */
.unified-footer__stats--compact .unified-footer__stats-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.06) 80%,
        transparent 100%
    );
}

[data-theme="light"] .unified-footer__stats--compact .unified-footer__stats-edge {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.06) 80%,
        transparent 100%
    );
}

.unified-footer__stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.unified-footer__stat {
    text-align: center;
}

.unified-footer__stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .unified-footer__stat-value {
    background: linear-gradient(135deg, #0a0a0a, rgba(10,10,10,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unified-footer__stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.unified-footer__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Footer Bottom */
.unified-footer__bottom {
    padding: 60px 0 40px;
}

.unified-footer__content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

/* 5-Column Grid Layout - Symmetrical */
.unified-footer__grid {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 60px;
    align-items: start;
    justify-content: center;
    margin-bottom: 50px;
}

/* Center Brand Column */
.unified-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.unified-footer__brand .unified-footer__logo-img--full {
    height: 120px;
}

.unified-footer__brand .unified-footer__tagline {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0;
}

/* Bottom Bar */
.unified-footer__bottom-bar {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.unified-footer__bottom-bar p {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0;
}

/* Full visibility logo */
.unified-footer__logo-img--full {
    filter: none;
    opacity: 1;
}

[data-theme="light"] .unified-footer__logo-img--full {
    filter: none;
}

.unified-footer__links-group h4,
.unified-footer__social-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.unified-footer__links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unified-footer__links-group a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.unified-footer__links-group a:hover {
    color: var(--text-primary);
}

.unified-footer__social {
    display: flex;
    gap: 12px;
}

.unified-footer__social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.unified-footer__social a:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}


.unified-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-top: 16px;
}

.unified-footer__badge svg {
    color: #4ade80;
}

/* ============================================
   LIGHT MODE - Footer Bottom
   ============================================ */

[data-theme="light"] .unified-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #f5f5f7 100%);
}

[data-theme="light"] .unified-footer__bottom {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.01) 100%);
}

[data-theme="light"] .unified-footer__links-group h4,
[data-theme="light"] .unified-footer__social-col h4 {
    color: var(--text-primary);
}

[data-theme="light"] .unified-footer__links-group a {
    color: var(--text-secondary);
}

[data-theme="light"] .unified-footer__links-group a:hover {
    color: var(--text-primary);
}

[data-theme="light"] .unified-footer__social a {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .unified-footer__social a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

[data-theme="light"] .unified-footer__brand .unified-footer__tagline {
    color: var(--text-secondary);
    opacity: 0.7;
}

[data-theme="light"] .unified-footer__bottom-bar {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .unified-footer__bottom-bar p {
    color: var(--text-secondary);
    opacity: 0.6;
}

[data-theme="light"] .unified-footer__badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

/* ============================================
   SIMPLE FOOTER (For other pages)
   ============================================ */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 300px;
}

/* ============================================
   COMPACT CENTERED FOOTER (Inner Pages)
   ============================================ */

.footer--centered {
    padding: 40px 0 30px;
}

.footer--centered .footer-content {
    gap: 20px;
}

.footer--centered .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.footer--centered .footer-logo a {
    display: block;
}

.footer-logo__img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

[data-theme="light"] .footer-logo__img {
    filter: brightness(0);
}

.footer-logo__img:hover {
    opacity: 0.8;
}

.footer-logo__tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.footer--centered .footer-main {
    gap: 16px;
}

.footer--centered .footer-divider {
    display: none;
}

.footer--centered .footer-bottom {
    flex-direction: row;
    gap: 24px;
}

.footer--centered .footer-social {
    display: none;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-divider {
    width: 100%;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.footer-badge svg {
    color: #4ade80;
}

/* Responsive */
@media (max-width: 1024px) {
    .unified-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .unified-footer__brand {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 20px;
    }

    .unified-footer__stats-grid {
        flex-wrap: wrap;
        gap: 40px;
    }

    .unified-footer__stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .unified-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        text-align: center;
        justify-content: stretch;
    }

    .unified-footer__links-group {
        text-align: center;
    }

    .footer-links {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .unified-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
