/* =========================================================================
   Familiar Faces — County of Simcoe & Beyond
   Shared stylesheet. Plain CSS, no build step, no preprocessor.

   DESIGN SYSTEM — "Evergreen & Linen"
   ---------------------------------------------------------------------
   Palette. Warm, low-chroma neutrals with one confident brand colour
   (a deep forest green, grounded in Simcoe County rather than in the
   teal/navy of medical branding) and one small warm accent used almost
   entirely as decoration. Every text/background pair below was checked
   numerically against the WCAG relative-luminance formula.

     --ink        #17211D  body + heading text     15.8:1 on --paper  (AAA)
     --ink-soft   #41504A  secondary/meta text      8.1:1 on --paper  (AAA)
     --paper      #FBFAF7  page background
     --linen      #F1EEE8  alternating section band (ink 14.3:1, AAA)
     --surface    #FFFFFF  cards, form, header      (ink 16.5:1, AAA)
     --sage       #E7EDE7  image mat, soft panels   (ink 13.9:1, AAA)
     --evergreen  #1E4034  brand: buttons, bands   11.0:1 on --paper  (AAA)
                                                   11.4:1 white on it (AAA)
     --sage-light #DCE7DE  text on --evergreen      9.0:1 (AAA)
     --sage-muted #C6D4C9  quiet text on evergreen  7.4:1 (AAA)
     --amber      #A26A17  DECORATIVE ONLY          4.4:1 on --paper
                           (rules, dots, edges — never used as text)
     --amber-ink  #8A5A12  small warm labels        5.7:1 on --paper  (AA)
     --amber-lift #E0A94A  decorative on evergreen  5.4:1 (badge fill;
                           --ink on it is 7.8:1, AAA)
     --rust       #9E2F24  form error text          7.0:1 on --paper  (AAA)
     --field-line #6E7C76  form control borders     4.4:1 on white
                           (clears the 3:1 non-text contrast requirement)
     --line       #E2DED4  purely decorative hairline

   Type. Fraunces (display, self-hosted) used with restraint for headings
   and the wordmark only; Atkinson Hyperlegible (body, self-hosted) for
   everything else — it was drawn by the Braille Institute for low-vision
   readability, which is the right call for this audience.

   Signature element. The arch: every photograph sits in an arch-topped
   sage "mat", a quiet nod to a doorway and to a matted family photograph.
   It is the only decorative shape on the site. The secondary motif is the
   short amber dash that precedes every section eyebrow label.
   ========================================================================= */

/* ---- Self-hosted fonts -------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-700.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-400-italic.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* colour */
  --ink: #17211d;
  --ink-soft: #41504a;
  --paper: #fbfaf7;
  --linen: #f1eee8;
  --surface: #ffffff;
  --sage: #e7ede7;
  --sage-light: #dce7de;
  --sage-muted: #c6d4c9;
  --evergreen: #1e4034;
  --evergreen-deep: #163027;
  --amber: #a26a17;
  --amber-ink: #8a5a12;
  --amber-lift: #e0a94a;
  --rust: #9e2f24;
  --rust-tint: #fbefed;
  --line: #e2ded4;
  --line-strong: #cfd8d1;
  --field-line: #6e7c76;

  /* focus ring — redefined inside dark bands */
  --focus: var(--evergreen);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(3.25rem, 7vw, 6rem);
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --container: 71.5rem; /* 1144px */
  --measure: 68ch;

  /* shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --arch: clamp(3rem, 9vw, 6rem);

  /* depth — soft, low-alpha, two-layer */
  --shadow-sm: 0 1px 2px rgba(23, 33, 29, 0.05),
    0 1px 3px rgba(23, 33, 29, 0.04);
  --shadow-md: 0 2px 4px rgba(23, 33, 29, 0.04),
    0 10px 24px -8px rgba(23, 33, 29, 0.12);
  --shadow-lg: 0 4px 8px rgba(23, 33, 29, 0.04),
    0 26px 52px -18px rgba(23, 33, 29, 0.2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

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

a {
  color: inherit;
}

/* Sticky header clearance for in-page anchor targets (services.html). */
[id] {
  scroll-margin-top: 7rem;
}

/* ---- Base typography ---------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px floor, per brief */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 64em) {
  body {
    font-size: 1.25rem; /* 20px on desktop */
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.75rem + 2.7vw, 3.85rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}

p {
  max-width: var(--measure);
}

p + p {
  margin-top: var(--s-4);
}

strong {
  font-weight: 700;
}

/* Introductory / summary paragraph. */
.lede {
  font-size: 1.12em;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Small uppercase label that opens a section — the recurring amber dash
   is the site's secondary motif. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--evergreen);
  max-width: none;
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

/* ---- Motion ------------------------------------------------------------- */
@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;
  }
}

