/* ==========================================================================
   Base — reset, typography, layout primitives
   Accessibility floor is WCAG 2.2 AA and the type is deliberately larger than
   a typical marketing site: the people reading this are elderly residents and
   their fifty-something children, usually on a phone, often at night.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored sections must not hide beneath the sticky header. */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Prevent scrolling behind the open mobile drawer. */
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

p, ul, ol, dl, figure, blockquote, table { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* Comfortable measure for long-form copy. */
p { max-width: 68ch; text-wrap: pretty; }

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--teal-700); }

strong, b { font-weight: 650; }

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

ul, ol { padding-left: 1.25em; }
li + li { margin-top: var(--sp-2); }

hr {
  height: 1px;
  margin: var(--sp-12) 0;
  border: 0;
  background: var(--border);
}

blockquote { margin-inline: 0; }

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

/* --- Focus -------------------------------------------------------------
   Always visible, never removed. A keyboard user must be able to see where
   they are on every single interactive element. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* --- Selection -------------------------------------------------------- */
::selection {
  background: var(--gold-200);
  color: var(--navy-900);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--sunken { background: var(--bg-sunken); }
.section--raised { background: var(--bg-raised); }

.section--invert {
  background: var(--bg-invert);
  color: var(--text-invert);
}
.section--invert h2,
.section--invert h3 { color: var(--white); }
.section--invert p { color: var(--text-invert-muted); }

/* Section heading group: eyebrow, title, optional lead paragraph. */
.section-head { margin-bottom: var(--sp-10); max-width: 54ch; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--gold-500);
}
.section-head--center .eyebrow::before { display: none; }
.section--invert .eyebrow { color: var(--gold-500); }

.lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

/* Generic responsive grid. Column count is the only thing that varies. */
.grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 40rem) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 58rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column content/media split. */
.split {
  display: grid;
  gap: clamp(var(--sp-8), 5vw, var(--sp-16));
  align-items: center;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-start { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-end { grid-template-columns: 0.85fr 1.15fr; }
  .split__media--first { order: -1; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--r-md);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-6 > * + * { margin-top: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
.cluster--center { justify-content: center; }

/* Arched image frame echoing the roofline and cupped hands in the logo. */
.arch {
  overflow: hidden;
  border-radius: var(--r-arch);
}

.frame {
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Motion — every animation is opt-out
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No JS? Never leave content invisible. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .call-bar, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
