/* =========================================================================
   NearbyCare, spec build. Template: care-v1.0 (in progress)
   Order: tokens, fonts, reset, base, layout, components, utilities, queries.
   Nothing below the :root block hardcodes a colour, size, radius or shadow.
   ========================================================================= */

/* ===== Tokens ===== */

:root {
  /* ----- Colour, client-variable ----- */
  --color-brand:        #004A61;  /* VAR: brand_primary. Deep teal. H1, primary buttons, pay chips, CQC band, footer */
  --color-accent:       #027F82;  /* VAR: brand_accent.  Mid teal.  Eyebrows on white, hover fill, focus ring, nav dot */
  --color-accent-light: #2B888F;  /* VAR: brand_accent_light. BARRED FROM TEXT. Icon circles, pins, rules only */
  --color-ink:          #1E3A5F;  /* VAR: brand_ink. Navy. Headings, body text, demo banner */

  /* ----- Colour, fixed ----- */
  --color-surface:        #FFFFFF;
  --color-surface-raised: #F2F7F8;  /* Alternating sections, nav pill fill, disclosure hover */
  --color-border:         #DCE7EA;
  --color-ink-muted:      #5A6B7A;  /* Role meta lines and example-content notes ONLY. 5.50:1 on white */
  --color-on-brand:       #DDEDEF;  /* Body text on --color-brand. 8.10:1 */
  --color-on-brand-muted: #9FD3D8;  /* Labels on --color-brand. 5.94:1 */

  /* ----- Type ----- */
  --font-sans: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* VAR: brand_font */

  --text-base: 1rem;                              /* Nothing on this page is smaller */
  --text-lg:   1.125rem;                          /* Eyebrows, card and role titles, header phone */
  --text-xl:   1.5rem;                            /* Wordmark, #jobs sub-heads, contact phone button */
  --text-2xl:  clamp(1.5rem, 2.6cqi, 2rem);       /* Section H2, CQC stat figures */
  --text-3xl:  clamp(2rem, 4cqi, 2.5rem);         /* Pay figure. One instance on the page */
  --text-4xl:  clamp(2rem, 4.4cqi, 3.25rem);      /* H1 only */
  --text-lead: clamp(1rem, 1.35cqi, 1.125rem);    /* Lead paragraphs */

  --leading-body:    1.6;
  --leading-heading: 1.2;

  --tracking-label: 0.08em;   /* Uppercase labels */
  --tracking-tight: -0.01em;
  --tracking-h1:    -0.02em;

  /* ----- Space, 4px base ----- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;  --space-4: 1rem;
  --space-5: 1.25rem;  --space-6: 1.5rem;   --space-8: 2rem;     --space-10: 2.5rem;
  --space-12: 3rem;    --space-16: 4rem;

  --section-block:      clamp(3rem, 5cqi, 4rem);
  --section-block-hero: clamp(2.5rem, 5cqi, 4rem);
  --section-inline:     clamp(1rem, 3cqi, 2rem);
  --gap-grid:           clamp(1rem, 2cqi, 2rem);
  --gap-split:          clamp(1.5rem, 3cqi, 3rem);
  --container:          1200px;
  --container-narrow:   900px;   /* #faq and the #jobs role list */
  --measure-prose:      70ch;
  --measure-lead:       60ch;
  --measure-card:       40ch;

  /* ----- Shape ----- */
  --radius:        8px;    /* Cards, disclosure rows */
  --radius-chip:   2px;    /* Divider dash */
  --radius-full:   40px;   /* VAR: brand_radius. Buttons and pills. Sampled from their site */
  --radius-circle: 50%;

  /* ----- Elevation and motion ----- */
  --shadow: 0 2px 8px rgba(0, 74, 97, 0.10);  /* One shadow. Hero card, pay card, sticky bar */
  --transition: transform .18s ease;           /* One transition. Chevron rotation */

  /* ----- Targets ----- */
  --target:         44px;  /* WCAG 2.2 AA floor */
  --target-primary: 48px;
  --target-phone:   56px;
  --icon-circle:    48px;
  --chevron-circle: 32px;
}

