/* ==========================================================================
   Allable Disability Services — site styles
   Plain CSS, no build step. Sections:
   1. Tokens & themes      7. Home sections
   2. Base                 8. Inner pages
   3. Layout utilities     9. Forms
   4. Buttons & links     10. Footer
   5. Header & nav        11. Motion
   6. Dialogs (menu, a11y) 12. Accessibility modes
   ========================================================================== */

/* 1. Tokens & themes ------------------------------------------------------ */
:root {
  /* Brand blue (from the original site). 300 and 400 are the signature blues;
     600 and 700 are deeper shades of the same hue, used where text sits on blue
     or blue sits on white, so everything passes WCAG AA contrast. */
  --sky-50: #f3f8ff;
  --sky-100: #e5f0ff;
  --sky-200: #cfe2fb;
  --sky-300: #a3cef5; /* the sky blue behind the home page title, used for every blue area */
  --sky-400: #7bb6ff;
  --sky-600: #2a6ec6;
  --sky-700: #1f5daa;
  --sky-800: #184a87;
  --sky-900: #0f2f57;

  /* Logo plum: accessibility button and small accents only */
  --plum-800: #561f5d;
  --plum-700: #6c2974;
  --plum-200: #ead8ed;
  --plum-100: #f3e9f4;

  /* Ink: blue-tinted neutrals so greys sit with the sky */
  --ink-900: #111d33;
  --ink-700: #2b3a55;
  --ink-600: #44536e;
  --ink-400: #7887a3;
  --ink-200: #cfd9e8;
  --ink-100: #e6ecf5;

  /* Semantic tokens (themes override these) */
  --bg: #ffffff;
  --bg-soft: var(--sky-50);
  --bg-band: var(--sky-300);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --heading: var(--ink-900);
  --line: var(--ink-100);
  --line-strong: var(--ink-200);
  --field-border: var(--ink-400);
  /* Primary: the signature light blue, with navy text on it (6.6:1) */
  --accent: var(--sky-400);
  --accent-hover: #66aafc;
  --accent-contrast: var(--sky-900);
  --accent-soft: var(--sky-100);
  --accent-text: var(--sky-700);
  --deco-sky: var(--sky-200);
  /* Feature panels in the signature blue (contact panel, call-to-action band) */
  --panel-bg: var(--sky-300);
  --panel-text: var(--ink-900);
  --panel-muted: #1d2c47;
  --panel-tile: rgb(255 255 255 / 0.5);
  --footer-bg: var(--sky-300);
  --footer-bar: var(--sky-300);
  --footer-text: #ffffff;
  --footer-muted: #ffffff;
  --header-bg: #ffffff;
  --header-border: var(--line);
  --chip-bg: var(--sky-300);
  --chip-bg-hover: #8dc1f2;
  --nav-hover-bg: var(--sky-300);
  --nav-hover-text: #ffffff;
  /* Text that sits on the blue areas */
  --on-blue: #ffffff;
  --on-blue-shadow: 0 1px 1px rgb(15 47 87 / 0.14);
  /* Contact actions: brand blue deep enough for white text (4.7:1) */
  --action: var(--sky-300);
  --action-hover: #8dc1f2;
  --action-text: #ffffff;

  /* Secondary: logo purple */
  --secondary: var(--plum-700);
  --secondary-hover: var(--plum-800);
  --secondary-contrast: #ffffff;
  --secondary-soft: var(--plum-100);
  --secondary-text: var(--plum-700);
  --focus: var(--sky-900);
  --error: #b42318;
  --error-soft: #fef3f2;
  --success: #12733f;
  --success-soft: #ecfdf3;
  --mark: #fff3b0;
  --mark-edge: #d9a400;

  /* Shadows kept very light: the design relies on colour and space, not depth */
  --shadow-sm: 0 1px 2px rgb(17 29 51 / 0.05);
  --shadow-md: 0 1px 2px rgb(17 29 51 / 0.05), 0 6px 16px -10px rgb(17 29 51 / 0.14);
  --shadow-lg: var(--shadow-md);

  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lexend", var(--font-body);

  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.55vw, 1.5625rem);
  --fs-xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.625rem);
  --fs-2xl: clamp(2.125rem, 1.55rem + 2.4vw, 3.5rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);

  --lh-body: 1.65;
  --tracking-body: 0;
  --word-spacing: normal;
  --para-gap: 1em;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --container: 76rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --header-h: 4.25rem;
  --header-top: clamp(0.5rem, 0.25rem + 1vw, 1rem);
  --header-space: calc(var(--header-h) + var(--header-top) * 2);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --z-header: 40;
  --z-mask: 80;
  --z-skip: 120;

  color-scheme: light;
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg: #0d1626;
  --bg-soft: #111c30;
  --bg-band: #142239;
  --surface: #172641;
  --surface-raised: #1c2d4c;
  --text: #e9eff9;
  --text-muted: #b3c0d6;
  --heading: #f4f7fc;
  --line: #24365a;
  --line-strong: #2f4470;
  --field-border: #7d90b3;
  --accent: #8cc2ff;
  --accent-hover: #b5d7ff;
  --accent-contrast: #0b1d36;
  --accent-soft: #16304f;
  --accent-text: #9ccbff;
  --deco-sky: #1d3254;
  --panel-bg: #183558;
  --panel-text: #eef4fd;
  --panel-muted: #c7d6ea;
  --panel-tile: rgb(255 255 255 / 0.1);
  --footer-bg: #0a1322;
  --footer-bar: #070e1a;
  --footer-text: #e9eff9;
  --footer-muted: #aebbd2;
  --header-bg: #132036;
  --header-border: #24365a;
  --chip-bg: #1f3354;
  --chip-bg-hover: #284170;
  --nav-hover-bg: #22395c;
  --nav-hover-text: #f4f7fc;
  --on-blue: var(--heading);
  --on-blue-shadow: none;
  --action: #8cc2ff;
  --action-hover: #b5d7ff;
  --action-text: #0b1d36;
  --secondary: #d8acdf;
  --secondary-hover: #e8c9ec;
  --secondary-contrast: #2a0f30;
  --secondary-soft: #2c1c3c;
  --secondary-text: #e2bbe8;
  --focus: #ffffff;
  --error: #ffa39a;
  --error-soft: #3a1717;
  --success: #7ee2a8;
  --success-soft: #10301f;
  --mark: #4a3b00;
  --mark-edge: #f5c400;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 16px -10px rgb(0 0 0 / 0.5);
  --shadow-lg: var(--shadow-md);
  color-scheme: dark;
}

