/* Fonts are hosted on this site (no third-party requests). Latin subset only.
   Licences: fonts/OFL-Fraunces.txt and fonts/OFL-Atkinson-Hyperlegible.txt. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/fraunces-variable-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-400-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-700-latin.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; }

/* Springwell Home Care — site styles
   Direction: a Registered Nurse's reviewed care plan is the centrepiece.
   Fraunces (warm display serif) + Atkinson Hyperlegible (made for low-vision readers).
   Two calm bases (deep teal, mist/white) carry the page; cyan is the single accent and only ever the primary
   button. Coral lives only on the care-plan sheet (margin line, stamp) and in error text. */

:root {
  --ink: #073B45;
  --ink-deep: #04262C;
  --teal: #006B82;
  --cyan: #00D4F9;
  --cyan-hover: #24DDFF;
  --mist: #EAFBFE;
  --mist-soft: #F4FCFD;
  --coral: #FF8E6B;
  --coral-ink: #A63E1B;
  --text: #1F2D31;
  --soft: #43575C;
  --on-dark: #D3F1F8;
  --paper: #fff;
  /* The 2 + 1 rule: two calm base colours carry the page; one accent is only ever the primary button. */
  --base-1: var(--ink);
  --base-2: var(--mist-soft);
  --accent: var(--cyan);
  --accent-hover: var(--cyan-hover);
  --button-text: var(--ink-deep);
  --rule: rgba(7, 59, 69, .16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;


  /* spacing scale: 4-point */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-36: 36px;
  --sp-40: 40px;
  --sp-44: 44px;
  --sp-48: 48px;
  --sp-52: 52px;
  --sp-56: 56px;
  --sp-60: 60px;
  --sp-64: 64px;
  --sp-72: 72px;
  --sp-80: 80px;
  --sp-88: 88px;
  --sp-96: 96px;
  --sp-104: 104px;
  --sp-120: 120px;
  --sp-136: 136px;
  /* type scale */
  --text-xs: .9375rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lead: 1.25rem;
  --text-h3: 1.4rem;
  --text-h3-lg: 1.75rem;
  --text-h2: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --text-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.4rem);
  --text-title: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --text-hero: clamp(2.7rem, 1.3rem + 5.6vw, 5.4rem);
  --text-numeral: 3rem;

  /* line heights */
  --lh-none: 1;
  --lh-display: 1.05;
  --lh-heading: 1.15;
  --lh-title: 1.25;
  --lh-ui: 1.45;
  --lh-body: 1.6;

  /* weights */
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  /* shape and depth */
  --radius-paper: 6px;
  --radius-field: 10px;
  --radius-pill: 999px;
  --shadow-paper: 0 1px 2px rgba(7, 59, 69, .1), 0 22px 40px -16px rgba(7, 59, 69, .22);
  --shadow-paper-dark: 0 2px 4px rgba(0, 0, 0, .12), 0 30px 60px -16px rgba(0, 0, 0, .55);

  /* more colour */
  --white: #fff;
  --line-on-dark: rgba(211, 241, 248, .2);
  --line-on-ink: rgba(255, 255, 255, .2);
  --line-on-ink-strong: rgba(255, 255, 255, .7);
  --glow: rgba(0, 107, 130, .55);

  /* motion: one curve, three durations, one stagger */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: .2s;
  --dur-base: .45s;
  --dur-slow: .8s;
  --stagger: .55s;
  --stagger-sm: .125s;
  --delay-intro: .5s;
  --lift: -2px;

  --wrap: 1120px;
  --gutter: 24px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--lh-body);
  color: var(--text); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
