/* ==========================================================================
   Speedy Recovery: site styles
   One file for the whole site. Mobile first.
   Sections:
   1. Font          6. Header and menu     11. Steps, split, ticks
   2. Tokens        7. Buttons             12. Gallery, areas, FAQ
   3. Reset/base    8. Heroes              13. Forms, contact
   4. Layout        9. Facts, chips        14. CTA band, footer, action bar
   5. Type         10. Service list        15. Prose, callout, misc, motion
   ========================================================================== */

/* 1. Font --------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
/* Arial, resized to match Archivo, so text does not jump when the font loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 98.99%;
  ascent-override: 88.69%;
  descent-override: 21.21%;
  line-gap-override: 0%;
}

/* 2. Tokens ------------------------------------------------------------- */
:root {
  /* Colour. Hex first for old browsers, OKLCH below. */
  --c-blue-950: #001626;
  --c-blue-900: #00243b;
  --c-blue-800: #003958;
  --c-blue-700: #00537c;
  --c-blue-600: #026a9d;
  --c-blue-450: #2c7fb1;
  --c-blue-300: #93c5e6;
  --c-blue-200: #c3dff3;
  --c-blue-100: #e1eff9;
  --c-blue-50: #f1f8fc;
  --c-amber-500: #fcb02b;
  --c-amber-400: #ffc75a;
  --c-amber-300: #ffe29b;
  --c-amber-50: #fff6e1;
  --c-amber-700: #975800;
  --c-ink: #0a1a25;
  --c-ink-2: #2f3f4b;
  --c-muted: #4e5d68;
  --c-line: #d7dfe5;
  --c-line-dark: #223848;
  --c-field: #73838e;
  --c-wa: #05773b;
  --c-wa-hover: #006430;
  --c-ok: #1f6f3d;
  --c-err: #b02b27;
  --c-white: #ffffff;
  --c-scrim: rgb(0 22 38 / 0.82);
  --c-scrim-soft: rgb(0 22 38 / 0.55);

  /* Type */
  --font-sans: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --stretch-display: 118%;
  --stretch-head: 114%;
  --stretch-ui: 106%;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.06rem + 0.35vw, 1.3125rem);
  --fs-h4: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);
  --fs-h3: clamp(1.375rem, 1.22rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.75vw, 2.875rem);
  --fs-h1: clamp(2.125rem, 1.55rem + 2.9vw, 3.875rem);
  --fs-display: clamp(2.375rem, 1.65rem + 3.2vw, 4rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2rem);
  --max: 75rem;
  --measure: 36rem; /* about 75 characters of body text in Archivo */

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(10 26 37 / 0.08), 0 2px 8px rgb(10 26 37 / 0.06);
  --shadow-2: 0 10px 30px rgb(10 26 37 / 0.14), 0 2px 6px rgb(10 26 37 / 0.06);
  --shadow-3: 0 24px 60px rgb(0 22 38 / 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 600ms;

  /* Layers */
  --z-header: 100;
  --z-dropdown: 200;
  --z-actionbar: 300;
  --z-skip: 600;

  /* Focus ring colour (switches on dark sections) */
  --focus: var(--c-blue-600);
  --action-bar-h: 4.5rem;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --c-blue-950: oklch(0.19 0.045 240);
    --c-blue-900: oklch(0.25 0.059 240);
    --c-blue-800: oklch(0.33 0.076 240);
    --c-blue-700: oklch(0.42 0.096 240);
    --c-blue-600: oklch(0.5 0.114 240);
    --c-blue-450: oklch(0.57 0.11 240);
    --c-blue-300: oklch(0.8 0.07 238);
    --c-blue-200: oklch(0.89 0.04 238);
    --c-blue-100: oklch(0.945 0.02 238);
    --c-blue-50: oklch(0.975 0.009 238);
    --c-amber-500: oklch(0.81 0.16 75);
    --c-amber-400: oklch(0.86 0.14 82);
    --c-amber-300: oklch(0.92 0.094 88);
    --c-amber-50: oklch(0.975 0.026 88);
    --c-amber-700: oklch(0.52 0.105 65);
    --c-ink: oklch(0.21 0.03 240);
    --c-ink-2: oklch(0.36 0.03 240);
    --c-muted: oklch(0.47 0.025 240);
    --c-line: oklch(0.9 0.012 240);
    --c-line-dark: oklch(0.33 0.04 240);
    --c-field: oklch(0.6 0.025 240);
    --c-wa: oklch(0.5 0.13 152);
    --c-wa-hover: oklch(0.44 0.116 152);
    --c-ok: oklch(0.48 0.11 152);
    --c-err: oklch(0.5 0.17 27);
    --c-scrim: oklch(0.19 0.045 240 / 0.82);
    --c-scrim-soft: oklch(0.19 0.045 240 / 0.55);
  }
}