/* ===== Fonts, self-hosted. Licence in assets/fonts/OFL.txt ===== */

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Reset ===== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }

ul { padding: 0; }

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

/* ===== Base ===== */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--leading-heading);
}

a { color: var(--color-brand); }

a:hover { color: var(--color-accent); }

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

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

/* The single container-query context. Fluid type resolves against this.
   The sticky call bar sits OUTSIDE it: container-type applies layout
   containment, which would make position: fixed resolve against .page
   instead of the viewport. */
.page {
  container-type: inline-size;
  width: 100%;
  margin-inline: auto;
  background: var(--color-surface);
}

.section {
  padding-block: var(--section-block);
  padding-inline: var(--section-inline);
}

.section--hero { padding-block: var(--section-block-hero); }

.section--tint { background: var(--color-surface-raised); }

.section--brand {
  background: var(--color-brand);
  color: var(--color-surface);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
}

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

.split {
  display: grid;
  gap: var(--gap-split);
  align-items: center;
}

.split--top { align-items: start; }

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--wide { gap: var(--gap-grid); }

/* ===== Components ===== */

/* ----- Skip link ----- */

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: var(--color-surface);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--color-surface);
}

/* ----- Demo banner. Legally required on this build ----- */

.banner {
  background: var(--color-ink);
  color: var(--color-surface);
  padding-block: var(--space-3);
  padding-inline: var(--section-inline);
}

.banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.banner__flag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}

.banner__dot {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-circle);
  background: var(--color-accent-light);
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: var(--space-3);
  padding-inline: var(--section-inline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-primary);
  margin-inline-end: auto;
}

.brand__logo {
  height: 52px;
  width: auto;
}

/* Fallback wordmark, used when a client has no usable logo file */
.brand--text {
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-brand);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  min-height: var(--target);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: var(--space-3) var(--space-2);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.nav__link:hover { color: var(--color-accent); }

.nav__link--pill {
  gap: var(--space-2);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-raised);
  color: var(--color-brand);
}

.nav__link--pill:hover {
  background: var(--color-on-brand);
  color: var(--color-brand);
}

.nav__dot {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-circle);
  background: var(--color-accent);
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--target-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-surface);
}

.btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn--secondary:hover {
  background: var(--color-surface-raised);
  color: var(--color-brand);
}

/* On a --color-brand panel */
.btn--on-brand {
  background: var(--color-surface);
  color: var(--color-brand);
}

.btn--on-brand:hover {
  background: var(--color-on-brand);
  color: var(--color-brand);
}

.btn--phone {
  font-size: var(--text-lg);
  padding-inline: var(--space-5);
}

.btn--phone-large {
  min-height: var(--target-phone);
  font-size: var(--text-xl);
  padding: var(--space-4) var(--space-8);
}

.btn__dot {
  width: var(--space-3);
  height: var(--space-3);
  border-radius: var(--radius-circle);
  background: currentColor;
  flex: none;
}

/* ----- Section header ----- */

.section__header {
  text-align: center;
  margin-block-end: clamp(2rem, 3cqi, 3rem);
}

.eyebrow {
  margin-block-end: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
}

/* --color-accent is 4.46:1 on --color-surface-raised. The eyebrow is 18px bold,
   which is under the 18.66px bold threshold for large text, so it needs 4.5:1.
   --color-brand is 9.03:1 on the same surface. See the build report. */
.section--tint .eyebrow,
.section--tint .contact__label,
.image-slot__label { color: var(--color-brand); }

.section__title {
  font-size: var(--text-2xl);
  color: var(--color-ink);
}

.section--brand .section__title { color: var(--color-surface); }

.section__lead {
  margin-inline: auto;
  max-width: var(--measure-prose);
  font-size: var(--text-lead);
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

.rule--tight { margin-block: var(--space-4) 0; }

.rule__dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-circle);
  background: var(--color-accent-light);
}

.rule__dash {
  width: 34px;
  height: 4px;
  border-radius: var(--radius-chip);
  background: var(--color-accent);
}

/* ----- Hero ----- */

