/* Heritage Home Solutions — site styles
   Palette taken from the logo. Contrast ratios checked against WCAG 2.2 AA. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1f3a4d;        /* headings, dark bands */
  --navy: #24425a;       /* logo navy */
  --text: #26323b;       /* body copy: 12.6:1 on paper */
  --muted: #4a5a66;      /* secondary copy: 7:1 on paper */
  --sage: #8fa58b;       /* logo swoosh, decorative only */
  --mist: #e6ece4;       /* soft section background */
  --paper: #f8faf7;
  --white: #ffffff;
  --amber: #e8b04b;      /* "get my offer" actions only; ink on amber 7.4:1 */
  --amber-dark: #d29a2f;
  --error: #b3261e;
  --line: #cfd8cc;
  --focus: #0b63ce;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 76px;
  --line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;            /* 18px: comfortable for every reader */
  line-height: var(--line-height);
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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 link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .8rem 1.2rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font: inherit; font-weight: 750; font-size: 1.05rem; line-height: 1.2;
  border-radius: var(--radius-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-offer { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-offer:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; }
.brand img { width: 196px; height: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.primary-nav a {
  display: block; padding: .55rem .8rem; color: var(--ink); font-weight: 650; text-decoration: none; border-radius: var(--radius-s);
}
.primary-nav a:hover { background: var(--mist); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.header-cta { padding-inline: 1.1rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-phone .phone-num { display: none; }
  .header-phone { width: 48px; height: 48px; justify-content: center; border: 2px solid var(--line); border-radius: var(--radius-s); }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 48px; padding: 0 .9rem; font: inherit; font-weight: 700; color: var(--ink);
    background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(31,58,77,.35);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .15rem; }
  .primary-nav a { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .primary-nav .nav-offer { margin-top: .75rem; }
  .primary-nav .nav-offer a { border: 0; text-align: center; }
  .brand img { width: 148px; }
}
@media (min-width: 961px) { .primary-nav .nav-offer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,40,54,.93) 0%, rgba(20,40,54,.84) 45%, rgba(20,40,54,.55) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .45em; }
.hero-lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); max-width: 34ch; color: #f1f5f2; }
.never-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.never-list li { display: flex; align-items: center; gap: .75rem; font-weight: 650; font-size: 1.1rem; }
.never-list .tick {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: var(--ink); flex: none;
}
.never-list .tick svg { width: 18px; height: 18px; }
.hero-call { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: #e3ebe6; }
.hero-call a { color: var(--white); font-weight: 800; font-size: 1.35rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.hero-call a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
}

/* ---------- Offer form ---------- */
.offer-card {
  background: var(--white); color: var(--text);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
  border-top: 6px solid var(--amber);
}
.offer-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); margin-bottom: .25em; }
.offer-card .form-intro { color: var(--muted); font-size: 1rem; margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; color: var(--ink); }
.field .req { color: var(--muted); font-weight: 500; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--white);
  border: 2px solid #8696a1; border-radius: var(--radius-s);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3a4d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.money { position: relative; }