/* 3. Reset and base ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--action-bar-h) + env(safe-area-inset-bottom, 0px));
}

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

img { height: auto; }

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

button { cursor: pointer; }

p,
li,
dd { text-wrap: pretty; }

a { color: var(--c-blue-700); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--c-blue-600); }

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

::selection { background: var(--c-amber-300); color: var(--c-ink); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.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(--space-4);
  top: -100px;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  background: var(--c-amber-400);
  color: var(--c-ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }
.skip-link:hover { color: var(--c-ink); }

/* 4. Layout ------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), 48rem); }

.section { padding-block: var(--section); }
.section--tint { background: var(--c-blue-50); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--flush-top { padding-top: 0; }

.section--dark {
  --focus: var(--c-amber-400);
  background: var(--c-blue-900);
  color: var(--c-white);
}
.section--dark a:not(.btn) { color: var(--c-amber-300); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section__head > * + * { margin-top: var(--space-4); }
.section__head > p:not(.lede) { max-width: var(--measure); }
.section__head--center { margin-inline: auto; text-align: center; }

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

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster, var(--space-3));
  align-items: center;
}

.grid-2,
.grid-3 { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 5. Type --------------------------------------------------------------- */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-stretch: var(--stretch-head);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.018em; font-stretch: var(--stretch-display); font-weight: 790; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.016em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.2; }

.display { font-size: var(--fs-display); }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 40rem;
}
.section--dark .lede,
.hero .lede,
.page-hero .lede { color: var(--c-blue-200); }

.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-stretch: var(--stretch-ui);
  text-decoration: none;
}
.link-arrow .icon { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 6. Header and menu ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px rgb(10 26 37 / 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand:hover { color: var(--c-ink); }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-stretch: 122%;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.brand__tag {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--c-ink);
  font-weight: 600;
  font-stretch: var(--stretch-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.nav__link:hover { background: var(--c-blue-50); color: var(--c-blue-700); }
.nav__link[aria-current="page"],
.nav__link[data-current="true"] {
  color: var(--c-blue-700);
  box-shadow: inset 0 -3px 0 var(--c-amber-400);
  border-radius: var(--r-sm) var(--r-sm) 2px 2px;
}
.nav__link .icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease-out); }

.nav__item { position: relative; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -0.5rem;
  z-index: var(--z-dropdown);
  display: none;
  width: 21rem;
  padding: 0.5rem;
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.nav__dropdown::before {
  /* hover bridge so the menu does not close on the gap */
  content: "";
  position: absolute;
  inset: -0.75rem 0 auto 0;
  height: 0.75rem;
}
.nav__item.is-open .nav__dropdown,
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { display: grid; }
.nav__item.is-open .nav__link .icon,
.nav__item:hover .nav__link .icon { transform: rotate(180deg); }

.nav__dropdown a {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  text-decoration: none;
}
.nav__dropdown a:hover { background: var(--c-blue-50); }
.nav__dropdown a[aria-current="page"] { background: var(--c-blue-50); }
.nav__dropdown .nav__dd-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  background: var(--c-blue-50);
  color: var(--c-blue-700);
}
.nav__dropdown a:hover .nav__dd-icon { background: var(--c-white); }
.nav__dd-title { font-weight: 700; font-stretch: var(--stretch-ui); line-height: 1.2; }
.nav__dd-text { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.3; }

.header__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }

.header__actions .header__status { display: none; }

.header__call .header__call-label { display: none; }