p { margin: 0; max-width: var(--measure); }
h1, h2, h3 { overflow-wrap: break-word; margin: 0; font-family: var(--font-display); color: var(--ink); font-weight: var(--w-medium); text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: var(--lh-display); letter-spacing: -.025em; }
h2 { font-size: var(--text-h2); line-height: var(--lh-heading); letter-spacing: -.015em; }
h3 { font-size: var(--text-h3); line-height: var(--lh-title); letter-spacing: -.005em; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-12); top: var(--sp-12); translate: 0 calc(-100% - var(--sp-24)); z-index: 100; background: var(--cyan); color: var(--ink); font-weight: var(--w-bold); padding: var(--sp-12) var(--sp-16); border-radius: var(--radius-paper); }
.skip-link:focus { translate: 0 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: var(--radius-paper); }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }
.skip-link:focus-visible { outline-color: var(--white); }

body.short { min-height: 100vh; display: flex; flex-direction: column; }
body.short main { flex: 1; display: flex; flex-direction: column; }
body.short .hero { flex: 1; display: flex; align-items: center; }
body.short .hero > .wrap { width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(var(--sp-56), 8vw, var(--sp-104)); }

/* ---------- Header ---------- */
.site-header { background: var(--mist); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-12); padding-block: var(--sp-16); }
.brand { font-family: var(--font-display); font-weight: var(--w-semibold); font-size: var(--text-h3); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-28); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: var(--sp-12) 0; font-size: var(--text-sm); background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size var(--dur-fast) var(--ease-out); }
.nav a:not(.btn):hover { background-size: 100% 3px; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: var(--radius-field); padding: var(--sp-8) var(--sp-16); font: inherit; font-weight: var(--w-bold); cursor: pointer; min-height: 44px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--sp-12) var(--sp-28); border-radius: var(--radius-pill); font: inherit; font-weight: var(--w-bold); font-size: var(--text-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: var(--lh-title); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.btn:hover { translate: 0 var(--lift); }
.btn:active { translate: 0 0; }
.btn-primary { background: var(--accent); color: var(--button-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--button-text); }
/* On light sections the accent alone is faint against white, so the primary button gets a base-1 edge. */
main > section:not(.on-dark) .btn-primary, .callback .btn-primary { border-color: var(--base-1); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-deep); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.on-dark .btn-line { color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-sm { min-height: 44px; padding: var(--sp-8) var(--sp-20); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-16); align-items: center; }
.text-link { font-weight: var(--w-bold); }

/* ---------- Hero ---------- */
.hero { background: var(--mist); padding-block: clamp(var(--sp-32), 5vw, var(--sp-72)) clamp(var(--sp-64), 9vw, var(--sp-120)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(var(--sp-40), 6vw, var(--sp-88)); align-items: center; }
.hero h1 { margin-bottom: var(--sp-24); max-width: 12ch; }
.hero__lead { font-size: var(--text-lead); color: var(--soft); margin-bottom: var(--sp-36); max-width: 34em; }

/* Care plan sheet — the one memorable element */
.plan { margin: 0; position: relative; background: var(--paper); border-radius: var(--radius-paper); padding: var(--sp-28) var(--sp-28) var(--sp-24) var(--sp-32); box-shadow: var(--shadow-paper); transform: rotate(1.2deg);
  background-image: linear-gradient(to right, transparent 20px, var(--coral) 20px, var(--coral) 22px, transparent 22px); }
.plan__title { font-family: var(--font-display); font-size: var(--text-h3); color: var(--ink); margin-bottom: var(--sp-4); }
.plan .plan__title { font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: normal; max-width: none; color: var(--ink); margin: 0 0 var(--sp-4); }
.plan__sub { font-size: var(--text-xs); color: var(--soft); margin-bottom: var(--sp-16); }
.plan__list { list-style: none; margin: 0; padding: 0; }
.plan__row { display: grid; grid-template-columns: auto 4.2em minmax(0, 1fr); gap: var(--sp-8) var(--sp-12); align-items: start; padding: var(--sp-16) 0; border-top: 1px solid var(--rule); font-size: var(--text-sm); line-height: var(--lh-ui); }
.plan { --rows: 3; container-type: inline-size; }
.plan:has(.plan__row:nth-child(2):last-child) { --rows: 2; }
.plan:has(.plan__row:nth-child(4)) { --rows: 4; }
.plan:has(.plan__row:nth-child(5)) { --rows: 5; }
.plan:has(.plan__row:nth-child(6)) { --rows: 6; }
.plan:has(.plan__row:nth-child(7)) { --rows: 7; }
.plan:has(.plan__row:nth-child(8)) { --rows: 8; }
.plan__row:nth-child(1) { --i: 0; }
.plan__row:nth-child(2) { --i: 1; }
.plan__row:nth-child(3) { --i: 2; }
.plan__row:nth-child(4) { --i: 3; }
.plan__row:nth-child(5) { --i: 4; }
.plan__row:nth-child(6) { --i: 5; }
.plan__row:nth-child(7) { --i: 6; }
.plan__row:nth-child(8) { --i: 7; }
.plan__row--simple { grid-template-columns: auto minmax(0, 1fr); }
.plan__time { font-weight: var(--w-bold); color: var(--ink); }
.tick { width: 1.45em; height: 1.45em; border: 2px solid var(--ink); border-radius: var(--radius-paper); display: block; margin-top: -1px; }
.tick path { fill: none; stroke: var(--teal); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw var(--dur-base) var(--ease-out) forwards; animation-delay: calc(var(--delay-intro) + var(--i) * var(--stagger)); }
.plan__signoff { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); margin-top: var(--sp-8); padding-top: var(--sp-16); border-top: 2px solid var(--ink); }
.plan__signoff p { font-size: var(--text-xs); color: var(--soft); }
.stamp { flex-shrink: 0; border: 3px solid var(--coral); color: var(--coral-ink); border-radius: var(--radius-paper); padding: var(--sp-8) var(--sp-12); font-weight: var(--w-bold); font-size: var(--text-xs); line-height: var(--lh-title); text-align: center; transform: rotate(-6deg); animation: stamp var(--dur-base) var(--ease-out) both; animation-delay: calc(var(--delay-intro) + var(--rows, 3) * var(--stagger)); }
.plan__note { font-size: var(--text-xs); color: var(--soft); margin-top: var(--sp-16); }
.js .plan[data-reveal]:not(.is-live) .tick path,
.js .plan[data-reveal]:not(.is-live) .stamp { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.4); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* ---------- Services: a ruled list, not a card grid ---------- */
.services h2 { margin-bottom: var(--sp-16); max-width: 18ch; }
.services__intro { color: var(--soft); margin-bottom: var(--sp-48); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-12) var(--sp-48); padding-block: var(--sp-32); border-top: 1px solid var(--rule); }
.service:last-of-type { border-bottom: 1px solid var(--rule); }
.service h2 { font-size: var(--text-h3); line-height: var(--lh-title); margin: 0; max-width: none; letter-spacing: -.005em; }
.service p { color: var(--soft); }
.services__note { margin-top: var(--sp-24); color: var(--soft); font-size: var(--text-sm); }

