/* Miracle Home Health of Wisconsin — design system
   Palette: slate-blue #48718F (primary) · red #DC0105 (accent, from logo) */

:root {
  --primary: #48718F;
  --primary-dark: #395B74;
  --primary-darker: #2C4859;
  --primary-tint: #EDF2F5;
  --primary-soft: #F4F8FA;
  --accent: #D2440E;       /* Pumpkin orange — fills/graphics, white-text buttons (4.59:1), focus ring */
  --accent-dark: #B23A0C;  /* button hover (white 5.99:1) */
  --accent-text: #C43F0D;  /* orange AS text — passes 4.5 on white/soft/tint (5.17/4.93/4.58) */

  --ink: #1E2A33;      /* headings */
  --body: #45555F;     /* body text */
  --muted: #636F79;
  --line: #E4EAEE;
  --white: #FFFFFF;
  --bg-soft: #F7FAFB;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(30, 42, 51, 0.06), 0 4px 14px rgba(30, 42, 51, 0.05);
  --shadow: 0 6px 24px rgba(30, 42, 51, 0.09);
  --shadow-lg: 0 18px 50px rgba(30, 42, 51, 0.14);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-text); }
/* WCAG 1.4.1: links inside running prose must be distinguishable without color — underline them.
   Structural links (nav, footer columns, cards, buttons) stay clean. */
main p a, main li a, .callout a { text-decoration: underline; text-underline-offset: 0.15em; }
/* WCAG 2.4.7 / 1.4.11: two-color keyboard focus indicator — accent outline plus a white
   halo so it clears 3:1 on BOTH light page surfaces and dark footer/hero. Survives resets. */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff; border-radius: 3px;
}
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 980px; }

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--body); }

.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.65rem 1rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(210, 68, 14, 0.30); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--secondary { background: var(--primary); color: #fff; }
.btn--secondary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn--ghost-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
/* Header capped near the content width so the logo/nav/CTA sit close together instead of spreading */
.site-header .container { max-width: 1400px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; height: 96px; }
/* Two-logo lockup: Miracle (→home) + divider + MHH CCS Ancillary (→CCS page) */
.logo-lockup { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { width: 172px; }
.logo-divider { width: 1px; height: 48px; background: var(--line); flex: none; }
.ccs-link { display: inline-flex; align-items: center; }
.ccs-link img { height: 42px; width: auto; display: block; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.05rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: var(--ink); font-weight: 500; font-size: 1rem;
  padding: 0.5rem 0.3rem; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { background: var(--primary-tint); color: var(--primary-dark); }
.site-nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
.header-phone:hover { color: var(--accent-text); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---- Header responsive (placed AFTER the base header rules so these overrides win) ---- */
/* Both logos stay visible at every width (per Arkadiy). The full 8-item nav needs ~1320px beside the
   big two-logo lockup, so below 1320 the nav collapses to a hamburger while both logos remain. */
@media (max-width: 1365px) {
  .site-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem 1.5rem 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
}
/* Progressively shrink the two logos so they always fit beside the hamburger + Request Care */
@media (max-width: 860px) { .logo-link img { width: 150px; } .ccs-link img { height: 34px; } .logo-divider { height: 44px; } }
@media (max-width: 680px) { .logo-link img { width: 120px; } .ccs-link img { height: 26px; } .logo-divider { height: 32px; } }
/* Below ~580px two wide wordmarks can't sit beside the CTA → single logo; compact button on small phones */
@media (max-width: 580px) { .logo-divider, .ccs-link { display: none; } }
@media (max-width: 480px) { .header-cta .btn { padding: 0.6rem 1.05rem; font-size: 0.9rem; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(72,113,143,0.10) 0%, rgba(72,113,143,0) 55%),
    var(--primary-soft);
  padding: clamp(1rem, 2.5vw, 1.75rem) 0;
  overflow: hidden;
}
.hero .container { max-width: 1600px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46rem) 444px; gap: 2.75rem; align-items: center; justify-content: center; }
/* Full-width company-name band on top of the two-column hero */
.hero-topline { margin-bottom: clamp(0.6rem, 1.6vw, 1rem); }
/* Company name — prominent, one line on top (verified 6.72:1 on --primary-soft, see a11y spec) */
.hero .hero-brandname { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--primary-dark); margin: 0 0 0.4rem; max-width: none; white-space: nowrap; }
/* Brand motto in the footer (white on --primary-darker = 9.64:1) */
.footer-motto { font-family: "Poppins", sans-serif; font-style: italic; font-weight: 600; color: #fff; font-size: 1.1rem; margin: 0.1rem 0 0.7rem; }
.hero h1 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin-bottom: 0.35em; }
@media (max-width: 560px) { .hero .hero-brandname { white-space: normal; } }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.12rem; max-width: 46rem; margin-bottom: 1.15rem; }
.hero-actions { display: flex; flex-wrap: nowrap; gap: 0.85rem; margin-bottom: 1.15rem; }
.hero-actions .btn { white-space: nowrap; }
@media (max-width: 640px) { .hero-actions { flex-wrap: wrap; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: var(--primary-dark); }
.hero-badge svg { color: var(--accent); flex-shrink: 0; }
.hero-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.section-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #5B85A3); color: #fff; padding: clamp(2.75rem, 6vw, 4.5rem) 0; text-align: center; }
.page-hero--photo { background-size: cover; background-position: center 30%; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.2rem; max-width: 760px; margin: 0 auto; }
.page-hero .eyebrow { color: #EAF2F6; }

/* ---------- Image placeholders (swap for real images later) ---------- */
.img-ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(72,113,143,0.06) 0 12px, rgba(72,113,143,0.10) 12px 24px);
  border: 1.5px dashed rgba(72,113,143,0.35);
  border-radius: var(--radius); color: var(--primary-dark);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.9rem; text-align: center;
  min-height: 220px; overflow: hidden;
}
.img-ph::before { content: "🖼"; font-size: 1.6rem; margin-right: 0.5rem; opacity: 0.6; }
.img-ph span { opacity: 0.85; }
.img-ph--hero { aspect-ratio: 4 / 3.4; min-height: 300px; box-shadow: var(--shadow-lg); }
.img-ph--wide { aspect-ratio: 16 / 7; }
.img-ph--square { aspect-ratio: 1 / 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--primary-tint); }
.section--lift { padding-top: clamp(0.5rem, 1.5vw, 1rem); }
.section--lift .section-head { margin-bottom: 1rem; max-width: 1160px; }
.section--lift .section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.section--lift .section-head p { font-size: 1rem; }
.section-head { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* ---------- Trust / credentials bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 1.25rem 2.5rem; padding: 1.35rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.98rem; color: var(--primary-dark); }
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-logo { display: block; flex-shrink: 0; }
.trust-logo--seal { height: 72px; width: auto; }
.trust-logo--dhhs { height: 60px; width: auto; }