/* Phones under 400px: the bottom bar has the call button, so the header keeps only the menu. */
@media (max-width: 24.99rem) {
  .header__actions .header__call { display: none; }
}
@media (max-width: 22.49rem) {
  .header__inner { gap: var(--space-2); }
  .brand__mark { width: 2.15rem; height: 2.15rem; }
  .brand__name { font-size: 1rem; font-stretch: 112%; }
  .brand__tag { font-size: 0.6875rem; }
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-ink);
}
.menu-toggle:hover { border-color: var(--c-blue-700); color: var(--c-blue-700); }

/* Show the number on tablets (no desktop menu yet) and on wide screens */
@media (min-width: 40rem) and (max-width: 63.99rem), (min-width: 75rem) {
  .header__call .header__call-label { display: inline; }
}

@media (min-width: 64rem) {
  .header__inner { min-height: 5rem; gap: var(--space-4); }
  .brand__mark { width: 2.75rem; height: 2.75rem; }
  .brand__name { font-size: 1.25rem; }
  .nav { display: block; }
  .menu-toggle { display: none; }
}

@media (min-width: 80rem) {
  .header__actions .header__status { display: inline-flex; margin-right: var(--space-2); }
}

/* Mobile menu (native dialog) */
.menu-dialog {
  --focus: var(--c-blue-600);
  width: min(24rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--c-white);
  color: var(--c-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-dialog::backdrop { background: var(--c-scrim-soft); }

.menu-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 100%;
  padding: var(--space-4) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

.menu-dialog__top { display: flex; align-items: center; justify-content: space-between; }

.menu-dialog__close {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.menu-dialog__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}
.menu-dialog__label--spaced { margin-top: var(--space-5); }

.menu-list { list-style: none; padding: 0; display: grid; }
.menu-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-weight: 650;
  font-stretch: var(--stretch-ui);
  font-size: 1.125rem;
  text-decoration: none;
}
.menu-list a[aria-current="page"] { color: var(--c-blue-700); }
.menu-list a .icon { color: var(--c-blue-700); }

.menu-dialog__cta { display: grid; gap: var(--space-3); margin-top: auto; }

@media (prefers-reduced-motion: no-preference) {
  .menu-dialog[open] { animation: menu-in var(--dur-3) var(--ease-out-expo); }
  .menu-dialog[open]::backdrop { animation: fade-in var(--dur-2) var(--ease-out); }
}
@keyframes menu-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }

/* 7. Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--c-blue-700);
  --btn-fg: var(--c-white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: var(--stretch-ui);
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.btn:hover { --btn-bg: var(--c-blue-600); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 1.3em; height: 1.3em; }

.btn--call {
  --btn-bg: var(--c-amber-400);
  --btn-fg: var(--c-ink);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
.btn--call:hover { --btn-bg: var(--c-amber-500); }

.btn--wa { --btn-bg: var(--c-wa); --btn-fg: var(--c-white); }
.btn--wa:hover { --btn-bg: var(--c-wa-hover); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-blue-700);
  --btn-border: var(--c-blue-700);
}
.btn--outline:hover { --btn-bg: var(--c-blue-50); --btn-fg: var(--c-blue-700); }

.btn--light-outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-border: rgb(255 255 255 / 0.45);
}
.btn--light-outline:hover { --btn-bg: rgb(255 255 255 / 0.1); --btn-border: var(--c-white); }

.btn--sm { min-height: 2.875rem; padding: 0.55rem 0.95rem; font-size: 1rem; border-radius: var(--r-sm); }
.btn--lg { min-height: 3.75rem; padding: 0.95rem 1.6rem; font-size: 1.1875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row > .btn { flex: 1 1 15rem; }
@media (min-width: 40rem) {
  .btn-row > .btn { flex: 0 1 auto; }
}

/* 8. Heroes ------------------------------------------------------------- */
.hero,
.page-hero {
  --focus: var(--c-amber-400);
  position: relative;
  overflow: clip;
  background: var(--c-blue-900);
  color: var(--c-white);
  isolation: isolate;
}
.hero::before,
.page-hero::before {
  /* soft light from the top right, like a street lamp on a wet night */
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -20%;
  width: min(70rem, 120%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(2 106 157 / 0.42), transparent 70%);
  pointer-events: none;
}

.hero__inner,
.page-hero__inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  padding-block: clamp(2.25rem, 1.6rem + 3.5vw, 5.5rem) clamp(2.75rem, 2rem + 4.5vw, 6.5rem);
  align-items: center;
}

