/* ============================================================
   Health Collider - design system (single source of truth)
   One palette, one type scale, one component set. Components may
   NOT introduce new colours or fonts - that is what "consistent"
   means here. Tokens first, then components in page order.
   ============================================================ */

/* ---------- fonts (self-hosted, swap so text paints immediately) ---------- */
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("/assets/fonts/playfair-display-latin-800-normal.woff2") format("woff2");
}
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --cream: #FAF7F3;   /* page background, ~60% */
  --navy:  #0D1B34;   /* ink, dark bands, footer, ~30% */
  --steel: #3E5C84;   /* labels, links, secondary UI */
  --soft:  #E9EDF4;   /* panels, dividers */
  --muted: #64748B;   /* secondary text */
  --accent:#E8431C;   /* decorative only (dots, focus rings) - 4.00:1 on white, fails AA for text */
  --accent-strong:#C93B14; /* text + CTA surfaces: 5.10:1 on white, 4.77:1 on cream */
  --accent-ink: #ffffff;
  --white: #ffffff;
  /* traffic-light: reserved EXCLUSIVELY for the seven-domain grid */
  --green: #1E9E6A;
  --red:   #D93636;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;

  --step: 8px;                 /* spacing base; multiples only */
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(13, 27, 52, 0.07);
  --shadow-lift: 0 8px 28px rgba(13, 27, 52, 0.12);
  --maxw: 1120px;
  --focus: 0 0 0 3px rgba(232, 67, 28, 0.4);
}

:root { color-scheme: only light; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--cream); color: var(--navy);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-weight: 400; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(34px, 5.5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
p  { max-width: 62ch; }
a  { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
strong { font-weight: 600; }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,59,20,0.28); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-on-dark { background: var(--accent-strong); color: #fff; }
.btn-on-dark:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,59,20,0.4); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,247,243,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--accent-strong); }
.nav-links .btn { padding: 9px 18px; }
/* `.nav-links a` (0,1,1) outranks `.btn-primary` (0,1,0), which was painting the header
   CTA navy-on-orange while every other primary button was white. Restore the intended ink. */
.nav-links a.btn-primary { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: 0.2s; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin: 20px 0 28px; max-width: 44ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); background: var(--white); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 18px 24px; max-width: var(--maxw); margin: 0 auto; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--steel); text-transform: uppercase; }
.trust-inner span { display: inline-flex; align-items: center; gap: 10px; }
.trust-inner span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- generic section ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 12px; display: block; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.section-alt { background: var(--white); border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); }

/* ---------- cards (services + situation), equal weight ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfd8e6; }
.card .k { font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.card ul { list-style: none; margin: 0 0 18px; }
.card ul li { position: relative; padding-left: 22px; font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 600; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent-strong); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- story band (navy) ---------- */
.band { background: var(--navy); color: #fff; }
.band .container { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: #b9c3d6; margin-top: 16px; font-size: 18px; max-width: 60ch; }
.band .eyebrow { color: #7f93b8; margin-bottom: 14px; display: block; }

/* ---------- quote (centrepiece) ---------- */
.quote { text-align: center; max-width: 46ch; margin: 0 auto; }
.quote blockquote { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.8vw, 29px); line-height: 1.32; letter-spacing: -0.01em; color: var(--navy); }
.quote blockquote::before { content: "\201C"; color: var(--accent-strong); }
.quote blockquote::after { content: "\201D"; color: var(--accent-strong); }
.quote .cite { margin-top: 20px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); font-style: normal; }

/* ---------- founders ---------- */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.founder { text-align: center; }
.founder .face { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; background: var(--soft); border: 2px solid var(--steel); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--steel); }
.founder h3 { font-size: 20px; margin-bottom: 4px; }
.founder .role { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }
.founder p { font-size: 15px; color: var(--muted); margin: 0 auto; max-width: 34ch; }

/* ---------- seven-domain grid (ONLY place traffic-light colour appears) ---------- */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.domain { background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius-sm); padding: 18px 16px; }
.domain .n { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--steel); }
.domain .t { font-weight: 600; font-size: 15.5px; margin-top: 6px; line-height: 1.3; }
.domain.out { border-style: dashed; background: transparent; }
.domain.out .n { color: var(--muted); }
.lights { display: inline-flex; gap: 6px; margin-top: 12px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.lights .g { background: var(--green); } .lights .a { background: #E0A83E; } .lights .r { background: var(--red); }

/* ---------- service detail sections ---------- */
.service-block { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--soft); scroll-margin-top: 84px; }
.service-block:last-of-type { border-bottom: 0; }
.service-block .eyebrow { display: block; margin-bottom: 12px; }
.service-block .lede { font-size: 18px; color: var(--muted); margin: 12px 0 24px; }
.feature-list { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 15.5px; }
.feature-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band .container { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta-band p { color: #b9c3d6; margin: 16px auto 26px; max-width: 48ch; }

/* ---------- newsletter band ---------- */
.news { background: var(--white); border-top: 1px solid var(--soft); }
.news .container { padding: clamp(40px, 6vw, 64px) 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.news .news-copy { max-width: 46ch; }
.news h3 { margin-bottom: 8px; }
.news p { color: var(--muted); font-size: 15.5px; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input[type=email] { padding: 12px 16px; border: 1.5px solid #cdd6e4; border-radius: var(--radius-sm); font-family: var(--sans); font-size: 15px; min-width: 240px; background: var(--cream); }
.news input[type=email]:focus-visible { border-color: var(--accent); box-shadow: var(--focus); }

/* ---------- forms (contact / booking) ---------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cdd6e4; border-radius: var(--radius-sm); font-family: var(--sans); font-size: 15px; background: var(--white); color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); box-shadow: var(--focus); }
.field textarea { min-height: 120px; resize: vertical; }
.expectation { font-size: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #b9c3d6; }
.footer .container { padding: 56px 24px 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand { color: #fff; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #7f93b8; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: #cdd6e4; text-decoration: none; font-size: 15px; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-bottom { padding-top: 22px; font-size: 13px; color: #7f93b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- "how we move the needle" list (stacked, not a card grid) ---------- */
.moves { max-width: 820px; }
.move { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--soft); }
.move:last-child { border-bottom: 1px solid var(--soft); }
.move .mn { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--accent); line-height: 1; }
.move h3 { font-size: 20px; margin-bottom: 6px; }
.move p { color: var(--muted); font-size: 16px; }

/* ---------- FAQ (objection handling; mirrors the FAQPage schema) ---------- */
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--soft); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--soft); }
.faq-item h3 { font-size: 19px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards, .founders { grid-template-columns: 1fr; }
  .domains { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  /* No-JS baseline: the nav is a stacked list in normal flow, so it is always
     reachable. Do NOT give .nav-links `display:none` here - that hid the entire
     mobile nav whenever JS was unavailable. */
  .nav-inner { flex-wrap: wrap; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 4px 0 12px; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--soft); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: none; }

  /* JS present (html.js is set by an inline script in <head>): collapse the same
     list into a toggleable drawer and reveal the hamburger. */
  .js .nav-links { position: fixed; inset: 61px 0 auto 0; width: auto; background: var(--cream); padding: 8px 24px 20px; border-bottom: 1px solid var(--soft); box-shadow: var(--shadow); display: none; }
  .js .nav-links.open { display: flex; }
  .js .nav-toggle { display: block; }
  .news .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .domains { grid-template-columns: 1fr; }
}