/* ---------- Why us: full-bleed ink band ---------- */
.why { background: var(--ink); color: var(--on-dark); }
.why h2 { color: var(--white); margin-bottom: var(--sp-20); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-36), 6vw, var(--sp-96)); align-items: start; }
.why__lead { font-size: var(--text-lead); margin-bottom: var(--sp-32); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-16); padding-block: var(--sp-16); border-top: 1px solid var(--line-on-dark); color: var(--white); }
.checks li:last-child { border-bottom: 1px solid var(--line-on-dark); }
.checks .tick { border-color: var(--on-dark); margin-top: 0; }
.checks .tick path { stroke: var(--on-dark); }
.checks li:nth-child(1) { --i: 0; }
.checks li:nth-child(2) { --i: 1; }
.checks li:nth-child(3) { --i: 2; }
.checks li:nth-child(4) { --i: 3; }
.js .checks[data-reveal]:not(.is-live) .tick path { animation-play-state: paused; }

/* ---------- How it works: a real sequence, so numbered ---------- */
.how h2 { margin-bottom: var(--sp-12); max-width: 18ch; }
.how__intro { color: var(--soft); margin-bottom: var(--sp-48); }
.steps { list-style: none; margin: 0 0 var(--sp-40); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-32); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: var(--sp-16); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: var(--text-numeral); line-height: var(--lh-none); color: var(--base-1); margin-bottom: var(--sp-16); }
.steps h3 { margin-bottom: var(--sp-8); }
.steps .step__title { font-size: var(--text-h3); line-height: var(--lh-title); margin: 0 0 var(--sp-8); max-width: none; letter-spacing: -.005em; }
.steps p { color: var(--soft); }

