/* =========================================
   JYNN Chrome — site-wide navbar + footer
   Navbar ported from the static build; footer is a
   fresh editorial luxury design (no 3D element).
   Loaded globally so header.php / footer.php render
   correctly on every page. GeneratePress's own
   header/footer are fully replaced.
   ========================================= */

/* Shared max-width container used by navbar + footer. */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* Cart link in the navbar — real WooCommerce cart + live count. */
.cart-btn,
.cart-btn:visited {
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.cart-btn:hover {
    color: var(--accent-glow);
}

.cart-btn .cart-count {
    color: var(--accent-glow);
}

/* =========================================
   EDITORIAL LUXURY FOOTER
   ========================================= */
.jynn-footer {
    position: relative;
    background-color: var(--bg-void);
    border-top: 1px solid var(--border-light);
    padding: 7rem 0 2.5rem;
    overflow: hidden;
}

/* --- Decorative dome/finial motif, bottom-anchored ---
   Purely ornamental: the actual reference photo (cropped to its bounding
   box, optimized as WebP/PNG — see assets/img/footer-motif.*), not a
   vector trace. Ties into the "Jinn granted three wishes" brand story
   (Jaipur architecture / genie-lamp lid). Restricted to the footer's own
   .container width (max 1400px, same as navbar/footer/sections — see
   .container above), anchored to the very bottom edge of the footer.
   Deliberately subtle — low opacity — so it reads as a quiet flourish,
   not a bold graphic. Purely decorative: aria-hidden, no interactive
   role. */
.jynn-footer__motif {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    pointer-events: none;
    z-index: 1;
    display: block;
    line-height: 0;
}

.jynn-footer__motif img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.14;
}

@media (max-width: 768px) {
    .jynn-footer__motif {
        max-width: 90vw;
    }
}

.jynn-footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* --- Top band: statement (left) + link columns (right) --- */
.jynn-footer__band {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 1.9fr;
    gap: 5rem;
    align-items: start;
}

.jynn-footer__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 1.75rem;
}

.jynn-footer__logo {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 0 1.75rem;
}

.jynn-footer__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin: 0 0 1.25rem;
}

.jynn-footer__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 420px;
    margin: 0;
    font-weight: 600;
}

/* --- Contact block: icon-only buttons, no heading, no visible text —
   labeled for screen readers via aria-label on each link. Circular
   bordered chips (not plain inline icons) so they read as distinct
   controls instead of blending into the subtitle text above them. --- */
.jynn-footer__contact {
    margin-top: 1.5rem;
}

.jynn-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.jynn-footer__contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: var(--text-bright);
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.jynn-footer__contact-btn:hover {
    color: var(--bg-void);
    background-color: var(--accent-glow);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}

.jynn-footer__contact-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Hairline rule --- */
.jynn-footer__rule {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.35) 0%,
            rgba(212, 175, 55, 0.08) 45%,
            rgba(255, 255, 255, 0.03) 100%);
    margin: 0;
}

/* --- Link grid (right side of top band) --- */
.jynn-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.jynn-footer__col h3 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 1.4rem;
}

.jynn-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jynn-footer__col li {
    margin-bottom: 0.85rem;
}

.jynn-footer__col a {
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.92rem;
    opacity: 0.72;
    transition: color var(--transition-fast), opacity var(--transition-fast), padding-left var(--transition-fast);
}

.jynn-footer__col a:hover {
    color: var(--accent-glow);
    opacity: 1;
    padding-left: 6px;
}

/* --- Bottom bar (copyright only) --- */
.jynn-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jynn-footer__credit {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin: 0;
}

/* =========================================
   FOOTER CONSISTENCY GUARD
   The footer is global site chrome, but on WooCommerce pages (shop, cart,
   checkout, product, account) WooCommerce adds `woocommerce` /
   `woocommerce-page` to <body>. woocommerce-layout.css then applies
   `.woocommerce img, .woocommerce-page img { height: auto; max-width: 100% }`
   — a selector (0,1,1) that OUTRANKS `.jynn-footer__logo` (0,1,0), so on those
   pages the footer logo loses its fixed 56px height and renders oversized,
   while the home page (whose <body> has no `woocommerce` class) shows it at
   56px. That's why the footer differs. Reassert the footer logo's size with a
   `.jynn-footer` prefix (0,2,0) so it wins on every page and the footer stays
   identical everywhere.
   ========================================= */
.jynn-footer .jynn-footer__logo {
    height: 56px;
    width: auto;
    max-width: 100%;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .jynn-footer__band {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    /* Centered brand block (logo + subtitle) on mobile — see the
       .jynn-footer__logo size bump in the mobile-only rule below too. */
    .jynn-footer__statement {
        text-align: center;
    }

    .jynn-footer__logo {
        margin: 0 auto 1.5rem;
    }

    /* Matches the consistency-guard selector's specificity (0,2,0) below —
       a plain `.jynn-footer__logo { height: 68px; }` here would silently
       lose to that rule (declared earlier but more specific), so the
       mobile logo bump would never actually apply. */
    .jynn-footer .jynn-footer__logo {
        height: 68px;
    }

    .jynn-footer__subtitle {
        margin: 0 auto;
    }

    .jynn-footer__contact-list {
        justify-content: center;
    }

    .jynn-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 5%;
    }

    .menu-links {
        display: none;
    }

    .jynn-footer {
        padding: 5rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .jynn-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
}