/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* True horizontal centering, independent of the logo/actions widths on
   either side — not a flex space-between illusion. */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-actions button,
.nav-actions a {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 0;
  transition: color 0.3s ease;
}

.nav-actions button:hover,
.nav-actions button:focus-visible,
.nav-actions a:hover,
.nav-actions a:focus-visible {
  color: var(--accent);
}

.nav-actions svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* Mobile: links collapse behind the menu button, which opens the
   full-screen panel built in js/navigation.js. The button is only needed
   on phones/tablets — on desktop the links are already visible. */
@media (min-width: 861px) {
  .nav-actions button[aria-label="Menu"] { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 0;
  transition: color 0.3s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible { color: var(--accent); }

.mobile-menu-close svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 0 24px;
  text-align: center;
}

.mobile-menu-links a {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 7vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible,
.mobile-menu-links a[aria-current="page"] { color: var(--accent); }

body[data-mobile-nav-open="true"] { overflow: hidden; }
