/* Legacy Health Consultants static rebuild -- 2026-09 (MMS)
   Palette from the logo: mountains gray #808080, wave blue #0071bc.
   Every text/background pair below clears WCAG AA 4.5:1 (checked 2026-09-26):
   body #1f2933 on white 14.76, on --light 13.7; navy #123c5c on white 11.5;
   white on navy 11.5; white on --blue 5.14; --blue-dark #005a96 on white 7.23;
   --muted #4a5560 on white 7.61, on --light 7.06. */

:root {
  --blue: #0071bc;
  --blue-dark: #005a96;
  --navy: #123c5c;
  --gray: #808080;
  --text: #1f2933;
  --muted: #4a5560;
  --light: #f3f7fa;
  --line: #d6dee6;
  --white: #ffffff;
  --max: 1140px;
  --radius: 10px;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-head: "Merriweather", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
@media (max-width: 240px) { h1 { font-size: 1.35rem; } }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.topbar { background: var(--navy); color: var(--white); font-size: 0.95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.topbar a { color: var(--white); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; max-width: var(--max); margin: 0 auto; }
.brand img { width: 260px; max-width: 60vw; height: auto; }
.nav-toggle {
  display: none; background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  font: inherit; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 6px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0.1rem; display: inline-block; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue-dark); }
.site-nav .cta a { background: var(--blue); color: var(--white); padding: 0.5rem 1rem; border-radius: 6px; border-bottom: 0; }
.site-nav .cta a:hover, .site-nav .cta a:focus { background: var(--blue-dark); color: var(--white); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .site-nav a { display: block; padding: 0.6rem 0.2rem; }
  .nav-row { flex-wrap: wrap; }
}

/* buttons */
.btn {
  display: inline-block; background: var(--blue); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 6px; border: 2px solid var(--blue);
}
.btn:hover, .btn:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue-dark); }
.btn-outline:hover, .btn-outline:focus { background: var(--light); color: var(--navy); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover, .btn-light:focus { background: var(--light); color: var(--navy); border-color: var(--light); }

/* update strip */
.update-strip { background: var(--light); border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.update-strip .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.update-strip strong { color: var(--navy); }

/* hero */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; max-width: 34em; }
.hero .lead-small { font-size: 1rem; color: #b8dcf5; }
.hero img { border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; } }

/* page hero (interior) */
.page-hero { background: var(--light); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page-hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 42em; margin-bottom: 0; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 0.6rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }

/* sections */
.section { padding: 3.25rem 0; }
.section-light { background: var(--light); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.card h3 { margin-top: 0.2rem; }
.card p { flex: 1; }
.card .card-link { font-weight: 700; }
.card img { border-radius: 6px; margin-bottom: 1rem; width: 100%; height: 160px; object-fit: cover; }
.section-light .card { border-color: transparent; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col img { border-radius: var(--radius); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.5rem; position: relative; border: 1px solid var(--line); min-width: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: grid; place-items: center; font-family: var(--font-head);
}
.steps h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.team-member { display: grid; grid-template-columns: 140px 1fr; gap: 1.25rem; align-items: start; }
.team-member img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; }
.team-member .placeholder { width: 140px; height: 140px; border-radius: 50%; background: var(--light); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); font-family: var(--font-head); font-size: 2rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .team-member { grid-template-columns: 1fr; } }

.carriers { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; }
.carriers img { width: 150px; height: auto; background: var(--white); border-radius: 6px; padding: 0.4rem; border: 1px solid var(--line); }
.carrier-note { text-align: center; color: var(--muted); font-size: 0.95rem; max-width: 50em; margin: 1.25rem auto 0; }

.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { margin: 0.25rem 0 0; }
.cta-band a.tel { color: var(--white); font-weight: 700; }

/* article / prose */
.prose { max-width: 46em; min-width: 0; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll-help { display: none; font-size: 0.9rem; margin: 0 0 0.5rem; color: var(--muted); }
.table-scroll table { min-width: 34rem; }
@media (max-width: 640px) { .table-scroll-help { display: block; } }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--light); color: var(--navy); }
.prose caption { text-align: left; font-weight: 700; color: var(--navy); padding-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.callout { background: var(--light); border-left: 5px solid var(--blue); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
.sources { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.sources ul { padding-left: 1.2em; }
.disclaimer { font-size: 0.92rem; color: var(--muted); border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
.layout-side > *, .two-col > *, .footer-grid > * { min-width: 0; }
@media (max-width: 960px) { .layout-side { grid-template-columns: minmax(0, 1fr); } }
.side-box { background: var(--light); border-radius: var(--radius); padding: 1.5rem; }
.side-box h2 { font-size: 1.2rem; margin-top: 0; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.update-list { list-style: none; padding: 0; margin: 0; }
.update-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.update-list time { color: var(--muted); font-size: 0.95rem; display: block; margin-bottom: 0.25rem; }
.update-list h2, .update-list h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); padding: 0.7rem 0.8rem; border: 2px solid #8a97a3; border-radius: 6px; background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0,113,188,0.25); }
.form-note { font-size: 0.92rem; color: var(--muted); }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding: 0.5rem 0; }
.contact-info strong { color: var(--navy); display: block; }

/* footer */
.site-footer { background: var(--navy); color: var(--white); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: var(--white); }
.site-footer a, .contact-info a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.25rem 0; }
.footer-logo { background: var(--white); border-radius: 8px; padding: 0.6rem 0.9rem; display: inline-block; margin-bottom: 1rem; max-width: 100%; }
.footer-logo img { width: 100%; max-width: 240px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.9rem; color: #b8dcf5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-bottom a { color: #b8dcf5; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.badge-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.badge-row img { width: 90px; }
.badge-row p { margin: 0; font-size: 0.95rem; color: var(--muted); }
