/* =============================================================
   Hansen Insurance and Benefits LLC — shared stylesheet
   Static site. All values reference the token layer below.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* color */
  --navy-900: #0F2447;
  --navy-700: #17356A;
  --navy-500: #2B5091;
  --red-600:  #C0202E;
  --red-700:  #9C1826;
  --cream-50: #FAF8F4;
  --cream-100:#F1ECE3;
  --wheat-200:#E3D9C8;
  --white:    #FFFFFF;

  /* type */
  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  --fs-body:    1.1875rem;  /* 19px floor */
  --fs-body-lg: 1.375rem;   /* 22px */
  --fs-small:   1.0625rem;  /* 17px absolute minimum */
  --fs-h3:      1.75rem;
  --fs-h2:      clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h1:      clamp(2.75rem, 7vw, 5.5rem);
  --fs-stat:    clamp(3rem, 8vw, 6rem);

  --lh-body: 1.65;
  --lh-heading: 1.08;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* misc */
  --radius: 4px;
  --measure: 34rem;          /* ~62ch body max */
  --content-max: 1440px;
  --gutter: var(--space-5);
  --header-h: 72px;
  --shadow-card: 0 8px 32px rgba(15, 36, 71, 0.10);
  --shadow-lift: 0 16px 48px rgba(15, 36, 71, 0.14);
}

@media (min-width: 900px) {
  :root { --gutter: var(--space-7); --header-h: 88px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
/* Lenis owns scrolling when active — CSS smooth scrolling would fight it
   and corrupt ScrollTrigger measurements. */
html.js-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-700);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
}
h1 { font-size: var(--fs-h1); font-weight: 800; color: var(--navy-900); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: var(--space-2); }

a { color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }

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

strong { font-weight: 600; }

/* visible focus everywhere */
:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4); top: var(--space-4);
  z-index: 200;
  background: var(--navy-700); color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }

/* ---------- 3. Layout helpers ---------- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 56rem; }

.section { position: relative; padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--cream-100); }
.section--navy { background: var(--navy-700); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* paper grain — sections only, never on text cards or forms */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (max-width: 639.98px) {
  .grain::after { display: none; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: var(--space-4);
}
.eyebrow::after {
  content: "";
  display: block;
  width: var(--space-7);
  height: 2px;
  background: var(--red-600);
  margin-top: var(--space-2);
}
.section--center .eyebrow::after { margin-inline: auto; }
.section--center { text-align: center; }
.section--center p, .section--center ul { margin-inline: auto; }

.lead { font-size: var(--fs-body-lg); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--secondary {
  background: var(--white);
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn--secondary:hover { background: var(--cream-100); color: var(--navy-900); }
/* on navy bands */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--navy-700); }
.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-6); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-50);
  border-bottom: 1px solid var(--wheat-200);
  height: var(--header-h);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-right: auto;
}
.brand__flag { width: 44px; height: auto; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--navy-700);
  line-height: 1;
}
.brand:hover .brand__name { color: var(--navy-500); }

.nav { display: none; }
.nav__list {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--navy-500); }
.nav__link[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--red-600);
}

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.header__phone { display: inline-flex; }
.header__schedule { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy-700);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 99;
  background: var(--cream-50);
  border-bottom: 1px solid var(--wheat-200);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--gutter) var(--space-6);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__list { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.mobile-menu__list a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px solid var(--wheat-200);
}
.mobile-menu__list a[aria-current="page"] { color: var(--red-600); }
.mobile-menu .btn { width: 100%; margin-bottom: var(--space-3); }

@media (min-width: 500px) {
  .header__schedule { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .nav-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 499.98px) {
  /* phone stays visible; compress it to number only */
  .header__phone { padding-inline: var(--space-3); font-size: var(--fs-small); }
  .brand__flag { width: 36px; }
  .brand__name { font-size: 1.2rem; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: var(--space-8) var(--space-9); overflow: hidden; }
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.hero__copy .lead { margin-block: var(--space-5) var(--space-6); }
.hero__media { position: relative; max-width: 520px; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--wheat-200);
  border-radius: var(--radius);
}
.hero__media .photo {
  position: relative;
  border: 4px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 55fr 45fr; }
}
@media (max-width: 899.98px) {
  .hero__media { order: 2; margin-inline: auto; }
}

/* ---------- 7. Photos & placeholders ---------- */
.photo img { width: 100%; height: auto; object-fit: cover; }
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--wheat-200);
  color: var(--navy-700);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: var(--space-5);
  border-radius: var(--radius);
  width: 100%;
}

