/* Header styles for Nocturne Venue */

.nv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.98), rgba(5, 5, 9, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: var(--space-4);
}

.nv-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: #ffffff;
}

.nv-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(212, 175, 55, 0.9), rgba(11, 22, 51, 0.9));
  box-shadow: var(--shadow-glow-gold);
}

.nv-header__logo-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(5, 5, 9, 0.9);
  box-shadow: 0 0 0 2px rgba(245, 245, 247, 0.85);
}

.nv-header__brand-text {
  display: flex;
  flex-direction: column;
}

.nv-header__brand-name {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nv-header__brand-tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Navigation */

.nv-header__nav {
  display: flex;
  align-items: center;
}

.nv-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nv-header__nav-link {
  position: relative;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
  padding-block: 0.25rem;
}

.nv-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-burgundy));
  transition: transform var(--transition-base);
}

.nv-header__nav-link:hover,
.nv-header__nav-link:focus-visible {
  color: #ffffff;
}

.nv-header__nav-link:hover::after,
.nv-header__nav-link:focus-visible::after,
.nv-header__nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nv-header__nav-item--cta {
  margin-left: var(--space-2);
}

.nv-header__cta {
  font-size: var(--font-size-xs);
  padding-inline: 1.25rem;
  padding-block: 0.6rem;
}

/* Mobile toggle */

.nv-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 18, 0.96);
  cursor: pointer;
  gap: 6px;
  color: #ffffff;
}

.nv-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile layout (default) */

.nv-header__nav {
  position: fixed;
  inset-inline: 0;
  top: 56px;
  background: radial-gradient(circle at top, rgba(15, 15, 25, 0.98), rgba(5, 5, 9, 0.98));
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.nv-header__nav-list {
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--space-4) var(--space-4);
}

.nv-header--menu-open .nv-header__nav {
  max-height: 320px;
}

.nv-header--menu-open .nv-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nv-header--menu-open .nv-header__toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Desktop layout */

@media (min-width: 768px) {
  .nv-header__toggle {
    display: none;
  }

  .nv-header__nav {
    position: static;
    max-height: none;
    background: transparent;
  }

  .nv-header__nav-list {
    flex-direction: row;
    padding: 0;
  }
}

/* High-contrast focus for keyboard users */

.nv-header__nav-link:focus-visible,
.nv-header__brand:focus-visible,
.nv-header__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