.hero__title {
  margin-block: var(--space-4);
  font-size: var(--text-4xl);
  color: var(--color-brand);
  letter-spacing: var(--tracking-h1);
  text-wrap: balance;
}

.hero__lead {
  margin-block-end: var(--space-8);
  max-width: var(--measure-lead);
  font-size: var(--text-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__aside {
  max-width: 440px;
  width: 100%;
}

.hero__jobs {
  margin-block-start: var(--space-5);
}

.hero__jobs-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__jobs-link:hover { color: var(--color-accent); }

/* Overlaps the image slot, so the composition is anchored by care content
   from first paint */
.assessment-card {
  margin-block-start: calc(var(--space-8) * -1);
  margin-inline: clamp(0.5rem, 2cqi, 1.5rem);
  background: var(--color-brand);
  color: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5cqi, 1.5rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.assessment-card__title {
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: var(--leading-heading);
}

.assessment-card__text { color: var(--color-on-brand); }

/* ----- Image slot. Stays until the licensed stock set is bought ----- */

.image-slot {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-accent-light);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  text-align: center;
}

.image-slot__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.image-slot__text { max-width: 30ch; }

.image-slot__note {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--color-ink-muted);
}

/* ----- Cards ----- */

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: var(--color-surface);
}

.card--plain { background: none; }