.hero__copy > * + *,
.page-hero__copy > * + * { margin-top: var(--space-5); }
.hero__copy h1 { font-size: var(--fs-display); }
.hero__copy .lede { margin-top: var(--space-4); }

.hero__media,
.page-hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-blue-800);
  box-shadow: var(--shadow-3);
  aspect-ratio: 16 / 10;
}
.hero__media img,
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.media-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--c-scrim);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
}
.media-tag .icon { color: var(--c-amber-400); width: 1rem; height: 1rem; }

@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .hero__media { aspect-ratio: 4 / 3.4; }
  .page-hero--photo .page-hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .page-hero__media { aspect-ratio: 4 / 3; }
}

.page-hero h1 { max-width: 20ch; }
.page-hero--center .page-hero__copy { max-width: 46rem; }

/* Side panel for heroes without a photo: quick links or key details */
.hero-panel {
  padding: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.05);
  box-shadow: var(--shadow-3);
}
.hero-panel__title { font-size: var(--fs-h4); line-height: 1.2; margin-bottom: var(--space-2); }
.hero-panel__list { display: grid; padding: 0; list-style: none; }
.hero-panel__list > li + li { border-top: 1px solid rgb(255 255 255 / 0.12); }
.hero-panel__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  color: var(--c-white);
  text-decoration: none;
}
.hero-panel__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: rgb(255 199 90 / 0.14);
  color: var(--c-amber-400);
}
.hero-panel__label { font-weight: 700; font-stretch: var(--stretch-ui); line-height: 1.3; }
.hero-panel__text { grid-column: 2; font-size: var(--fs-sm); line-height: 1.4; color: var(--c-blue-200); }
.hero-panel__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--c-amber-400);
  transition: transform var(--dur-2) var(--ease-out);
}
a.hero-panel__item:hover { color: var(--c-white); }
a.hero-panel__item:hover .hero-panel__label { text-decoration: underline; text-underline-offset: 0.2em; }
a.hero-panel__item:hover .hero-panel__arrow { transform: translateX(4px); }
.hero-panel .chips { margin-top: var(--space-3); }
.hero-panel__note {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-sm);
  color: var(--c-blue-200);
}
.hero-panel__note a { color: var(--c-amber-300); }
.hero-panel__note a:hover { color: var(--c-white); }

@media (min-width: 60rem) {
  .page-hero--panel .page-hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--c-blue-200);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "/"; opacity: 0.55; }
.breadcrumbs a { color: var(--c-blue-200); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-white); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-white); }

/* Live status: the amber beacon */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-blue-200);
}
.status strong { color: var(--c-white); font-weight: 700; }
.status--light { color: var(--c-muted); }
.status--light strong { color: var(--c-ink); }

.beacon {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-amber-400);
}
.status--light .beacon { background: var(--c-amber-500); }
.beacon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .beacon::after { animation: beacon 2.4s var(--ease-out) infinite; }
}
@keyframes beacon {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

/* 9. Facts and chips ---------------------------------------------------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue-200);
}
.facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.facts .icon { color: var(--c-amber-400); width: 1.15rem; height: 1.15rem; }
.facts--light { color: var(--c-ink-2); }
.facts--light .icon { color: var(--c-blue-700); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 1.05rem 0.55rem 0.8rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 650;
  font-stretch: var(--stretch-ui);
  text-decoration: none;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.chip .icon { color: var(--c-blue-700); }
a.chip:hover { border-color: var(--c-blue-700); background: var(--c-blue-50); color: var(--c-ink); }
a.chip:active { transform: scale(0.98); }
.chip--static { min-height: 2.5rem; font-weight: 600; }
.section--dark .chip,
.page-hero .chip {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.2);
  color: var(--c-white);
}
.section--dark .chip .icon,
.page-hero .chip .icon { color: var(--c-amber-400); }

/* Triage: "What has happened?" */
.triage {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-1);
}
.triage__title { font-size: var(--fs-h4); }
@media (min-width: 64rem) {
  .triage { grid-template-columns: 15rem 1fr; align-items: center; }
}
.triage-wrap { position: relative; margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)); z-index: 1; }

