/* Reed Care Services — site styles.
   System fonts only. No external resources. Mobile first. */

:root {
  --navy: #0b1f45;
  --teal: #0fb5a3;
  --green-btn: #0a7d71;     /* logo teal deepened just enough for white text, 5.0:1 */
  --teal-ink: #0a6b66;      /* teal dark enough for text on white */
  --teal-deep: #084f4b;
  --teal-soft: #e4f6f3;
  --teal-tint: #f3fbfa;
  --teal-line: #cfeae6;
  --ink: #1b2435;
  --muted: #4d586c;
  --line: #d9e1ea;
  --line-strong: #b4c0d0;
  --navy-soft: #e8edf5;
  --paper: #ffffff;
  --mist: #f5f8fb;
  --focus: #ffbf47;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 31, 69, 0.06), 0 8px 24px rgba(11, 31, 69, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 31, 69, 0.06), 0 18px 44px rgba(11, 31, 69, 0.12);
  --max: 1160px;
  --gutter: 20px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }

p { margin: 0 0 1em; }
address { font-style: normal; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--navy); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--navy);
}
main:focus-visible { outline: none; box-shadow: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* Icons: inline SVG, stroked in the current colour */
.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Top bar ---------- */

.topbar { background: var(--teal-soft); color: var(--ink); font-size: 0.9rem; }
.topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 24px;
  min-height: 44px;
  padding-block: 6px;
}
.topbar p { margin: 0; display: none; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 24px; margin: 0; padding: 0; }
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.topbar a:hover { color: var(--teal-ink); text-decoration: underline; }
.topbar .i { width: 16px; height: 16px; color: var(--teal-ink); }

@media (min-width: 900px) {
  .topbar-row { justify-content: space-between; }
  .topbar p { display: block; }
}

/* ---------- Header and navigation ---------- */

