/* Facility Focus: site styles
   Direction: "People-led reassurance" (styling board, concept 01).
   Mobile first. Colours start from the build brief palette; contrast checked for AA. */

:root {
  --cobalt: #004aad;        /* actions, links */
  --cobalt-deep: #003a88;   /* hover / pressed */
  --navy: #102d58;          /* headings */
  --ink: #263746;           /* body text */
  --ink-soft: #4a5b6b;      /* secondary text, 7:1 on white */
  --paper: #ffffff;
  --warm: #f7f6f2;          /* quiet surfaces, used sparingly */
  --sky: #eaf4fb;           /* client story band */
  --line: #d6e0e8;
  --focus: #f2b705;         /* focus ring, visible on white and navy */

  /* package accents: decoration only, never a safety rating */
  --bronze: #8a5a2b;
  --silver: #66727f;
  --gold: #7a5b0c;           /* 6:1 on white */

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1280px;
  --gutter: 20px;

  --step--1: 1rem;                              /* 16 minimum for secondary text */
  --step-0: 1.0625rem;                          /* 17 body */
  --step-1: 1.25rem;                            /* 20 */
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.6vw, 4rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h3 { letter-spacing: -0.01em; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38em; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- way back to the parent site ---------- */
.parent-bar { background: var(--navy); font-size: 14px; line-height: 1.5; padding: 8px 0; }
.parent-bar a { color: #dfe8f3; text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 28px; }
.parent-bar a:hover, .parent-bar a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem/1.2 "Poppins", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn--secondary { background: #fff; color: var(--cobalt); border-color: var(--cobalt); }
.btn--secondary:hover { background: var(--sky); color: var(--cobalt-deep); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--small { min-height: 44px; padding: 9px 20px; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #fff; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--navy); display: inline-flex; flex-direction: column; gap: 6px; line-height: 1; padding: 8px 0; }
.brand__logo { height: 24px; width: auto; }
.brand__parent { font-size: .75rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
@media (min-width: 960px) { .brand__logo { height: 28px; } }
.brand:hover { color: var(--navy); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: none; border: 1.5px solid var(--line); border-radius: 999px; color: var(--navy);
  font: 600 .9375rem "Poppins", sans-serif; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 359px) { .nav-toggle { padding: 8px 12px; } .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .brand__logo { height: 21px; } }
.site-nav { display: none; width: 100%; padding: 4px 0 20px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 14px 2px; font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line); font-size: 1.0625rem;
}
.site-nav li a[aria-current="page"] { color: var(--cobalt); }
.site-nav .btn { margin-top: 18px; width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; width: auto; padding: 0; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav li a { border: 0; padding: 8px 0; font-size: .96875rem; }
  .site-nav li a:hover { color: var(--cobalt); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--sky { background: var(--sky); }
.section--warm { background: var(--warm); }
.section--navy { background: var(--navy); color: #d8e3ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); margin-bottom: 16px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1680px) { :root { --wrap: 1480px; --gutter: 48px; } }
@media (min-width: 960px) { .section { padding: 112px 0; } .section--tight { padding: 72px 0; } }

/* ---------- hero ----------
   Phones: copy and primary action first, then the photograph edge to edge.
   Desktop: full-width photograph with the copy on its light left side. */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__inner { position: relative; z-index: 2; padding-block: 32px 32px; }
.hero h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.hero__copy .lede { margin: 22px 0 28px; max-width: 32em; }
.hero__for { margin-top: 22px; color: var(--ink-soft); font-size: var(--step--1); }
.hero__media { display: block; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 74% 30%; }
@media (min-width: 600px) and (max-width: 959px) { .hero__media img { aspect-ratio: 16 / 9; object-position: 70% 30%; } }
@media (min-width: 960px) {
  .hero { min-height: clamp(560px, 44vw, 720px); display: grid; align-items: center; }
  .hero__inner { padding-block: 72px; }
  .hero__copy { max-width: 500px; }
  .hero h1 { font-size: clamp(2.75rem, 1.2rem + 2.6vw, 4rem); max-width: 11.5ch; }
  /* photo bleeds off the right edge and fills the height; its left edge dissolves into white */
  .hero__media { position: absolute; top: 0; bottom: 0; right: 0; width: 68%; z-index: 0; }
  .hero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 78% 35%; }
  .hero::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 32%; width: 22%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 100%);
  }
}
@media (min-width: 1280px) { .hero__copy { max-width: 540px; } }

/* ---------- client story band: quote on pale blue, pool photograph alongside ---------- */
.story { display: grid; background: var(--sky); }
.story__quote { padding: 56px var(--gutter); }
.story__label { font-size: 1rem; letter-spacing: 0; font-weight: 600; color: var(--cobalt); margin-bottom: 18px; }
.story blockquote { margin: 0; }
.story blockquote p { font-size: var(--step-2); line-height: 1.38; color: var(--navy); font-weight: 500; letter-spacing: -0.012em; }
.story blockquote p::before { content: "\201C"; }
.story blockquote p::after { content: "\201D"; }
.story__by { margin-top: 22px; font-size: var(--step--1); color: var(--ink); }
.story__by b { display: block; color: var(--navy); font-weight: 600; font-size: 1rem; }
.story__media { min-height: 220px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .story__quote { padding: 88px 56px 88px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .story__inner { max-width: 36em; }
  /* angled edge where the water meets the quote, as on the styling board */
  .story__media { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -8%; }
}

/* ---------- work delivered: carousel ---------- */
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.work__head .section-head { margin-bottom: 0; }
.carousel__controls { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-play { fill: currentColor; stroke: none; }
.icon-btn .i-play, .icon-btn.is-paused .i-pause { display: none; }
.icon-btn.is-paused .i-play { display: block; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  border-radius: var(--radius-l);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.slide {
  scroll-snap-align: start; display: grid; gap: 24px; align-items: center;
  background: var(--warm); border-radius: var(--radius-l); padding: 28px 24px;
}
.slide__logo { display: grid; place-items: center; background: #fff; border-radius: var(--radius-m); height: 150px; padding: 18px; }
.slide__logo img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.slide__logo--wide img { max-height: 48px; }
.slide__kind { color: var(--cobalt); font-weight: 600; font-size: var(--step--1); margin: 0 0 6px; }
.slide h3 { font-size: var(--step-2); margin-bottom: 10px; }
.slide p:last-child { max-width: 40em; }
@media (min-width: 760px) {
  .slide { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 36px 40px; }
  .slide__logo { height: 200px; }
  .slide__logo img { max-height: 150px; }
}
.carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.carousel__dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; }
.carousel__dots button[aria-current="true"]::before { background: var(--navy); }

/* ---------- plant / procedures / people: overlapping circles ---------- */
.ppp { display: grid; gap: 28px; grid-template-areas: "head" "fig" "try" "list"; }
.ppp__head { grid-area: head; } .venn { grid-area: fig; } .ppp__try { grid-area: try; } .ppp__list { grid-area: list; }
.ppp__head h2 { font-size: var(--step-3); margin-bottom: 14px; }
.ppp__head .lede { max-width: 30em; }
.venn { margin: 0 auto; width: 100%; max-width: 460px; }
.venn svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Flat, tonal circles: no outlines, overlaps build up through multiply, and the shared
   centre is solid navy so the point of the diagram reads at a glance. */
.venn__circles circle { fill: var(--cobalt); fill-opacity: .13; stroke: none; mix-blend-mode: multiply; transition: fill-opacity .25s; }
.venn__circles circle.is-off { fill-opacity: 0; stroke: var(--ink-soft); stroke-width: 1.25; stroke-opacity: .5; stroke-dasharray: 3 6; stroke-linecap: round; }
.venn__core circle { fill: var(--navy); transition: opacity .25s; }
.venn.is-broken .venn__core { opacity: 0; }
.venn text { font: 600 19px "Poppins", sans-serif; fill: var(--navy); text-anchor: middle; dominant-baseline: central; letter-spacing: .12em; text-transform: uppercase; transition: opacity .25s; }
.venn .venn__centre { font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; fill: #fff; }
.venn text.is-off { opacity: .35; }
.venn.is-broken .venn__centre { fill: #a3321f; }
.ppp__prompt { font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.whatif { display: flex; flex-wrap: wrap; gap: 8px; }
.whatif button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  font: 600 .9375rem "Poppins", sans-serif; cursor: pointer;
}
.whatif button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.whatif__out { margin-top: 14px; min-height: 3.3em; max-width: 34em; }
.ppp__list { margin: 0; display: grid; gap: 18px; }
.ppp__list dt { font-weight: 600; color: var(--navy); font-size: var(--step-1); }
.ppp__list dd { margin: 2px 0 0; }
@media (min-width: 720px) { .ppp__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 960px) {
  .ppp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head fig" "try fig" "list list"; gap: 28px 72px; align-items: start; }
  .venn { max-width: 500px; align-self: center; }
  .ppp__list { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
}

/* ---------- scope switch (segmented) ---------- */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--warm); border: 1px solid var(--line); gap: 4px; max-width: 100%; }
.switch button {
  min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 0; background: none;
  font: 600 .96875rem "Poppins", sans-serif; color: var(--ink); cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- packages ---------- */
.packages__top { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.packages__top .section-head { margin-bottom: 0; }
.tiers { display: grid; gap: 16px; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff;
}
.tier::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.tier--bronze { --accent: var(--bronze); }
.tier--silver { --accent: var(--silver); }
.tier--gold { --accent: var(--gold); }
.tier__level { font-weight: 600; color: var(--accent); font-size: .9375rem; margin: 0; }
.tier h3 { font-size: var(--step-2); }
.tier__what { font-weight: 600; color: var(--navy); margin: 0; }
.tier__price { font-size: var(--step-2); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.tier__outcome { color: var(--ink-soft); margin: 0 0 8px; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.packages__more { margin-top: 28px; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  @supports (grid-template-rows: subgrid) {
    .tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; gap: 10px; }
  }
}

/* ---------- Ask Andy: introduction and enquiry form ---------- */
.andy { display: grid; gap: 48px; }
.andy__about { display: grid; gap: 28px; align-content: start; }
.andy__photo { margin: 0; }
.andy__photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 28%; border-radius: var(--radius-l); }
.andy h2 { font-size: var(--step-3); margin-bottom: 18px; }
.creds__title { margin: 20px 0 0; font-weight: 600; color: var(--navy); }
.creds { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 8px; }
.creds li { padding-left: 26px; position: relative; }
.creds li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(-45deg); }
.contact-lines { display: grid; gap: 6px; margin: 8px 0 0; }
.contact-lines a { font-weight: 600; font-size: var(--step-1); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a[data-contact="email"] { font-size: 1rem; }
.contact-lines a:hover { text-decoration: underline; }
.andy__form { background: #fff; border-radius: var(--radius-l); padding: 28px 22px; }
.andy__form h3 { font-size: var(--step-2); margin-bottom: 8px; }
.andy__form > p { color: var(--ink-soft); margin-bottom: 20px; }
@media (min-width: 720px) {
  .andy__about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
  .andy__photo img { aspect-ratio: 3 / 4; }
  .andy__form { padding: 36px 40px; }
}
@media (min-width: 1100px) {
  .andy { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
  .andy__about { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; }
.faq__q button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; min-height: 56px; background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 1.125rem/1.4 "Poppins", sans-serif; color: var(--navy);
}
.faq__q button::after {
  content: ""; flex: 0 0 12px; height: 12px; border-right: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq__q button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 0 24px; max-width: 42em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c9d6e4; padding: 56px 0 40px; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand__parent { color: #c9d6e4; }
.footer__grid { display: grid; gap: 32px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer__grid li a { display: inline-block; padding: 10px 0; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 24px; display: grid; gap: 8px; }
.footer__logo { width: 220px; height: auto; }
.footer__parent { display: inline-block; margin-bottom: 14px; }
.footer__parent img { width: 170px; height: auto; }
.todo { background: rgba(242,183,5,.16); color: inherit; padding: 1px 6px; border-radius: 4px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 40em; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: 1rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 "Poppins", sans-serif; color: var(--ink); background: #fff;
  border: 1.5px solid #8ea3b6; border-radius: var(--radius-s); padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: var(--step--1); font-weight: 500; margin: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: 0 0 22px; accent-color: var(--cobalt); }
.check-row label { font-weight: 400; color: var(--ink); }
.hp { position: absolute; left: -9999px; }

.status { border-radius: var(--radius-m); padding: 16px 18px; font-size: 1rem; }
.status:empty { display: none; }
.status--info { background: var(--sky); color: var(--navy); }
.status--ok { background: #e6f4ec; color: #14532d; }
.status--demo { background: #fff6dc; color: #5c4400; border: 1px solid #ecd58f; }
.status--error { background: #fdecea; color: #7a1c14; }
.status b { display: block; margin-bottom: 2px; }

/* ---------- facilities check (in page, navy section) ---------- */
.check__layout { display: grid; gap: 32px; }
.check__intro-col h2 { font-size: var(--step-3); max-width: 18ch; margin-bottom: 18px; }
.check__hook { display: block; margin-top: 10px; color: var(--focus); }   /* yellow on navy, 7.5:1 */
.check__intro-col .lede { color: #d8e3ef; }
.check__ask { color: #d8e3ef; }
.check__ask a, .check__private a { color: #fff; font-weight: 600; }
.check__private { color: #b9c9da; }
.check__panel { background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: 22px 20px 24px; scroll-margin-top: 0; } /* html scroll-padding already clears the sticky header */
.check__panel:focus { outline: none; }
@media (min-width: 720px) { .check__panel { padding: 40px 44px 36px; } }
@media (min-width: 960px) {
  .check__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .check__intro-col { position: sticky; top: 110px; }
  .check.is-results .check__layout { grid-template-columns: minmax(0, 1fr); }
  .check.is-results .check__intro-col { display: none; }
  .check.is-results .check__panel { max-width: 900px; margin: 0 auto; width: 100%; }
}
.check__progress { margin-bottom: 20px; }
.check__progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; margin-bottom: 8px; }
.bar { height: 8px; background: #e3eaf1; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cobalt); border-radius: 99px; transition: width .3s; }
.check__panel h3 { font-size: var(--step-2); line-height: 1.22; margin-bottom: 12px; color: var(--navy); }
.check__panel h3:focus { outline: none; }
.check legend { padding: 0; margin: 0; width: 100%; }
.check__intro { color: var(--ink-soft); margin-bottom: 24px; }
.q-hint { color: var(--ink-soft); font-size: var(--step--1); margin: -4px 0 16px; line-height: 1.5; }

.choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 11px 16px;
  border: 1.5px solid #b9c7d4; border-radius: var(--radius-m); cursor: pointer; background: #fff;
  font-weight: 500; color: var(--ink); transition: border-color .12s, background-color .12s;
}
.choice label:hover { border-color: var(--cobalt); }
.choice label .mark {
  flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #8ea3b6; display: grid; place-items: center;
}
.choice input:checked + label { border-color: var(--cobalt); background: var(--sky); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--cobalt); }
.choice input:checked + label .mark { border-color: var(--cobalt); background: var(--cobalt); }
.choice input:checked + label .mark::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__sub { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.choice--big label { align-items: flex-start; padding: 18px 20px; }
.choice--big label .mark { margin-top: 3px; }
.choice--big strong { display: block; font-size: 1.125rem; color: var(--navy); }

.check__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.check__nav .btn { min-width: 0; flex: 0 1 150px; padding-left: 18px; padding-right: 18px; }
.check__nav .btn--primary { flex-basis: 190px; margin-left: auto; }
.check__skip { text-align: right; margin-top: 4px; }

/* Small screens: keep Back / Next / Skip pinned to the bottom of the screen while a question
   is in view, and tighten the question layout so fewer answers fall below the fold. */
@media (max-width: 719px) {
  .check__bar {
    position: sticky; bottom: 0; z-index: 5; background: #fff;
    margin: 12px -20px -24px; padding: 10px 20px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    box-shadow: 0 -1px 0 var(--line), 0 -10px 18px -12px rgba(16, 45, 88, .25);
  }
  .check__bar .check__nav { margin-top: 0; }
  .check__bar .check__skip { margin-top: 0; }
  .check__bar .linkish { min-height: 40px; padding: 8px 4px; }
  .check__progress { margin-bottom: 14px; }
  .check__panel h3 { font-size: 1.3125rem; line-height: 1.25; margin-bottom: 10px; }
  .check .req { margin-bottom: 8px; }
  .check .check__intro { margin-bottom: 16px; }
  .check .choice label { min-height: 48px; padding: 9px 14px; gap: 12px; }
  .check .why { margin-top: 10px; }

  /* Fit each question on one phone screen: badge without its sentence (the same point is
     under "Why we ask this"), smaller question, and answers two-by-two. */
  .check .req__text { display: none; }
  .check__progress { margin-bottom: 10px; }
  .check__progress-text { margin-bottom: 6px; }
  .check__panel h3 { font-size: 1.1875rem; line-height: 1.28; }
  .check .q-hint { margin: -2px 0 10px; font-size: .9375rem; line-height: 1.4; }
  .choices--answers { grid-template-columns: 1fr 1fr; }
  .choices--answers .q-hint, .choices--answers .choice--wide { grid-column: 1 / -1; }
  .choices--answers .choice label { min-height: 50px; justify-content: flex-start; }
  .choices--answers .choice--unsure .choice__sub { display: none; }
  .choices--answers .choice--na .choice__sub { font-size: .875rem; line-height: 1.35; }
  .check .why summary { min-height: 40px; }
  .check__panel { padding-top: 16px; scroll-margin-top: -8px; }   /* sit closer under the sticky header */
}
.linkish { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 500 .9375rem "Poppins", sans-serif; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.check__note { margin-top: 20px; font-size: var(--step--1); color: var(--ink-soft); }
.why { margin-top: 18px; }
.why summary, .method summary { cursor: pointer; font-weight: 600; color: var(--cobalt); min-height: 48px; display: flex; align-items: center; gap: 10px; list-style: none; }
.why summary::-webkit-details-marker, .method summary::-webkit-details-marker { display: none; }
.why summary::before, .method summary::before {
  content: ""; flex: 0 0 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
details[open] > summary::before { transform: rotate(45deg); }
.why p { font-size: var(--step--1); color: var(--ink-soft); margin: 4px 0 0; }

/* results */
.results { max-width: 880px; margin: 0 auto; }
.results__head { padding: 8px 0 28px; }
.results__head h3 { font-size: var(--step-3); margin-bottom: 14px; }
.results__limit { background: var(--sky); border-left: 4px solid var(--cobalt); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 1rem; color: var(--navy); }
.results-block { border-top: 1px solid var(--line); padding: 28px 0 4px; margin-top: 24px; }
.results-block > h4 { font-size: var(--step-2); margin-bottom: 8px; color: var(--navy); }
.results h5 { color: var(--navy); margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.areas { display: grid; gap: 0; margin-top: 12px; }
.area { padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .area { border-top: 3px solid var(--line); }
}
.area h5 { font-size: 1.125rem; }
.area__state { font-weight: 600; margin: 6px 0 4px; display: flex; gap: 8px; align-items: center; }
.area__state i { font-style: normal; flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; color: #fff; }
.area__state--good { color: #1d6b43; } .area__state--good i { background: #1d6b43; }
.area__state--look { color: #7a5200; } .area__state--look i { background: #7a5200; }
.area__state--focus { color: #a3321f; } .area__state--focus i { background: #a3321f; }
.area__state--unknown { color: var(--ink-soft); } .area__state--unknown i { background: none; border: 2px dashed var(--ink-soft); color: var(--ink-soft); }
.area--focus { border-top-color: #a3321f; } .area--look { border-top-color: #b98a1c; } .area--good { border-top-color: #1d6b43; }
.area p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.finding { padding: 20px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; }
.finding h5 { font-size: 1.125rem; margin-bottom: 6px; }
.finding__meta { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 8px; }
.finding__ask { font-size: 1rem; margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--sky); }
.critical { background: #fdf1ee; border: 1px solid #f0c4b8; border-radius: var(--radius-m); padding: 16px 18px; margin: 16px 0 4px; }
.critical b { color: #7a1c14; }
.rec { display: grid; gap: 8px; margin-top: 18px; padding: 22px; border-radius: var(--radius-m); border: 1px solid var(--line); position: relative; }
.rec::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.rec h5 { font-size: var(--step-1); }
.next-actions { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 720px) { .next-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } .next-actions .btn { padding-left: 14px; padding-right: 14px; } }
.method p, .method li { font-size: var(--step--1); color: var(--ink-soft); }
.answers-list { margin: 12px 0 0; padding-left: 20px; font-size: var(--step--1); }
.answers-list li { margin-bottom: 6px; }

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

/* Package enquiry: offer to attach the facilities check report */
.attach-report { background: var(--sky); border-radius: var(--radius-s); padding: 14px 16px; }
.attach-report label { font-weight: 400; color: var(--ink); line-height: 1.5; }
.attach-report label b { display: block; color: var(--navy); font-weight: 600; }
.attach-report label span { color: var(--navy); font-weight: 500; }

/* Cookie banner: fixed card at the bottom, equal-weight Accept and Decline. */
.cookie-banner {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 640px; margin: 0 auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  box-shadow: 0 18px 40px -16px rgba(16, 45, 88, .45);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .9375rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-banner__actions { width: 100%; } .cookie-banner__actions .btn { flex: 1; } }
@media print { .cookie-banner { display: none !important; } }

/* Printed / saved-as-PDF results: just the report, branded, with Andy's details at the end. */
.print-head, .print-foot { display: none; }
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  .site-header, .site-footer, .parent-bar, .skip, .next-actions, #reportForm, .no-print { display: none !important; }
  .check { background: #fff; padding: 0; }
  .results-block { border: 0; padding: 12px 0; }

  /* when results are showing, print only the results */
  main:has(.check.is-results) > section:not(.check) { display: none !important; }
  .check.is-results .check__intro-col, .check.is-results #checkLive { display: none !important; }
  .check.is-results .check__layout { display: block; }
  .check.is-results .check__panel { padding: 0; border-radius: 0; max-width: none; }
  body, .check__panel { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .print-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
  .print-head img { height: 30px; width: auto; }
  .print-head div { text-align: right; }
  .print-head__title { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.125rem; }
  .print-head__meta { margin: 2px 0 0; color: var(--ink-soft); font-size: .875rem; }

  .print-foot { display: block; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--navy); break-inside: avoid; }
  .print-foot__lead { margin: 0 0 6px; font-weight: 700; color: var(--navy); font-size: 1.125rem; }
  .print-foot__contact { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; color: var(--cobalt); }
  .print-foot__legal { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--ink-soft); }

  .critical, .rec, .finding, .results__head { break-inside: avoid; }
  h4, h5 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- requirement type (visible on every question and finding) ---------- */
.req { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; font-size: var(--step--1); color: var(--ink-soft); }
.req strong, .finding__meta .req {
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; line-height: 1.4;
}
.req strong { color: var(--navy); background: var(--sky); }
.req--statutory strong, .finding__meta .req--statutory { color: #fff; background: #a3321f; }
.req--practice strong, .finding__meta .req--practice { color: var(--navy); background: var(--sky); }
.req--accred strong, .finding__meta .req--accred { color: var(--ink-soft); background: var(--warm); }
.finding__meta .req { margin: 0 8px 0 0; }

/* ---------- overall rating ---------- */
.rating { display: grid; gap: 14px 28px; padding: 22px; border-radius: var(--radius-m); margin-bottom: 22px; color: #fff; }
.rating--act { background: #a3321f; }
.rating--gaps { background: #8a5a00; }
.rating--strong { background: #1d6b43; }
.rating--incomplete { background: var(--ink-soft); }
.rating__label { margin: 0; font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; display: flex; align-items: center; gap: 14px; }
.rating__label i { font-style: normal; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; }
.rating--act .rating__label i { color: #a3321f; } .rating--gaps .rating__label i { color: #8a5a00; }
.rating--strong .rating__label i { color: #1d6b43; } .rating--incomplete .rating__label i { color: var(--ink-soft); }
.rating__score { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 12px; }
.rating__num { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rating__num small { font-size: 1rem; font-weight: 600; opacity: .85; margin-left: 2px; }
.rating__caption { font-weight: 600; opacity: .9; padding-bottom: 4px; }
.rating__score .bar { grid-column: 1 / -1; background: rgba(255,255,255,.3); }
.rating__score .bar i { background: #fff; }
.rating__counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--step--1); }
.rating__counts b { font-size: 1.25rem; margin-right: 4px; }
@media (min-width: 720px) {
  .rating { grid-template-columns: 1fr minmax(200px, 260px); padding: 26px 28px; }
  .rating__counts { grid-column: 1 / -1; }
}
.results__head > h3 { margin-top: 4px; }

/* ---------- what-if reset ---------- */
.whatif button[data-without=""] { border-style: dashed; }