/* ---------- About ---------- */
.about { background: var(--mist-soft); }
.about h2 { margin-bottom: var(--sp-16); max-width: 14ch; }
.about__intro { color: var(--soft); margin-bottom: var(--sp-52); }

/* ---------- Service area ---------- */
.area h2 { margin-bottom: var(--sp-16); }
.area__intro { color: var(--soft); margin-bottom: var(--sp-40); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-32); margin: 0; padding-top: var(--sp-28); border-top: 1px solid var(--rule); }
.facts dt { font-weight: var(--w-bold); color: var(--ink); margin-bottom: var(--sp-4); }
.facts dd { margin: 0; color: var(--soft); }

/* ---------- Contact ---------- */
.contact { background: var(--ink-deep); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(var(--sp-32), 6vw, var(--sp-80)); align-items: start; }
.contact h2 { color: var(--white); margin-bottom: var(--sp-16); max-width: 14ch; }
.contact__actions { margin-top: var(--sp-28); }

/* ---------- Call-back form ---------- */
.callback { background: var(--paper); color: var(--text); border-radius: var(--radius-paper); padding: var(--sp-32) var(--sp-32); box-shadow: var(--shadow-paper-dark); }
.callback .callback__title { color: var(--ink); max-width: none; font-size: var(--text-h3); margin-bottom: var(--sp-16); }
.field { margin: 0 0 var(--sp-16); padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: var(--w-bold); color: var(--ink); margin-bottom: var(--sp-8); padding: 0; }
.field__opt { font-weight: var(--w-regular); color: var(--soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: var(--sp-12) var(--sp-16); border: 2px solid var(--ink); border-radius: var(--radius-field); background: var(--white); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"] { border-color: var(--coral-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.field--choice { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-12); }
.field--choice legend { flex: 0 0 100%; }
.field--choice label { display: inline-flex; align-items: center; gap: var(--sp-12); font-weight: var(--w-regular); color: var(--text); min-height: 48px; padding: 0 var(--sp-16); border: 2px solid var(--rule); border-radius: var(--radius-field); margin: 0; cursor: pointer; }
.field--choice input { width: 22px; height: 22px; accent-color: var(--teal); margin: 0; }
.field--choice label:has(input:checked) { border-color: var(--ink); background: var(--mist); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.callback__submit { width: 100%; }
.btn[aria-busy="true"], .btn[aria-disabled="true"] { cursor: progress; opacity: .85; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; margin-right: var(--sp-12); border: 3px solid currentColor; border-right-color: transparent; border-radius: var(--radius-pill); animation: spin var(--dur-slow) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { cursor: not-allowed; }
.callback__note { margin-top: var(--sp-16); font-size: var(--text-xs); color: var(--soft); }
.callback__status { color: var(--teal); font-weight: var(--w-bold); margin-bottom: var(--sp-8); }
.callback .callback__status--error { color: var(--coral-ink); }
.hidden { display: none !important; }

/* ---------- Plain text pages (privacy) ---------- */
.prose { max-width: 52ch; }
.prose h1 { font-size: var(--text-h2); margin-bottom: var(--sp-8); }
.prose h2 { font-size: var(--text-h3-lg); margin: var(--sp-40) 0 var(--sp-12); }
.prose p, .prose ul { margin-bottom: var(--sp-16); max-width: none; }
.prose ul { padding-left: var(--sp-24); }
.prose li { margin-bottom: var(--sp-8); }
.prose .updated { color: var(--soft); margin-bottom: var(--sp-28); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-40); padding-block: var(--sp-56) var(--sp-36); }
.site-footer .brand { color: var(--white); display: inline-block; margin-bottom: var(--sp-12); }
.site-footer p { font-size: var(--text-sm); }
.footer-title { color: var(--white); font-weight: var(--w-bold); margin-bottom: var(--sp-12); }
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .social a { color: var(--on-dark); text-decoration: none; padding: var(--sp-8) 0; }
.footer-links a:hover, .social a:hover { color: var(--white); text-decoration: underline; }
.legal { border-top: 1px solid var(--line-on-dark); }
.legal .legal__access { padding-block: var(--sp-20) 0; color: var(--white); }
.legal .legal__access + p { padding-top: var(--sp-8); }
.legal p { padding-block: var(--sp-20); font-size: var(--text-xs); max-width: none; }



/* ---------- Home hero: dark, large type, a stack of care-plan sheets ---------- */
.home { background: radial-gradient(60% 70% at 78% 22%, var(--glow), transparent 70%) top / 100% 920px no-repeat, var(--ink); }
.inner { background: radial-gradient(55% 70% at 82% 15%, var(--glow), transparent 70%) top / 100% 680px no-repeat, var(--ink); }
.pick, .how { background: var(--paper); }
.hero--dark { background: transparent; position: relative; overflow: hidden; padding-block: clamp(var(--sp-40), 7vw, var(--sp-104)) clamp(var(--sp-72), 10vw, var(--sp-136)); }
.hero--dark .wrap { position: relative; }
.hero--dark h1 { color: var(--white); font-size: min(var(--text-hero), 14vw); line-height: var(--lh-display); letter-spacing: -.02em; max-width: 14ch; margin-bottom: var(--sp-28); }
.hero--dark .hero__lead { color: var(--on-dark); font-size: var(--text-lead); }
.home .site-header, .inner .site-header { background: transparent; }
.home .site-header .brand, .inner .site-header .brand { color: var(--white); }
.home .nav a:not(.btn), .inner .nav a:not(.btn) { color: var(--white); }
.home .nav-toggle, .inner .nav-toggle { border-color: var(--line-on-ink-strong); color: var(--white); }
.home .site-header :focus-visible, .inner .site-header :focus-visible { outline-color: var(--cyan); }

.stack { position: relative; }
.sheet-back { position: absolute; inset: 0; background: var(--white); border-radius: var(--radius-paper); box-shadow: var(--shadow-paper-dark); }
.sheet-back--a { transform: rotate(-5deg) translate(calc(var(--sp-16) * -1), var(--sp-12)); opacity: .45; animation: drop var(--dur-slow) var(--ease-out) calc(var(--stagger-sm) * 2) both; }
.sheet-back--b { transform: rotate(4.5deg) translate(var(--sp-16), var(--sp-16)); opacity: .72; animation: drop var(--dur-slow) var(--ease-out) var(--stagger-sm) both; }
.plan--hero { z-index: 1; padding: var(--sp-32) var(--sp-32) var(--sp-28) var(--sp-40); box-shadow: var(--shadow-paper-dark); animation: drop var(--dur-slow) var(--ease-out) both; }
.plan--hero .plan__title { font-size: var(--text-h3); }
.plan--hero .plan__row { font-size: var(--text-base); padding-block: var(--sp-16); }
.plan--hero .stamp { font-size: var(--text-lead); padding: var(--sp-8) var(--sp-16); border-width: 4px; }
@keyframes drop { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Page header: the care-plan sheet used as a letterhead ---------- */
.page-head { background: transparent; padding-block: var(--sp-16) clamp(var(--sp-48), 7vw, var(--sp-88)); }
.letterhead {
  background: var(--paper); border-radius: var(--radius-paper); position: relative;
  padding: clamp(var(--sp-32), 5vw, var(--sp-56)) clamp(var(--sp-24), 4vw, var(--sp-44)) var(--sp-16) clamp(var(--sp-32), 5vw, var(--sp-60));
  box-shadow: var(--shadow-paper);
  background-image: linear-gradient(to right, transparent 22px, var(--coral) 22px, var(--coral) 24px, transparent 24px);
}
.letterhead h1 { font-size: var(--text-title); max-width: 16ch; margin-bottom: var(--sp-16); }
.letterhead__lead { color: var(--soft); font-size: var(--text-lead); max-width: 44em; }
.letterhead { z-index: 1; box-shadow: var(--shadow-paper-dark); }
.stack--head .sheet-back--a { transform: rotate(-1.6deg) translate(calc(var(--sp-8) * -1), var(--sp-8)); }
.stack--head .sheet-back--b { transform: rotate(1.4deg) translate(var(--sp-8), var(--sp-12)); }
.letterhead__foot { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-28); margin-top: clamp(var(--sp-24), 4vw, var(--sp-36)); padding-top: var(--sp-16); border-top: 2px solid var(--ink); font-size: var(--text-xs); }
.letterhead__foot a { color: var(--ink); padding: var(--sp-8) 0; }
.letterhead__foot a:hover { color: var(--teal); }

/* ---------- Sheets: variants ---------- */
.plan--flat { transform: none; }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-28); margin-bottom: var(--sp-56); align-items: start; }
.plan__row--day { grid-template-columns: auto 5.8em minmax(0, 1fr); }

/* ---------- Home: service links and short steps ---------- */
.pick h2 { margin-bottom: var(--sp-12); }
.pick__intro { color: var(--soft); margin-bottom: var(--sp-36); }
.pick__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-48); }
.pick__grid a { display: block; padding: var(--sp-24) 0; border-top: 1px solid var(--rule); font-family: var(--font-display); font-size: var(--text-h3); color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .3em; transition: text-decoration-thickness var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pick__grid a:hover { color: var(--teal); text-decoration-thickness: 4px; }
.pick__grid a:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.how h2 { margin-bottom: var(--sp-40); }
.steps--short { margin-bottom: var(--sp-32); }
.steps--short li::before { margin-bottom: var(--sp-8); }
.cta-band { background: var(--ink-deep); color: var(--on-dark); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-28) var(--sp-48); align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-8); }

