/* Stairlift Aftercare — shared styles.
   Audience is older adults and their families, so: 19px base, high contrast,
   large tap targets, visible focus. Light theme only, deliberately — this is a
   brochure-style consumer site and the audience skews to light UI.
   No webfonts: fewer requests, faster LCP, nothing to break. */

:root {
  --paper:      #F3F6F7;
  --card:       #FFFFFF;
  --ink:        #12202A;
  --ink-2:      #46586A;
  --ink-3:      #6D8090;
  --rule:       #D9E3E8;
  --rule-soft:  #EAF0F3;

  --blue:       #0F3D56;   /* deep petrol — headings, brand */
  --blue-mid:   #1A6183;   /* links, accents */
  --blue-tint:  #E6EEF3;

  --ochre:      #B5760F;   /* the single action colour */
  --ochre-dark: #8F5C08;
  --ochre-tint: #FBF2E0;

  --good:       #1C6B4B;
  --good-tint:  #E4F1EB;

  --shadow-sm:  0 1px 2px rgba(18,32,42,.06);
  --shadow:     0 6px 24px -10px rgba(18,32,42,.18);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;

  --wrap: 1080px;
  --prose: 68ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; color: var(--blue); }
h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 750; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
p  { margin-bottom: 1.05em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.05em 1.2em; max-width: var(--prose); }
li { margin: .4em 0; }
a { color: var(--blue-mid); text-underline-offset: 3px; }
a:hover { color: var(--ochre-dark); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }

/* ---------- header ---------- */
.site-head {
  background: var(--card); border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px; flex: 0 0 30px;
  background: var(--blue); position: relative;
}
/* three ascending steps — a stair, drawn not fetched */
.brand .mark::before {
  content: ""; position: absolute; inset: 8px 7px 8px 7px;
  background:
    linear-gradient(var(--ochre), var(--ochre)) 0 100% / 5px 5px no-repeat,
    linear-gradient(var(--ochre), var(--ochre)) 5px 100% / 5px 10px no-repeat,
    linear-gradient(var(--ochre), var(--ochre)) 10px 100% / 6px 14px no-repeat;
}
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ochre); color: #fff; font-weight: 700; font-size: 18px;
  padding: 15px 28px; border-radius: 8px; border: none; cursor: pointer;
  text-decoration: none; min-height: 54px; box-shadow: var(--shadow-sm);
  transition: background .15s ease;
}
.btn:hover { background: var(--ochre-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--blue); border: 2px solid var(--rule);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--card); border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero { background: var(--card); border-bottom: 1px solid var(--rule); padding: 58px 0 52px; }
.hero .eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ochre-dark); margin-bottom: 14px;
}
.hero .lede { font-size: 21px; color: var(--ink-2); margin-top: 18px; max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-points {
  display: flex; gap: 10px 30px; flex-wrap: wrap; margin-top: 28px;
  padding-top: 22px; border-top: 1px solid var(--rule-soft);
  font-size: 16.5px; color: var(--ink-2); font-weight: 600;
}
.hero-points span { display: flex; align-items: center; gap: 9px; }
.hero-points span::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--good); flex: 0 0 9px;
}

/* ---------- sections ---------- */
section { padding: 54px 0; }
section.tint { background: var(--card); border-block: 1px solid var(--rule); }
.section-intro { margin-bottom: 30px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
section.tint .card { background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 17.5px; color: var(--ink-2); }

/* numbered steps — the order is the process, so numbers carry meaning */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 17.5px; color: var(--ink-2); }

/* price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--rule-soft); }
thead th {
  background: var(--blue-tint); color: var(--blue); font-size: 14px;
  letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* callout */