/* High-contrast theme: pure black on white, heavy outlines, no imagery behind text */
:root[data-theme="contrast"] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --bg-band: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #000000;
  --text-muted: #000000;
  --heading: #000000;
  --line: #000000;
  --line-strong: #000000;
  --field-border: #000000;
  --accent: #003a80;
  --accent-hover: #000000;
  --accent-contrast: #ffffff;
  --accent-soft: #ffffff;
  --accent-text: #003a80;
  --deco-sky: transparent;
  --panel-bg: #ffffff;
  --panel-text: #000000;
  --panel-muted: #000000;
  --panel-tile: #ffffff;
  --footer-bg: #000000;
  --footer-bar: #000000;
  --footer-text: #ffffff;
  --footer-muted: #ffffff;
  --header-bg: #ffffff;
  --header-border: #000000;
  --chip-bg: #ffffff;
  --chip-bg-hover: #ffe500;
  --nav-hover-bg: #000000;
  --nav-hover-text: #ffffff;
  --on-blue: #000000;
  --on-blue-shadow: none;
  --action: #003a80;
  --action-hover: #000000;
  --action-text: #ffffff;
  --secondary: #4a0f52;
  --secondary-hover: #000000;
  --secondary-contrast: #ffffff;
  --secondary-soft: #ffffff;
  --secondary-text: #4a0f52;
  --focus: #000000;
  --error: #9b0000;
  --success: #005a24;
  --mark: #ffe500;
  --mark-edge: #000000;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}

/* Calm colours: softer, less saturated palette for sensory sensitivity */
:root[data-theme="calm"] {
  --sky-50: #f6f8fa;
  --sky-100: #edf1f5;
  --sky-200: #e1e8ef;
  --sky-300: #d3dde8;
  --sky-400: #b4c5d8;
  --bg-soft: #f6f8fa;
  --accent-soft: #edf1f5;
  --action: var(--sky-400);
  --action-hover: #a3b6cc;
  --action-text: var(--ink-900);
  --secondary: #6a5470;
  --secondary-hover: #54425a;
  --secondary-text: #5e4864;
  --nav-hover-bg: #e3e9f0;
  --nav-hover-text: var(--ink-900);
  --on-blue: var(--ink-900);
  --on-blue-shadow: none;
  --footer-text: var(--ink-900);
  --footer-muted: var(--ink-700);
}

:root[data-theme="calm"] img {
  filter: saturate(0.5) contrast(0.95);
}

/* Phones: less space between sections, so each screen shows more content */
@media (max-width: 39.99rem) {
  :root {
    --section-y: 3.25rem;
  }
}

/* Text size steps (everything is rem-based, so this scales the whole page) */
:root[data-text="1"] { font-size: 112.5%; }
:root[data-text="2"] { font-size: 125%; }
:root[data-text="3"] { font-size: 150%; }

/* Dyslexia-friendly font (OpenDyslexic, loaded only when chosen) */
:root[data-font="dyslexic"] {
  --font-body: "OpenDyslexic", ui-sans-serif, system-ui, sans-serif;
  --font-display: "OpenDyslexic", ui-sans-serif, system-ui, sans-serif;
}

/* Text spacing (meets WCAG 1.4.12 text-spacing values) */
:root[data-spacing="on"] {
  --lh-body: 1.95;
  --tracking-body: 0.06em;
  --word-spacing: 0.16em;
  --para-gap: 1.8em;
}