.card--brand {
  background: var(--color-brand);
  color: var(--color-surface);
  border-color: var(--color-brand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.card--tint {
  background: var(--color-surface-raised);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.card__title {
  margin-block-end: var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.card--brand .card__title {
  margin-block-end: 0;
  color: var(--color-surface);
}

.card--brand .card__text { color: var(--color-on-brand); }

/* ----- Icon circles ----- */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--icon-circle);
  height: var(--icon-circle);
  border-radius: var(--radius-circle);
  color: var(--color-surface);
}

.icon-circle--light { background: var(--color-accent-light); }

.icon-circle--brand {
  background: var(--color-brand);
  margin-block-end: var(--space-3);
}

.icon-pin {
  flex: none;
  color: var(--color-accent-light);
}

/* ----- Services ----- */

.service {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.service__title {
  margin-block-end: var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-brand);
}

.service__text { max-width: var(--measure-card); }

.service__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  margin-block-start: var(--space-1);
  font-weight: 700;
  color: var(--color-brand);
}

/* ----- Areas ----- */

.area {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.area__name {
  margin-block-end: var(--space-1);
  font-size: var(--text-lg);
  color: var(--color-brand);
}

/* ----- Stat block ----- */

.stat {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.stat__figure {
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: var(--leading-heading);
  color: var(--color-brand);
}

.stat__label {
  margin-block-start: var(--space-1);
  color: var(--color-ink);
}

.cqc__text {
  max-width: 46ch;
  color: var(--color-on-brand);
}

.cqc__eyebrow { color: var(--color-on-brand-muted); }

/* ----- Testimonials ----- */

.testimonial {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial__quote {
  margin: 0;
  max-width: var(--measure-prose);
}

.testimonial__author {
  font-style: normal;
  font-weight: 700;
  color: var(--color-brand);
}

/* ----- Example-content note. Same treatment as the roles note ----- */

.note {
  margin-block-start: var(--space-5);
  color: var(--color-ink-muted);
}

.note--centred { text-align: center; }

.note--constrained {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

/* ----- Disclosure. Native <details>, no JavaScript, no aria-expanded ----- */

.disclosure {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.disclosure__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-5);
  min-height: var(--target);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary:hover { background: var(--color-surface-raised); }

.disclosure__label { flex: 1; }

.disclosure__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--chevron-circle);
  height: var(--chevron-circle);
  border-radius: var(--radius-circle);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  transition: var(--transition);
}

.disclosure[open] .disclosure__chevron { transform: rotate(180deg); }

.disclosure__panel {
  padding: 0 var(--space-5) var(--space-5);
  max-width: var(--measure-prose);
}

.disclosure__panel--roomy {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-block-start: 1px solid var(--color-border);
  margin-block-start: var(--space-1);
  max-width: none;
}

.disclosure__panel--nested {
  padding: var(--space-1) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: none;
}

.disclosure--nested { border-radius: var(--radius); }

/* ----- Roles ----- */

.role__id {
  flex: 1 1 240px;
  min-width: 0;
}

.role__title {
  display: block;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.role__meta {
  display: block;
  font-weight: 400;
  color: var(--color-ink-muted);
}

.role__pay {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: var(--color-surface);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.role__text {
  margin-block-end: var(--space-4);
  max-width: var(--measure-prose);
}

.role__list {
  margin-block-end: var(--space-5);
  padding-inline-start: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ----- Pay card ----- */

.pay-card {
  max-width: var(--container-narrow);
  margin-inline: auto;
  margin-block-end: clamp(1.5rem, 3cqi, 2rem);
  background: var(--color-brand);
  color: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3cqi, 2rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3) var(--space-8);
}

.pay-card__label {
  margin-block-end: var(--space-1);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-on-brand-muted);
}

.pay-card__figure {
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: var(--leading-heading);
}

.pay-card__unit {
  font-size: var(--text-lg);
  font-weight: 400;
}

.pay-card__text {
  max-width: 34ch;
  color: var(--color-on-brand);
}

.pay-card__cta { margin-inline-start: auto; }

/* ----- Jobs sub-head ----- */

.subhead {
  margin-block: clamp(2.5rem, 4cqi, 3rem) var(--space-5);
  font-size: var(--text-xl);
  color: var(--color-ink);
  text-align: center;
}

.roles {
  max-width: var(--container-narrow);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.disclosure-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.applicant-faq {
  margin-block-start: clamp(1.5rem, 3cqi, 2rem);
}

/* ----- Contact ----- */

.contact__intro {
  margin-block-end: var(--space-6);
  max-width: var(--measure-lead);
}

.contact__card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3cqi, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__label {
  margin-block-end: var(--space-1);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-brand);
}

/* ----- Footer ----- */

.site-footer {
  background: var(--color-brand);
  color: var(--color-surface);
  /* The bottom value clears the 79px sticky call bar. The concept wrote this as
     clamp(6rem, 6cqi, 3rem), which has min > max and so always resolved to 6rem,
     leaving the padding on desktop where there is no bar. Split into two rules. */
  padding-block: clamp(2.5rem, 4cqi, 3rem) calc(var(--space-16) + var(--space-8));
  padding-inline: var(--section-inline);
}

.site-footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: var(--gap-split);
}

.footer__name {
  margin-block-end: var(--space-1);
  font-weight: 700;
  font-size: var(--text-xl);
}

.footer__blurb {
  max-width: 34ch;
  color: var(--color-on-brand);
}

.footer__heading {
  margin-block-end: var(--space-3);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-on-brand-muted);
}

.footer__line {
  margin-block-end: var(--space-1);
  color: var(--color-on-brand);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: flex-start;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--color-surface);
}

.footer__link:hover { color: var(--color-on-brand-muted); }

.footer__strong { color: var(--color-surface); }

.footer__legal {
  max-width: var(--container);
  margin-inline: auto;
  margin-block-start: clamp(1.5rem, 3cqi, 2rem);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--color-accent-light);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  color: var(--color-on-brand-muted);
}

/* ----- Mobile sticky call bar ----- */
/* Rendered always. Hidden at 640px and up, which is the only conditional
   on this page and it is a media query, not markup logic. */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-surface);
  border-block-start: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-3);
  box-shadow: var(--shadow);
}

.sticky-bar .btn {
  flex: 1;
  padding-inline: var(--space-4);
}

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

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

/* ===== Media queries. Layout only: 640, 900, 1200 and nothing else ===== */

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--stats { grid-template-columns: repeat(3, 1fr); }

  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }

  /* The sticky bar is gone from here up, so the footer no longer clears it */
  .site-footer { padding-block-end: clamp(2.5rem, 4cqi, 3rem); }

  .sticky-bar { display: none; }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .split--hero,
  .split--cqc,
  .split--contact { grid-template-columns: 1fr 1fr; }

  .hero__aside { justify-self: end; }
}

@media (min-width: 1200px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Reduced motion. The single permitted use of !important ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
