/* Site header: a solid, full-width bar that always sits on its own opaque layer, so it can
   never visually merge with the section underneath it (previously a translucent floating pill). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--border);
  background: var(--pearl);
  transition: transform 280ms var(--ease-kriyon), box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 30px -24px rgba(48, 33, 39, 0.6);
}

.site-header.is-hidden {
  transform: translateY(-101%);
  box-shadow: none;
}

.site-header__bar {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  gap: 1.5rem;
  width: min(var(--page-max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.site-header__brand img {
  width: 7.5rem;
  height: auto;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.3rem);
  margin-left: auto;
}

.site-header__link {
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  color: #5d575a;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-header__link:hover,
.site-header__link.is-active {
  color: var(--burgundy);
}

.site-header__link.is-active {
  border-bottom-color: var(--burgundy);
}

.site-header__cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.3rem;
  border-radius: 999px;
  background: var(--burgundy-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.site-header__cta:hover {
  background: var(--burgundy);
  transform: translateY(-1px);
}

.site-header__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(108, 31, 61, 0.2);
  border-radius: 999px;
  color: var(--burgundy);
}

.site-header__toggle .icon-close { display: none; }
.site-header__toggle[aria-expanded="true"] .icon-open { display: none; }
.site-header__toggle[aria-expanded="true"] .icon-close { display: block; }

.site-header__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--pearl);
}

.site-header__mobile-inner {
  display: grid;
  gap: 0.25rem;
  width: min(var(--page-max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 0.75rem 0 1rem;
}

.site-header__mobile-link {
  padding: 0.85rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 650;
}

.site-header__mobile-link:hover,
.site-header__mobile-link.is-active {
  background: var(--burgundy-tint);
  color: var(--burgundy);
}

.site-header__mobile-cta {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--burgundy-dark);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  :root { --header-h: 3.75rem; }

  .site-header__links,
  .site-header__cta { display: none; }

  .site-header__toggle { display: inline-flex; }
  .site-header__mobile:not([hidden]) { display: block; }
}
