/* BLEND — shared site chrome (nav, mobile menu, language switcher).
   Loaded LAST on every page so this is the single source of truth for the
   header. Colour tokens (--gold-1 etc.) come from each page's own stylesheet.
   Edit the navigation styling here, once — not per page. */

/* ===================== NO HORIZONTAL SCROLL (all pages) =====================
   Single shared guard so no page ever pans sideways, regardless of a wide
   child (swipe rows, transforms, glows). Horizontal swipe carousels opt back
   in locally with their own `overflow-x: auto` container. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 68px;
    /* Equal-width left/right zones keep the centre links truly centred
       regardless of how wide the brand or the action buttons are. */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(11,13,17,0.6);
    border-bottom: 1px solid rgba(212,175,55,0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-brand {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    /* Iridescent gold shimmer — matches the control panel wordmark */
    background: linear-gradient(100deg, #c79b34 0%, #f0d588 26%, #fff6da 50%, #f0d588 74%, #c79b34 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: 3px;
    flex: 1 1 0;
    animation: navBrandShimmer 7s linear infinite;
    cursor: pointer;
}
@keyframes navBrandShimmer { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) {
    .nav-brand { animation: none; }
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex: 0 0 auto;
    /* Breathing room between the links and the brand / CTA buttons. */
    margin: 0 clamp(20px, 4vw, 52px);
}

.nav-links a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-1);
}

.nav-actions {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.nav-cta {
    padding: 9px 22px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

/* Primary CTA — Get the App (filled gold) */
.nav-cta--primary {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: #0b0d11;
    box-shadow: 0 4px 18px rgba(212,175,55,0.22);
}

.nav-cta--primary:hover {
    box-shadow: 0 6px 26px rgba(212,175,55,0.4);
    transform: translateY(-1px);
}

/* Secondary CTA — For Business (ghost outline) */
.nav-cta--ghost {
    background: rgba(212,175,55,0.04);
    border-color: rgba(212,175,55,0.35);
    color: var(--gold-1);
}

.nav-cta--ghost:hover {
    background: rgba(212,175,55,0.12);
    border-color: var(--gold-1);
}

/* ===================== HAMBURGER ===================== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: 8px;
    transition: background 0.2s;
    margin-left: 4px;
}

.nav-hamburger:hover { background: rgba(212,175,55,0.08); }

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

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 40px;
    padding: 4px;
}

.lang-btn {
    padding: 5px 13px;
    border-radius: 30px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: #0b0d11;
}

.lang-btn:not(.active):hover { color: var(--gold-1); }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    z-index: 98;
    background: rgba(11,13,17,0.98);
    border-bottom: 1px solid rgba(212,175,55,0.1);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
    padding: 20px 28px 28px;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }

.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
    border-bottom: 1px solid rgba(212,175,55,0.07);
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--gold-1); }

.mobile-menu-cta {
    margin-top: 20px;
    display: inline-block;
    padding: 11px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #0b0d11;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.25);
}

.mobile-menu-cta:hover {
    box-shadow: 0 6px 30px rgba(212,175,55,0.4);
    transform: translateY(-1px);
}

/* Georgian font on the header */
body.lang-ka .nav-links a,
body.lang-ka .nav-cta,
body.lang-ka .mobile-menu ul li a,
body.lang-ka .mobile-menu-cta {
    font-family: 'Noto Sans Georgian', sans-serif;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1023px) {
    nav { padding: 0 28px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu { top: 72px; }
}

/* ===================== ANTI-FLICKER REVEAL ===================== */
/* Hide the page until the language is applied, then fade in — stops the
   brief flash of untranslated / restyled nav when navigating between pages. */
body { opacity: 0; }
body.i18n-ready { opacity: 1; transition: opacity 0.25s ease; }
@keyframes blendRevealFailsafe { to { opacity: 1; } }
body:not(.i18n-ready) { animation: blendRevealFailsafe 0.01s linear 1s forwards; }