/* ---------- Inner pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-32), 6vw, var(--sp-88)); align-items: center; }
.week h2 { margin-bottom: var(--sp-16); }
.lead { color: var(--soft); font-size: var(--text-lead); max-width: 34em; margin-bottom: var(--sp-24); }
.area__cta, .how__cta { margin-top: var(--sp-40); }
.privacy .prose { margin: 0; }
.nav a[aria-current="page"]:not(.btn) { background-size: 100% 3px; }


/* ---------- Inner pages: backgrounds, layouts ---------- */
.inner .block { background: var(--paper); }
.inner .cta-band { background: var(--ink-deep); }
.inner .page-head { background: transparent; }
.inner .about, .inner .contact--light { background: var(--mist-soft); }
.inner .how--dark { background: transparent; }

.services__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(var(--sp-32), 6vw, var(--sp-80)); align-items: start; }
.services__layout .service { grid-template-columns: 1fr; }
.services__layout .service:first-child { border-top: 0; padding-top: 0; }
.services__sheet { position: sticky; top: var(--sp-24); }
.services__caption { color: var(--soft); font-size: var(--text-xs); margin-top: var(--sp-16); }
.services__cta { margin-top: var(--sp-32); }

.how--dark .steps { margin-bottom: var(--sp-48); }
.how--dark .steps li { border-top-color: var(--line-on-dark); }
.how--dark .steps li::before { color: var(--on-dark); }
.how--dark .steps .step__title { color: var(--white); }
.how--dark .steps p { color: var(--on-dark); }
.how--dark .how__cta { margin-top: 0; }

