/* Header styles scoped to .site-header; builds on base.css */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(180deg, rgba(19, 19, 26, 0.92) 0%, rgba(19, 19, 26, 0.75) 60%, rgba(19, 19, 26, 0.6) 100%);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-4);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.brand-link:hover { text-shadow: var(--glow-purple); }

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  color: var(--color-primary);
  text-shadow: var(--glow-purple);
}
.brand-text {
  background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-electric-blue) 50%, var(--color-vibrant-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Navigation */
.primary-nav { position: relative; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.primary-nav__link {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}
.primary-nav__link:hover,
.primary-nav__link:focus { color: var(--color-text-primary); text-shadow: var(--glow-blue); }

.primary-nav__cta { margin-left: var(--space-2); }
.book-cta { white-space: nowrap; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  color: var(--color-text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-base);
}
.nav-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* Mobile menu behavior: visible by default when JS is disabled. Hidden only when html.js is present */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav__list { gap: var(--space-4); }

  /* With JS enabled, collapse menu by default */
  html.js .primary-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.98) 0%, rgba(26, 26, 36, 0.96) 100%);
    border-top: 1px solid var(--color-border-primary);
    box-shadow: var(--shadow-xl);
  }
  html.js .primary-nav.is-open { display: block; }
  html.js .primary-nav__list { flex-direction: column; align-items: stretch; padding: var(--space-6); }
  html.js .primary-nav__item { width: 100%; }
  html.js .primary-nav__link { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-base); border: 1px solid transparent; }
  html.js .primary-nav__link:focus-visible { border-color: var(--color-border-primary); }
  html.js .primary-nav__cta { margin: 0; }

  .nav-backdrop { display: none; }
  html.js .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(2px);
    z-index: var(--z-fixed);
  }
  html.js .nav-backdrop.is-active { display: block; }
}

/* Reduce Motion */
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: background var(--transition-slow), border-color var(--transition-base); }
  html.js .primary-nav { transition: opacity var(--transition-base), transform var(--transition-base); }
}

/* When nav is open, prevent body scroll (body class toggled by JS) */
body.nav-open { overflow: hidden; }