/* 2. Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + 1rem);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  word-spacing: var(--word-spacing);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; line-height: 1.3; }

p,
ul,
ol {
  margin: 0 0 var(--para-gap);
}

p {
  text-wrap: pretty;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

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

strong {
  font-weight: 650;
}

::selection {
  background: var(--sky-400);
  color: var(--ink-900);
}

/* Native feel on touch screens: no grey tap flash, no double-tap delay,
   no accidental text selection when pressing controls */
html {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
[role="switch"] {
  touch-action: manipulation;
}

button,
.btn,
.choice,
.a11y-choice {
  -webkit-user-select: none;
  user-select: none;
}

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

[hidden] {
  display: none !important;
}

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

.section {
  padding-block: var(--section-y) calc(var(--section-y) * 1.08);
}

.section--soft {
  background: var(--bg-soft);
}

.section--band .section-head h2 {
  color: var(--on-blue);
  text-shadow: var(--on-blue-shadow);
}

.section--band {
  background: var(--bg-band);
  position: relative;
  isolation: isolate;
}

.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: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  color: var(--accent-contrast);
}

.skip-link + .skip-link {
  left: 14rem;
}

@media (max-width: 39.99rem) {
  .skip-link + .skip-link {
    left: 0.75rem;
    top: 4.5rem;
    transform: translateY(-260%);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head p {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.section-head--center {
  text-align: center;
  justify-items: center;
}

@media (min-width: 56rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .section-head--split p {
    justify-self: end;
  }
}

.prose {
  max-width: 40rem;
}

.prose p {
  color: var(--text-muted);
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 1rem;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-muted);
}

/* 4. Buttons & links ------------------------------------------------------ */
/* Simple flat buttons: one solid colour, no borders or 3D shadows */
.btn {
  --btn-bg: var(--secondary);
  --btn-fg: var(--secondary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 200ms var(--ease-out);
}

.btn .i-phone {
  width: 1.3em;
  height: 1.3em;
}

.btn--primary:hover {
  --btn-bg: var(--secondary-hover);
}

.btn--secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--heading);
}

.btn--secondary:hover {
  --btn-bg: var(--chip-bg);
}

.btn--soft {
  --btn-bg: var(--chip-bg);
  --btn-fg: var(--heading);
}

.btn--soft:hover {
  --btn-bg: var(--chip-bg-hover);
}

.btn--blue {
  --btn-bg: var(--action);
  --btn-fg: var(--action-text);
  font-weight: 700;
  text-shadow: var(--on-blue-shadow);
}

.btn--blue:hover {
  --btn-bg: var(--action-hover);
}

.btn--purple {
  --btn-bg: var(--secondary);
  --btn-fg: var(--secondary-contrast);
}

.btn--purple:hover {
  --btn-bg: var(--secondary-hover);
}

.btn--white {
  --btn-bg: #ffffff;
  --btn-fg: var(--sky-900);
}

.btn--white:hover {
  --btn-bg: var(--sky-50);
}

:root[data-theme="contrast"] .btn--secondary,
:root[data-theme="contrast"] .btn--soft,
:root[data-theme="contrast"] .btn--white {
  box-shadow: inset 0 0 0 2px #000;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 1.0625rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}

.link-arrow svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow,
  .link-arrow:hover svg {
    transform: translateX(3px);
  }
  .btn--send:hover svg {
    transform: translate(2px, -2px);
  }
  .link-arrow:hover {
    text-decoration: underline;
  }
}

/* 5. Header & nav --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-top: max(var(--header-top), env(safe-area-inset-top, 0px));
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: var(--header-bg);
  box-shadow: 0 1px 2px rgb(17 29 51 / 0.05);
  transition: box-shadow 300ms ease;
}

.site-header.is-scrolled .site-header__bar {
  box-shadow: 0 1px 2px rgb(17 29 51 / 0.06), 0 6px 16px -10px rgb(17 29 51 / 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  padding: 0.25rem 0.5rem 0.25rem 0;
  border-radius: var(--radius-sm);
  color: var(--heading);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--heading);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

:root[data-theme="dark"] .brand img {
  padding: 0.2rem;
  border-radius: 10px;
  background: #ffffff;
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary-text);
}

.brand__sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary-text);
}

.nav {
  display: none;
}

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

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav__link:hover,
.nav__item[data-open] > .nav__link,
.nav__link[aria-current="page"] {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

.nav__link[aria-current="page"] {
  font-weight: 600;
}

.nav__link svg {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 200ms var(--ease-out);
}

.nav__item[data-open] > .nav__link svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -0.5rem;
  width: min(34rem, calc(100vw - 2rem));
  padding: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: 2rem 0;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 0s linear 180ms;
}

/* Hover bridge so the menu doesn't close crossing the gap */
.mega::before {
  content: "";
  position: absolute;
  inset: -1rem 0 100%;
}

.nav__item[data-open] .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 0s;
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega__link {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  color: var(--heading);
  font: 600 0.95rem/1.3 var(--font-display);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.mega__link:hover,
.mega__link[aria-current="page"] {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

.mega__link img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9875rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 180ms ease, color 180ms ease;
}

.header-phone svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--secondary-text);
}

