/* ============================================
   FOOTER.CSS — Ooi Solutions (UPDATED)
   Cinematic fixed footer, pills, marquee, socials
   NO BLUR USED HERE (Performance rule met)
   Uses unified HEX variables
   Full responsive: Mobile / Tablet / Desktop / 4K
   ============================================ */

/* ── FOOTER WRAPPER & FIXED POSITION ── */
.cinematic-footer-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
    background: var(--bg-dark);
    color: var(--fg);
    z-index: 1;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--bg-dark);
}

/* ── ANIMATIONS ── */
@keyframes footer-breathe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes footer-scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.animate-footer-breathe { animation: footer-breathe 8s ease-in-out infinite alternate; }
.animate-footer-scroll-marquee { animation: footer-scroll-marquee 40s linear infinite; }

/* ── BACKGROUNDS (Aurora & Grid) ── */
.footer-aurora {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80vw;
    height: 60vh;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(29, 124, 110, 0.15) 0%, rgba(232, 200, 122, 0.15) 40%, transparent 70%);
}

.footer-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(250, 250, 250, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(250, 250, 250, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.footer-giant-bg-text {
    position: absolute;
    bottom: -5vh;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-size: 26vw;
    line-height: 0.75;
    font-weight: var(--font-weight-black);
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(250, 250, 250, 0.05);
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.1) 0%, transparent 60%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

/* ── MARQUEE BAR ── */
.footer-marquee-bar {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(250, 250, 250, 0.06);
    border-bottom: 1px solid rgba(250, 250, 250, 0.06);
    background: rgba(13, 31, 28, 0.8);
    padding: 16px 0;
    z-index: 10;
    transform: rotate(-2deg) scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.footer-marquee-track {
    display: flex;
    width: max-content;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-marquee-track span { white-space: nowrap; }
.footer-marquee-track .sep { color: rgba(29, 124, 110, 0.5); margin: 0 36px; }

/* ── CENTER CONTENT ── */
.footer-center {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin-top: 80px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

.footer-heading {
    margin: 0 0 16px;
    text-align: center;
    font-size: clamp(2.8rem, 8vw, 7rem);
    font-weight: var(--font-weight-black);
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--fg) 0%, rgba(250, 250, 250, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 20px rgba(250, 250, 250, 0.15));
}

.footer-subheading {
    max-width: 520px;
    margin: 0 0 40px;
    text-align: center;
    color: var(--muted);
    font-size: clamp(0.82rem, 1.8vw, 1rem);
    font-weight: 500;
    line-height: 1.6;
    text-transform: none;
}

/* ── GLASS PILL SYSTEM (NO BLUR) ── */
.footer-glass-pill {
    background: linear-gradient(145deg, rgba(250, 250, 250, 0.04) 0%, rgba(250, 250, 250, 0.015) 100%);
    box-shadow: 0 10px 30px -10px rgba(13, 31, 28, 0.5), inset 0 1px 1px rgba(250, 250, 250, 0.1);
    border: 1px solid rgba(250, 250, 250, 0.08);
    transition: all 0.4s var(--ease-out);
}

.footer-glass-pill:hover, .footer-glass-pill:focus-visible {
    border-color: rgba(250, 250, 250, 0.2);
    background: linear-gradient(145deg, rgba(250, 250, 250, 0.08) 0%, rgba(250, 250, 250, 0.03) 100%);
    color: var(--fg);
    outline: none;
}

.footer-glass-pill--primary {
    background: linear-gradient(145deg, rgba(29, 124, 110, 0.16) 0%, rgba(29, 124, 110, 0.06) 100%);
    border-color: rgba(29, 124, 110, 0.28);
    box-shadow: 0 10px 30px -10px rgba(29, 124, 110, 0.2), inset 0 1px 1px rgba(29, 124, 110, 0.2);
}
.footer-glass-pill--primary:hover {
    background: linear-gradient(145deg, rgba(29, 124, 110, 0.25) 0%, rgba(29, 124, 110, 0.1) 100%);
    border-color: rgba(29, 124, 110, 0.4);
    box-shadow: 0 20px 40px -10px rgba(29, 124, 110, 0.3), inset 0 1px 1px rgba(29, 124, 110, 0.3);
}

.footer-glass-pill--secondary {
    background: linear-gradient(145deg, rgba(232, 200, 122, 0.16) 0%, rgba(232, 200, 122, 0.06) 100%);
    border-color: rgba(232, 200, 122, 0.28);
    box-shadow: 0 10px 30px -10px rgba(232, 200, 122, 0.2), inset 0 1px 1px rgba(232, 200, 122, 0.2);
}
.footer-glass-pill--secondary:hover {
    background: linear-gradient(145deg, rgba(232, 200, 122, 0.25) 0%, rgba(232, 200, 122, 0.1) 100%);
    border-color: rgba(232, 200, 122, 0.4);
    box-shadow: 0 20px 40px -10px rgba(232, 200, 122, 0.3), inset 0 1px 1px rgba(232, 200, 122, 0.3);
}

/* ── PILLS LAYOUT ── */
.footer-pills-row, .footer-secondary-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
.footer-secondary-pills { margin-top: 24px; gap: 10px; }

.footer-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 9999px;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 600px;
    text-decoration: none;
    color: var(--fg);
}
.footer-pill-btn svg { width: 24px; height: 24px; color: var(--muted); transition: color 0.3s ease; flex-shrink: 0; }
.footer-pill-btn:hover svg { color: var(--fg); }

.footer-pill-sm {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 20px;
    border-radius: 9999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    cursor: pointer;
    will-change: transform;
    transition: color 0.3s ease;
    text-decoration: none;
}
.footer-pill-sm:hover { color: var(--fg); }

.footer-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.footer-price-tag strong { color: var(--fg); font-size: 13px; font-weight: 800; }

/* ── SOCIAL LINKS ── */
.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(250, 250, 250, 0.12);
    background: rgba(250, 250, 250, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}
.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--muted);
    transition: fill 0.3s ease;
}
.footer-social-link:hover {
    background: rgba(29, 124, 110, 0.15);
    border-color: rgba(29, 124, 110, 0.4);
}
.footer-social-link:hover svg {
    fill: var(--fg);
}

/* ── BOTTOM BAR ── */
.footer-bottom-bar {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copyright {
    order: 2;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
}

.footer-brand-badge {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 9999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-color: rgba(250, 250, 250, 0.05);
}
.footer-brand-badge .brand {
    margin-left: 2px;
    color: var(--fg);
    font-size: 14px;
    font-weight: var(--font-weight-black);
    letter-spacing: 0;
    text-transform: none;
}
.footer-brand-badge .brand-sub {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-top-btn {
    order: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.3s ease;
}
.footer-top-btn:hover { color: var(--fg); }
.footer-top-btn svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.footer-top-btn:hover svg { transform: translateY(-6px); }


/* ============================================
   RESPONSIVE — FOOTER
   ============================================ */

/* ── Tablets ── */
@media (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row;
        padding-left: 48px;
        padding-right: 48px;
    }
    .footer-copyright { order: 1; font-size: 12px; }
    .footer-brand-badge { order: 2; padding: 14px 28px; font-size: 11px; }
    .footer-top-btn { order: 3; }
    .footer-pill-btn { padding: 22px 44px; font-size: 15px; }
    .footer-pill-sm { padding: 12px 24px; font-size: 12px; }
}

/* ── Mobile Landscape / Large Phones ── */
@media (max-width: 767px) {
    .footer-marquee-bar { top: 32px; }
    .footer-marquee-track { font-size: 9px; letter-spacing: 0.2em; }
    .footer-marquee-track .sep { margin: 0 24px; }

    .footer-center {
        justify-content: center;
        padding: 80px 16px 20px;
        margin-top: 60px;
    }
    .footer-heading {
        font-size: clamp(2.2rem, 14vw, 3.5rem);
    }
    .footer-subheading {
        font-size: clamp(0.78rem, 3.5vw, 0.9rem);
        margin-bottom: 28px;
        max-width: 400px;
    }

    .footer-pill-btn {
        width: min(100%, 340px);
        justify-content: center;
        padding: 16px 20px;
        text-align: center;
        font-size: 13px;
    }
    .footer-pill-btn svg { width: 20px; height: 20px; }

    .footer-secondary-pills {
        gap: 8px;
        justify-content: center;
    }
    .footer-pill-sm {
        padding: 8px 16px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .footer-socials { margin-top: 24px; gap: 10px; }
    .footer-social-link { width: 40px; height: 40px; }
    .footer-social-link svg { width: 16px; height: 16px; }

    .footer-bottom-bar { padding: 20px 16px; gap: 16px; }
}

/* ── Small Mobile ── */
@media (max-width: 479px) {
    .footer-marquee-bar { top: 24px; padding: 12px 0; }
    .footer-marquee-track { font-size: 8px; letter-spacing: 0.15em; }
    .footer-marquee-track .sep { margin: 0 18px; }

    .footer-center {
        padding: 60px 12px 16px;
        margin-top: 48px;
    }
    .footer-heading {
        font-size: clamp(2rem, 12vw, 3rem);
    }
    .footer-subheading {
        font-size: 0.75rem;
        margin-bottom: 22px;
    }

    /* Stack CTA pills vertically */
    .footer-pills-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .footer-pill-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 18px;
        font-size: 12px;
    }

    /* Show only key nav pills on small mobile */
    .footer-secondary-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-pill-sm {
        padding: 6px 12px;
        font-size: 8px;
    }

    .footer-socials { gap: 8px; margin-top: 20px; }
    .footer-social-link { width: 36px; height: 36px; }
    .footer-social-link svg { width: 14px; height: 14px; }

    .footer-brand-badge {
        padding: 10px 18px;
        gap: 8px;
    }
    .footer-brand-badge .brand { font-size: 12px; }
    .footer-brand-badge .brand-sub { font-size: 8px; }
    .footer-copyright { font-size: 9px; }
}

/* ── Very Small (iPhone SE, 320px) ── */
@media (max-width: 359px) {
    .footer-heading {
        font-size: clamp(1.8rem, 11vw, 2.5rem);
    }
    .footer-pill-btn {
        max-width: 280px;
        padding: 12px 14px;
        font-size: 11px;
        gap: 8px;
    }
    .footer-pill-btn svg { width: 18px; height: 18px; }

    /* Hide secondary pills on very small screens */
    .footer-secondary-pills { display: none; }

    .footer-social-link { width: 32px; height: 32px; }
    .footer-social-link svg { width: 12px; height: 12px; }
}

/* ── Large Desktop / 4K ── */
@media (min-width: 1400px) {
    .footer-marquee-bar { top: 56px; padding: 18px 0; }
    .footer-marquee-track { font-size: 12px; }

    .footer-center { margin-top: 100px; }
    .footer-heading {
        font-size: clamp(3.5rem, 8vw, 8rem);
    }
    .footer-subheading {
        max-width: 560px;
        font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    }

    .footer-pill-btn { padding: 24px 52px; font-size: 16px; }
    .footer-pill-sm { padding: 14px 28px; font-size: 12px; }

    .footer-socials { gap: 16px; margin-top: 40px; }
    .footer-social-link { width: 50px; height: 50px; }
    .footer-social-link svg { width: 20px; height: 20px; }

    .footer-bottom-bar { padding: 28px 64px; }
    .footer-brand-badge { padding: 16px 32px; }
    .footer-brand-badge .brand { font-size: 16px; }
    .footer-copyright { font-size: 13px; }
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .animate-footer-breathe { animation: none; }
    .animate-footer-scroll-marquee { animation: none; }
}