/* Footer credential badges */
.footer-badges { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.footer-brand .footer-badges img { height: 60px; width: auto; background: #fff; padding: 0.4rem 0.55rem; border-radius: 8px; margin-bottom: 0; }

/* About — The Miracle Difference */
.miracle-diff { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem 2.5rem; align-items: start; background: var(--primary-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2.5rem; margin: 2.5rem 0; }
.miracle-diff h2 { grid-column: 1 / -1; margin: 0; }
.miracle-diff img { width: 100%; height: auto; margin-top: 0.5rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .miracle-diff { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
  .miracle-diff img { width: 200px; margin: 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius);
  padding: 1.85rem; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.service-card { display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(72,113,143,0.35); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 1.1rem;
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; }
.service-card .read-more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--primary); }
.service-card:hover .read-more { color: var(--accent-text); }

/* Feature list (why choose us) */
.feature { display: flex; gap: 1rem; }
.feature-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.25em; }
.feature p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { position: relative; padding-left: 4rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: "Poppins"; font-weight: 700; font-size: 1.15rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: "Poppins"; font-weight: 700; font-size: 2.4rem; color: var(--primary); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* Callout / sister company */
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm);
}
.callout > :first-child { margin-top: 0; }
/* Highlighted summary line under the four recovery dimensions */
.dim-note {
  text-align: center;
  max-width: 720px;
  margin: 2.25rem auto 0;
  padding: 1.4rem 1.75rem;
  background: var(--primary-tint);
  border-top: 4px solid var(--accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}
.callout > :last-child { margin-bottom: 0; }

/* Homepage "At a glance" highlight cards */
.highlight-card { display: flex; flex-direction: column; }
.highlight-img { width: 100%; height: 200px; object-fit: cover; object-position: center 25%; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.highlight-card h3 { margin: 0 0 0.7rem; }
.highlight-card ul { margin: 0 0 1.6rem; padding-left: 1.15rem; }
.highlight-card ul li { margin-bottom: 0.45rem; color: var(--body); }
/* At a Glance: wider middle card + responsive 2-column insurance list */
.grid--glance { grid-template-columns: 1fr 1.5fr 1fr; }
.section--lift .container { max-width: 1300px; }
.highlight-card ul.two-col { column-count: 2; column-gap: 1.75rem; }
.highlight-card ul.two-col li { break-inside: avoid; }
.highlight-card .btn { align-self: flex-start; margin-top: auto; }

/* Insurance plans / programs accepted */
.plan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.plan-grid li { display: flex; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.plan-grid li::before { content: "\2713"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Testimonial */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem; box-shadow: var(--shadow-sm); font-size: 1.2rem; color: var(--ink); line-height: 1.6;
}
.quote p { margin: 0 0 1rem; }
.quote footer { font-size: 0.98rem; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary-darker), var(--primary)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.96rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(72,113,143,0.15);
}
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-darker); color: #C7D5DE; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand img { width: 180px; background: #fff; padding: 0.5rem 0.7rem; border-radius: 10px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #C7D5DE; text-decoration: underline; text-underline-offset: 0.15em; }
.site-footer a:hover { color: #fff; }
.footer-contact p { margin: 0 0 0.4rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; text-align: center; font-size: 0.9rem; color: #A2B4C0; }
.footer-legal a { color: #A2B4C0; text-decoration: underline; }

/* ---------- Confirmation toast ---------- */
.toast {
  position: fixed; top: 1.25rem; left: 50%; transform: translate(-50%, -160%); z-index: 1200;
  display: flex; align-items: center; gap: 0.75rem; width: 460px; max-width: 90vw;
  padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg); border-left: 6px solid var(--primary);
  opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast--success { border-left-color: #1E9E5A; }
.toast--error { border-left-color: var(--accent); }
.toast-icon { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: var(--primary); }
.toast--success .toast-icon { background: #1E9E5A; }
.toast--error .toast-icon { background: var(--accent); }
.toast-message { margin: 0; flex: 1; font-size: 1rem; line-height: 1.45; }
.toast-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* ---------- Contact widget ---------- */
.lh-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1100; }
.lh-widget-launcher { width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(210,68,14,0.38); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.lh-widget-launcher:hover { transform: scale(1.07); }
.lh-widget-panel { position: absolute; right: 0; bottom: 74px; width: 320px; max-width: calc(100vw - 2.5rem); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.lh-widget-header { background: var(--primary); color: #fff; padding: 1rem 1.15rem 0.9rem; position: relative; }
.lh-widget-header strong { display: block; font-size: 1.12rem; font-family: "Poppins"; }
.lh-widget-header span { font-size: 0.95rem; opacity: 0.9; }
.lh-widget-close { position: absolute; top: 0.5rem; right: 0.7rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.lh-widget-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.lh-widget-btn { display: block; width: 100%; text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--primary-dark); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.lh-widget-btn:hover { background: var(--primary-tint); border-color: var(--primary); }
.lh-widget-form { display: flex; flex-direction: column; gap: 0.55rem; }
.lh-widget-form input, .lh-widget-form textarea { width: 100%; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }

/* ---------- Accessibility widget ---------- */
.a11y-widget { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 1100; }
.a11y-launcher { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--primary); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.a11y-launcher:hover { transform: scale(1.07); }
.a11y-panel { position: absolute; left: 0; bottom: 70px; width: 300px; max-width: calc(100vw - 2.5rem); max-height: 70vh; overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding-bottom: 0.9rem; }
.a11y-header { background: var(--primary); color: #fff; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; }
.a11y-header strong { font-family: "Poppins"; font-size: 1.08rem; }
.a11y-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; padding: 0.9rem; }
.a11y-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.8rem 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; text-align: center; }
.a11y-item:hover { border-color: var(--primary); background: var(--primary-tint); }
.a11y-item.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.a11y-ic { font-size: 1.3rem; line-height: 1; }
.a11y-reset { display: block; width: calc(100% - 1.8rem); margin: 0 0.9rem; padding: 0.7rem; border: none; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Accessibility effect modes ---------- */
html.a11y-links a { text-decoration: underline !important; outline: 2px solid var(--accent); outline-offset: 2px; }
html.a11y-font, html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4, html.a11y-font p, html.a11y-font a, html.a11y-font li, html.a11y-font span, html.a11y-font label, html.a11y-font input, html.a11y-font textarea, html.a11y-font button { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: 0.02em !important; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 2 !important; letter-spacing: 0.04em !important; word-spacing: 0.1em !important; }
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 24 24'%3E%3Cpath d='M5.5 3.2v17.6l4.8-4.8 2.8 6.1 2.6-1.2-2.8-6h6.8z' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .site-header, html.a11y-contrast .hero, html.a11y-contrast .section, html.a11y-contrast .section--soft, html.a11y-contrast .section--tint, html.a11y-contrast .card, html.a11y-contrast .form-card, html.a11y-contrast .callout, html.a11y-contrast .site-footer, html.a11y-contrast .page-hero, html.a11y-contrast .cta-band { background: #000 !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4, html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span, html.a11y-contrast strong, html.a11y-contrast label { color: #fff !important; }
html.a11y-contrast a { color: #ff0 !important; }
html.a11y-contrast .btn { background: #ff0 !important; color: #000 !important; border-color: #ff0 !important; }
html.a11y-contrast img { filter: grayscale(1) contrast(1.15); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4, .grid--glance { grid-template-columns: 1fr; }
  .highlight-card ul.two-col { column-count: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
