/* ─── Fixed nav bar ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: linear-gradient(to bottom, #0a0a0a 0%, rgba(10,10,10,0.94) 55%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 var(--container-pad);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ─── Logo ──────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 102;
  position: relative;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--accent);
}

/* ─── Links (centered between logo and right cluster) ──────── */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1;
}

.nav-links > a,
.nav-dropdown > .nav-dropdown-trigger {
  font-size: 15px;
  font-weight: 400;
  color: rgba(240, 240, 238, 0.65);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}

.nav-links > a:hover,
.nav-dropdown:hover > .nav-dropdown-trigger {
  color: var(--white);
}

.nav-links > a.active,
.nav-dropdown > .nav-dropdown-trigger.active {
  color: var(--white);
  font-weight: 500;
}

/* ─── Desktop dropdown menus ──────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.5;
  margin-left: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
}

.nav-dropdown-menu-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(240, 240, 238, 0.65);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

/* ─── Right cluster ─────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-phone {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 240, 238, 0.65);
  transition: color 0.2s ease;
}

.nav-phone:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--accent);
  color: #0a0a0a;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(182,255,0,0.2);
}

.nav-cta:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(182,255,0,0.35);
  color: #0a0a0a;
}

.nav-cta:active {
  transform: translateY(0);
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 102;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile fullscreen overlay ─────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 102;
}

.nav-overlay-close:hover {
  background: rgba(182, 255, 0, 0.1);
  border-color: rgba(182, 255, 0, 0.3);
}

.nav-overlay-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-overlay a:hover {
  color: var(--accent);
}

.nav-overlay .overlay-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.nav-overlay .overlay-phone {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}

.nav-overlay .overlay-cta {
  margin-top: 12px;
  background: var(--accent);
  color: #0a0a0a;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-overlay .overlay-cta:hover {
  background: var(--accent-hot);
  color: #0a0a0a;
}

/* ─── Nav overlay groups (collapsible sub-menus) ───────────── */
.nav-overlay-group {
  text-align: center;
}

.nav-overlay-parent {
  cursor: pointer;
  position: relative;
}

.nav-overlay-parent::after {
  content: ' ▾';
  font-size: 0.6em;
  opacity: 0.5;
}

.nav-overlay-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.nav-overlay-group.expanded .nav-overlay-sub {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

.nav-overlay-group.expanded .nav-overlay-parent::after {
  content: ' ▴';
}

.nav-overlay-sub a {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
}

.nav-overlay-sub a:hover {
  color: var(--accent) !important;
}

/* ─── Sticky mobile CTA bar ────────────────────────────────── */
.mobile-cta-bar {
  display: none;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links,
  .nav-phone,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px var(--container-pad);
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  .mobile-cta-bar .mobile-cta-primary {
    flex: 1;
    max-width: 280px;
    background: var(--accent);
    color: #0a0a0a;
    padding: 13px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
    box-shadow: 0 2px 12px rgba(182, 255, 0, 0.2);
  }

  .mobile-cta-bar .mobile-cta-primary:hover {
    background: var(--accent-hot);
    color: #0a0a0a;
  }

  .mobile-cta-bar .mobile-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--white);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .mobile-cta-bar .mobile-cta-phone:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .mobile-cta-bar .mobile-cta-phone svg {
    width: 20px;
    height: 20px;
  }

  body {
    padding-bottom: 72px;
  }
}
