.kz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
}

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

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

.kz-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-navy);
}

.kz-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #f9e7c2, #c38b2e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #0b1b33;
  box-shadow: var(--shadow-sm);
}

.kz-header__logo-text {
  display: flex;
  flex-direction: column;
}

.kz-header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kz-header__logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Nav */
.kz-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

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

.kz-header__nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.3rem 0;
}

.kz-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #c38b2e, #7b1235);
  transition: width var(--duration-base) var(--easing-standard);
}

.kz-header__nav-link:hover::after,
.kz-header__nav-link:focus-visible::after {
  width: 100%;
}

.kz-header__nav-item--highlight .kz-header__nav-link--button {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(195, 139, 46, 0.9);
  background: linear-gradient(135deg, #fdf7ea, #f3dfb7);
  color: #111827;
  box-shadow: var(--shadow-sm);
}

.kz-header__nav-item--highlight .kz-header__nav-link--button:hover {
  background: linear-gradient(135deg, #f6e4c4, #ebcf94);
}

.kz-header__notice {
  display: none;
}

/* Mobile toggle */
.kz-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
}

.kz-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0b1b33;
  margin-left: auto;
  margin-right: auto;
  transition: transform var(--duration-fast) var(--easing-standard),
    opacity var(--duration-fast) var(--easing-standard),
    width var(--duration-fast) var(--easing-standard);
}

.kz-header__toggle[aria-expanded="true"] .kz-header__toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
  width: 20px;
}

.kz-header__toggle[aria-expanded="true"] .kz-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.kz-header__toggle[aria-expanded="true"] .kz-header__toggle-bar:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 20px;
}

/* Mobile layout */
@media (max-width: 767px) {
  .kz-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border-subtle);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-base) var(--easing-standard),
      opacity var(--duration-base) var(--easing-standard);
  }

  .kz-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .kz-header__nav-link {
    font-size: var(--text-base);
  }

  .kz-header__nav-item--highlight .kz-header__nav-link--button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .kz-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .kz-header__notice {
    display: block;
    margin-top: var(--space-3);
  }
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .kz-header__toggle {
    display: none;
  }

  .kz-header__nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .kz-header__notice {
    display: block;
  }
}

/* Focus outline for menu button override */
.kz-header__toggle:focus-visible {
  outline: 3px solid rgba(195, 139, 46, 0.7);
  outline-offset: 2px;
}