.header-phone:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--action-text);
  cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}

.icon-btn:hover {
  background: var(--chip-bg-hover);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Accessibility button: purple icon + label in an outlined pill, clearly a button */
.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.875rem;
  padding: 0 1rem 0 0.3rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font: 600 0.975rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}

.a11y-btn:hover {
  border-color: var(--secondary);
}

.a11y-btn:active {
  transform: scale(0.97);
}

.a11y-btn__icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.a11y-btn__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

:root[data-theme="contrast"] .icon-btn,
:root[data-theme="contrast"] .a11y-btn {
  box-shadow: inset 0 0 0 2px #000;
}

/* Phones and tablets: a call button, and a menu button that says "Menu" */
.call-btn {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary-text);
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}

.call-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary-text);
}

.call-btn:active {
  transform: scale(0.95);
}

.call-btn svg {
  width: 1.45rem;
  height: 1.45rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  padding: 0 1.1rem 0 0.9rem;
  font: 700 1rem/1 var(--font-body);
  text-shadow: var(--on-blue-shadow);
}

.menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

:root[data-theme="contrast"] .call-btn {
  border-color: #000;
}

@media (max-width: 39.99rem) {
  .a11y-btn {
    padding: 0 0.2rem;
  }
  .a11y-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .header-cta,
  .brand__sub {
    display: none;
  }
}

@media (max-width: 22rem) {
  .brand__text {
    display: none;
  }
}

@media (min-width: 64rem) {
  .nav {
    display: block;
    margin-left: 1rem;
    margin-right: auto;
  }
  .menu-btn,
  .call-btn {
    display: none;
  }
  .brand {
    margin-right: 0;
  }
}

@media (min-width: 80rem) {
  .header-phone {
    display: inline-flex;
  }
}

/* Larger text sizes always use the compact header so nothing overflows */
:root[data-text="2"] .nav,
:root[data-text="3"] .nav,
:root[data-text="2"] .header-phone,
:root[data-text="3"] .header-phone {
  display: none;
}

:root[data-text="2"] .menu-btn,
:root[data-text="3"] .menu-btn {
  display: inline-flex;
}

:root[data-text="2"] .call-btn,
:root[data-text="3"] .call-btn {
  display: inline-grid;
}

:root[data-text="2"] .brand,
:root[data-text="3"] .brand {
  margin-right: auto;
}

:root[data-text="3"] .header-cta,
:root[data-text="3"] .brand__sub {
  display: none;
}

/* Big text on a phone: icon-only menu button, and drop the call button at the largest size */
@media (max-width: 39.99rem) {
  :root[data-text="2"] .menu-btn,
  :root[data-text="3"] .menu-btn {
    justify-content: center;
    width: 2.875rem;
    padding: 0;
  }
  :root[data-text="2"] .menu-btn__label,
  :root[data-text="3"] .menu-btn__label {
    display: none;
  }
  :root[data-text="3"] .call-btn {
    display: none;
  }
}

/* 6. Dialogs: mobile menu + accessibility panel --------------------------- */
.sheet {
  position: fixed;
  inset: 0.5rem 0.5rem 0.5rem auto;
  width: min(26rem, calc(100vw - 1rem));
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(calc(100% + 1rem));
  transition:
    transform 360ms var(--ease-drawer),
    overlay 360ms allow-discrete,
    display 360ms allow-discrete;
}

.sheet[open] {
  display: flex;
  flex-direction: column;
  transform: none;
}

@starting-style {
  .sheet[open] {
    transform: translateX(calc(100% + 1rem));
  }
}