.site-header { background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 10px;
}
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { height: 72px; width: auto; }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.nav a:hover { background: var(--teal-soft); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--teal-soft); box-shadow: inset 0 -3px 0 var(--teal); }
.nav a.btn { color: #fff; padding: 0 20px; }
.nav a.btn:hover { background: var(--teal-ink); color: #fff; }
.nav a.btn[aria-current="page"] { background: var(--teal-ink); border-color: var(--teal-ink); box-shadow: none; }

@media (max-width: 959px) {
  /* Small screens: the links sit in a tidy grid below the logo. */
  .nav { flex-basis: 100%; }
  .nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-bottom: 4px; }
  .nav a { width: 100%; justify-content: center; text-align: center; border-radius: 12px; padding: 0 10px; }
  .nav a:not(.btn) { background: var(--mist); }
}
@media (min-width: 600px) and (max-width: 959px) {
  .nav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  /* Medium screens: the links sit in one row below the logo. */
  .nav { flex-basis: 100%; }
  .nav a { padding: 0 10px; }
  .nav li:last-child { margin-left: auto; }
}

@media (min-width: 1280px) {
  /* Wide screens: logo and links share one sticky row. */
  html { scroll-padding-top: 128px; }
  .site-header { position: sticky; top: 0; z-index: 50; }
  .header-row { flex-wrap: nowrap; padding-block: 12px; }
  .brand img { height: 84px; }
  .nav { flex-basis: auto; }
  .nav li:last-child { margin-left: 8px; }
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 24px;
  border: 2px solid var(--green-btn);
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn .i { width: 18px; height: 18px; }
.btn--sm { min-height: 44px; padding-block: 6px; }
/* .btn--light sits only on light surfaces, so it keeps the default green .btn style. */
.btn--ghost, .btn--outline-light { background: #fff; border-color: var(--green-btn); color: var(--teal-ink); }
.btn--ghost:hover, .btn--outline-light:hover { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Small text elements ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 12px;
}

.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.5; color: #33405a; max-width: 40rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.small { font-size: 0.95rem; color: var(--muted); }

.status {
  display: flex;
  width: fit-content;
  margin: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}
.status--planned { background: var(--navy-soft); color: var(--navy); }
.status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: calc(0.65em - 4px); border-radius: 50%; background: currentColor; }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; }
.arrow-link .i { width: 18px; height: 18px; }

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

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
/* Arcs that echo the swirl in the logo */
.hero::before, .hero::after, .page-hero::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  pointer-events: none;
}
.hero::before, .page-hero::before {
  width: 420px;
  height: 420px;
  right: -210px;
  top: -230px;
  border-width: 34px;
  border-left-color: rgba(15, 181, 163, 0.2);
  border-bottom-color: rgba(15, 181, 163, 0.1);
  transform: rotate(18deg);
}
.hero::after { display: none; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: 36px; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { margin-bottom: 12px; }
.hero-status { color: var(--ink); max-width: 40rem; margin: 0; }
.hero-contact { margin: 20px 0 0; color: var(--muted); font-size: 1rem; }
.hero-contact a { font-weight: 700; }

@media (min-width: 960px) {
  .hero::before { width: 720px; height: 720px; right: -260px; top: -300px; border-width: 56px; }
  .hero::after {
    display: block;
    width: 520px;
    height: 520px;
    right: -150px;
    top: -190px;
    border-width: 26px;
    border-left-color: rgba(11, 31, 69, 0.1);
    border-bottom-color: rgba(11, 31, 69, 0.05);
    transform: rotate(-8deg);
  }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
  .page-hero::before { width: 560px; height: 560px; right: -200px; top: -330px; border-width: 44px; }
}

.page-hero > .wrap { padding-block: clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); margin: 0 0 12px; }
.page-hero .status { margin-bottom: 16px; }
.page-hero .lead { margin: 0; }
.page-hero .notice { margin-top: 24px; max-width: 46rem; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #8a96a8; }

/* ---------- Sections and layout ---------- */

.section { padding-block: clamp(52px, 7vw, 96px); }
.section--mist { background: var(--mist); }
.section--tint { background: var(--teal-tint); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.section-head { max-width: 46rem; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head > :last-child { margin-bottom: 0; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.section-foot p { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 768px) {
  .grid { gap: 24px; }
}
@media (min-width: 480px) {
  .grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
  .split--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .sticky { position: sticky; top: 120px; }
}

.stack { display: grid; gap: 20px; }
.stack > * { margin: 0; }

/* ---------- Cards and panels ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
.card .status { margin-bottom: 14px; }
.card--sm { padding: 20px; }
.card--sm h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card--sm p { font-size: 1rem; }

.card--tint { background: var(--teal-tint); border-color: var(--line); box-shadow: none; }
.card--navy { border-color: var(--line); box-shadow: var(--shadow); }
.card--lg { padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg); }

.card-foot { margin-top: auto; padding-top: 10px; }
.duties { margin: 0 0 1em; padding-left: 1.2em; color: var(--muted); font-size: 1rem; }
.duties li { margin-bottom: 4px; }

.chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.panel {
  background: var(--teal-tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
}
.panel > :last-child { margin-bottom: 0; }
.panel--plain { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.4rem; }
.panel .status { margin-bottom: 14px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.notice p { margin: 0; }
.notice .i { color: var(--teal-ink); margin-top: 2px; }
.notice--alert { border-left-color: #b3261e; }
.notice--alert .i { color: #b3261e; }

/* ---------- Feature lists ---------- */

.features { list-style: none; display: grid; gap: 26px 32px; margin: 0; padding: 0; }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature .chip { margin: 0; }
.feature h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
.features--stack { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }

.ticks { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-soft);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(0.2em + 4px);
  width: 6px;
  height: 11px;
  border: solid var(--teal-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.panel .ticks li::before { background: #fff; box-shadow: inset 0 0 0 1px var(--teal-line); }
.ticks--no li::before, .panel .ticks--no li::before { background: #e9edf3; box-shadow: none; }
.ticks--no li::after {
  left: 6px;
  top: calc(0.2em + 10px);
  width: 10px;
  height: 2px;
  border: 0;
  background: var(--muted);
  transform: none;
}

.postcodes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; padding: 0; }
.postcodes li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
}

/* ---------- Facts and details ---------- */

.facts { display: grid; gap: 16px; margin: 0; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.facts dt {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 6px;
}
.facts dd { margin: 0; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.facts dd span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; }

.details { margin: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .details > div { grid-template-columns: 220px minmax(0, 1fr); }
}
.details dt { color: var(--navy); font-weight: 700; }
.details dd { margin: 0; }
/* Stacked rows, for narrow columns such as panels */
.details--stack > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.details .status { margin: 0; }

.big-link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--navy);
  text-decoration-color: var(--teal);
  text-decoration-thickness: 0.1em;
  overflow-wrap: anywhere;
}

/* ---------- CQC rating (text and CSS only; not the official CQC widget) ---------- */

.cqc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
}
.cqc-top { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.cqc-top .eyebrow { margin-bottom: 4px; }
.cqc-top h2 { font-size: 1.5rem; margin: 0; }
.cqc-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 84px;
  height: 84px;
  margin: 6px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: none;
}
.cqc-badge span { font-size: 0.75rem; letter-spacing: 0.14em; }
.cqc-badge strong { font-size: 1.3rem; color: var(--teal-deep); }
.cqc-card p { margin: 0; }
.cqc-card p + p { margin-top: 8px; }
.kq { list-style: none; margin: 14px 0; padding: 0; border-top: 1px solid var(--line); }
.kq li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.kq strong { padding: 2px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-size: 0.9rem; }
.cqc-card .arrow-link { margin-top: 14px; }

@media (min-width: 900px) {
  .cqc-card--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; }
  .cqc-card--wide .kq { margin: 0; }
}

/* ---------- Stages ---------- */

.steps { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.timeline { list-style: none; display: grid; gap: 20px; margin: 0; padding: 0; counter-reset: stage; }
.timeline > li { position: relative; padding-left: 54px; counter-increment: stage; }
.timeline > li::before {
  content: counter(stage);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.timeline > li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -20px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.stage .eyebrow { margin-bottom: 6px; }
.stage p { margin: 0; color: var(--muted); }
.stage .outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--ink);
  font-size: 1rem;
}
.outcome .i { color: var(--teal-ink); width: 20px; height: 20px; margin-top: 3px; }
.outcome strong { color: var(--navy); }

@media (min-width: 768px) {
  .timeline > li { padding-left: 76px; }
  .timeline > li::before { width: 52px; height: 52px; font-size: 1.3rem; }
  .timeline > li::after { left: 25px; top: 52px; }
  .stage { padding: 26px 30px; }
}

/* ---------- Continuum of care diagram ---------- */

.continuum { margin: 0; }
.continuum figcaption {
  margin-bottom: 20px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.flow { list-style: none; display: grid; gap: 52px; margin: 0; padding: 0; }
.flow > li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
/* Planned steps are drawn dashed: they are not operating yet. */
.flow > li.flow-planned { background: var(--mist); border: 2px dashed var(--line-strong); box-shadow: none; }
.flow h3 { font-size: 1.15rem; margin: 12px 0 4px; }
.flow p { margin: 0; }
.flow p:last-child { color: var(--muted); font-size: 1rem; }
.flow-arrow {
  position: absolute;
  left: 50%;
  top: -48px;
  width: 24px;
  height: 44px;
  margin-left: -12px;
  fill: none;
  stroke: var(--teal-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-foot {
  margin-top: 24px;
  padding: 20px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--navy);
  text-align: center;
}
.flow-foot p { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.flow-values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}
.flow-values li {
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Questions ---------- */

.faq-group + .faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 16px; }
.faq { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
details[open] { border-color: #b9ded9; box-shadow: var(--shadow); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: -4px 4px 0 0;
  border: solid var(--teal-ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
details[open] > summary::after { margin-top: 6px; transform: rotate(-135deg); }
summary:hover { color: var(--teal-ink); }
.answer { padding: 0 20px 18px; color: var(--muted); }
.answer > :last-child { margin-bottom: 0; }
.answer ul { margin: 0 0 1em; padding-left: 1.2em; }
.answer li { margin-bottom: 4px; }

/* ---------- Policy pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 4px; }

/* ---------- Call to action ---------- */

.cta {
  display: grid;
  gap: 24px;
  background: var(--teal-soft);
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; max-width: 36rem; }
.cta .actions { margin-top: 0; }
@media (min-width: 960px) {
  .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .cta .actions { flex-direction: column; align-items: stretch; }
}

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

.site-footer { background: var(--teal-tint); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; padding-top: 56px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
}
.foot-h { color: var(--navy); font-size: 1rem; letter-spacing: 0.02em; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-block; padding: 5px 0; color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal-ink); text-decoration: underline; }
.site-footer address { margin-top: 8px; }
.site-footer p { margin: 0; }
.logo-tile { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.logo-tile img { height: 72px; width: auto; }
.site-footer .foot-cqc { margin-top: 40px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.foot-cqc strong { color: var(--navy); }
.site-footer .foot-cqc a { display: inline; padding: 0; color: var(--teal-ink); font-weight: 700; text-decoration: underline; }
.site-footer .foot-cqc a:hover { color: var(--navy); }
.legal { margin-top: 28px; padding-block: 20px 32px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.legal p + p { margin-top: 6px; }
.legal .emergency { color: var(--navy); font-weight: 600; }

/* ---------- Motion (only when the visitor has not asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .btn, .card, summary {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  summary::after { transition: transform 0.2s ease; }
}

/* ---------- Print ---------- */

@media print {
  .topbar, .nav, .skip { display: none; }
  .site-header { position: static; }
}