/* ---------- 8. Find Your Coverage (signature card) ---------- */
.finder-wrap {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * var(--space-8));
}
.finder {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: var(--space-6);
}
.finder__title { margin-bottom: var(--space-5); }
.finder__grid { display: grid; gap: var(--space-3); }
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 96px;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy-900);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.tile__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body-lg);
  line-height: 1.25;
  color: var(--navy-700);
  margin-bottom: var(--space-1);
}
.tile__sub { display: block; font-size: var(--fs-small); color: var(--navy-900); }
.tile__arrow {
  flex: none;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--red-600);
  transition: transform 180ms ease;
}
.tile:hover, .tile:focus-visible {
  background: var(--cream-100);
  border-color: var(--red-600);
}
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: translateX(4px); }
@media (min-width: 640px) { .finder__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .finder__grid { grid-template-columns: repeat(4, 1fr); }
  .tile { flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .tile__arrow { align-self: flex-end; }
  .finder { padding: var(--space-7); }
}

/* ---------- 9. Stats strip ---------- */
.stats { padding-block: var(--space-8); }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-5);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat-200);
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 10. Cards / pillars ---------- */
.cards { display: grid; gap: var(--space-5); }
.card {
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  display: block;
  width: var(--space-7);
  height: 3px;
  background: var(--red-600);
  margin-bottom: var(--space-5);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { flex: 1; }
.card__link {
  font-weight: 600;
  color: var(--navy-500);
  text-decoration: none;
  align-self: flex-start;
  padding-block: var(--space-2); /* tap target */
}
.card__link:hover { color: var(--red-600); }
.card__link .arr { display: inline-block; transition: transform 180ms ease; }
.card__link:hover .arr { transform: translateX(4px); }
@media (min-width: 640px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 11. Story ---------- */
.story__portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  max-width: 44rem;
  margin: 0 auto var(--space-7);
}
.story__portraits .photo {
  border: 4px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.story__portraits figcaption {
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--navy-700);
  text-align: center;
}
.story__body {
  font-family: var(--font-serif);
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  max-width: 33rem; /* ~60ch serif */
  margin-inline: auto;
}
.story__body p { max-width: none; }
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: var(--navy-700);
  border-left: 3px solid var(--red-600);
  padding-left: var(--space-5);
  margin: var(--space-6) 0 0;
}

/* ---------- 12. Steps ---------- */
.steps { display: grid; gap: var(--space-7); counter-reset: step; }
.step { position: relative; padding-left: var(--space-6); }
.step__num {
  position: absolute;
  left: 0; top: -0.35em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--wheat-200);
  z-index: 0;
  letter-spacing: -0.02em;
}
.step__body { position: relative; z-index: 1; padding-left: var(--space-6); }
.step h3 { margin-bottom: var(--space-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 12b. Carriers we work with ---------- */
.carriers {
  list-style: none;
  padding: 0;
  margin: var(--space-6) auto 0;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.carrier {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  text-align: center;
}
.carrier img { max-height: 56px; width: auto; }
.carrier__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.25;
  color: var(--navy-700);
  letter-spacing: 0.01em;
}
.carriers__note {
  font-size: var(--fs-small);
  text-align: center;
  max-width: 44rem;
  margin: var(--space-5) auto 0;
}
@media (min-width: 640px) { .carriers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .carriers { grid-template-columns: repeat(6, 1fr); }
  .carrier { padding-inline: var(--space-3); } }

/* ---------- 13. Trust / reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: var(--fs-small);
}
.review-card p { max-width: none; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--navy-700); }

/* ---------- 14. CTA band ---------- */
.cta p { max-width: none; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-block: var(--space-6) var(--space-5);
}
.cta__emails { font-size: var(--fs-body); }
.cta__emails a { color: var(--wheat-200); }
.cta__emails a:hover { color: var(--white); }

/* ---------- 15. Compliance blocks ---------- */
.notice {
  background: var(--cream-100);
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-small);
  color: var(--navy-900);
}
.notice p { max-width: none; margin-bottom: 0; }
.notice p + p { margin-top: var(--space-3); }
.notice--soa { background: var(--white); }
.notice--soa h3 { margin-bottom: var(--space-3); }
.notice--soa .btn { margin-top: var(--space-4); }

.external-note { font-size: var(--fs-small); margin-top: var(--space-2); }

/* ---------- 16. Scheduler ---------- */
.scheduler-fallback {
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  text-align: center;
}
.scheduler-fallback .btn-row { justify-content: center; margin-top: var(--space-5); }

/* ---------- 17. Interior page hero ---------- */
.page-hero {
  background: var(--cream-100);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--wheat-200);
}
.page-hero h1 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: var(--space-4); }
.page-hero .lead { margin-bottom: 0; }

.split {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 12px;
  background: var(--red-600);
  border-radius: 2px;
}

.defbox {
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}
.defbox h3 { font-size: var(--fs-body-lg); margin-bottom: var(--space-2); }
.defbox p { margin-bottom: 0; max-width: none; }