/* 10. Service list ------------------------------------------------------ */
.services-layout { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 64rem) {
  .services-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); align-items: start; }
  .services-layout__media { position: sticky; top: 7rem; }
}

.service-list { list-style: none; padding: 0; border-top: 1px solid var(--c-line); }
.service-list > li { border-bottom: 1px solid var(--c-line); }

.service-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.25rem 1.1rem;
  align-items: center;
  padding: 1.15rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
.service-link:hover { background: var(--c-blue-50); color: var(--c-ink); }
.service-link__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.service-link:hover .service-link__icon { background: var(--c-blue-700); color: var(--c-white); }
.service-link__title {
  font-size: var(--fs-h4);
  font-weight: 760;
  font-stretch: var(--stretch-head);
  line-height: 1.15;
}
.service-link__text { grid-column: 2; max-width: 34rem; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.45; }
.service-link__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--c-blue-700);
  transition: transform var(--dur-2) var(--ease-out);
}
.service-link:hover .service-link__arrow { transform: translateX(5px); }

/* 11. Steps, split, ticks ----------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--c-amber-400);
  color: var(--c-ink);
  font-weight: 800;
  font-stretch: var(--stretch-display);
  font-size: 1.25rem;
  line-height: 1;
}
.step::after {
  /* dashed road line down to the next step */
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 3rem;
  bottom: calc(-1 * var(--space-6) + 0.5rem);
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--c-blue-200) 0 10px, transparent 10px 18px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-h4); }
.step p { margin-top: var(--space-2); color: var(--c-ink-2); }
.section--dark .step p { color: var(--c-blue-200); }

@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .step { padding-left: 0; padding-top: 4rem; }
  .step::before { top: 0; }
  .step::after {
    left: 3.5rem;
    right: calc(-1 * var(--space-6) + 0.75rem);
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--c-blue-200) 0 14px, transparent 14px 24px);
  }
  .section--dark .step::after { background: repeating-linear-gradient(90deg, rgb(255 199 90 / 0.5) 0 14px, transparent 14px 24px); }
}

.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-blue-100);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy > * + * { margin-top: var(--space-4); }
.split__copy > h2 + * { margin-top: var(--space-5); }
@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
  .split--wide-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.ticks { display: grid; gap: 0.8rem; padding: 0; list-style: none; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--c-blue-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 6 6 6-6 6'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 6 6 6-6 6'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks strong { font-weight: 700; }
.section--dark .ticks li::before { background: var(--c-amber-400); }

/* Feature grid: icon + short text, used sparingly */
.features {
  display: grid;
  gap: var(--space-6) var(--space-5);
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; align-content: start; }
.feature__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--c-blue-50);
  color: var(--c-blue-700);
}
.section--tint .feature__icon { background: var(--c-white); }
.section--dark .feature__icon { background: rgb(255 255 255 / 0.08); color: var(--c-amber-400); }
.feature h3 { font-size: var(--fs-h4); line-height: 1.2; }
.feature p { color: var(--c-ink-2); }
.section--dark .feature p { color: var(--c-blue-200); }

/* Audience rows: who we help */
.audiences {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}
.audience {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-line);
}
.audience h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 0.6rem; }
.audience h3 .icon { color: var(--c-blue-700); }
.audience p { color: var(--c-ink-2); }
@media (min-width: 48rem) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
}

