/* ============================================================
   YEV NAV — nav.css (R2 extraction by MOVE, 2026-08-07)
   The ENTIRE nav style surface: glass bar, logo, mega-menu panels,
   language dropdown, GET TICKETS CTA, responsive + reduced-motion +
   print rules. MOVED (not copied) out of style.css — the .meganav
   grammar exists in EXACTLY ONE file (harness-enforced).
   Consumers: style.css line 1 (@import) for all standard pages;
   manager surfaces load tokens.css + THIS file and never style.css
   (hard rule, R2). Tokens come from tokens.css.
   ============================================================ */

/* ─── NAVBAR (glass bar — Leg 0 meganav, 2026-07-30) ─────── */
.meganav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1;
}

.nav-logo span {
  display: block;
  font-size: 9px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-body-color);
  margin-top: 3px;
}

/* (Legacy .nav-links / .nav-toggle grammar RETIRED 2026-07-30, Leg 0 —
   replaced by the .meganav-* block at the end of this file. The old
   script.js drawer handler self-disables via its null-guard.) */

/* ─── NAV CTA (gold sweep — split from the shared
   .nav-cta,.btn-primary group at the 2026-08-07 R2 extraction;
   .btn-primary keeps the identical rules in style.css) ─── */
.nav-cta {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  text-decoration: none;
  background-image: linear-gradient(100deg, var(--color-accent-dark) 0 50%, var(--color-accent) 50% 100%);
  background-size: 205% 100%;
  background-position: 100% 0;
  transition: background-position 0.2s ease, transform 0.1s ease;
}
.nav-cta:hover { background-position: 0 0; }
.nav-cta:active { transform: scale(0.97); }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 11px 18px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta { transition: none; }
}

/* ─── LANGUAGE SWITCHER (dropdown, 2026-08-01 — stamped nav control.
   SQUARE CORNERS: the nav is NOT on the rounded deviation list; no
   border-radius may ever enter this block. Menu grammar mirrors the
   meganav panels: #0A0A0A, 2px gold bottom rule, #1A1A1A hairlines,
   #111111 hover row, 1px gold left rule, 0.18s ease-out. ─────── */
/* right-side cluster (2026-08-01 seam amendment): the language trigger and
   the CTA ride one wrapper so ONLY their seam is pinned (10px) — the bar's
   other seams keep their space-between distribution untouched. */
.meganav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch { position: relative; }

.lang-switch-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-body-color);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 8px; /* ≥44px tap target inside the 64px bar */
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-switch-trigger:hover { color: var(--color-text); }

.lang-switch-current { color: var(--color-accent); } /* gold = the live language, same signal as the old .active button */

.lang-switch.open .lang-switch-trigger {
  color: var(--color-accent);
  border-color: var(--color-accent-soft);
}

.lang-switch.open .lang-switch-trigger .meganav-chev { transform: rotate(180deg); }

.lang-switch-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 5; /* above deployed meganav panels (same stacking context) */
  min-width: 190px;
  background: #0A0A0A;
  border: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-accent);
  padding: 4px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0s linear 0.18s;
}

.lang-switch.open .lang-switch-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.lang-switch-menu li + li { border-top: 1px solid #1A1A1A; }

.lang-switch-menu button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: 0;
  border-left: 1px solid transparent;
  color: #DEDEDE;    /* readability floor — never darker */
  font-family: var(--font-body);
  font-size: 16px;   /* readability floor — never below */
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease-out, border-left-color 0.18s ease-out, color 0.18s ease-out;
}

.lang-switch-menu button span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-body-color);
}

