/* ===== Site Navigation ===== */
:root {
  --nav_bg: #171749;
  --nav_text: #F7F5EE;
  --nav_text_muted: #C9C8DE;
  --nav_accent: #FF6B35;
  --nav_height: 60px;
}

.nav_bar {
  /* Sticky: stays at the top of the screen while the page scrolls.
     (Sticky also works as "relative" for the dropdown menu inside it.) */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.25s ease;
  background: var(--nav_bg);
  height: var(--nav_height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Slid up out of view while scrolling down (class set by header.js);
   comes back as soon as the page is scrolled up. */
.nav_bar_hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .nav_bar {
    transition: none;
  }
}

.nav_logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--nav_text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav_logo_accent {
  color: var(--nav_accent);
}

/* ---------- Hamburger toggle button (always visible — desktop + mobile) ---------- */
.nav_toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav_toggle_bar {
  width: 24px;
  height: 2px;
  background: var(--nav_text);
  border-radius: 2px;
  margin-bottom: 5px;
}

.nav_toggle_bar:last-child {
  margin-bottom: 0;
}

/* ---------- Dropdown menu (hidden until toggled — always, any screen size) ---------- */
.nav_links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--nav_bg);
  display: none;
  padding: 8px 0;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.nav_links_open {
  display: flex;
}

.nav_link {
  color: var(--nav_text_muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-left: 3px solid transparent;
}

.nav_link:hover,
.nav_link_active {
  color: var(--nav_text);
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--nav_accent);
}

/* ---------- Desktop: narrower dropdown, anchored under the toggle icon ---------- */
@media (min-width: 641px) {
  .nav_links {
    left: 32px;
    right: auto;
    width: 220px;
    border-radius: 0 0 8px 8px;
  }
}
