/* ── SHARED SITE NAVIGATION ───────────────────────────────────────────── */

/* Hide legacy nav elements immediately so there is no flash */
#topbar,
#bottom-nav,
#bnav,
#bottomBar { display: none !important; }

/* ── TOP NAV OVERLAY ──────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; bottom: auto; left: 0; right: 0;
  height: 56px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  pointer-events: none;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
#site-nav.scrolled {
  background: rgba(14,12,11,0.90);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(247,246,240,0.06);
}
#site-nav.dark.scrolled {
  background: rgba(247,246,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(14,12,11,0.08);
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  pointer-events: all;
}
.site-logo {
  height: 13px;
  width: auto;
  display: block;
  opacity: 0.65;
  transition: opacity 0.25s;
}
.site-logo-link:hover .site-logo { opacity: 1; }

/* Hamburger button */
#site-ham {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  pointer-events: all;
}
#site-ham span {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(247,246,240,0.55);
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}
#site-ham:hover span { background: rgba(247,246,240,0.9); }
#site-nav.dark #site-ham span {
  background: rgba(14,12,11,0.40);
}
#site-ham.open span:nth-child(1) { transform: rotate(45deg) translate(3px,3px); }
#site-ham.open span:nth-child(2) { transform: rotate(-45deg) translate(3px,-3px); }

/* ── HAMBURGER OVERLAY ────────────────────────────────────────────────── */
#site-ham-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(14,12,10,0.96);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
}
#site-ham-overlay.open { opacity: 1; pointer-events: all; }

.sham-item {
  display: block;
  text-decoration: none;
  font-size: clamp(28px,5vw,52px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(247,246,240,0.55);
  line-height: 1.15;
  transition: color 0.25s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
  text-align: left;
  padding: 0;
}
.sham-item:hover { color: rgba(247,246,240,0.9); }

.sham-sub {
  display: none;
  padding-left: 32px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.sham-sub.open { display: block; }
.sham-sub-item {
  display: block;
  text-decoration: none;
  font-size: clamp(13px,1.8vw,18px);
  letter-spacing: 0.06em;
  color: rgba(247,246,240,0.52);
  line-height: 2.0;
  transition: color 0.2s;
  font-weight: 300;
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
}
.sham-sub-item:hover { color: rgba(247,246,240,0.88); }

.sham-divider {
  height: 0.5px;
  background: rgba(240,238,230,0.08);
  margin: 20px 0;
}
.sham-item-sm {
  display: block;
  text-decoration: none;
  font-size: clamp(14px,1.6vw,18px);
  letter-spacing: 0.14em;
  color: rgba(247,246,240,0.5);
  line-height: 2.2;
  text-transform: uppercase;
  transition: color 0.2s;
  font-weight: 300;
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
}
.sham-item-sm:hover { color: rgba(247,246,240,0.86); }

/* ── BOTTOM NAV (6 world pages only) ─────────────────────────────────── */
#site-bnav {
  position: fixed;
  top: auto; bottom: 0; left: 0; right: 0;
  height: 48px;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-top: 0.5px solid rgba(247,246,240,0.06);
  background: rgba(14,12,11,0.90);
  backdrop-filter: blur(8px);
  animation: none;
  pointer-events: all;
}
#site-bnav a {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: 7px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(247,246,240,0.56);
  text-decoration: none;
  border-right: 0.5px solid rgba(247,246,240,0.06);
  transition: color 0.25s;
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
}
#site-bnav a:last-child { border-right: none; }
#site-bnav a:hover,
#site-bnav a.active { color: rgba(247,246,240,0.9); }

/* ── RIGHT-SIDE NAV GROUP (lang selector + hamburger) ────────────────── */
#nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: all;
}

/* ── TOPBAR LANGUAGE SELECTOR ─────────────────────────────────────────── */
#nav-lang {
  position: relative;
}

#nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px 2px;
  cursor: pointer;
  color: rgba(247,246,240,0.55);
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
  pointer-events: all;
  line-height: 1;
}
#nav-lang-btn:hover,
#nav-lang-btn.open {
  color: rgba(247,246,240,0.9);
}
#site-nav.dark #nav-lang-btn {
  color: rgba(14,12,11,0.35);
}
#site-nav.dark #nav-lang-btn:hover,
#site-nav.dark #nav-lang-btn.open {
  color: rgba(14,12,11,0.75);
}

