/* ================================================
   Home-Based ABA Services — page stylesheet
   All values from tokens.css; no hardcoded colours.
================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--clr-ink);
  background: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--clr-teal); }
a:hover { text-decoration: underline; color: var(--clr-teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 8px 16px; background: var(--clr-teal); color: var(--clr-white);
  font-family: var(--font-head); font-size: 14px; font-weight: 700; z-index: 9999;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: var(--pad-btn);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary  { background: var(--clr-teal);  border-color: var(--clr-teal);  color: var(--clr-white); }
.btn--primary:hover { background: var(--clr-teal-dark); border-color: var(--clr-teal-dark); color: var(--clr-white); }

.btn--outline  { background: transparent; border-color: var(--clr-teal); color: var(--clr-teal-dark); }
.btn--outline:hover { background: var(--clr-teal); color: var(--clr-white); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--clr-white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.15); border-color: var(--clr-white); color: var(--clr-white); }

.btn--light { background: var(--bg-page); border-color: var(--clr-white); color: var(--clr-teal-dark); }
.btn--light:hover { background: var(--bg-hero); border-color: var(--bg-hero); }

.btn--large { padding: 16px 36px; font-size: 16px; }

/* ================================================
   HERO   bg: var(--bg-hero) warm beige
================================================ */
.hero {
  background: var(--bg-hero);
  padding: var(--section-pad) 0 calc(var(--section-pad) - 20px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--overlay-white-sm); pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--gap-split);
  align-items: center;
}
.hero__label {
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 6px;
}
.hero__sublabel {
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--clr-ink); margin-bottom: 18px; display: block;
}
.hero__title {
  font-size: var(--text-h1); font-weight: var(--weight-h1);
  color: var(--clr-ink); margin-bottom: 20px; line-height: 1.15;
  text-wrap: balance;
}
.hero__lead {
  font-size: 17px; color: var(--clr-ink); opacity: 0.82;
  line-height: 1.75; margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__actions .btn { border-color: var(--clr-blue); }
.hero__actions .btn:hover { border-color: var(--clr-blue); }
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-red); flex-shrink: 0; display: inline-block;
}
.hero__media img {
  width: 100%; height: auto;
  object-fit: contain;
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
}

/* ================================================
   SECTION A: CARE THAT COMES TO YOUR CHILD
   bg: var(--clr-teal)
================================================ */
.hb-intro {
  background: var(--clr-teal);
  padding: var(--section-pad) 0;
}
.hb-intro__inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: var(--gap-split);
  align-items: start;
  margin-bottom: 56px;
}
.hb-intro__media img {
  width: 100%; height: auto;
  object-fit: contain;
  background: var(--clr-teal);
  border-radius: var(--radius-lg);
}
.hb-intro__caption {
  font-size: var(--text-xs); color: var(--text-on-teal);
  margin-top: 10px; line-height: 1.5;
}
.hb-intro__caption em {
  display: block; color: var(--text-on-teal);
  font-style: italic; margin-top: 4px;
}
.hb-intro__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-white); margin-bottom: 12px;
}
.hb-intro__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-white); margin-bottom: 24px; line-height: 1.2;
  text-wrap: balance;
}
.hb-intro__content p {
  font-size: var(--text-base); color: var(--text-on-teal);
  line-height: 1.75; margin-bottom: 20px;
}
.hb-intro__content p:last-child { margin-bottom: 0; }
.hb-intro__content a { color: var(--clr-white); text-decoration: underline; text-underline-offset: 2px; }
.hb-intro__content a:hover { color: rgba(255,255,255,0.8); }

/* Checklist box — sits inside .hb-intro, uses .container for alignment */
.hb-checklist {
  background: var(--clr-teal-pale);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.hb-checklist__header { margin-bottom: 28px; }
.hb-checklist__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 10px;
}
.hb-checklist__heading {
  font-family: var(--font-head);
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); text-wrap: balance;
}
.hb-checklist__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-3);
}
.hb-checklist__card {
  background: var(--bg-page);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.hb-checklist__list {
  display: flex; flex-direction: column; gap: 14px;
}
.hb-checklist__list li {
  font-size: var(--text-xs); color: var(--text-body); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.hb-checklist__list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clr-teal);
}