.note {
  background: var(--ochre-tint); border-left: 5px solid var(--ochre);
  padding: 20px 24px; border-radius: 0 9px 9px 0; margin: 26px 0;
}
.note.calm { background: var(--blue-tint); border-left-color: var(--blue-mid); }
.note .lbl {
  display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ochre-dark); margin-bottom: 7px;
}
.note.calm .lbl { color: var(--blue-mid); }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--rule); border-radius: 9px;
  padding: 4px 22px; margin-bottom: 12px;
}
section.tint details { background: var(--paper); }
summary {
  font-weight: 700; font-size: 18.5px; color: var(--blue); cursor: pointer;
  padding: 17px 0; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; color: var(--ochre); font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > p, details > ul { padding-bottom: 18px; font-size: 17.5px; color: var(--ink-2); }

/* ---------- form ---------- */
.form-band { background: var(--blue); color: #fff; padding: 56px 0; }
.form-band h2, .form-band h3 { color: #fff; }
.form-band p { color: #C9DCE7; }
/* Links inside the navy band must NOT inherit --blue-mid: #1A6183 on #0F3D56 is
   effectively invisible. Light ochre keeps the accent family and passes contrast. */
.form-band > .wrap a { color: #F0DAA6; text-decoration: underline; }
.form-band > .wrap a:hover { color: #fff; }
.form-band .form-card a { color: var(--blue-mid); }
.form-card {
  background: var(--card); border-radius: 12px; padding: 28px; box-shadow: var(--shadow);
  max-width: 560px;
}
.form-card h3 { color: var(--blue); }
.form-card p { color: var(--ink-2); font-size: 16.5px; }
.form-grid { display: grid; gap: 16px; margin-top: 20px; }
label { display: block; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 13px 15px;
  border: 2px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink);
  min-height: 52px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-mid); outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--ink-3); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 700; font-size: 17px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--good); }
.form-status.err { color: #A5311F; }

.split { display: grid; grid-template-columns: 1fr minmax(320px, 560px); gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot {
  background: #0B2C3E; color: #A9C2D0; padding: 44px 0 34px; font-size: 16px;
}
.site-foot a { color: #DCE9F0; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-foot h4 { color: #fff; font-size: 16px; margin-bottom: 10px; letter-spacing: .02em; }
.site-foot ul { list-style: none; margin: 0; }
.site-foot li { margin: .35em 0; }
.site-foot .legal {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 14.5px; color: #8FAABA;
}

/* ---------- breadcrumb ---------- */
.crumb { font-size: 15.5px; color: var(--ink-3); padding: 18px 0 0; }
.crumb a { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  .site-head .wrap { min-height: 64px; }
  .nav { gap: 16px; }
}

/* ==== LEAD CAPTURE STANDARD (SYS-WEB-001, asbestos-register pattern) ====
   Hero = copy left + form card right, above the fold on every money page.
   Nav CTA pill, mobile sticky bar, closing CTA band. The form itself carries
   id="get-matched"; the pill, bar and band all link to that anchor. */
.nav .nav-cta {
  background: var(--ochre); color: #fff; font-weight: 700; font-size: 16px;
  padding: 10px 18px; border-radius: 100px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover { background: var(--ochre-dark); color: #fff; text-decoration: none; }

.hero-split { display: grid; grid-template-columns: 1.05fr minmax(340px, 480px); gap: 44px; align-items: start; }
.hero .lead-card { max-width: none; }
.lead-card .card-badge {
  display: inline-block; background: var(--good-tint); color: var(--good);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; margin-bottom: 12px;
}
.lead-card .form-grid { margin-top: 16px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid.two-col > .full, .form-grid.two-col > .hp, .form-grid.two-col > .btn { grid-column: 1 / -1; }
.lead-card label { font-size: 15px; margin-bottom: 4px; }
.lead-card input, .lead-card select, .lead-card textarea { font-size: 17px; padding: 11px 13px; min-height: 48px; }
.lead-card textarea { min-height: 84px; }
.lead-card .btn { width: 100%; }
.lead-card .form-note { margin-top: 12px; font-size: 14.5px; }

/* mobile sticky bar: hidden by form.js while the form itself is on screen */
.lead-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ochre);
  box-shadow: 0 -6px 20px rgba(18,32,42,.18);
}
.lead-sticky a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; min-height: 48px;
}
.lead-sticky a:hover { color: #fff; }
.lead-sticky.is-hidden { display: none !important; }

/* closing band: heading, one line, one button back to the form */
.cta-band { background: var(--blue); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9DCE7; }
.cta-band p a { color: #F0DAA6; text-decoration: underline; }
.cta-band p a:hover { color: #fff; }
.cta-band .btn { margin-top: 10px; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  /* the card must start inside the first phone screen, so the extras go */
  .hero .hero-actions, .hero .hero-points { display: none; }
  .hero .lede { font-size: 18.5px; margin-top: 12px; }
  .form-grid.two-col { grid-template-columns: 1fr; gap: 14px; }
  .lead-sticky { display: block; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .lead-card { padding: 22px 18px; }
  .nav .nav-cta { padding: 8px 14px; font-size: 15px; }
}