.statement { background: var(--paper); padding-block: clamp(var(--sp-48), 7vw, var(--sp-88)) 0; }
.statement__text { font-family: var(--font-display); font-weight: var(--w-medium); font-size: var(--text-h2); line-height: var(--lh-heading); letter-spacing: -.015em; color: var(--ink); max-width: 26em; border-top: 4px solid var(--base-1); padding-top: var(--sp-32); }
.inner .statement + .about { padding-top: clamp(var(--sp-48), 7vw, var(--sp-88)); }
.inner .statement { padding-bottom: clamp(var(--sp-48), 7vw, var(--sp-88)); }
.about .sheets { margin-bottom: 0; }

.area__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-32), 6vw, var(--sp-80)); align-items: start; }
.facts--rows { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
.facts--rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-16); padding-block: var(--sp-20); border-top: 1px solid var(--rule); }
.facts--rows > div:last-child { border-bottom: 1px solid var(--rule); }
.facts--rows dt { margin: 0; }
.area__cta { margin-top: var(--sp-32); }
.plan--map .area-map { display: block; width: 100%; max-width: 560px; height: auto; margin: var(--sp-8) auto var(--sp-16); border-radius: var(--radius-paper); }

.contact--light { color: var(--text); }
.contact--light h2 { color: var(--ink); }
.contact--light p { color: var(--soft); }
.contact--light .callback { box-shadow: var(--shadow-paper); }
.contact__next { margin-top: var(--sp-40); max-width: 460px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .split, .sheets, .cta-band__grid, .services__layout, .area__layout { grid-template-columns: 1fr; }
  .services__sheet { position: static; }
  .sheets .plan, .week .plan { max-width: 560px; }
  .hero__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .plan { transform: none; max-width: 520px; }
  .service { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-36) var(--sp-28); }
  .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--sp-8); }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: var(--sp-16) 0; border-top: 1px solid var(--rule); background: none; }
  .home .js .nav a:not(.btn), .js.home .nav a:not(.btn), .inner .js .nav a:not(.btn), .js.inner .nav a:not(.btn) { border-top-color: var(--line-on-ink); }
  .js .nav .btn { margin-top: var(--sp-16); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --step-0: 1.0625rem; }
  .facts, .footer-grid, .steps { grid-template-columns: 1fr; gap: var(--sp-32); }
  .how__cta .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .plan { padding: var(--sp-24) var(--sp-12) var(--sp-20) var(--sp-28); }
  .callback { padding: var(--sp-24) var(--sp-20); }
  .plan__row { grid-template-columns: auto 3.8em minmax(0, 1fr); gap: var(--sp-8); }
  .plan__row--simple { grid-template-columns: auto minmax(0, 1fr); }
  .plan__row--day { grid-template-columns: auto 5.2em minmax(0, 1fr); }
  .pick__grid { grid-template-columns: 1fr; }
  .facts--rows > div { grid-template-columns: 1fr; gap: var(--sp-4); }
  .pick__grid a:nth-last-child(2) { border-bottom: 0; }
  .cta-band .btn { width: 100%; }
  .letterhead h1 { max-width: none; }
  .plan__signoff { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick path { animation: none; stroke-dashoffset: 0; }
  .checks .tick path { animation: none; stroke-dashoffset: 0; }
  .stamp { animation: none; }
  .plan--hero, .sheet-back { animation: none; }
  .btn[aria-busy="true"]::before { animation: none; }
  .nav a:not(.btn), .btn, .pick__grid a, .jump__list a { transition: none; }
  .btn:hover { translate: none; }
}
.btn:disabled:hover { translate: 0 0; }