/* ---------- 18. Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--wheat-200);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.contact-card h3,
.contact-card__name { font-size: var(--fs-h3); line-height: 1.15; margin-bottom: var(--space-3); }
.contact-card p { max-width: none; }
.contact-card .btn { margin-top: var(--space-2); }
.hours { list-style: none; padding: 0; max-width: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--wheat-200);
}

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--wheat-200); }

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--cream-50);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-small);
}
.footer a { color: var(--cream-50); text-decoration: none; }
.footer a:hover { color: var(--wheat-200); text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer__brand .brand__name { color: var(--white); }
.footer__brand p { margin-top: var(--space-4); }
.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat-200);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-3); }
.footer__legal {
  border-top: 1px solid var(--navy-700);
  padding-top: var(--space-6);
}
.footer__legal p { max-width: none; font-size: var(--fs-small); }
.footer__disclaimer {
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.footer__copyright { margin-bottom: 0; color: var(--wheat-200); }
/* Vendor credit: quietest line in the footer — smaller, dimmed, brightens on hover. */
.footer__credit { margin: var(--space-2) 0 0; font-size: 0.85em; color: var(--wheat-200); opacity: 0.6; }
.footer__credit a { color: inherit; text-decoration: none; }
.footer__credit:hover, .footer__credit:focus-within { opacity: 1; }
html.a11y-contrast .footer__credit { color: var(--white); opacity: 1; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- 20. Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 21. Accessibility options panel ---------- */
.a11y-fab {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  background: var(--navy-700);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.a11y-fab:hover { background: var(--navy-500); }
.a11y-fab svg { width: 26px; height: 26px; flex: none; }

.a11y-panel {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + 68px);
  z-index: 150;
  width: min(24rem, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--white);
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: var(--space-5);
}
.a11y-panel__title {
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-4);
}
.a11y-group { margin-bottom: var(--space-4); }
.a11y-group__label {
  display: block;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: var(--space-2);
}
.a11y-choices { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.a11y-choice {
  flex: 1 1 auto;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  color: var(--navy-700);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.a11y-choice:hover { background: var(--cream-100); }
.a11y-choice.is-active { background: var(--navy-700); color: var(--white); }
.a11y-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.a11y-switch:hover { background: var(--cream-100); }
.a11y-switch__state {
  flex: none;
  min-width: 3.2em;
  text-align: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius);
  background: var(--cream-100);
  color: var(--navy-700);
  font-size: var(--fs-small);
}
.a11y-switch.is-on { border-color: var(--red-600); }
.a11y-switch.is-on .a11y-switch__state { background: var(--red-600); color: var(--white); }
.a11y-reset {
  width: 100%;
  min-height: 48px;
  background: var(--cream-100);
  border: 2px solid var(--wheat-200);
  border-radius: var(--radius);
  color: var(--navy-700);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.a11y-reset:hover { background: var(--wheat-200); }

@media print { .a11y-fab, .a11y-panel { display: none; } }

/* ---------- 22. Visitor accessibility preferences ---------- */
/* Text size — everything is rem-based, so scaling the root scales the site. */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 127%; }

/* Underline all links */
html.a11y-links a { text-decoration: underline !important; }

/* High contrast: white ground, near-black text, hard borders. */
html.a11y-contrast {
  --cream-50: #FFFFFF;
  --cream-100: #FFFFFF;
  --navy-900: #000814;
  --navy-700: #0A1B3D;
  --navy-500: #123071;
  --red-600: #A31220;
  --red-700: #7E0D18;
}
html.a11y-contrast body { color: var(--navy-900); }
html.a11y-contrast .grain::after { display: none; }
html.a11y-contrast .header,
html.a11y-contrast .mobile-menu { border-bottom: 2px solid var(--navy-900); }
html.a11y-contrast .card,
html.a11y-contrast .defbox,
html.a11y-contrast .review-card,
html.a11y-contrast .contact-card,
html.a11y-contrast .scheduler-fallback,
html.a11y-contrast .carrier,
html.a11y-contrast .finder { border: 2px solid var(--navy-900); box-shadow: none; }
html.a11y-contrast .section--alt { border-block: 2px solid var(--navy-900); }
html.a11y-contrast .stat__label,
html.a11y-contrast .cta__emails a { color: var(--white); }
html.a11y-contrast .footer { background: #000814; }
html.a11y-contrast .footer__heading,
html.a11y-contrast .footer__copyright { color: var(--white); }
html.a11y-contrast .step__num { color: #C9BFA9; }

/* Stop moving effects (visitor toggle — mirrors prefers-reduced-motion) */
html.a11y-motion-off *,
html.a11y-motion-off *::before,
html.a11y-motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
html.a11y-motion-off { scroll-behavior: auto; }
html.a11y-motion-off .grain::after { display: none; }

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain::after { display: none; }
}