/* ================================================
   SECTION C: INSIDE THE HOME-BASED ABA PROGRAM
   bg: var(--bg-section) teal pale
================================================ */
.hb-program {
  background: var(--bg-section);
  padding: var(--section-pad) 0;
}
.hb-program__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 12px;
}
.hb-program__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 20px; text-wrap: balance;
}
.hb-program__intro {
  font-size: var(--text-base); color: var(--clr-ink-muted);
  line-height: 1.75; max-width: 680px; margin-bottom: 48px;
  text-wrap: pretty;
}
.hb-program__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-3);
}
.hb-icon-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-card);
  border-top: 3px solid var(--clr-teal);
}
.hb-icon-card h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 12px;
}
.hb-icon-card p {
  font-size: var(--text-sm); color: var(--text-body); line-height: 1.7;
}

/* ================================================
   SECTION D: WHAT SETS OUR HOME-BASED PROGRAM APART
   bg: var(--bg-page) white
================================================ */
.hb-apart {
  background: var(--bg-page);
  padding: var(--section-pad) 0;
}
.hb-apart__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 12px;
}
.hb-apart__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 36px; text-wrap: balance;
}
.hb-apart__media { margin-bottom: 48px; }
.hb-apart__media img {
  width: 100%; height: auto;
  object-fit: contain;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
}
.hb-apart__caption {
  font-size: var(--text-xs); color: var(--clr-ink-muted);
  margin-top: 10px; line-height: 1.5;
}
.hb-apart__caption em {
  display: block; font-style: italic; margin-top: 4px;
}
.hb-apart__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-2);
}
.hb-apart__card {
  background: var(--clr-teal-pale);
  border: 1px solid var(--clr-teal-mid);
  border-radius: var(--radius);
  padding: var(--pad-card);
  border-left: 4px solid var(--primary);
}
.hb-apart__card h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 10px;
}
.hb-apart__card p {
  font-size: var(--text-sm); color: var(--text-body); line-height: 1.7;
}
.hb-apart__card a { color: var(--clr-teal); }
.hb-apart__card a:hover { color: var(--clr-teal-dark); }

/* ================================================
   SECTION E: HOW HOME-BASED ABA SERVICES WORK
   bg: var(--bg-section)
================================================ */
.hb-steps {
  background: var(--bg-section);
  padding: var(--section-pad) 0;
}
.hb-steps__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 12px;
}
.hb-steps__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 20px; text-wrap: balance;
}
.hb-steps__intro {
  font-size: var(--text-base); color: var(--clr-ink-muted);
  line-height: 1.75; max-width: 680px; margin-bottom: 48px;
  text-wrap: pretty;
}
.hb-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-2);
}
.hb-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-page);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.hb-step__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clr-teal);
  color: var(--clr-white);
  font-family: var(--font-head); font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.hb-step__body h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 8px;
}
.hb-step__body p {
  font-size: var(--text-sm); color: var(--text-body); line-height: 1.7;
}
.hb-step__body a { color: var(--clr-teal); }
.hb-step__body a:hover { color: var(--clr-teal-dark); }

/* ================================================
   SECTION F: FAMILIES OF CHILDREN AGES 3 AND UNDER
   bg: var(--bg-page) white
================================================ */
.hb-who {
  background: var(--bg-page);
  padding: var(--section-pad) 0;
}
.hb-who__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-teal); margin-bottom: 12px;
}
.hb-who__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 20px; text-wrap: balance;
}
.hb-who__intro {
  font-size: var(--text-base); color: var(--clr-ink-muted);
  line-height: 1.75; max-width: 680px; margin-bottom: 40px;
  text-wrap: pretty;
}
.hb-who__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-2);
  margin-bottom: 36px;
}
.hb-who__card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-card);
}
.hb-who__card h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 20px;
}
.hb-who__card .hb-checklist__list li { color: var(--text-body); }
.hb-who__card .hb-checklist__list li::before { background: var(--clr-teal); }
.hb-who__card .hb-checklist__list li a { color: var(--clr-teal); }
.hb-who__card .hb-checklist__list li a:hover { color: var(--clr-teal-dark); }