.sheet::backdrop {
  background: rgb(9 16 30 / 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background-color 300ms ease,
    backdrop-filter 300ms ease,
    overlay 300ms allow-discrete,
    display 300ms allow-discrete;
}

.sheet[open]::backdrop {
  background: rgb(9 16 30 / 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

@starting-style {
  .sheet[open]::backdrop {
    background: rgb(9 16 30 / 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.sheet__title {
  font-size: 1.25rem;
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 1.5rem;
}

.sheet__foot {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.sheet__foot .btn--secondary {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Mobile menu */
.mnav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font: 600 1.15rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

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

.mnav__link svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
  transition: transform 200ms var(--ease-out);
}

.mnav__link[aria-current="page"] {
  color: var(--accent-text);
}

.mnav__details[open] {
  border-bottom: 1px solid var(--line);
}

.mnav__details[open] > .mnav__link {
  border-bottom-color: transparent;
}

.mnav__details[open] > .mnav__link svg {
  transform: rotate(180deg);
}

.mnav__sub {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
}

.mnav__sub a {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.35rem 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.mnav__sub img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  object-fit: cover;
}

.mnav__sub a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 600;
}

.sheet .mnav-contact {
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.mnav-contact .contact-box {
  min-height: 4.25rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: var(--radius-md);
}

.mnav-contact .contact-box__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
}

.mnav-contact .contact-box__value {
  font-size: 1rem;
}

/* Accessibility panel */
.a11y-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a11y-heading__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.a11y-heading__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.a11y-intro {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.a11y-block {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.a11y-block:last-child {
  border-bottom: 0;
}

.a11y-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  padding: 0;
  font: 700 1.125rem/1.3 var(--font-display);
  color: var(--heading);
}

.a11y-label svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--action);
}

.a11y-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.a11y-options--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.a11y-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  padding: 0.5rem;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.a11y-option:hover {
  border-color: var(--secondary);
}

.a11y-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.a11y-option:has(input:checked) {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.a11y-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.a11y-size {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.a11y-size--0 { font-size: 1rem; }
.a11y-size--1 { font-size: 1.2rem; }
.a11y-size--2 { font-size: 1.45rem; }
.a11y-size--3 { font-size: 1.7rem; }

:root[data-theme="contrast"] .a11y-option {
  border-color: #000;
}
:root[data-theme="contrast"] .a11y-option:has(input:checked) {
  background: #000;
  color: #fff;
}

/* 7. Home sections -------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-space) + clamp(3rem, 1rem + 7vw, 6.5rem));
  padding-bottom: clamp(5rem, 3rem + 7vw, 8.5rem);
  text-align: center;
}

.hero__sky,
.page-hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Inner pages are shorter, so show the cloudy lower part of the sky */
.page-hero__sky {
  object-position: 50% 78%;
}

.hero__veil,
.page-hero__veil {
  display: none;
}

.hero__inner {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 16ch;
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: #ffffff;
  /* A whisper of shadow, just enough to keep the edges crisp on the sky */
  text-shadow: var(--on-blue-shadow);
}

.hero__lead {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: #ffffff;
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 600;
  text-shadow: var(--on-blue-shadow);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* NDIS badge: just the icon, on the right, sitting on the line where the sky meets the page */
.ndis-badge {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  bottom: 0;
  z-index: 2;
  display: block;
  width: clamp(4.5rem, 3.5rem + 2.5vw, 6rem);
  border-radius: 999px;
  transform: translateY(50%);
}

.ndis-badge img {
  width: 100%;
  border-radius: 999px;
}

.hero + .section {
  padding-top: clamp(4.5rem, 3.5rem + 3vw, 6rem) !important;
}

@media (max-width: 47.99rem) {
  .hero {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 39.99rem) {
  .hero__actions {
    display: grid;
    width: 100%;
    max-width: 22rem;
  }
}

/* Hero in dark / contrast themes */
:root[data-theme="dark"] .hero__sky,
:root[data-theme="dark"] .page-hero__sky {
  filter: brightness(0.42) saturate(0.85);
}
:root[data-theme="dark"] .hero__veil,
:root[data-theme="dark"] .page-hero__veil {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(85% 75% at 50% 45%, rgb(13 22 38 / 0.55), rgb(13 22 38 / 0.25));
}
:root[data-theme="dark"] .page-hero h1 {
  color: #f4f7fc;
}
:root[data-theme="contrast"] .hero__sky,
:root[data-theme="contrast"] .page-hero__sky {
  display: none;
}
:root[data-theme="contrast"] .hero__veil,
:root[data-theme="contrast"] .page-hero__veil {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
}
:root[data-theme="contrast"] .hero h1,
:root[data-theme="contrast"] .hero__lead {
  color: #000;
  text-shadow: none;
}

/* Services: photo tiles with the title underneath */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (max-width: 39.99rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 0.85rem;
  }
  .service-card {
    gap: 0.7rem;
  }
  .service-grid .service-card__media {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
  }
  .service-card h3 {
    font-size: 1rem;
  }
}

@media (min-width: 72rem) {
  .service-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .service-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
}

.service-card__media {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--sky-100);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding-inline: 0.15rem;
}

.service-card h3 {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem);
}

.service-card h3 a {
  color: var(--heading);
  text-decoration: none;
  transition: color 180ms ease;
}

/* Whole tile is clickable via the heading link */
.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

/* "Learn more" as a small solid purple pill, so it reads as a button */
.service-card .link-arrow {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

@media (max-width: 39.99rem) {
  .service-card .link-arrow {
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
  }
}

.service-card:has(a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

.service-card h3 a:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__media img {
    transform: scale(1.05);
  }
  .service-card:hover h3 a {
    color: var(--secondary-text);
  }
  .service-card:hover .link-arrow {
    background: var(--secondary-hover);
  }
  .service-card:hover .link-arrow svg {
    transform: translateX(3px);
  }
}

:root[data-theme="contrast"] .service-card__media {
  box-shadow: inset 0 0 0 2px #000;
}

/* What we provide */
.provide {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .provide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.provide__text h2 {
  margin-bottom: 1.5rem;
}

.provide__text p {
  color: var(--text-muted);
  max-width: 36rem;
}

.provide__text p.provide__intro {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-weight: 500;
}

.provide__assist {
  font-weight: 500;
}

.provide__assist strong {
  color: var(--heading);
}

.provide__media {
  position: relative;
  isolation: isolate;
  max-width: 34rem;
  justify-self: center;
  width: 100%;
}

.provide__photo {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
}

.provide__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provide__note {
  position: absolute;
  left: -0.5rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 19rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}

.provide__note-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.provide__note-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 59.99rem) {
  .provide__photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 60rem) {
  .provide__note {
    left: -2.5rem;
  }
}

/* Specialised areas: one row per area; tap a row to open it */

.area-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  interpolate-size: allow-keywords;
}

.area-item__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 4.75rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms ease;
}

.area-item__head::-webkit-details-marker {
  display: none;
}

.area-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.area-item__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.area-item__title {
  flex: 1;
  font-size: var(--fs-md);
  line-height: 1.3;
}

.area-item__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
  transition: transform 250ms var(--ease-out), background-color 180ms ease;
}

.area-item__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.area-item[open] .area-item__toggle {
  transform: rotate(45deg);
}

.area-item__head:hover .area-item__toggle {
  background: var(--secondary-hover);
}

.area-item__body {
  max-width: 46rem;
  margin: 0;
  padding: 0 1.25rem 1.35rem calc(0.85rem + 3rem + 1.1rem);
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.6;
}

@media (max-width: 39.99rem) {
  .area-list {
    gap: 0.6rem;
  }
  .area-item__head {
    gap: 0.85rem;
    min-height: 4rem;
    padding: 0.7rem 0.75rem 0.7rem 0.7rem;
  }
  .area-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
  }
  .area-item__icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  .area-item__title {
    font-size: 1.0625rem;
  }
  .area-item__toggle {
    width: 2.25rem;
    height: 2.25rem;
  }
  .area-item__body {
    padding: 0 1rem 1.15rem;
  }
}

/* Smooth open and close where the browser supports it */
.area-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
}

.area-item[open]::details-content {
  block-size: auto;
}

:root[data-theme="contrast"] .area-item {
  box-shadow: inset 0 0 0 2px #000;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
  font: 600 1.2rem/1 var(--font-display);
}

.step__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
}

.step h3 {
  font-size: var(--fs-md);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.step .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--fs-sm);
}