/* Inline links that sit in small text get a taller tap area */
.callback__note a, .prose a { display: inline-block; padding-block: var(--sp-4); }
.faq__cta { margin-top: var(--sp-40); }

/* Text-size safety: long words and grid children may shrink, so enlarged text wraps instead of scrolling sideways */
a[href^="mailto:"], .brand { overflow-wrap: anywhere; }
.hero__grid > *, .footer-grid > *, .contact__grid > *, .why__grid > *, .split > *, .services__layout > *, .area__layout > *, .cta-band__grid > * { min-width: 0; }
.nowrap { white-space: nowrap; }
p, li, dt, dd, label, legend, figcaption { overflow-wrap: break-word; }
.plan__row > * { min-width: 0; }
.page-head { overflow-x: clip; }

/* FAQ jump links */
.jump { margin-bottom: var(--sp-56); }
.jump__title { font-size: var(--text-h3); margin-bottom: var(--sp-16); max-width: none; }
.jump__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-48); }
.jump__list li { border-top: 1px solid var(--rule); }
.jump__list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.jump__list a { display: block; padding: var(--sp-12) 0; color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .3em; transition: text-decoration-thickness var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.jump__list a:hover { color: var(--teal); text-decoration-thickness: 4px; }
.service[id] { scroll-margin-top: var(--sp-24); }
@media (max-width: 640px) {
  .jump__list { grid-template-columns: 1fr; }
  .jump__list li:nth-last-child(2) { border-bottom: 0; }
}

/* Large text on a narrow sheet: the time moves above its label so the label keeps a readable width */
@container (max-width: 13em) {
  .plan__row:has(.plan__time) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tick time" "tick text"; gap: 0 var(--sp-8); }
  .plan__row:has(.plan__time) > .tick { grid-area: tick; }
  .plan__row:has(.plan__time) > .plan__time { grid-area: time; }
  .plan__row:has(.plan__time) > span:last-child { grid-area: text; }
}

/* ---------- NDIS status line and the phone-only call bar ---------- */
.notice { border-left: 4px solid currentColor; padding-left: var(--sp-16); font-weight: var(--w-bold); color: var(--ink); }
.on-dark .notice { color: var(--white); }
.notice a { color: inherit; }
.why .notice { margin-bottom: var(--sp-32); }
.call-bar { display: none; }
@media (max-width: 640px) {
  body:has(.call-bar) { padding-bottom: var(--sp-80); }
  .call-bar { display: block; position: fixed; inset: auto 0 0 0; z-index: 40; padding: var(--sp-12) var(--sp-16); padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom)); background: var(--ink-deep); }
  .call-bar .btn { width: 100%; }
}

