/* ── SITE NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17,18,19,0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html.light .site-nav {
  background: rgba(245,243,239,0.85);
}

.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.site-nav-logo span {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.site-nav-logo span em {
  font-style: normal;
  color: var(--pink);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.site-nav-links a,
.site-nav-links .nav-dropdown-trigger {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  padding: 8px 0;
}

.site-nav-links li {
  display: flex;
  align-items: center;
}

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

.site-nav-links a.active,
.site-nav-links .nav-dropdown-trigger.active {
  color: var(--pink);
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 0;
}

.nav-dropdown-trigger svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1002;
}

/* Invisible bridge between trigger and dropdown to maintain hover */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

html.light .nav-dropdown-menu {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

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

.nav-dropdown-menu a.active {
  color: var(--pink);
}

/* Small arrow pointer on dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--bg2);
  border-top: none;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.site-nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 28px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.site-nav-mobile.open {
  display: flex;
}

.site-nav-mobile > a,
.site-nav-mobile > .mobile-dropdown-label {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-mobile > a:hover,
.site-nav-mobile > a.active,
.site-nav-mobile > .mobile-dropdown-label:hover {
  color: var(--pink);
}

.mobile-dropdown-label svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s;
}

.mobile-dropdown-label.open svg {
  transform: rotate(180deg);
}

.mobile-sector-links {
  display: none;
  flex-direction: column;
  padding-left: 20px;
}

.mobile-sector-links.open {
  display: flex;
}

.mobile-sector-links a {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-sector-links a:hover,
.mobile-sector-links a.active {
  color: var(--pink);
}

/* Move theme toggle into nav on desktop */
.site-nav .theme-toggle {
  position: static;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  margin-left: 8px;
}

/* Body padding to account for fixed nav */
body {
  padding-top: 56px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-nav .theme-toggle {
    margin-left: auto;
    margin-right: 12px;
  }
}