@media (max-width: 39.99rem) {
  .steps {
    gap: 0.75rem;
  }
  .step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.35rem 1.1rem;
    border-radius: var(--radius-md);
  }
  .step__num {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.05rem;
  }
  .step__body {
    padding-top: 0.45rem;
  }
}

@media (min-width: 40rem) and (max-width: 71.99rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Get in touch */
.contact-layout {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.contact-intro h2 {
  margin-bottom: 0.75rem;
}

.contact-intro > p {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.contact-boxes {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

/* On a white panel (menu, side boxes) the boxes take the pale blue instead */
.contact-boxes--soft .contact-box {
  background: var(--bg-soft);
}

.contact-box:hover {
  color: var(--text);
}

.contact-box__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.contact-box__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-box__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.contact-box__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.contact-box__value {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--heading);
  overflow-wrap: break-word;
}

.contact-box__arrow {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 200ms var(--ease-out);
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.form-card__title {
  margin-bottom: 1.5rem;
  font-size: var(--fs-lg);
}

:root[data-theme="contrast"] .contact-box,
:root[data-theme="contrast"] .form-card {
  box-shadow: inset 0 0 0 2px #000;
}

/* Join the team: sky-blue banner, text on the left, photo filling the right side */
.join {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--sky-300);
}

@media (min-width: 52rem) {
  .join {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 23rem;
  }
}

.join__text {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.join__text h2 {
  max-width: 16ch;
  color: var(--on-blue);
  text-shadow: var(--on-blue-shadow);
}

.join__text p {
  max-width: 28rem;
  margin: 0 0 0.75rem;
  color: var(--on-blue);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.55;
  text-shadow: var(--on-blue-shadow);
}

.join .btn--white {
  --btn-fg: var(--ink-900);
}

.join__media {
  position: relative;
  min-height: 15rem;
}

.join__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

@media (max-width: 51.99rem) {
  .join {
    grid-template-columns: minmax(0, 1fr);
  }
  .join__media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

:root[data-theme="dark"] .join {
  background: var(--bg-band);
}
:root[data-theme="dark"] .join__text {
  background: var(--bg-band);
}
:root[data-theme="dark"] .join__text h2 {
  color: var(--heading);
  text-shadow: none;
}
:root[data-theme="dark"] .join__text p {
  color: var(--text-muted);
}
:root[data-theme="contrast"] .join {
  background: #fff;
  box-shadow: inset 0 0 0 2px #000;
}
:root[data-theme="contrast"] .join__text {
  background: #fff;
}
:root[data-theme="contrast"] .join__text h2,
:root[data-theme="contrast"] .join__text p,
:root[data-theme="contrast"] .join .btn--white {
  color: #000;
  text-shadow: none;
}

/* 8. Inner pages ---------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-space) + clamp(2rem, 1rem + 4vw, 4.5rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--sky-300);
}

:root[data-theme="dark"] .page-hero {
  background: var(--bg-band);
}

:root[data-theme="contrast"] .page-hero {
  background: #fff;
  border-bottom: 2px solid #000;
}

.page-hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .page-hero__grid--media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.page-hero h1 {
  color: var(--on-blue);
  text-shadow: var(--on-blue-shadow);
}

.page-hero__lead {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--on-blue);
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 600;
  text-shadow: var(--on-blue-shadow);
}

:root[data-theme="dark"] .page-hero__lead {
  color: #d5deec;
}
:root[data-theme="contrast"] .page-hero h1,
:root[data-theme="contrast"] .page-hero__lead,
:root[data-theme="contrast"] .breadcrumbs ol,
:root[data-theme="contrast"] .breadcrumbs a,
:root[data-theme="contrast"] .breadcrumbs [aria-current="page"] {
  color: #000;
  text-shadow: none;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 39.99rem) {
  .page-hero__actions {
    display: grid;
  }
  .page-hero__actions {
    margin-top: 1.5rem;
  }
}

.page-hero__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #ffffff;
  text-shadow: var(--on-blue-shadow);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.6);
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.breadcrumbs [aria-current="page"] {
  color: #ffffff;
  font-weight: 700;
}

:root[data-theme="dark"] .breadcrumbs ol,
:root[data-theme="dark"] .breadcrumbs a,
:root[data-theme="dark"] .breadcrumbs [aria-current="page"] {
  color: #d5deec;
}
:root[data-theme="contrast"] .breadcrumbs ol,
:root[data-theme="contrast"] .breadcrumbs a,
:root[data-theme="contrast"] .breadcrumbs [aria-current="page"] {
  color: #000;
}

/* Split text + image */
.split {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

.split__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
}

.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split .prose h2 {
  margin-bottom: 1.25rem;
}

.prose .prose__sub {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: var(--fs-lg);
}

/* Feature cards (service "may include" lists) */
.feature-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  height: 100%;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--secondary);
}

.feature__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature h3 {
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
}

.feature p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Check lists */
.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text);
}

.check-list svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--secondary);
  margin-top: 0.15rem;
}