/* Highlight panel */
.hb-highlight {
  background: var(--clr-teal-pale);
  border: 1px solid var(--clr-teal-mid);
  border-left: 4px solid var(--clr-teal);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.hb-highlight h3 {
  font-size: var(--text-h3); font-weight: var(--weight-h3);
  color: var(--clr-ink); margin-bottom: 10px;
}
.hb-highlight p {
  font-size: var(--text-base); color: var(--text-body); line-height: 1.75;
}
.hb-highlight a { color: var(--clr-teal); }
.hb-highlight a:hover { color: var(--clr-teal-dark); }

/* ================================================
   SECTION G: SERVICE AREA
   Layout, map circle, and town cards from components.css (.service-area).
   Eyebrow and towns label are page-specific extras.
================================================ */
.hb-area__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-on-dark); opacity: 0.75; margin-bottom: 12px;
}
.hb-area__towns-label {
  font-family: var(--font-head);
  font-size: var(--text-label); font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-on-dark); opacity: 0.75; margin-bottom: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hb-checklist__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner,
  .hb-intro__inner {
    grid-template-columns: 1fr;
  }
  .hero__media { order: -1; max-width: 320px; margin: 0 auto; }
  .hb-intro__media { max-width: 360px; order: 2; }
  .hb-intro__content { order: 1; }
  .service-area__globe { order: 2; }
  .service-area__content { order: 1; }
  .hb-program__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-apart__grid { grid-template-columns: 1fr; }
  .hb-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-who__grid { grid-template-columns: 1fr; }
  .hb-checklist__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-checklist { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hb-program__grid { grid-template-columns: 1fr; }
  .hb-steps__grid { grid-template-columns: 1fr; }
  .hb-checklist__grid { grid-template-columns: 1fr; }
  .hb-highlight { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ================================================
   HERO COLOUR OVERRIDES — svc-primary palette
   The layout, typography and spacing come from .svc-hero
   in components.css. These tokens set the colour scheme
   for the yellow-background / svc-primary design.
================================================ */
.svc-hero {
  --svc-hero-bg:          var(--svc-highlight);
  --svc-hero-accent:      var(--svc-primary);
  --svc-hero-h1:          var(--svc-primary-deep);
  --svc-hero-text:        var(--svc-text-body);
  --svc-hero-muted:       var(--svc-text-muted);
  --svc-hero-eyebrow:     var(--svc-primary-dark);
  --svc-hero-eyebrow2:    var(--svc-primary);
  --svc-hero-pill-text:   var(--svc-primary-dark);
  --svc-hero-pill-border: var(--svc-border);
  --svc-hero-stat-border: var(--svc-border);
}

/* Dark CTA section */
.fsds-cta-dark {
  background: var(--svc-primary-deep);
  padding: var(--section-pad) 0;
}
.fsds-cta-dark .fsds-eyebrow { color: var(--svc-secondary); }
.fsds-cta-dark h2 {
  color: #ffffff;
  font-size: var(--text-h2);
  font-weight: var(--weight-h2);
  margin-bottom: 14px;
}
.fsds-cta-dark p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-base);
  margin: 0 0 16px;
}
.fsds-contact-strip {
  display: flex; flex-wrap: wrap;
  gap: 12px; font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 32px; align-items: center;
}
.fsds-contact-strip .sep { color: rgba(255,255,255,0.3); }
.fsds-contact-strip a { color: var(--svc-secondary); font-weight: 700; }

.service-area__towns { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .service-area__towns { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ section blue background */
.faq-section--blue {
  background: var(--svc-secondary);
}
.faq-section--blue .faq-section__heading {
  color: var(--svc-primary-deep);
}