/* 12. Gallery, areas, FAQ ----------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 10.5rem;
  grid-auto-flow: dense;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-blue-100);
}
.gallery__item > figure { height: 100%; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.035); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 0.8rem 0.7rem;
  background: linear-gradient(180deg, transparent, var(--c-scrim));
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13.5rem; gap: 0.9rem; }
  .gallery__item figcaption { font-size: var(--fs-sm); padding: 3rem 1rem 0.9rem; }
}

.areas-layout { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 60rem) {
  .areas-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.area-list {
  columns: 2 11rem;
  column-gap: var(--space-6);
  padding: 0;
  list-style: none;
}
.area-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--c-line);
  break-inside: avoid;
}
.area-list .area-name { font-weight: 650; }
.area-list .postcode { font-size: var(--fs-sm); color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-list a { color: var(--c-ink); text-decoration: none; }
.area-list a:hover { color: var(--c-blue-700); text-decoration: underline; }

.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-lg);
  font-weight: 700;
  font-stretch: var(--stretch-ui);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-blue-700); }
.faq summary .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--space-5); color: var(--c-ink-2); max-width: var(--measure); }
.faq__a > * + * { margin-top: var(--space-3); }
.faq__a ul { padding-left: 1.2rem; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* 13. Forms and contact ------------------------------------------------- */
.form-card {
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-1);
}
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.label { font-weight: 650; font-size: var(--fs-sm); font-stretch: var(--stretch-ui); }
.label .optional { font-weight: 500; color: var(--c-muted); }
.hint { font-size: var(--fs-xs); color: var(--c-muted); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--c-field);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: max(16px, 1rem);
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.input::placeholder,
.textarea::placeholder { color: var(--c-muted); opacity: 1; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--c-ink-2); }
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--c-blue-600);
  box-shadow: 0 0 0 4px rgb(2 106 157 / 0.22);
}
.textarea { min-height: 7.5rem; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.2rem;
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] { border-color: var(--c-err); }

.input-group { display: flex; gap: var(--space-2); }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { flex: none; }

.form-note { font-size: var(--fs-sm); color: var(--c-muted); max-width: var(--measure); }
.contact-layout p { max-width: var(--measure); }
.form-status { font-size: var(--fs-sm); font-weight: 600; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--c-ok); }
.form-status[data-state="error"] { color: var(--c-err); }

.contact-layout { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 60rem) {
  .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.nap { display: grid; gap: var(--space-5); padding: 0; margin: 0; }
.nap__row { position: relative; display: grid; gap: 0.15rem; min-height: 2.75rem; padding-left: 3.75rem; }
.nap__icon {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--c-blue-50);
  color: var(--c-blue-700);
}
.nap dt { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 500; }
.nap dd { margin: 0; font-weight: 650; font-size: var(--fs-lg); line-height: 1.35; }
.nap dd a { color: var(--c-ink); text-decoration-color: var(--c-blue-300); }
.nap dd a:hover { color: var(--c-blue-700); }
.nap dd .small { font-weight: 500; color: var(--c-muted); }

/* 14. CTA band, footer, action bar -------------------------------------- */
.cta-band {
  --focus: var(--c-amber-400);
  position: relative;
  overflow: clip;
  background: var(--c-blue-900);
  color: var(--c-white);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -15%;
  bottom: -60%;
  width: min(60rem, 110%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(2 106 157 / 0.4), transparent 70%);
}
.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(3rem, 2.2rem + 4vw, 5.5rem);
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 22ch; }
.cta-band p { margin-top: var(--space-3); color: var(--c-blue-200); max-width: 40rem; font-size: var(--fs-lg); }
.cta-band .facts { margin-top: var(--space-5); }
@media (min-width: 60rem) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .cta-band .btn-row { flex-direction: column; align-items: stretch; min-width: 19rem; }
}

.site-footer {
  --focus: var(--c-amber-400);
  background: var(--c-blue-950);
  color: var(--c-blue-200);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5rem) var(--space-6);
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--c-white); text-decoration: none; }
.site-footer a:hover { color: var(--c-amber-300); text-decoration: underline; }

.footer-grid { display: grid; gap: var(--space-7) var(--space-6); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }

.footer-brand .brand { color: var(--c-white); }
.footer-brand .brand__tag { color: var(--c-blue-300); }
.footer-brand p { margin-top: var(--space-4); max-width: 34ch; line-height: 1.6; }

.footer-title {
  margin-bottom: var(--space-4);
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: var(--stretch-ui);
  letter-spacing: 0;
}
.footer-links { display: grid; gap: 0.55rem; padding: 0; list-style: none; }

.footer-nap { display: grid; gap: 0.7rem; margin-top: var(--space-5); font-style: normal; }
.footer-nap p { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.45; }
.footer-nap .icon { color: var(--c-amber-400); margin-top: 0.1rem; width: 1.1rem; height: 1.1rem; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-line-dark);
  color: var(--c-blue-300);
  font-size: var(--fs-xs);
}
.footer-legal p { line-height: 1.6; }

