/* ==========================================================================
   ECOS Medicare Solutions — Georgia build
   site.css  ·  Design system (tokens + components)
   Aesthetic: warm "field-guide / almanac" — pine green, parchment, harvest gold.
   Accessibility target: WCAG 2.2 AA, older audience (base 18px+, big tap targets).
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Color */
  --ink:        #1e2a24;   /* near-black desaturated green — body text */
  --ink-soft:   #45524b;   /* secondary text */
  --paper:      #f5f2e8;   /* warm almanac paper — page background */
  --paper-2:    #ece7d6;   /* slightly deeper paper — alternating bands */
  --surface:    #fffdf8;   /* card surface */
  --pine:       #1b5a48;   /* primary brand green */
  --pine-dark:  #123f33;   /* hover / deep green */
  --pine-tint:  #e4ede7;   /* pale green wash */
  --gold:       #b67619;   /* harvest accent (AA on paper for large text) */
  --gold-deep:  #8a5810;   /* gold for small text / borders */
  --clay:       #9c3b2c;   /* sparing warm accent + "important" notes */
  --line:       #d8d1bd;   /* hairline dividers in paper tone */
  --focus:      #1b5a48;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scale (fluid) */
  --step--1: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-0:  clamp(1.13rem, 1.08rem + 0.25vw, 1.25rem);   /* body ~18–20px */
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 3.9rem);

  /* Space + form */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  --pad-section: clamp(3rem, 2rem + 5vw, 5.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30,42,36,.06), 0 8px 26px rgba(30,42,36,.09);
  --shadow-sm: 0 1px 2px rgba(30,42,36,.07), 0 3px 10px rgba(30,42,36,.06);
  --maxw: 1140px;
  --tap: 56px; /* minimum interactive height */
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--pine-dark); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 700; }

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

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section--paper2 { background: var(--paper-2); }
.section--pine { background: var(--pine-dark); color: #f4efe1; }
.section--pine h2, .section--pine h3 { color: #fff; }
.section--pine p { color: #dfe8e2; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: .8rem;
  color: var(--gold-deep);
  margin: 0 0 .8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section--pine .eyebrow { color: #e7c486; }
.section--pine .eyebrow::before { background: #e7c486; }

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--tap);
  padding: .7rem 1.5rem;
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn--primary { background: var(--pine); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--pine-dark); color: #fff; }
.btn--gold { background: var(--gold); color: #2a1d05; }
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine-dark); border-color: var(--pine); }
.btn--ghost:hover { background: var(--pine-tint); color: var(--pine-dark); }
.btn--block { width: 100%; }
.btn--lg { font-size: var(--step-1); padding: .85rem 1.8rem; }

/* ---- Header / nav ------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pine-dark); color: #fff; padding: .9rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,242,232,.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; line-height: 1.05; }
.brand__tag { font-size: .76rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1.6rem); }
.nav__links { display: flex; gap: clamp(.6rem, 1.4vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem;
  padding: .4rem .2rem; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--pine-dark); border-bottom-color: var(--gold); }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; color: var(--pine-dark); text-decoration: none;
  font-size: 1.12rem; white-space: nowrap;
}
.header-call:hover { color: var(--clay); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero__scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; z-index: 0; }
.hero__scene svg { width: 100%; height: 100%; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 3vw, 3.2rem);
  align-items: center; padding-block: clamp(2.6rem, 2rem + 4vw, 4.6rem) clamp(8rem, 6rem + 8vw, 12rem);
}
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; align-items: center; }
.hero__nocost { margin-top: 1rem; font-weight: 700; color: var(--pine-dark); display: flex; align-items: center; gap: .5rem; }
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(7rem, 30vw, 10rem); }
}

/* ---- Lead card / form --------------------------------------------------- */
.lead-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem);
}
.lead-card__title { font-size: var(--step-1); margin-bottom: .15em; }
.lead-card__note { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap);
  padding: .6rem .85rem; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: #fff;
  border: 1.5px solid #b9b39c; border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--pine); outline: 3px solid var(--focus); outline-offset: 1px;
}
.consent {
  display: flex; gap: .65rem; align-items: flex-start;
  background: var(--pine-tint); border: 1px solid #cfe0d6;
  border-radius: var(--radius-sm); padding: .8rem .9rem; margin: .4rem 0 1rem;
}
.consent input { margin-top: .25rem; width: 22px; height: 22px; flex: none; accent-color: var(--pine); }
.consent label { font-size: .86rem; line-height: 1.45; color: var(--ink-soft); font-weight: 400; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-fineprint { font-size: .8rem; color: var(--ink-soft); margin: .6rem 0 0; }

/* ---- Trust strip -------------------------------------------------------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center; justify-content: center; padding-block: 1.3rem; }
.trust__item { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.trust__item svg { flex: none; color: var(--pine); }

/* ---- Stat band ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); margin-top: 2rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}
.stat__num { font-family: var(--display); font-weight: 600; font-size: var(--step-2); color: var(--pine-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 700; margin: .5rem 0 .2rem; }
.stat__sub { font-size: .85rem; color: var(--ink-soft); }
.source-note { margin-top: 1.3rem; font-size: .82rem; color: var(--ink-soft); }

/* ---- Card grids --------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__icon { width: 46px; height: 46px; color: var(--pine); margin-bottom: .8rem; }
.card h3 { margin-bottom: .35em; }
.card p { font-size: 1.02rem; color: var(--ink-soft); }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--pine-dark); padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; }
.card__link:hover { color: var(--clay); gap: .65rem; }
.help-card { border-left: 4px solid var(--gold); }

/* ---- Guide callout ------------------------------------------------------ */
.callout {
  display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: center;
  background: var(--pine-tint); border: 1px solid #cfe0d6; border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
}
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } }

/* ---- Author / E-E-A-T --------------------------------------------------- */
.author { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.4rem, 3vw, 2.8rem); align-items: start; }
.author__photo {
  width: 220px; height: 220px; border-radius: var(--radius); object-fit: cover;
  border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow-sm);
}
.author__photo--ph { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: .8rem; padding: 1rem; }
.creds { list-style: none; margin: .4rem 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.creds li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; font-weight: 700; color: var(--pine-dark); }
@media (max-width: 680px) { .author { grid-template-columns: 1fr; } .author__photo { width: 160px; height: 160px; } }

/* ---- Locations ---------------------------------------------------------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.loc {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; min-height: var(--tap); text-decoration: none; color: var(--ink); font-weight: 700;
}
.loc:hover { border-color: var(--pine); color: var(--pine-dark); background: var(--pine-tint); }
.loc span { color: var(--gold-deep); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-weight: 400; font-size: 1.8rem; color: var(--gold-deep); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--pine-dark); }
.faq .faq__a { padding: 0 0 1.2rem; color: var(--ink-soft); }
.faq .faq__a p { margin-bottom: .6em; }

/* ---- CTA strip ---------------------------------------------------------- */
.cta-strip { text-align: center; }
.cta-strip .btn { margin: .4rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

/* ---- Footer + compliance ------------------------------------------------ */
.site-footer { background: #16201b; color: #cdd6cf; font-size: .95rem; padding-block: clamp(2.4rem, 2rem + 2vw, 3.4rem); }
.site-footer a { color: #e7efe8; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.disclaimer {
  border-top: 1px solid #2c3a31; margin-top: 2rem; padding-top: 1.6rem;
  font-size: .82rem; line-height: 1.55; color: #aebbb1;
}
.disclaimer strong { color: #e7efe8; }
.disclaimer p { max-width: none; margin-bottom: .7em; }
.placeholder-flag { color: var(--gold); font-weight: 700; }

/* ---- Reveal animation (respectful) ------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Utilities ---------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Content pages: prose, comparison table, pros/cons ------------------ */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

.ctable { width: 100%; border-collapse: collapse; margin: 1.4rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ctable caption { text-align: left; font-size: .9rem; color: var(--ink-soft); margin-bottom: .5rem; }
.ctable th, .ctable td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 1.02rem; }
.ctable thead th { background: var(--pine-tint); font-family: var(--display); font-weight: 600; color: var(--pine-dark); }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable th[scope="row"] { font-weight: 700; color: var(--ink); width: 30%; }
@media (max-width: 620px) { .ctable th, .ctable td { padding: .6rem .65rem; font-size: .95rem; } }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 1.6rem 0; }
@media (max-width: 680px) { .twocol { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; box-shadow: var(--shadow-sm); }
.panel--good { border-top: 4px solid var(--pine); }
.panel--note { border-top: 4px solid var(--gold); }
.panel h3 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: .45rem; }

.note-box { background: var(--pine-tint); border: 1px solid #cfe0d6; border-left: 4px solid var(--pine); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 1.4rem 0; }
.note-box p:last-child { margin-bottom: 0; }