.money span { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.money input { padding-left: 1.8rem; }
.field .hint { font-size: .92rem; color: var(--muted); }
.field .error-msg { display: none; color: var(--error); font-size: .95rem; font-weight: 650; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error .error-msg { display: flex; gap: .35rem; }
.form-error-summary {
  display: none; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: var(--radius-s);
  border: 2px solid var(--error); background: #fdf1f0; color: #7a1a14; font-weight: 650;
}
.form-error-summary.is-visible { display: block; }
.form-error-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; font-weight: 500; }
.form-error-summary a { color: #7a1a14; }
.form-legal { font-size: .88rem; color: var(--muted); margin-top: .9rem; line-height: 1.5; }
.form-actions { margin-top: 1.2rem; }
.hp-field { display: none; }
html.a11y-text-2 .form-grid, html.a11y-text-3 .form-grid { grid-template-columns: 1fr; }
.site-footer address { font-style: normal; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #e9efeb; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-ink .section-head p { color: #d4dfd9; }

/* Property types */
.types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.types li { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.5rem 1.1rem 1.4rem 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.3; }
.types svg { width: 46px; height: 46px; color: var(--navy); }
@media (max-width: 900px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .types { grid-template-columns: repeat(2, 1fr); } }

/* Situations: the interactive centerpiece */
.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .75rem; }
.situation-btn {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .95rem 1.1rem; font: inherit; font-weight: 700; font-size: 1.1rem; text-align: left; color: var(--white);
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.35); border-radius: var(--radius-s);
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.situation-btn::after { content: "+"; font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--amber); }
.situation-btn:hover, .situation-btn:focus-visible { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.situation-btn:hover::after, .situation-btn:focus-visible::after { color: var(--ink); }
.section-ink :focus-visible { outline-color: #9cc8ff; }
.situations-note { margin-top: 1.75rem; color: #d4dfd9; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 70%; }
.split blockquote { margin: 1.75rem 0 0; padding-left: 1.2rem; border-left: 4px solid var(--sage); font-weight: 650; color: var(--ink); font-size: 1.2rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { order: -1; } .split-media img { aspect-ratio: 16 / 10; } }

/* Benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.benefits li { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; }
.benefits .icon-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--navy); }
.benefits .icon-badge svg { width: 30px; height: 30px; }
.benefits h3 { margin-bottom: .3em; }
.benefits p { color: var(--muted); }
@media (max-width: 720px) { .benefits { grid-template-columns: 1fr; } }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.35rem; background: var(--ink); color: var(--white);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.55rem; left: 4rem; right: -.75rem; height: 2px; background: var(--sage);
}
.steps p { color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { padding-top: 0; padding-left: 4.4rem; min-height: 3.1rem; }
  .steps li:not(:last-child)::after { top: 3.5rem; bottom: -1.6rem; left: 1.5rem; right: auto; width: 2px; height: auto; }
}

/* FAQ */
.faq { max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem .25rem; font-weight: 750; font-size: 1.15rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--navy); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .25em; }
.faq .answer { padding: 0 .25rem 1.4rem; color: var(--muted); }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: .2em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Interior page heading */
.page-head { background: var(--ink); color: #e3ebe6; padding-block: clamp(2.75rem, 7vw, 4.75rem); }
.page-head h1 { color: var(--white); margin-bottom: .3em; }
.page-head p { font-size: 1.2rem; max-width: 46ch; }

/* Team */
.person { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.person img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 1; object-fit: cover; }
.person .role { font-weight: 700; color: var(--muted); margin-top: -.4rem; margin-bottom: 1.4rem; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person img { max-width: 260px; } }

/* Values list on About */
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.values li { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.values p { color: var(--muted); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* Offer page layout */
.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.offer-layout .offer-card { box-shadow: 0 24px 50px -30px rgba(31,58,77,.45); border: 1px solid var(--line); border-top: 6px solid var(--amber); }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 900px) { .offer-layout { grid-template-columns: 1fr; } }

/* Legal / prose pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose .updated { color: var(--muted); font-weight: 600; }
.prose address { font-style: normal; }

/* Thank-you */
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.5rem; }
.thanks-icon svg { width: 40px; height: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: #17303f; color: #d6e0da; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1.05rem; color: var(--white); margin-bottom: .9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--white); }
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { color: #c3d0c9; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: #b8c6be; font-size: .95rem; }
.site-footer :focus-visible { outline-color: #9cc8ff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar: call or start an offer from anywhere */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(31,58,77,.35);
  }
  .mobile-bar .btn { min-height: 50px; padding-inline: .6rem; }
  body { padding-bottom: 76px; }
  :root { --a11y-bottom: 88px; }
}

/* =========================================================
   Accessibility toolbar
   ========================================================= */
.a11y-launch {
  position: fixed; left: 1rem; bottom: var(--a11y-bottom, 1rem); z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--focus); color: var(--white);
  border: 3px solid var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.3);
  cursor: pointer;
}
.a11y-launch svg { width: 32px; height: 32px; }
.a11y-launch:hover { background: #084c9e; }
.a11y-launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.a11y-panel {
  position: fixed; left: 1rem; bottom: calc(var(--a11y-bottom, 1rem) + 68px); z-index: 80;
  width: min(360px, calc(100vw - 2rem)); max-height: calc(100vh - var(--a11y-bottom, 1rem) - 100px); overflow: auto;
  background: var(--white); color: var(--text);
  border: 2px solid var(--ink); border-radius: var(--radius-l);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  padding: 1.1rem 1.1rem 1.2rem;
  font-family: var(--font); font-size: 1rem; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.a11y-panel-head h2 { font-size: 1.2rem; margin: 0; }
.a11y-close { width: 44px; height: 44px; display: grid; place-items: center; background: var(--mist); color: var(--ink); border: 0; border-radius: 50%; cursor: pointer; }
.a11y-close svg { width: 22px; height: 22px; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; border: 2px solid var(--line); border-radius: var(--radius-s); margin-bottom: .6rem; }
.a11y-size span { font-weight: 700; color: var(--ink); }
.a11y-size output { min-width: 3.2rem; text-align: center; font-weight: 700; }
.a11y-size button {
  width: 44px; height: 44px; font: inherit; font-size: 1.4rem; font-weight: 800; line-height: 1;
  background: var(--ink); color: var(--white); border: 0; border-radius: var(--radius-s); cursor: pointer;
}
.a11y-size button:disabled { background: #a7b2b9; cursor: not-allowed; }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-toggle {
  min-height: 56px; padding: .6rem .7rem; text-align: left;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
}
.a11y-toggle::after { content: ""; flex: none; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--ink); }
.a11y-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--mist); }
.a11y-toggle[aria-pressed="true"]::after {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .9rem; }
.a11y-reset { min-height: 44px; padding: .5rem 1rem; font: inherit; font-weight: 700; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-s); cursor: pointer; }
.a11y-foot a { font-weight: 650; font-size: .95rem; }

/* --- Settings applied by the toolbar (classes on <html>) --- */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }

html.a11y-readable body, html.a11y-readable button, html.a11y-readable input,
html.a11y-readable select, html.a11y-readable textarea { font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif !important; }
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { letter-spacing: 0; }

html.a11y-spacing body { --line-height: 1.9; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; }
html.a11y-spacing p { margin-bottom: 1.6em; }

html.a11y-links a:not(.btn):not(.skip-link) { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff3c4 !important; color: #1a1a1a !important; outline: 1px solid #8a6d00; }
html.a11y-links .btn, html.a11y-links .situation-btn { outline: 3px dashed currentColor; outline-offset: 3px; }

html.a11y-contrast {
  --ink: #000; --navy: #000; --text: #000; --muted: #000; --mist: #fff; --paper: #fff; --line: #000; --sage: #000;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .hero-media, html.a11y-contrast .split-media { display: none; }
html.a11y-contrast .hero, html.a11y-contrast .section-ink, html.a11y-contrast .page-head, html.a11y-contrast .site-footer { background: #000 !important; color: #fff; }
html.a11y-contrast .hero-lede, html.a11y-contrast .hero-call, html.a11y-contrast .section-ink .section-head p,
html.a11y-contrast .situations-note, html.a11y-contrast .footer-brand p, html.a11y-contrast .footer-bottom { color: #fff !important; }
html.a11y-contrast .offer-card, html.a11y-contrast .a11y-panel { border: 3px solid #000; }
html.a11y-contrast .btn-offer { background: #ffd200; border-color: #000; color: #000; }
html.a11y-contrast .field input, html.a11y-contrast .field select, html.a11y-contrast .field textarea { border-color: #000; }
html.a11y-contrast .situation-btn { border-color: #fff; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 21-13 2 8 15-6 3-8-15-11 9z' fill='black' stroke='white' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

html.a11y-noimg img:not(.brand-logo), html.a11y-noimg .hero-media, html.a11y-noimg .split-media { visibility: hidden; }
html.a11y-noimg .split-media, html.a11y-noimg .hero-media { display: none; }

html.a11y-guide .reading-guide { display: block; }
.reading-guide {
  display: none; position: fixed; left: 0; right: 0; height: 14px; z-index: 65; pointer-events: none;
  background: rgba(11,99,206,.22); border-block: 2px solid var(--focus); transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-bar, .a11y-launch, .a11y-panel, .hero-media, .site-footer .footer-grid { display: none !important; }
  body { padding: 0; }
}

/* Utilities */
.mt-l { margin-top: 1.75rem; }
.situations-note a { color: var(--white); font-weight: 700; }
.steps-vertical { grid-template-columns: 1fr; gap: 2rem; }
.steps-vertical li { padding-top: 0; padding-left: 4.4rem; min-height: 3.1rem; }
.steps-vertical li:not(:last-child)::after { top: 3.5rem; bottom: -1.6rem; left: 1.5rem; right: auto; width: 2px; height: auto; }
