/* =========================================================
   Base: reset, typography, utilities. Mobile-first.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Sticky header offset for every in-page anchor (dropdown shortcuts) */
  scroll-padding-top: calc(var(--header-h) + var(--header-top-gap) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--c-navy);
  line-height: var(--lh-tight);
  font-weight: 600;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-4); }

a { color: var(--c-navy); text-underline-offset: 3px; }
a:hover { color: var(--c-green-700); }

img, video, svg { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

/* Visible focus everywhere (keyboard users) */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-navy-050); }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--navy h2, .section--navy h3 { color: var(--c-white); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-6); }
.section__head p { color: var(--c-text-muted); }
.section--navy .section__head p { color: rgba(255,255,255,.8); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: 1000;
  background: var(--c-navy); color: var(--c-white);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