.action-bar {
  --focus: var(--c-blue-600);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-actionbar);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 0.97);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px rgb(10 26 37 / 0.08);
}
.action-bar .btn { min-height: 3.25rem; padding-inline: 0.75rem; }
@media (min-width: 64rem) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* 15. Prose, callout, misc, motion -------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--fs-h3); }
.prose h3 { margin-top: 1.8em; font-size: var(--fs-h4); }
.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--c-blue-700); }
.prose strong { font-weight: 700; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th,
.prose td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--c-blue-50); }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  border: 1px solid var(--c-amber-400);
  border-radius: var(--r-md);
  background: var(--c-amber-50);
  color: var(--c-ink);
}
.callout__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-amber-400);
  color: var(--c-ink);
}
.callout__title { font-size: var(--fs-h4); line-height: 1.25; }
.callout__body { max-width: var(--measure); }
.callout__body > * + * { margin-top: var(--space-2); }
.callout__body ul { padding-left: 1.2rem; }
.callout__body li + li { margin-top: 0.3rem; }
.callout--info { border-color: var(--c-blue-200); background: var(--c-blue-50); }
.callout--info .callout__icon { background: var(--c-blue-700); color: var(--c-white); }

.panel {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--c-blue-50);
}
.panel > * + * { margin-top: var(--space-3); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  font-size: var(--fs-xs);
  font-weight: 650;
}

.divider { height: 1px; border: 0; background: var(--c-line); margin-block: var(--space-6); }

/* On light blue bands, light blue tiles would vanish: make them white */
.section--tint .service-link__icon,
.section--tint .faq summary .icon,
.section--tint .nap__icon,
.panel .nap__icon { background: var(--c-white); }
.section--tint .service-link:hover { background: var(--c-white); }
.section--tint .service-link:hover .service-link__icon { background: var(--c-blue-700); }

/* Choose which part of a hero photo stays in view when it is cropped */
.page-hero__media--show-right img { object-position: 88% 50%; }
.page-hero__media--show-left img { object-position: 12% 50%; }

/* Phone numbers never break across lines inside buttons */
.btn .tnum { white-space: nowrap; }
@media (max-width: 22.49rem) {
  .btn--lg { padding-inline: 1rem; font-size: 1.0625rem; }
}

/* Areas page: show which area you jumped to */
.panel:target { box-shadow: 0 0 0 3px var(--c-amber-400); }
.panel > h3 + .small { margin-top: var(--space-1); }

.callout { align-content: start; }

.input-group { flex-wrap: wrap; }
.input-group .input { flex: 1 1 12rem; }

/* Simple 404 */
.not-found { text-align: center; }
.not-found .display { font-size: clamp(4.5rem, 3rem + 8vw, 8rem); line-height: 1; color: var(--c-amber-400); }
.not-found .btn-row { justify-content: center; }
.not-found .lede { margin-inline: auto; }

/* Page-load motion: hero only. Content is visible without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .page-hero__copy > * {
    animation: rise var(--dur-3) var(--ease-out-expo) backwards;
    animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  }
  .hero__copy > :nth-child(1), .page-hero__copy > :nth-child(1) { --i: 0; }
  .hero__copy > :nth-child(2), .page-hero__copy > :nth-child(2) { --i: 1; }
  .hero__copy > :nth-child(3), .page-hero__copy > :nth-child(3) { --i: 2; }
  .hero__copy > :nth-child(4), .page-hero__copy > :nth-child(4) { --i: 3; }
  .hero__copy > :nth-child(5), .page-hero__copy > :nth-child(5) { --i: 4; }
  .hero__copy > :nth-child(6), .page-hero__copy > :nth-child(6) { --i: 5; }
  .hero__media,
  .page-hero__media {
    animation: media-in 900ms var(--ease-out-expo) 120ms backwards;
  }
  .hero-panel { animation: rise 800ms var(--ease-out-expo) 200ms backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes media-in {
  from { opacity: 0; clip-path: inset(8% 0 8% 0 round var(--r-lg)); transform: scale(1.03); }
  to { clip-path: inset(0 0 0 0 round var(--r-lg)); }
}

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

@media print {
  .site-header, .action-bar, .menu-dialog, .cta-band .btn-row { display: none !important; }
  body { padding-bottom: 0; }
  .hero, .page-hero, .cta-band, .site-footer { background: none; color: #000; }
}
