/* Northern Virginia Autism Therapy — site styles */

:root {
  /* brand colors taken from the logo */
  --ink: #1f3b73;
  --ink-soft: #4a5a7c;
  --river: #2c4f91;
  --river-dark: #1f3b73;
  --sun: #f39236;
  --sun-dark: #dd7a1d;
  --gold: #f8c871;
  --leaf: #7f5fae;
  --berry: #9a7bbf;
  --sky: #eef1f9;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: #dde2ee;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--river-dark); }
a[href^="mailto:"] { overflow-wrap: anywhere; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 50px;
  padding: .75em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-dark); color: var(--ink); }
.btn-river { background: var(--river); color: var(--white); }
.btn-river:hover { background: var(--river-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--ink);
  color: #dbe7f1;
  font-size: .92rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar-links { display: flex; gap: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 68px; height: 60px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  font-size: 1.12rem;
}
.brand-text small {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  color: var(--sun-dark);
  letter-spacing: .04em;
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--sky); color: var(--ink); }
.main-nav a[aria-current="page"] {
  color: var(--river);
  box-shadow: inset 0 -3px 0 var(--sun);
  border-radius: 0;
}
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta a {
  background: var(--sun);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
}
.main-nav .nav-cta a:hover { background: var(--sun-dark); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(22, 50, 79, .12);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
  }
  .main-nav a { padding: 14px 8px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 16px; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .main-nav .nav-cta a { text-align: center; padding: 14px; }
}

