/* ════════════════════════════════
   NAV
   ════════════════════════════════ */
.tb-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: var(--nav-h);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--nav-bg-rest);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.tb-nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px);
  border-color: var(--panel-border);
}
.tb-nav__logo {
  color: var(--text-primary); text-decoration: none;
  display: flex; align-items: center; flex-shrink: 0;
  transition: color .2s;
}
/* ── Text-only wordmark — no logo image, by design ──
   Color comes from .tb-nav__logo (inherited) so it still follows the
   existing .scrolled/.is-overlay state overrides below.
   TicketBox: Montserrat 700, letter-spacing 1px.
   DryVia (.tb-dark-theme/.tb-dark-chrome): Bebas Neue via --tb-heading-font,
   letter-spacing 4px. ── */
.tb-nav__logo-text {
  font-family: var(--tb-font);
  font-size: 18px; font-weight: 700; letter-spacing: 1px;
}
.tb-dark-theme .tb-nav__logo-text,
.tb-dark-chrome .tb-nav__logo-text {
  font-family: var(--tb-heading-font, var(--tb-font));
  letter-spacing: 4px;
}


.tb-nav__links {
  display: flex; gap: 32px; list-style: none;
  align-items: center; flex: 1; justify-content: center;
}
.tb-nav__links a {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s; white-space: nowrap; position: relative;
}
.tb-nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.tb-nav__links a:hover { color: var(--text-primary); }
.tb-nav__links a:hover::after { transform: scaleX(1); }
.tb-nav__links li.current-menu-item > a { color: var(--text-primary); }
.tb-nav__links li.current-menu-item > a::after { transform: scaleX(1); }

.tb-nav__cta {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--text-primary); text-decoration: none;
  border: 1px solid var(--border-default); padding: 9px 20px;
  white-space: nowrap; transition: background .2s, border-color .2s, color .2s; flex-shrink: 0;
}
.tb-nav__cta:hover { background: var(--red); border-color: var(--red); color: #FFFFFF; }

/* ── Overlay state: nav sitting over a dark hero image ─────
   JS adds .is-overlay when body.has-hero-image + not scrolled.
   Removed when user scrolls past threshold (scroll ≥ 60px).  ── */
.tb-nav.is-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.52) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: none;
  border-color: transparent;
}
.tb-nav.is-overlay .tb-nav__logo         { color: rgba(255,255,255,.92); }
.tb-nav.is-overlay .tb-nav__links a       { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35); }
.tb-nav.is-overlay .tb-nav__links a:hover,
.tb-nav.is-overlay .tb-nav__links li.current-menu-item > a { color: #FFFFFF; }
.tb-nav.is-overlay .tb-nav__cta           { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.35); }
.tb-nav.is-overlay .tb-nav__cta:hover     { background: var(--red); border-color: var(--red); color: #FFFFFF; }

/* ── Scrolled: always teal bg, always white text (wins over overlay) ── */
.tb-nav.scrolled .tb-nav__logo            { color: #FFFFFF; }
.tb-nav.scrolled .tb-nav__links a         { color: rgba(255,255,255,.85); text-shadow: none; }
.tb-nav.scrolled .tb-nav__links a:hover,
.tb-nav.scrolled .tb-nav__links li.current-menu-item > a { color: #FFFFFF; }
.tb-nav.scrolled .tb-nav__cta             { color: #FFFFFF; border-color: rgba(255,255,255,.5); }


/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.tb-hero {
  min-height: 70vh; max-height: 720px; position: relative;
  display: flex; align-items: flex-end;
  padding: 0 var(--tb-space-7) var(--tb-space-9); overflow: hidden;
  background: var(--tb-black);
}
.tb-hero__bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  filter: brightness(.32) saturate(.8);
  will-change: transform;
}
.tb-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,.92) 0%, transparent 55%, rgba(8,8,8,.20) 100%);
}
.tb-hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.tb-hero__vline {
  position: absolute; left: 48px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: .3;
}
.tb-hero__content { position: relative; z-index: 2; max-width: 720px; }
.tb-hero__eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--red);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: tb-fade-up .8s .3s forwards;
  font-family: var(--font-body); font-weight: 500;
}
.tb-hero__eyebrow::before { content: ''; display: block; width: 36px; height: 1px; background: var(--red); }
.tb-hero__title {
  font-family: var(--tb-font);
  font-size: var(--tb-text-hero); line-height: var(--tb-leading-tight); letter-spacing: -.01em; font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--tb-space-5); opacity: 0; animation: tb-fade-up .8s .5s forwards;
}
.tb-hero__title span { color: var(--tb-red-500); display: block; font-style: italic; }
.tb-hero__sub {
  font-family: var(--font-body); font-size: var(--tb-text-md); font-weight: 400;
  color: rgba(255,255,255,.72); margin-bottom: var(--tb-space-6);
  opacity: 0; animation: tb-fade-up .8s .7s forwards;
  max-width: 520px; line-height: var(--tb-leading-relaxed);
}
.tb-hero__actions {
  display: flex; gap: 20px; align-items: center;
  opacity: 0; animation: tb-fade-up .8s .9s forwards;
}
.tb-hero__scroll {
  position: absolute; bottom: 40px; right: 48px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: tb-fade-in 1s 1.2s forwards;
}
.tb-hero__scroll span {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.55); writing-mode: vertical-rl;
}
.tb-hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: tb-scroll-line 2s infinite;
}