/* ---------- Contact form: choices, consent and the area check; suburb list ---------- */
.field select { width: 100%; min-height: 52px; padding: var(--sp-12) var(--sp-16); border: 2px solid var(--ink); border-radius: var(--radius-field); background: var(--white); color: var(--ink); font: inherit; }
.field select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.field--consent label { display: flex; align-items: flex-start; gap: var(--sp-12); font-weight: var(--w-regular); color: var(--text); }
.field--consent input { flex: 0 0 22px; width: 22px; height: 22px; margin: var(--sp-4) 0 0; accent-color: var(--teal); }
.field__check { margin: var(--sp-8) 0 0; font-size: var(--text-sm); color: var(--soft); }
.field__check:empty { display: none; }
.field__check--ok, .field__check--warn { color: var(--ink); font-weight: var(--w-bold); }
.suburbs__intro { color: var(--soft); margin-bottom: var(--sp-24); }
.suburbs__list { list-style: none; margin: 0 0 var(--sp-48); padding: 0; columns: 3 12em; column-gap: var(--sp-32); }
.suburbs__list li { break-inside: avoid; padding-block: var(--sp-4); }
.suburbs__source { margin: calc(var(--sp-24) * -1) 0 var(--sp-48); font-size: var(--text-xs); color: var(--soft); }
.suburbs h2 { margin-bottom: var(--sp-16); max-width: none; }
.suburbs .actions { margin-top: var(--sp-24); }
