/* Premium Navbar - Transparent with Gradient Shadow */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 9, 7, 0.92),
    rgba(13, 9, 7, 0.55),
    rgba(13, 9, 7, 0)
  );
  pointer-events: none;
}

.nav-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  pointer-events: auto;
  height: 100%;
  padding: 0 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.nav-logo:hover,
.nav-logo:focus {
  opacity: 0.8;
  text-decoration: none;
  outline-offset: 4px;
}

/* Desktop Navigation Links */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #fffff0;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  transition: opacity 0.25s ease;
  padding: 0.5rem 0;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FCC300;
  transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  opacity: 1;
  text-decoration: none;
  outline: none;
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
  width: 100%;
}

/* CTA Button - Pill Style */
.nav-cta {
  position: relative;
  overflow: hidden;
  background: #FCC300;
  color: #0d0907;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: inline-block;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0d0907;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}

.nav-cta span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  color: inherit;
}

.nav-cta:hover::before {
  transform: translateX(0);
}

.nav-cta:hover span {
  color: #fffff0;
}

.nav-cta:focus-visible {
  outline: 2px solid #FCC300;
  outline-offset: 2px;
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fffff0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-toggle:hover span,
.nav-toggle:focus span {
  opacity: 0.8;
}

.nav-toggle:focus {
  outline: 2px solid #FCC300;
  outline-offset: 4px;
}

/* Body scroll lock when menu is open */
body.nav-open {
  overflow: hidden;
}

/* Mobile Navigation Overlay - Full-page slide-in */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  transform: translateX(-100%);
  background: rgba(13, 9, 7, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
}

.mobile-nav.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  font-size: 34px;
  line-height: 1;
  color: #fffff0;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
  opacity: 0.8;
}

.mobile-nav-close:focus {
  outline: 2px solid #FCC300;
  outline-offset: 4px;
}

/* Mobile Nav Inner Layout */
.mobile-nav-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 96px 24px 40px; /* top space for close button */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* center on most screens */
  gap: 22px;
  overflow-y: auto; /* allow scroll if it doesn't fit */
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-links {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.mobile-nav-links li a {
  color: #fffff0;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: block;
  padding: 0.5rem 1rem;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a:focus {
  opacity: 0.8;
  text-decoration: none;
  outline: 2px solid #FCC300;
  outline-offset: 4px;
}

/* Gold Divider */
.mobile-nav-divider {
  height: 1px;
  width: min(320px, 80%);
  margin: 0 auto;
  background: #FCC300;
  opacity: 0.9;
}

/* Mobile CTA - Reuse desktop pill style */
.nav-cta--mobile {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: min(320px, 85vw);
  max-width: 360px;
  margin: 0 auto;
  align-self: center;
  flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .nav-container {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  .nav-logo img {
    height: 38px;
    max-width: 180px;
  }

  .nav-links,
  .nav-container > .nav-cta {
    display: none; /* Hide header CTA only, not mobile menu CTA */
  }

  .nav-toggle {
    display: flex;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}