/* ---- Accessibility utilities -------------------------------------------- */
.visually-hidden {
  position: absolute;
  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;
  top: -999px;
  left: var(--s-4);
  z-index: 100;
  background: var(--evergreen);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.section--linen {
  background: var(--linen);
}
.section--sage {
  background: var(--sage);
}
.section--evergreen {
  background: var(--evergreen);
  color: var(--sage-light);
  --focus: #eabe72;
  --line: #33564a;
}
.section--evergreen h1,
.section--evergreen h2,
.section--evergreen h3 {
  color: #fff;
}
.section--evergreen .lede {
  color: var(--sage-light);
}
.section--evergreen .eyebrow {
  color: var(--sage-muted);
}
.section--evergreen .eyebrow::before {
  background: var(--amber-lift);
}

.stack > * + * {
  margin-top: var(--s-5);
}
.stack--tight > * + * {
  margin-top: var(--s-4);
}

/* Section intro block: eyebrow + heading + lede. */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
h1 + .lede,
h2 + .lede,
h3 + .lede {
  margin-top: var(--s-4);
}
.section-head--center {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.section-head--center .eyebrow {
  justify-content: center;
}
.section-head--center .lede {
  margin-inline: auto;
}

/* Two-column editorial split: sticky-feeling label column + prose. */
.split {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 64em) {
  .split {
    grid-template-columns: 21rem 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.65em 1.4em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--evergreen);
  color: #fff;
  border-color: var(--evergreen);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--evergreen-deep);
  border-color: var(--evergreen-deep);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--evergreen);
  border-color: var(--field-line);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--sage);
  border-color: var(--evergreen);
}

.btn--light {
  background: #fff;
  color: var(--evergreen);
  border-color: #fff;
}
.btn--light:hover,
.btn--light:focus-visible {
  background: var(--sage-light);
  border-color: var(--sage-light);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.btn-row--center {
  justify-content: center;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: block;
}

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 0.7rem;
}

.wordmark {
  display: block;
  order: 1;
  min-width: 0; /* lets the subtitle wrap rather than overflow at 320px */
  text-decoration: none;
  line-height: 1.1;
}
.wordmark__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.wordmark__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}
@media (min-width: 64em) {
  .wordmark__name {
    font-size: 1.35rem;
  }
  .wordmark__sub {
    font-size: 0.65rem;
  }
}

.header-actions {
  display: flex;
  order: 2;
  align-items: center;
  gap: var(--s-2);
}

/* Header call button: icon-only on small screens so the row never
   overflows at 375px; full number once there is room. */
