/* ========== NAVIGATION ========== */
/* The navbar sits on --primary-color (navy), where the default
   --accent-color-strong ring is only 2.81:1 — below WCAG 1.4.11's 3:1. The gold
   is 6.51:1 there. Redefining the variable on this element re-colours every focus
   ring inside the navbar (links, hamburger, logo) through base.css's one rule,
   because custom properties inherit. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  --focus-ring-color: var(--secondary-color);
  z-index: 1000;
  box-shadow: var(--shadow-navbar);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--height-navbar);
}

.logo {
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--height-navbar);
  left: 0;
  right: 0;
  background-color: var(--primary-color-light);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.nav-links.open {
  max-height: 400px;
}

.nav-link {
  display: block;
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  border-top: var(--border-width-thin) solid var(--white-alpha-08);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: var(--white-alpha-06);
  color: var(--secondary-color);
}

.hamburger {
  background: transparent;
  width: 32px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: var(--border-width-thick);
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius-xs);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}