/* Info cards (STA key facts) */
.info-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.info-card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.info-card--soft {
  background: var(--bg-soft);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-lg);
}

.info-card h3 svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent-text);
}

.info-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 600;
}

:root[data-theme="contrast"] .tag-list li {
  border: 1.5px solid #000;
}

/* Activity ideas (STA) */
.idea-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.idea {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: 500;
  line-height: 1.5;
}

.idea svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: var(--accent-text);
}

.section-note {
  max-width: 46rem;
  margin: 2rem 0 0;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background: var(--panel-bg);
  color: var(--panel-text);
}

.cta-band h2 {
  color: var(--on-blue);
  text-shadow: var(--on-blue-shadow);
}

.cta-band p {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  color: var(--on-blue);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.55;
  text-shadow: var(--on-blue-shadow);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 39.99rem) {
  .cta-band__actions {
    display: grid;
  }
}

@media (min-width: 56rem) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

:root[data-theme="contrast"] .cta-band {
  border: 3px solid #000;
}

/* Form pages: title, text and form centred on the page */
.section--after-hero {
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.75rem);
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .breadcrumbs ol {
  justify-content: center;
}

.page-hero--center .page-hero__lead {
  max-width: 26rem;
  margin-inline: auto;
  font-size: var(--fs-md);
}

.form-wrap {
  max-width: calc(46rem + var(--gutter) * 2);
}

.form-panel {
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

:root[data-theme="contrast"] .form-panel {
  box-shadow: inset 0 0 0 2px #000;
}

.form-after {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.aside-panel .form-card__title {
  margin-bottom: 0.75rem;
}

.aside-panel p {
  color: var(--text-muted);
}

.aside-panel .contact-boxes {
  margin-top: 1.25rem;
}

:root[data-theme="contrast"] .aside-panel {
  box-shadow: inset 0 0 0 2px #000;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound__code {
  font: 600 clamp(4rem, 2rem + 10vw, 9rem)/1 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--accent-text);
}

/* 9. Forms ---------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

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

.fieldset {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  margin: 0;
  padding: 0 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.fieldset__legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  float: left;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0;
  font: 600 var(--fs-lg)/1.25 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--heading);
}

.fieldset__legend + * {
  clear: both;
}

.fieldset__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-contrast);
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field__label,
.choice-legend {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--heading);
}

.req {
  color: var(--error);
  font-weight: 700;
}

.field__hint {
  margin: -0.15rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: max(1rem, 16px);
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}

.textarea {
  min-height: 9rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-600);
  opacity: 0.85;
}

:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder {
  color: #9fb0cb;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-muted);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}

:root[data-theme="contrast"] .input:focus-visible,
:root[data-theme="contrast"] .select:focus-visible,
:root[data-theme="contrast"] .textarea:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: none;
}

.field[data-invalid] .input,
.field[data-invalid] .textarea,
.field[data-invalid] .select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 15%, transparent);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--error);
}

.field__error svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

/* Radio / checkbox cards */
.choice-group {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  float: left;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0;
}

.choice-group legend + * {
  clear: both;
}

.choices {
  display: grid;
  gap: 0.6rem;
}

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

@media (min-width: 52rem) {
  .choices--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 36rem) and (max-width: 51.99rem) {
  .choices--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.choice:has(input:checked) {
  border-color: var(--secondary);
  background: var(--secondary-soft);
  box-shadow: inset 0 0 0 1px var(--secondary);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field[data-invalid] .choice {
  border-color: var(--error);
}

.choice input,
.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border: 2px solid var(--field-border);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.choice input[type="radio"] {
  border-radius: 999px;
}

.choice input[type="checkbox"],
.check input {
  border-radius: 6px;
}

.choice input:focus-visible,
.check input:focus-visible {
  outline: none;
}

.choice input[type="radio"]::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--secondary-contrast);
  transform: scale(0);
  transition: transform 180ms var(--ease-out);
}

.choice input[type="checkbox"]::after,
.check input::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: var(--secondary-contrast);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 180ms var(--ease-out);
}

