/* Header-specific styles for Interactive Event Life */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-nav {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.site-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  color: var(--color-primary-strong);
}

.site-name {
  font-size: var(--font-size-lg);
}

.main-nav__list--left,
.main-nav__list--right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.main-nav__link {
  font-weight: 500;
}

.main-nav__link--cta {
  padding-inline: 0.9rem;
  padding-block: 0.45rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.main-nav__link--cta:hover,
.main-nav__link--cta:focus-visible {
  background-color: var(--color-primary-strong);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 10001;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-lock {
  overflow: hidden;
}

/* Mobile burger */
@media (max-width: 960px) {
  .header-nav {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-nav__inner {
    justify-content: center;
  }

  .header-nav__inner .main-nav__list {
    display: none;
  }

  .header-nav__inner .site-logo {
    max-width: calc(100% - 72px);
    justify-content: center;
  }

  .site-name {
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  .header-nav__inner.header-nav__inner--open {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100dvh;
    padding: 92px var(--layout-gutter) 32px;
    background: rgba(247, 251, 255, 0.98);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    overflow-y: auto;
  }

  .header-nav__inner.header-nav__inner--open .site-logo {
    margin-bottom: 10px;
    max-width: 100%;
  }

  .header-nav__inner.header-nav__inner--open .main-nav__list {
    display: flex;
    width: min(100%, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-nav__inner.header-nav__inner--open .main-nav__link {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .header-nav__inner.header-nav__inner--open .main-nav__link--cta {
    margin-top: 4px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}

.header-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.event-safety-badge--header {
  padding: 0.35rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: normal;
  max-width: 220px;
}

@media (max-width: 960px) {
  .header-brand-block {
    max-width: calc(100% - 64px);
  }

  .event-safety-badge--header {
    max-width: 100%;
    font-size: 0.58rem;
    padding: 0.32rem 0.6rem;
  }
}