/* ============================================================
   TellTours - Navigation
   ============================================================ */

/* ── Top nav bar ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  background: rgba(11, 14, 17, 0.82);
  border-bottom-color: rgba(52, 161, 96, 0.18);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  color: #fff;
  flex-shrink: 0;
}
.logo img { height: 34px; width: auto; }

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-mid);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: var(--green-light);
  transition: right 0.2s ease-out;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: #fff; }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }
.nav-links a:active { color: var(--green-light); }

/* ── Desktop CTA ── */
.nav-cta {
  background: var(--green-deep); /* AA: white needs >=4.5:1 */
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.35);
}
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ── Hamburger ── */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 11px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-burger:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.nav-burger:active { transform: scale(0.96); }
.nav-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.nav-burger span + span { margin-top: 5px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 78%; max-width: 340px;
  background: #080D0B;
  border-left: 1px solid rgba(52,161,96,0.15);
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 99;
  padding: 92px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--serif);
  font-size: 28px;
  padding: 13px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-drawer a:hover,
.mobile-drawer a:focus-visible { color: var(--green-light); }
.mobile-drawer .nav-cta {
  margin-top: 22px;
  text-align: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner > .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* Defensive: the drawer is only ever opened by the (mobile-only) burger,
   but guarantee it can never occupy/paint at desktop widths even if the
   viewport is resized while it happens to be open. */
@media (min-width: 1024px) {
  .mobile-drawer { display: none; }
}
