/* ============ HEADER ============ */
.header {
  background: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  border-bottom: 1px solid var(--color-gray-100);
  transition: box-shadow var(--transition-fast);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* Full-bleed: the bar spans the viewport, inset only by its own padding. */
.header__content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 4rem;
}

/* logo.svg is the full lockup: icon, wordmark and tagline. */
.header__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo {
  height: 3.25rem;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.25rem;
  flex: 1;
}

.header__nav-link {
  color: var(--color-navy-900);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--color-navy-900);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger-bar {
  display: block;
  width: 100%;
  height: 0.1875rem;
  background: var(--color-navy-900);
  border-radius: var(--radius-pill);
}

/* ---- Mobile menu (full-screen overlay) ---- */
.header__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  padding: 0.875rem 1.5rem 2.5rem;
  overflow-y: auto;
}

/* Overrides the flex display above, which would otherwise beat [hidden]. */
.header__mobile-menu[hidden] {
  display: none;
}

.header__mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.header__mobile-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.header__menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-navy-900);
  cursor: pointer;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.header__mobile-nav-link {
  color: var(--color-navy-900);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.header__mobile-nav-link:hover {
  color: var(--color-blue-primary);
}

.header__mobile-cta {
  margin-top: auto;
  padding-top: 0.9375rem;
  padding-bottom: 0.9375rem;
  font-size: 1rem;
}

/* Stops the page behind the overlay from scrolling. */
body.has-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .header__content {
    padding: 0.875rem 1.5rem;

  }

  .header__logo {
    height: 2.5rem;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header__content {
   gap: 1rem;
   padding: 0.5rem 1rem;
  }
}