@media (max-width: 900px) { .topbar-email { display: none; } }
@media (max-width: 640px) {
  .topbar-hours { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: .98rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 22px; height: 22px; color: var(--leaf); flex: none; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; max-width: 480px; margin-left: auto; }

.block-drop { animation: drop 1s cubic-bezier(.3, 1.4, .5, 1) .3s both; transform-origin: 50% 100%; }
@keyframes drop {
  from { transform: translateY(-160px) rotate(-14deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 320px; margin: 0 auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--sky);
  padding: clamp(44px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 16em; }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; margin: 0; }
.page-hero .crumbs { font-size: .95rem; margin-bottom: 14px; color: var(--ink-soft); }
.page-hero .crumbs a { color: var(--ink-soft); }
.page-hero-blocks {
  position: absolute;
  right: var(--gutter);
  bottom: -6px;
  width: 170px;
  opacity: .95;
}
@media (max-width: 760px) { .page-hero-blocks { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-sky { background: var(--sky); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #dbe7f1; }
.section-ink h2, .section-ink h3 { color: var(--white); }

.section-head { max-width: 44em; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.section-ink .section-head p { color: #c3d4e3; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split-top { align-items: start; }
.split > *, .hero .wrap > *, .aba-band .wrap > *, .info-pair > *, .footer-grid > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: 40em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.checklist .tick {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sun);
  color: var(--ink);
}
.checklist .tick svg { width: 20px; height: 20px; }
.checklist strong { display: block; font-size: 1.08rem; }
.checklist span { color: var(--ink-soft); }

/* ---------- Pillars (home: values) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.pillar { border-top: 6px solid var(--river); padding-top: 22px; }
.pillar:nth-child(2) { border-color: var(--sun); }
.pillar:nth-child(3) { border-color: var(--leaf); }
.pillar p { color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 30px; height: 30px; }
.service:nth-child(4n+1) .service-icon { background: #e1e7f4; color: var(--river); }
.service:nth-child(4n+2) .service-icon { background: #fdf0d6; color: #8a5a00; }
.service:nth-child(4n+3) .service-icon { background: #ece5f6; color: var(--leaf); }
.service:nth-child(4n+4) .service-icon { background: #fde4cd; color: #b35a0c; }
.service p { color: var(--ink-soft); }
.service .more { margin-top: auto; font-weight: 700; }

/* detailed service rows (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail .service-icon { width: 72px; height: 72px; border-radius: 20px; }
.service-detail .service-icon svg { width: 38px; height: 38px; }
.service-detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-detail ul { padding-left: 1.2em; color: var(--ink-soft); }
.service-detail:nth-of-type(4n+1) .service-icon { background: #e1e7f4; color: var(--river); }
.service-detail:nth-of-type(4n+2) .service-icon { background: #fdf0d6; color: #8a5a00; }
.service-detail:nth-of-type(4n+3) .service-icon { background: #ece5f6; color: var(--leaf); }
.service-detail:nth-of-type(4n+4) .service-icon { background: #fde4cd; color: #b35a0c; }
@media (max-width: 700px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  border-top: 3px dashed #b8c3dc;
  z-index: 0;
}
.steps li { position: relative; z-index: 1; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  background: var(--river);
  color: var(--white);
  box-shadow: 0 0 0 8px var(--paper);
}
.section-sky .steps li::before { box-shadow: 0 0 0 8px var(--sky); }
.section-white .steps li::before { box-shadow: 0 0 0 8px var(--white); }
.steps li:nth-child(2)::before { background: var(--gold); color: var(--ink); }
.steps li:nth-child(3)::before { background: var(--leaf); }
.steps li:nth-child(4)::before { background: var(--sun); color: var(--ink); }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: block; top: 30px; bottom: 30px; left: 29px; right: auto; border-top: 0; border-left: 3px dashed #b8c3dc; }
  .steps li { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ---------- ABA explainer band ---------- */
.aba-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.aba-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aba-skills li {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  font-weight: 700;
}
@media (max-width: 860px) { .aba-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Area list ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.area {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 26px;
}
.area h3 { display: flex; align-items: center; gap: 10px; }
.area h3 svg { width: 22px; height: 22px; color: var(--berry); flex: none; }
.area ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  columns: 2;
  column-gap: 16px;
}
.area li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--river);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #e1e7f4; font-size: 1.1rem; max-width: 34em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 30px;
  background: var(--gold);
  opacity: .2;
  transform: rotate(18deg);
}
@media (max-width: 1000px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Perks (careers) ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.perks li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}
.perks svg { width: 22px; height: 22px; color: var(--leaf); flex: none; }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

.roles { display: grid; gap: 18px; }
.role {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.role-meta { color: var(--ink-soft); font-size: .96rem; margin-bottom: 10px; }
.role p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 18px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--river);
  border-bottom: 3px solid var(--river);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(22, 50, 79, .35);
}
.form-card h2 { font-size: 1.8rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: .98rem;
}
.field .req { color: #b23452; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--river);
  background: var(--white);
}
.field .hint { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.check-field input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--river); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.form-alert {
  background: #fdecef;
  border: 1px solid #f2b8c4;
  color: #8a2038;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  display: none;
}
.form-alert.is-visible { display: block; }

/* ---------- Contact info ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.contact-list .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--river);
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 24px; height: 24px; }
.contact-list strong { display: block; }
.contact-list a { font-size: 1.1rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.map-frame {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c3d4e3;
  padding: 64px 0 0;
  font-size: .98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #e7eff6; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-logo {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 260px;
  margin-bottom: 18px;
}
.footer-logo img { width: 100%; height: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 48px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}
.footer-bottom nav { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .call-bar .btn { min-height: 46px; font-size: 1rem; padding: .5em 1em; }
  body { padding-bottom: 72px; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.15rem; }
.stack-lg > * + * { margin-top: 28px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Home hero with enrollment form ---------- */
.hero-home { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 90px); }
.hero-home .wrap { grid-template-columns: 1.05fr minmax(340px, .95fr); align-items: start; }
.hero-home h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-copy { padding-top: clamp(0px, 3vw, 36px); }
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.hero-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.hero-checks svg {
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}
.phone-pill:hover { border-color: var(--river); color: var(--ink); }
.phone-pill svg {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--river);
  color: var(--white);
}
.phone-pill strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-left: 4px; }
.enroll-card { padding: clamp(22px, 3vw, 34px); }
.enroll-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.enroll-card .form-grid { gap: 14px; margin-top: 16px; }
.btn-block { width: 100%; margin-top: 20px; min-height: 54px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 1100px) {
  .hero-home .wrap { grid-template-columns: 1fr minmax(320px, 380px); gap: 28px; }
  .hero-home h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
  .hero-checks { font-size: 1rem; }
  .enroll-card .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero-home .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .enroll-card .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .enroll-card .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Insurance tiles ---------- */
.insurer-group { font-size: 1.15rem; margin: 30px 0 14px; color: var(--ink-soft); }
.section-head + .insurer-group { margin-top: 0; }
.insurers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.insurer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-left: 6px solid var(--river);
}
.section-white .insurer { background: var(--paper); }
.insurer-commercial { border-left-color: var(--sun); }
.insurer strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.insurer span { font-size: .9rem; color: var(--ink-soft); }
.insurer-more { margin-top: 30px; }
.insurer-note { margin-top: 26px; max-width: 46em; }
@media (max-width: 520px) {
  .insurers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .insurer { padding: 14px; min-height: 88px; border-left-width: 5px; }
  .insurer strong { font-size: 1rem; }
}

/* ---------- Who we are / info pair ---------- */
.who-art svg { width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
@media (max-width: 860px) { .who-art svg { max-width: 260px; } }
.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.info-pair p { color: #d3dcef; }
.info-pair .aba-skills { margin-top: 18px; }
@media (max-width: 760px) { .info-pair { grid-template-columns: 1fr; } }
.faq-narrow { max-width: 820px; }

/* ---------- Touch / tablet polish ---------- */
.site-footer li a { display: inline-block; padding: 3px 0; }
@media (max-width: 860px) {
  .map-frame { height: 260px; }
  .section-head { margin-bottom: 28px; }
}
@media (hover: none) {
  .btn:active { transform: scale(.98); }
}