.lang-switch-menu button:hover,
.lang-switch-menu button:focus-visible {
  background: #111111;
  border-left-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-switch-menu button.active,
.lang-switch-menu button.active span { color: var(--color-accent); }

@media (max-width: 479px) {
  /* ruling (a) 2026-08-01: title compacts away on narrow phones — the
     trigger keeps aria-label="Language"; frees the bar so the CTA fits */
  .lang-switch-title { display: none; }
}

/* ── MEGANAV (2026-07-30 — GRANTED SCOPED BLOCK, Leg 0 nav consolidation;
   locked spec: #0A0A0A panels, square corners everywhere (nav is NOT on
   the rounded deviation list), gold = var(--color-accent) ONLY (index
   numbers, hover left-rule, active underline, chevron, CTA, 2px panel
   bottom rule), Anton titles ~15px uppercase #FFFFFF, Manrope descs
   ≥14px ≥#C4C4C4, Instrument Serif italic voice column only, 180ms
   ease-out (drum motion timing), 1px #1A1A1A hairlines, hover row
   #111111. Bar shell = .meganav near the top of this file. Hamburger
   threshold 1100 per the standing operator ruling. */

/* top-level row — mobile-first: drawer panel under the sticky bar */
.meganav-links {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 14px;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.meganav.nav-open .meganav-links {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.meganav-links > li > a,
.meganav-parent {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DEDEDE; /* resting (field-ruled 2026-07-30); hover/active gold unchanged */
  text-decoration: none;
  transition: color 0.18s ease-out;
}
.meganav-links > li > a { display: block; padding: 13px 0; }
.meganav-links > li > a:hover { color: var(--color-accent); }
.meganav-parent {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.meganav-parent:hover { color: var(--color-accent); }
.meganav-chev { color: var(--color-accent); transition: transform 0.18s ease-out; }
.meganav-group.open > .meganav-parent .meganav-chev { transform: rotate(180deg); }

/* panel — mobile: inline accordion inside the drawer */
.meganav-panel {
  display: none;
  background: #0A0A0A;
  border-left: 1px solid var(--color-accent); /* gold rule = open indicator (mobile) */
  margin: 0 0 6px;
}
@media (max-width: 1099px) {
  .meganav-group.open > .meganav-panel { display: block; }
}

.meganav-panel-inner { display: contents; } /* mobile: layout-transparent; becomes the bounded grid >=1100 */
.meganav-voice { padding: 16px 18px 4px; }
.meganav-voice-head {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 21px;
  color: var(--color-text);
  line-height: 1.25;
}
.meganav-voice-head em { color: var(--color-accent); font-style: italic; }
.meganav-voice-line {
  font-family: var(--font-body);
  font-size: 16px;
  color: #DEDEDE;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 6px;
}

.meganav-items { list-style: none; padding: 8px 0 10px; }
.meganav-items li + li { border-top: 1px solid #1A1A1A; } /* hairlines */
.meganav-items a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 18px;
  text-decoration: none;
  border-left: 1px solid transparent;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.meganav-items a:hover,
.meganav-items a:focus-visible {
  background: #111111;
  border-left-color: var(--color-accent); /* 1px gold left rule */
}
.meganav-num {
  font-family: var(--font-headline);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  flex: none;
}
.meganav-body { display: block; }
.meganav-title {
  display: block;
  font-family: var(--font-headline);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  transition: color 0.18s ease-out;
}
.meganav-items a:hover .meganav-title,
.meganav-items a:focus-visible .meganav-title { color: var(--color-accent); }
.meganav-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;   /* readability floor (field-ruled 2026-07-30) — never below */
  color: #DEDEDE;    /* readability floor — never darker */
  font-weight: 500;
  line-height: 1.6;
  margin-top: 3px;
}

/* hamburger — same 44px tap-target grammar as the retired toggle */
.meganav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: none;
  border: 1px solid transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.meganav-toggle:hover { color: var(--color-accent); }
.meganav.nav-open .meganav-toggle {
  color: var(--color-accent);
  border-color: var(--color-accent-soft);
}

/* desktop ≥1100 (standing hamburger-threshold ruling): row + hover panels */
@media (min-width: 1100px) {
  .meganav { padding: 0 20px; height: 72px; }
  .meganav-toggle { display: none; }
  .meganav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .meganav-links > li { position: static; }
  .meganav-links > li > a,
  .meganav-parent { display: inline-flex; padding: 25px 0; white-space: nowrap; width: auto; }
  /* gold active underline on the open group / hovered top link */
  .meganav-links > li > a,
  .meganav-parent { border-bottom: 2px solid transparent; }
  .meganav-links > li > a:hover,
  .meganav-group.open > .meganav-parent { border-bottom-color: var(--color-accent); }

  /* full-nav-width deploy panel */
  .meganav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-left: 0;
    border-bottom: 2px solid var(--color-accent); /* 2px gold bottom rule */
    margin: 0;
    padding: 40px 0; /* composition fix: vertical rhythm */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0s linear 0.18s;
    display: block;
  }
  /* bounded content container — aligns with the bar's content edges */
  .meganav-panel-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
  }
  .meganav-group.open > .meganav-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }
  .meganav-voice {
    padding: 0 28px 0 0;
    border-right: 1px solid #1A1A1A;
  }
  .meganav-voice-head { font-size: 26px; }
  .meganav-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    column-gap: 24px;
    row-gap: 8px;
    align-content: start;
    padding: 0 0 0 28px;
  }
  .meganav-items a { padding: 16px 28px; }
  /* hairlines per grid ROW (first row clean, hover spans only its cell) */
  .meganav-items li + li { border-top: 0; }
  .meganav-items li:nth-child(n+3) { border-top: 1px solid #1A1A1A; }
}
@media (min-width: 1280px) {
  .meganav { padding: 0 48px; }
}

/* R6 (2026-08-07): the nav never enters a printed page — covers the
   Manager branded print report and any future print surface. */
@media print {
  .meganav { display: none !important; }
}