#nav-lang-pop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  background: rgba(10,8,4,0.95);
  border: 0.5px solid rgba(247,246,240,0.14);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  padding: 5px 0;
  z-index: 9100;
}
#nav-lang-pop.open {
  display: block;
}

.nav-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Jost','Helvetica Neue',Arial,sans-serif;
  text-align: left;
  transition: background 0.15s;
}
.nav-lang-item:hover {
  background: rgba(247,246,240,0.06);
}
.nav-lang-code {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,240,0.45);
  transition: color 0.15s;
  min-width: 20px;
}
.nav-lang-name {
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(247,246,240,0.28);
  transition: color 0.15s;
}
.nav-lang-item:hover .nav-lang-code,
.nav-lang-item:hover .nav-lang-name {
  color: rgba(247,246,240,0.85);
}
.nav-lang-item.active .nav-lang-code {
  color: rgba(247,246,240,0.90);
}
.nav-lang-item.active .nav-lang-name {
  color: rgba(247,246,240,0.55);
}

/* ── MOBILE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-nav { padding: 0 20px; height: 52px; }
  #site-ham-overlay { padding: 80px 32px 48px; }
  .sham-item { font-size: clamp(34px,10vw,42px); line-height: 1.32; color: rgba(247,246,240,0.72); font-weight: 400; }
  .sham-item:hover { color: rgba(247,246,240,1); }
  .sham-sub-item { font-size: clamp(13px,4vw,16px); line-height: 1.32; padding: 8px 0; }
  .sham-item-sm { font-size: clamp(13px,4vw,16px); color: rgba(247,246,240,0.5); font-weight: 400; line-height: 1.32; }
  .sham-item-sm:hover { color: rgba(247,246,240,1); }
  .sham-divider { margin: 14px 0; }
  #site-bnav { display: none; }
  #nav-right { gap: 12px; }
}

/* ── MOBILE YOUTUBE THUMBNAIL PLAYER — shared across all pages ────────── */
.yt-player {
  position: absolute; inset: 0;
  cursor: pointer; overflow: hidden;
}
.yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.58);
  transition: filter 0.35s;
}
.yt-player:hover .yt-thumb { filter: brightness(0.72); }
.yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.yt-play-circle {
  width: 54px; height: 54px; border-radius: 50%;
  border: 0.5px solid rgba(247,246,240,0.32);
  background: rgba(8,8,6,0.58);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, background 0.3s;
}
.yt-player:hover .yt-play-circle {
  border-color: rgba(247,246,240,0.60);
  background: rgba(247,246,240,0.10);
}
.video-sm .yt-play-circle { width: 40px; height: 40px; }

/* ── MOBILE TYPOGRAPHY — shared across all pages ─────────────────────── */
@media (max-width: 768px) {
  /* Project pages — about / body text */
  .ap-body { font-size: 16px; line-height: 1.65; }

  /* Project pages — cast / credits: name above role on mobile */
  .cast-item { font-size: 14px; flex-direction: column-reverse; gap: 2px; }
  .cast-role { font-size: 13px; line-height: 1.2; }
  .cast-name { font-size: 14px; line-height: 1.2; }

  /* Project pages — tour rows: stacked date | info block on mobile */
  .ptour-row { grid-template-columns: 60px 1fr; gap: 2px 16px; align-items: start; padding: 12px 0; }
  .ptour-date { grid-column: 1; grid-row: 1; align-self: start; font-size: 14px; }
  .ptour-venue { grid-column: 2; display: block; font-size: 11px; }
  .ptour-venue::after { content: ''; }
  .ptour-city { grid-column: 2; display: block; font-size: 10px; }
  .ptour-note { grid-column: 2; font-size: 10px; }
  .ptour-link { display: none; }

  /* Bookings — hero subtitle */
  .hero-sub { font-size: 15px; line-height: 1.7; }

  /* Bookings — section description */
  .sec-desc { font-size: 13px; line-height: 1.65; }

  /* Bookings — card typography */
  .card-title { font-size: clamp(18px,5vw,22px); }
  .card-tag { font-size: 9px; letter-spacing: 0.16em; }
  .card-tagline { font-size: 13px; }

  /* Bookings — fact / detail rows */
  .fact-row { font-size: 13px; }
  .fact-key { font-size: 13px; }
  .fact-val { font-size: 14px; }
}
