/* ============================================================
   layout.css — Navbar + Footer + Mobile Menu
   Heptalume Child Theme
   ============================================================ */

/* ── Admin-bar offset ── */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-nav { top: 46px; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 72px;
    padding-inline: 48px;
    display: flex;
    align-items: center;
    transition: background 0.5s ease, border-color 0.5s ease, height 0.35s ease, box-shadow 0.5s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
    background: rgba(3, 3, 8, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 0 rgba(200, 151, 106, 0.08), 0 8px 32px rgba(0,0,0,0.2);
    height: 62px;
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Logo inner layout: orbs left, wordmark right */
.logo-inner {
    display: flex;
    align-items: center;
    gap: 11px;
}

/* Column of 7 chakra orbs */
.logo-lights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

/* Individual orb */
.logo-orb {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.logo-orb:nth-child(1) { background: var(--c7); box-shadow: 0 0 5px var(--c7); }
.logo-orb:nth-child(2) { background: var(--c6); box-shadow: 0 0 5px var(--c6); }
.logo-orb:nth-child(3) { background: var(--c5); box-shadow: 0 0 5px var(--c5); }
.logo-orb:nth-child(4) { background: var(--c4); box-shadow: 0 0 5px var(--c4); }
.logo-orb:nth-child(5) { background: var(--c3); box-shadow: 0 0 5px var(--c3); }
.logo-orb:nth-child(6) { background: var(--c2); box-shadow: 0 0 5px var(--c2); }
.logo-orb:nth-child(7) { background: var(--c1); box-shadow: 0 0 5px var(--c1); }

/* Hover: intensify glow */
.nav-logo:hover .logo-orb:nth-child(1) { box-shadow: 0 0 10px var(--c7), 0 0 20px rgba(196,127,255,0.3); }
.nav-logo:hover .logo-orb:nth-child(2) { box-shadow: 0 0 10px var(--c6), 0 0 20px rgba(107,79,204,0.3); }
.nav-logo:hover .logo-orb:nth-child(3) { box-shadow: 0 0 10px var(--c5), 0 0 20px rgba(46,156,255,0.3); }
.nav-logo:hover .logo-orb:nth-child(4) { box-shadow: 0 0 10px var(--c4), 0 0 20px rgba(61,186,110,0.3); }
.nav-logo:hover .logo-orb:nth-child(5) { box-shadow: 0 0 10px var(--c3), 0 0 20px rgba(255,214,0,0.3); }
.nav-logo:hover .logo-orb:nth-child(6) { box-shadow: 0 0 10px var(--c2), 0 0 20px rgba(255,140,0,0.3); }
.nav-logo:hover .logo-orb:nth-child(7) { box-shadow: 0 0 10px var(--c1), 0 0 20px rgba(255,60,60,0.3); }

/* Brand name */
.logo-wordmark {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    color: var(--white);
    transition: color var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.nav-logo:hover .logo-wordmark {
    color: var(--gold-l);
}

/* Fallback text logo (unused but preserved) */
.nav-logo-img {
    height: 34px;
    width: auto;
    display: block;
}
.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.12em;
}

/* Desktop menu */
.nav-menu-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Right zone */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language switcher */
.lang-pill {
    display: flex;
    gap: 2px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-l);
    border: 1px solid rgba(200, 151, 106, 0.25);
}

/* Cart icon */
.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-cart:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: var(--radius-full);
    padding-inline: 3px;
    transition: opacity var(--transition);
}

.nav-cart-count.is-empty {
    opacity: 0;
    pointer-events: none;
}

/* CTA button */
.nav-cta {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-l));
    color: #120a02 !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200, 151, 106, 0.25);
    color: #120a02 !important;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text-2);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--white);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--white);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-1);
    border-left: 1px solid var(--border);
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-2);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: var(--space-lg);
    transition: all var(--transition);
}

.mobile-menu-close:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-nav-list .nav-link {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 12px 16px;
    display: block;
    border-radius: var(--radius-md);
    color: var(--text);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link--active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    margin-top: var(--space-md);
}

.mobile-menu-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 8, 0.7);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px);
}

.mobile-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   SITE CONTENT — offset for fixed nav
   ============================================================ */
.site-content {
    padding-top: 72px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 72px 48px 36px;
    margin-top: auto;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,151,106,0.2), transparent);
    pointer-events: none;
}

.footer-grid {
    max-width: 1160px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Brand column */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.85;
    transition: opacity var(--transition);
}
.footer-logo-link:hover { opacity: 1; }

.footer-brand .footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0.9);
}

.footer-brand .footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--white);
    margin-bottom: 18px;
    display: block;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: var(--space-md);
    max-width: 260px;
}

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

.soc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 13px;
}

.soc-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Footer columns */
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 18px;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
}

/* Footer bottom bar */
.footer-bottom {
    max-width: 1160px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-2);
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--text-2);
    font-size: 11px;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 960px) {
    .site-nav { padding-inline: 24px; }

    .nav-menu-wrap { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .site-nav { padding-inline: 16px; }

    .site-content { padding-top: 60px; }

    .lang-pill { display: none; }

    .site-footer {
        padding: 48px 20px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
