.asp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b1e4a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.asp-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.asp-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.asp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.asp-header__logo-link:focus-visible {
  outline: 2px solid #40c463;
  outline-offset: 3px;
}

.asp-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

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

.asp-header__site-name {
  font-family: "Source Serif 4", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.asp-header__tagline {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Navigation */
.asp-header__nav {
  margin-left: auto;
}

.asp-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.asp-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.asp-header__nav-link:hover,
.asp-header__nav-link:focus-visible {
  color: #ffffff;
  background-color: rgba(148, 163, 184, 0.16);
}

.asp-header__nav-link:focus-visible {
  outline: 2px solid #40c463;
  outline-offset: 2px;
}

.asp-header__nav-link--cta {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
}

.asp-header__nav-link--cta:hover,
.asp-header__nav-link--cta:focus-visible {
  background: #16a34a;
  color: #ecfdf3;
}

/* Mobile toggle */
.asp-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  padding: 0;
  cursor: pointer;
}

.asp-header__toggle:focus-visible {
  outline: 2px solid #40c463;
  outline-offset: 2px;
}

.asp-header__toggle-bar {
  position: absolute;
  left: 50%;
  width: 1.4rem;
  height: 2px;
  background-color: #e5e7eb;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.asp-header__toggle-bar:nth-child(1) {
  top: 0.85rem;
}

.asp-header__toggle-bar:nth-child(2) {
  top: 1.25rem;
}

.asp-header__toggle-bar:nth-child(3) {
  top: 1.65rem;
}

.asp-header__toggle[aria-expanded="true"] .asp-header__toggle-bar:nth-child(1) {
  top: 1.25rem;
  transform: translateX(-50%) rotate(45deg);
}

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

.asp-header__toggle[aria-expanded="true"] .asp-header__toggle-bar:nth-child(3) {
  top: 1.25rem;
  transform: translateX(-50%) rotate(-45deg);
}

/* Responsive layout */
@media (max-width: 768px) {
  .asp-header__inner {
    padding-inline: 1rem;
  }

  .asp-header__tagline {
    display: none;
  }

  .asp-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .asp-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transform-origin: top;
  }

  .asp-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
  }

  .asp-header__nav-item {
    width: 100%;
  }

  .asp-header__nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
  }

  /* JS-enhanced state: menu closed by default when supported */
  .asp-header__nav[data-collapsible="true"] {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .asp-header__nav[data-collapsible="true"].is-open {
    max-height: 18rem;
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asp-header__toggle-bar,
  .asp-header__nav[data-collapsible="true"] {
    transition: none;
  }
}