/* Header styles for Night Culture Place */

.ncp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(135deg, rgba(247, 242, 233, 0.94), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(11, 27, 63, 0.08);
}

.ncp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* Branding */

.ncp-header__brand {
  display: flex;
  align-items: center;
}

.ncp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.ncp-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f9e7d2 0%, #c97a6a 30%, #0b1b3f 75%);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  position: relative;
}

.ncp-header__logo-mark::after {
  content: "N";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fdfaf6;
}

.ncp-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ncp-header__logo-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.ncp-header__logo-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Navigation */

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

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

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

.ncp-header__cta {
  font-size: 0.75rem;
  padding-inline: 1.6rem;
}

/* Mobile toggle */

.ncp-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(11, 27, 63, 0.18);
  background-color: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

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

.ncp-header__toggle:hover {
  background-color: #ffffff;
  border-color: rgba(11, 27, 63, 0.35);
  box-shadow: var(--shadow-sm);
}

.ncp-header__toggle.is-active .ncp-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ncp-header__toggle.is-active .ncp-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ncp-header__toggle.is-active .ncp-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay state */

@media (max-width: 768px) {
  .ncp-header__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .ncp-header__toggle {
    display: inline-flex;
  }

  .ncp-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: radial-gradient(circle at top, rgba(201, 122, 106, 0.12), transparent 60%),
      linear-gradient(180deg, rgba(247, 242, 233, 0.98), rgba(255, 255, 255, 0.98));
    border-bottom: 1px solid rgba(11, 27, 63, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }

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

  .ncp-header__nav-item--cta {
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-2);
  }

  .ncp-header__cta {
    width: 100%;
    justify-content: center;
  }

  .ncp-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Reduced header size on very small screens */

@media (max-width: 480px) {
  .ncp-header__logo-mark {
    width: 34px;
    height: 34px;
  }

  .ncp-header__logo-title {
    font-size: 0.95rem;
  }

  .ncp-header__logo-subtitle {
    display: none;
  }
}

/* Ensure nav links remain readable over header background */

.ncp-header .nav-link {
  font-weight: 500;
  color: var(--color-primary);
}

.ncp-header .nav-link[aria-current="page"] {
  color: var(--color-accent);
}