.header-call {
  min-width: 52px;
  padding: 0.55em 0.8em;
  font-size: 1rem;
}
.header-call__text {
  display: none;
}
@media (min-width: 48em) {
  .header-call {
    padding: 0.55em 1.2em;
  }
  .header-call__text {
    display: inline;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 52px;
  min-width: 52px;
  padding: 0.5em 0.8em;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--field-line);
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover {
  background: var(--sage);
}

/* Nav renders expanded with no JS at all. script.js only collapses it
   behind the button below the desktop breakpoint. */
.main-nav {
  order: 3;
  flex: 1 0 100%;
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
  padding: var(--s-2) 4px var(--s-3); /* 4px keeps focus rings off the edge */
  /* Guard against the open menu filling a short (landscape phone) viewport. */
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
}
.main-nav[hidden] {
  display: none;
}
.main-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.main-nav__list a:hover,
.main-nav__list a:focus-visible {
  background: var(--sage);
  color: var(--evergreen);
}
.main-nav__list a[aria-current="page"] {
  color: var(--evergreen);
  background: var(--sage);
}

@media (min-width: 64em) {
  .nav-toggle {
    display: none;
  }
  .site-header__inner {
    flex-wrap: nowrap;
    padding-block: 0.85rem;
  }
  .main-nav,
  .main-nav[hidden] {
    display: block;
    order: 2;
    flex: 1 1 auto;
    border-top: none;
    margin-top: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .header-actions {
    order: 3;
  }
  .main-nav__list {
    flex-direction: row;
    justify-content: center;
    gap: 0.15rem;
  }
  .main-nav__list a {
    min-height: 44px;
    padding: 0.45rem 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
  }
  /* Quiet underline on the current page rather than a filled pill. */
  .main-nav__list a[aria-current="page"] {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--amber);
    border-radius: 0;
  }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(178deg, #edf2ed 0%, var(--paper) 58%);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 64em) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero__content > * + * {
  margin-top: var(--s-5);
}
.hero h1 {
  margin-top: var(--s-3);
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  color: var(--evergreen);
  max-width: none;
}
.hero__email {
  font-size: 1rem;
  color: var(--ink-soft);
}
.hero__email a {
  color: var(--evergreen);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Page header for interior pages. */
.page-head {
  background: linear-gradient(178deg, #edf2ed 0%, var(--paper) 70%);
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.25rem, 5vw, 4rem);
}
.page-head__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 64em) {
  .page-head__grid--media {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---- Callout: the "not personal care" positioning panel ------------------ */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  max-width: 40rem;
}
.callout__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: var(--s-2);
  max-width: none;
}
.callout p {
  max-width: none;
}

/* ---- Signature element: the arch-topped, matted image frame -------------- */
.media {
  background: var(--sage);
  padding: 0.625rem;
  border-radius: var(--arch) var(--arch) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-md);
  max-width: 32rem;
  margin-inline: auto;
}
.media img {
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--arch) - 0.5rem) calc(var(--arch) - 0.5rem)
    calc(var(--r-lg) - 0.375rem) calc(var(--r-lg) - 0.375rem);
}
.media--portrait {
  max-width: 24rem;
}
@media (min-width: 64em) {
  .media {
    margin-inline: 0;
    margin-left: auto;
  }
  .media--left {
    margin-left: 0;
    margin-right: auto;
  }
}

/* ---- Cards -------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card p {
  max-width: none;
  font-size: 1rem;
  color: var(--ink-soft);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--evergreen);
}
.card__more {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-top: auto;
  padding-top: var(--s-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--evergreen);
}
.card__more .icon {
  transition: transform 0.18s ease;
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
a.card:hover .card__more .icon,
a.card:focus-visible .card__more .icon {
  transform: translateX(4px);
}

/* ---- Service themes (services.html) ------------------------------------- */
.theme {
  display: grid;
  gap: var(--s-4);
  padding-block: clamp(2rem, 4.5vw, 3rem);
  border-top: 1px solid var(--line);
}
.theme:first-of-type {
  border-top: none;
  padding-top: 0;
}
@media (min-width: 64em) {
  .theme {
    grid-template-columns: 22rem 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}
.theme__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber-ink);
  margin-bottom: var(--s-2);
  max-width: none;
}
.theme h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
}

/* ---- Credentials (about.html) ------------------------------------------- */
.cred-list {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .cred-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1.1rem;
  font-size: 1.0625rem;
  box-shadow: var(--shadow-sm);
}
.cred-list li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--amber);
}