.choice input:checked,
.check input:checked {
  border-color: var(--secondary);
  background: var(--secondary);
}

.choice input:checked::after,
.check input:checked::after {
  transform: scale(1);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  margin-top: 0.15rem;
}

.check:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field[data-invalid] .check {
  box-shadow: inset 0 0 0 1.5px var(--error);
}

.form-note {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.form-note svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--accent-text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-actions .btn {
  min-width: 10rem;
}

.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.error-summary {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--error-soft);
  border: 2px solid var(--error);
  color: var(--text);
}

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

.error-summary h2 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  color: var(--error);
}

.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.form-status {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--success-soft);
  border: 1.5px solid color-mix(in srgb, var(--success) 40%, transparent);
}

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

.form-status h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--success);
  font-size: var(--fs-md);
}

.form-status h3 svg {
  width: 1.4rem;
  height: 1.4rem;
}

.form-status p {
  margin: 0;
  color: var(--text);
}

/* 10. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: var(--section-y);
  background: var(--footer-bg);
  color: var(--footer-text);
  text-shadow: var(--on-blue-shadow);
}

:root[data-theme="dark"] .site-footer,
:root[data-theme="contrast"] .site-footer,
:root[data-theme="calm"] .site-footer {
  text-shadow: none;
}

.site-footer a,
.site-footer button {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--footer-text);
  text-decoration: underline;
}

.footer-main {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-block: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 64rem) {
  .footer-main {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    align-items: center;
    gap: 2rem;
    padding-block: 1.75rem;
    text-align: left;
  }
  .footer-nav {
    justify-content: center;
  }
}

.site-footer .brand {
  margin-right: 0;
  padding: 0;
}

@media (max-width: 39.99rem) {
  .footer-nav {
    max-width: 18rem;
    margin-inline: auto;
  }
  .footer-contact {
    flex-direction: column;
    align-items: center;
  }
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-nav button,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-contact svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--footer-text);
}

:root[data-theme="dark"] .footer-contact svg,
:root[data-theme="contrast"] .footer-contact svg {
  color: var(--footer-text);
}

.footer-bottom {
  padding-block: 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(255 255 255 / 0.45);
  background: transparent;
  color: var(--footer-muted);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

:root[data-theme="dark"] .footer-bottom {
  border-top-color: rgb(255 255 255 / 0.08);
}

:root[data-theme="contrast"] .site-footer a,
:root[data-theme="contrast"] .site-footer button {
  text-decoration: underline;
}

/* 11. Motion -------------------------------------------------------------- */
/* Page titles settle in on load: a short rise out of a soft blur */
.hero-in {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
}

/* Sections arrive as you scroll: fade, a small lift, and the blur clears.
   Items in a row follow each other (--i), and photos gently open up. */
:root.js .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

:root.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

:root.js .reveal :is(.service-card__media, .provide__photo, .split__photo) {
  transition: clip-path 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + 60ms);
}

:root.js .reveal:not(.is-visible) .service-card__media {
  clip-path: inset(5% round var(--radius-lg));
}

:root.js .reveal:not(.is-visible) :is(.provide__photo, .split__photo) {
  clip-path: inset(5% round var(--radius-xl));
}

/* Respect the device's reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .reveal * {
    clip-path: none !important;
  }
}

/* 12. Accessibility modes ------------------------------------------------- */
/* Stronger outlines in high contrast */
:root[data-theme="contrast"] :focus-visible {
  outline: 4px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #ffe500;
}

:root[data-theme="contrast"] .site-header__bar {
  border-width: 2px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

:root[data-theme="contrast"] .btn--secondary,
:root[data-theme="contrast"] .icon-btn,
:root[data-theme="contrast"] .a11y-btn {
  border: 2px solid #000;
}

:root[data-theme="contrast"] main a:not(.btn) {
  text-decoration: underline;
}

/* Print: drop chrome, keep content */
@media print {
  .site-header,
  .site-footer,
  .sheet,
  .hero__sky,
  .page-hero__sky,
  .skip-link {
    display: none !important;
  }
  .hero,
  .page-hero {
    padding-top: 1rem;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