/* ════════════════════════════════
   TICKER
   ════════════════════════════════ */
.tb-ticker { background: var(--red); overflow: hidden; padding: 10px 0; }
.tb-ticker__track {
  display: flex; width: max-content;
  animation: tb-ticker 28s linear infinite;
}
.tb-ticker__item {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 0 32px; color: #FFFFFF;
  display: flex; align-items: center; gap: 32px; white-space: nowrap;
}
.tb-ticker__item::after { content: '◆'; font-size: 6px; opacity: .5; }


/* Events section styles live in assets/css/events.css (Micro 6 kinematograf cards) */


/* ════════════════════════════════
   MOBILE BURGER + SLIDE-IN PANEL
   ════════════════════════════════ */

.tb-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: none; padding: 8px; flex-shrink: 0;
}
.tb-nav__burger span {
  display: block; height: 1px;
  background: var(--text-primary);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
/* Over dark hero — keep burger lines white */
.tb-nav.is-overlay .tb-nav__burger span { background: rgba(255,255,255,.85); }
.tb-nav.scrolled   .tb-nav__burger span { background: #FFFFFF; }

.tb-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tb-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tb-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tb-mobile-overlay {
  position: fixed; inset: 0;
  background: var(--mobile-overlay);
  backdrop-filter: blur(4px);
  z-index: 299;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.tb-mobile-overlay.active { opacity: 1; pointer-events: auto; visibility: visible; }

.tb-mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--panel-border);
  z-index: 300;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.23,1,.32,1), visibility .4s;
  display: flex; flex-direction: column;
}
.tb-mobile-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.tb-mobile-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: var(--nav-h);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.tb-mobile-panel__close {
  background: none; border: none;
  color: var(--text-muted); font-size: 18px;
  cursor: none; padding: 8px;
  transition: color .2s;
}
.tb-mobile-panel__close:hover { color: var(--red); }

.tb-mobile-panel__nav {
  display: flex; flex-direction: column;
  padding: 24px 28px 40px;
  flex: 1; overflow-y: auto;
}
.tb-mobile-panel__nav ul { list-style: none; display: contents; }
.tb-mobile-panel__nav li { display: contents; }
.tb-mobile-panel__nav a {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color .2s, padding-left .2s;
  display: block;
}
.tb-mobile-panel__nav a:hover { color: var(--text-primary); padding-left: 6px; }
.tb-mobile-panel__cta {
  margin-top: 28px;
  text-align: center !important;
  display: block !important;
  padding: 14px 24px !important;
  border-bottom: none !important;
}
.tb-mobile-panel__cta:hover { padding-left: 0 !important; }

/* Footer nav */
.tb-footer__nav ul { list-style: none; display: contents; }
.tb-footer__nav li { display: contents; }

@media (max-width: 960px) {
  .tb-nav { padding: 0 24px; }
  .tb-nav__links { display: none; }
  .tb-nav__cta   { display: none; }
  .tb-nav__burger { display: flex; }
  .tb-nav__logo-text { font-size: 15px; }

  .tb-hero { padding: 0 var(--tb-space-5) var(--tb-space-8); max-height: none; }
  .tb-hero__vline { left: var(--tb-space-5); }
  .tb-hero__title { font-size: var(--tb-text-hero-mobile); line-height: var(--tb-leading-tight); }
  .tb-hero__sub { font-size: var(--tb-text-base); }
  .tb-hero__actions { flex-wrap: wrap; }
  .tb-hero__scroll  { right: var(--tb-space-5); }
}

@media (max-width: 480px) {
  .tb-hero { padding: 0 var(--tb-space-4) var(--tb-space-7); }
  .tb-hero__title { font-size: var(--tb-text-hero-mobile); word-break: break-word; }
  .tb-hero__eyebrow { font-size: var(--tb-text-xs); }
}