.gpa {
  background: var(--evergreen);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.gpa__badge {
  display: inline-block;
  background: var(--amber-lift);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: none;
}
.gpa__text {
  margin-top: var(--s-4);
  font-size: 1.1em;
  max-width: 46ch;
}

/* ---- Fact strip (18 years, etc.) ---------------------------------------- */
.fact-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .fact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.fact__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--evergreen);
  max-width: none;
}
.fact__label {
  margin-top: var(--s-2);
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: none;
}

/* ---- Communities (service-area.html) ------------------------------------ */
.community-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.community-list li {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 1.0625rem;
  font-weight: 700;
}

/* ---- Testimonials ------------------------------------------------------- */
.quote-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.quote {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: none;
}
.quote figcaption {
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 700;
  color: var(--evergreen);
}
.placeholder-flag {
  display: inline-block;
  margin-top: var(--s-3);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rust);
  border-radius: var(--r-xs);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--rust-tint);
}

/* ---- Contact details list ----------------------------------------------- */
.contact-list {
  display: grid;
  gap: var(--s-4);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.contact-list .icon-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--evergreen);
}
.contact-list .icon-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.contact-list__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list__value {
  display: block;
  margin-top: 0.15rem;
  max-width: none;
  overflow-wrap: anywhere;
}
.contact-list a {
  color: var(--evergreen);
  font-weight: 700;
  text-underline-offset: 3px;
}
/* Phone/email get a full 48px tap target of their own. */
.contact-list__value--lg a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.contact-list p {
  max-width: none;
}

/* Inline phone/email pair used in the hero and elsewhere. */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  max-width: none;
  font-weight: 700;
}
.contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  color: var(--evergreen);
  text-underline-offset: 3px;
}

/* ---- Forms -------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-card > * + * {
  margin-top: var(--s-5);
}
.field {
  margin-bottom: var(--s-5);
}
.field label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.field .hint {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  font-size: 1.125rem; /* 18px — also stops iOS zooming on focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea {
  min-height: 10rem;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--evergreen);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--evergreen);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--rust);
  box-shadow: inset 0 0 0 1px var(--rust);
}
.form-error {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rust);
}
.form-error:empty {
  display: none;
}
.form-status {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 700;
}
.form-status[hidden] {
  display: none;
}
.form-status--error {
  background: var(--rust-tint);
  border: 1px solid var(--rust);
  color: var(--rust);
}
.form-footnote {
  margin-top: var(--s-4);
  font-size: 1rem;
  color: var(--ink-soft);
}
.form-footnote a {
  color: var(--evergreen);
  font-weight: 700;
}

/* Contact page: details beside the form on wide screens. */
.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 64em) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

/* ---- Definition list (availability etc.) -------------------------------- */
.detail-list {
  display: grid;
  gap: var(--s-4);
}
.detail-list dt {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-list dd {
  margin-top: 0.2rem;
}
.detail-list a {
  color: var(--evergreen);
  font-weight: 700;
}

/* ---- Aspect ratios for placeholder art ---------------------------------- */
.ar-1-1 {
  aspect-ratio: 1 / 1;
}
.ar-4-3 {
  aspect-ratio: 4 / 3;
}
.ar-16-10 {
  aspect-ratio: 16 / 10;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--evergreen);
  color: var(--sage-light);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) var(--s-6);
  --focus: #eabe72;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  text-underline-offset: 3px;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--s-7);
  }
}
.footer-grid p {
  max-width: 38ch;
}
.footer-brand .wordmark__name {
  color: #fff;
  font-size: 1.5rem;
}
.footer-brand .wordmark__sub {
  color: var(--sage-muted);
}
.footer-tagline {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--sage-light);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-muted);
  margin-bottom: var(--s-3);
}
.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  font-weight: 700;
}
.footer-contact li {
  margin-bottom: var(--s-2);
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.footer-note {
  color: var(--sage-muted);
}
.footer-bottom {
  max-width: none;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--s-5);
  border-top: 1px solid #33564a;
  font-size: 1rem;
  color: var(--sage-muted);
}

/* ---- Placeholder image caption box (no photo supplied yet) --------------- */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--sage);
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: var(--s-4);
}
