/* ================================================
   PAGE BASE — global resets loaded once here.
   Page-level CSS loads after and may override.
================================================ */
*, *::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 {
  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 {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* tokens.css overrides --container-pad to --gutter-mobile at ≤768px, so
   every .container and .svc-hero__wrap automatically gets 20px on phones. */

.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;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--clr-white); border-color: var(--primary); }
@media (hover: hover) { .btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--clr-white); text-decoration: none; } }
.btn--outline { background: transparent; color: var(--clr-teal-dark); border-color: var(--primary); }
@media (hover: hover) { .btn--outline:hover { background: var(--primary); color: var(--clr-white); text-decoration: none; } }
.btn--outline-light { background: transparent; color: var(--clr-white); border-color: var(--clr-white); }
.btn--outline-light:hover { background: var(--clr-white); color: var(--clr-ink); text-decoration: none; }
.btn--light { background: var(--clr-white); color: var(--clr-ink); border-color: var(--clr-white); }
.btn--light:hover { background: var(--bg-section); color: var(--clr-ink); text-decoration: none; }
.btn--large { font-size: 16px; padding: 14px 32px; }

/* ================================================
   components.css
   Shared component styles — used across multiple pages.
   Requires tokens.css to be loaded first.
================================================ */

/* ================================================
   SITE HEADER   bg: var(--bg-header) pale cream tint
   CSS lives here (shared component). Page-specific files
   must NOT re-declare these rules.
================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  box-shadow: var(--shadow-xs);
}
.site-header__inner {
  display: flex; align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 40px;
}
.site-header__logo img { height: 84px; width: auto; }

.nav-toggle__input { display: none; }
.nav-toggle__label {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; margin-left: auto; order: 3;
}
.nav-toggle__label span {
  display: block; width: 24px; height: 2px;
  background: var(--clr-blue-dark); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav { flex: 1; }
.site-nav__list {
  display: flex; flex-wrap: nowrap;
  justify-content: flex-end; align-items: center;
  gap: 0 14px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__item { position: relative; }

/* All nav links — text, outline shape, and caret */
.site-nav__link {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: var(--clr-blue-dark);
  padding: 12px 18px; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-header);
  background: none; text-decoration: none; line-height: 1.3;
  transition: color 0.2s, border-color 0.2s, background 0.15s;
}
.site-nav__link:hover { color: var(--clr-blue); text-decoration: none; }

/* Active page: outlined rectangle */
.site-nav__link--active { border-color: var(--clr-blue); }

/* Dropdown parent triggers: outlined rectangle + down caret */
.site-nav__item--has-dropdown > .site-nav__link { border-color: var(--clr-blue); }
.site-nav__item--has-dropdown > .site-nav__link::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4.5px solid currentColor;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.site-nav__item--has-dropdown:hover > .site-nav__link::after,
.site-nav__item--has-dropdown:focus-within > .site-nav__link::after,
.site-nav__item--has-dropdown.is-open > .site-nav__link::after {
  transform: rotate(180deg);
}

/* Dropdowns */
.site-nav__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 260px;
  background: var(--bg-page);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 8px 0; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
  border-top: 3px solid var(--clr-blue);
}
.site-nav__item--has-dropdown:hover > .site-nav__dropdown,
.site-nav__item--has-dropdown:focus-within > .site-nav__dropdown,
.site-nav__item--has-dropdown.is-open > .site-nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__dropdown li a {
  display: block; padding: 7px 16px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--clr-blue-dark); line-height: 1.4;
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.site-nav__dropdown li a:hover {
  background: var(--bg-section); color: var(--clr-blue); text-decoration: none;
}

/* Support dropdown: wider, with labelled group blocks */
.site-nav__dropdown--wide { min-width: 340px; padding: 12px 0; }

.site-nav__group { list-style: none; }

.site-nav__group-label {
  display: block;
  font-family: var(--font-head);
  font-size: 10px; font-weight: 900;
  color: var(--bg-header);
  background: var(--clr-blue);
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 10px 14px;
  border-radius: var(--radius-header);
  cursor: default;
}

.site-nav__group-links {
  list-style: none; margin: 0 8px 12px; padding: 4px 0;
  background: var(--bg-header);
  border-radius: var(--radius-header);
}
.site-nav__group-links li a {
  display: block; padding: 6px 12px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--clr-blue-dark); line-height: 1.4;
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.site-nav__group-links li a:hover {
  background: var(--bg-section); color: var(--clr-blue); text-decoration: none;
}

/* CTA button: two-line, filled blue */
.site-header__cta {
  flex-shrink: 0; margin-left: 28px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--clr-blue); color: var(--clr-white);
  font-family: var(--font-head); font-weight: 800;
  padding: 14px 24px; border-radius: var(--radius-header);
  white-space: nowrap; transition: background 0.2s; text-decoration: none;
  text-align: center; line-height: 1.35;
}
.site-header__cta span:first-child { font-size: 13px; opacity: 0.85; }
.site-header__cta span:last-child { font-size: 16px; font-weight: 800; }
.site-header__cta:hover { background: var(--clr-blue-dark); color: var(--clr-white); text-decoration: none; }

/* Mobile nav drawer — kicks in at 1200px for 7-item row safety */
@media (max-width: 1200px) {
  .nav-toggle__label { display: flex; }
  .site-header__inner { padding: 10px 16px; }
  .site-header__logo img { height: 52px; }

  .site-nav {
    position: fixed; top: 0; right: 0;
    width: 300px; height: 100vh;
    background: var(--bg-header);
    box-shadow: var(--shadow-nav);
    padding: 72px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200; margin: 0; flex: unset;
  }
  .nav-toggle__input:checked ~ .site-nav { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column; align-items: flex-start; flex-wrap: wrap;
    gap: 0; justify-content: flex-start;
  }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    font-size: 15px; padding: 10px 4px;
    border-radius: 0; border: none;
    border-bottom: 1px solid var(--border);
    width: 100%; justify-content: space-between;
    color: var(--clr-blue-dark);
  }
  .site-nav__link--active { color: var(--clr-blue); border-bottom: 1px solid var(--border); }
  .site-nav__item--has-dropdown > .site-nav__link { border-bottom: 1px solid var(--border); }
  .site-nav__dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    border-radius: 0; padding: 0 0 0 12px; display: none;
    min-width: unset; width: 100%;
  }
  .site-nav__dropdown--wide { min-width: unset; padding: 0 0 0 12px; }
  .site-nav__item--has-dropdown:focus-within > .site-nav__dropdown,
  .site-nav__item--has-dropdown.is-open > .site-nav__dropdown { display: block; }
  .site-nav__group-label {
    padding: 8px 12px;
    font-size: 9px;
  }
  .site-nav__group-links {
    background: transparent; border-radius: 0;
    margin: 0; padding: 0;
  }
  .site-nav__group-links li a { padding: 6px 4px; }
  .site-header__cta { flex-direction: row; gap: 5px; padding: 7px 12px; margin-left: 0; }
  .site-header__cta span:first-child { opacity: 1; font-size: 11px; }
  .site-header__cta span:last-child { font-size: 13px; font-weight: 700; }
}

/* Mobile nav overlay — created by header.js, shown when drawer is open */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  /* site-header creates a stacking context at z-index:100 in root;
     drawer (z-index:200) lives inside that context.
     Overlay at 99 sits above page content but below header+drawer. */
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile header grid: logo | CTA centred | hamburger  (≤768px only) */
@media (max-width: 768px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 8px;
    align-items: center;
  }
  .site-header__logo  { grid-column: 1; }
  .nav-toggle__label  { grid-column: 3; margin-left: 0; }
  .site-header__cta {
    grid-column: 2;
    justify-self: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
    padding: 6px 14px;
    margin-left: 0;
  }
  .site-header__cta span:first-child { font-size: 10px; opacity: 0.9; }
  .site-header__cta span:last-child  { font-size: 13px; font-weight: 800; }
}

/* ================================================
   MARQUEE BAND   bg: var(--clr-yellow)
================================================ */
.marquee-band {
  background: var(--clr-yellow);
  padding: 18px 0; overflow: hidden;
}
.marquee-band__track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-band__text {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--clr-ink); white-space: nowrap;
  padding-right: 14px; letter-spacing: 0.04em;
}
.marquee-band__sep {
  display: inline-flex; align-items: center;
  opacity: 0.5;
}
.marquee-band__sep svg { width: 15px; height: 15px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ================================================
   SERVICE PAGE HERO  (.svc-hero)
   Shared by all 23 service pages.
   Page CSS sets colours only — via the custom properties below.
   Default values suit the standard bg-hero (beige) palette.
================================================ */
.svc-hero {
  background: var(--svc-hero-bg, var(--bg-hero));
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.svc-hero__wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}
.svc-hero--full .svc-hero__inner { grid-template-columns: 1fr; max-width: 720px; }
.svc-hero__inner {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 56px;
  align-items: center;
}
.svc-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--svc-hero-pill-border, var(--border));
  border-radius: var(--radius-pill);
  padding: 8px 18px 8px 12px;
  font-family: var(--font-head);
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--svc-hero-pill-text, var(--clr-ink));
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.svc-hero__pill-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--svc-hero-accent, var(--clr-teal));
  flex-shrink: 0;
}
.svc-hero__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-hero-eyebrow, var(--clr-teal));
  margin-bottom: 4px;
  line-height: 1.3;
}
.svc-hero__eyebrow + .svc-hero__eyebrow { color: var(--svc-hero-eyebrow2, var(--clr-teal)); }
.svc-hero__eyebrow:last-of-type,
.svc-hero__eyebrow:only-of-type { margin-bottom: 12px; }
.svc-hero__title {
  font-family: var(--font-head);
  font-size: var(--svc-h1);
  font-weight: var(--weight-h1);
  line-height: 1.15;
  color: var(--svc-hero-h1, var(--clr-ink));
  margin: 0;
  text-wrap: balance;
}
.svc-hero__title em { font-style: normal; color: var(--svc-hero-accent, var(--clr-teal)); }
.svc-hero__tagline {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  font-style: italic;
  color: var(--svc-hero-accent, var(--clr-teal));
  margin: 12px 0 14px;
}
.svc-hero__lead {
  font-size: var(--text-base);
  color: var(--svc-hero-text, var(--clr-ink));
  line-height: 1.75;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.svc-hero__lead a { color: var(--svc-hero-accent, var(--clr-teal)); font-weight: 700; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 24px;
}
.svc-hero__stat {
  background: var(--bg-page);
  border: 1px solid var(--svc-hero-stat-border, var(--border));
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  flex: 1;
  min-width: 0;
  box-shadow: var(--shadow-xs);
}
.svc-hero__stat-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--svc-hero-accent, var(--clr-teal));
  line-height: 1;
  margin-bottom: 3px;
}
.svc-hero__stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--svc-hero-muted, var(--clr-ink-muted));
  line-height: 1.3;
}
.svc-hero__media { position: relative; }
.svc-hero__media--contain img { object-fit: contain; object-position: center; }
.svc-hero__media img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.svc-hero__caption {
  font-size: 13px;
  color: var(--svc-hero-muted, var(--clr-ink-muted));
  margin-top: 8px;
  line-height: 1.4;
  text-align: center;
  font-style: italic;
}
/* Decorative circles — used by yellow-background pages */
.svc-hero--decorated::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(175, 222, 232, 0.30);
  pointer-events: none;
}
.svc-hero--decorated::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(197, 223, 230, 0.25);
  pointer-events: none;
}
/* Responsive */
@media (max-width: 900px) {
  .svc-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-hero__media { order: 2; }
  .svc-hero__content { order: 1; }
  .svc-hero__title { font-size: 28px; line-height: 1.2; }
  .svc-hero__stats { flex-wrap: wrap; }
  .svc-hero__stat { flex: 1 1 calc(50% - 6px); }
}
@media (min-width: 1024px) {
  .svc-hero__actions { flex-wrap: nowrap; gap: 8px; }
  .svc-hero__actions .btn { padding: 11px 20px; }
}
@media (max-width: 768px) {
  /* Step 2 — buttons never wider than screen */
  .btn { white-space: normal; max-width: 100%; }
  /* Step 3 — space between H1 and following element */
  .svc-hero__title { margin-bottom: var(--text-base); }
  /* Pill wraps on mobile so it never overflows the container */
  .svc-hero__pill { max-width: 100%; white-space: normal; }
}
@media (max-width: 640px) {
  .svc-hero { padding: 40px 0 32px; }
  .svc-hero__wrap { padding: 0 var(--gutter-mobile); }
  .svc-hero__actions { flex-direction: column; align-items: stretch; }
  .svc-hero__actions .btn { text-align: center; }
}

/* ── CLOVER HERO IMAGE ── */
.svc-hero__media--clover {
  aspect-ratio: 1 / 1;
  background: none;
  border: none;
  box-shadow: none;
}
.svc-hero__media--clover img {
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url('/images/clover-mask.svg');
  mask-image: url('/images/clover-mask.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  border-radius: 0;
  box-shadow: none;
}

/* ── SERVICE CARD ── */
.svc-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-card__media { flex-shrink: 0; }
.svc-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.svc-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-card__title {
  font-family: var(--font-head);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  color: var(--clr-ink);
  line-height: var(--leading-heading);
  margin-bottom: 10px;
  text-wrap: balance;
}
.svc-card__title a { color: inherit; text-decoration: none; }
.svc-card__title a:hover { color: var(--clr-teal); text-decoration: none; }
.svc-card__body > p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--clr-ink);
  flex: 1;
  margin-bottom: 16px;
}
.svc-card__body > p a { color: var(--clr-teal); font-weight: 700; }
.svc-card__cta { margin-top: auto; }
@media (max-width: 640px) {
  .svc-card__media img { height: 180px; }
}

/* ================================================
   INSURANCE LOGOS   bg: var(--bg-page) white
   Used on: index, aba-therapy-center-in-woburn-ma, contact
================================================ */
.insurance {
  background: var(--bg-page);
  padding: var(--section-pad) 0;
}
.insurance__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 40px; text-align: center;
  text-wrap: balance;
}
.insurance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  align-items: center;
}
.insurance__grid img {
  width: 100%; height: 80px;
  object-fit: contain; display: block;
  padding: 0 12px;
  transition: opacity 0.2s;
}
.insurance__grid img.logo--lg { height: 110px; }
.insurance__grid img:hover { opacity: 0.7; }

@media (max-width: 900px) {
  .insurance__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .insurance__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   INTRO SPLIT   bg: var(--clr-teal) brand teal
   Photo left, heading + paragraph + button right.
   Used on: index, aba-therapy-center-in-woburn-ma
================================================ */
.intro-split {
  background: var(--clr-teal);
  padding: var(--section-pad) 0;
}
.intro-split__inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: var(--gap-split);
  align-items: center;
}
.intro-split__media img {
  width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--clr-teal);
  border-radius: var(--radius-lg);
}
.intro-split__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-white); margin-bottom: 16px;
  text-wrap: balance;
}
.intro-split__content p {
  font-size: var(--text-base); color: var(--text-on-teal);
  line-height: 1.75; margin-bottom: 28px;
}

@media (max-width: 900px) {
  .intro-split__inner { grid-template-columns: 1fr; gap: 40px; }
  .intro-split__media img { height: 320px; aspect-ratio: unset; }
}

/* ================================================
   HERO NOTICE PANEL   bg: var(--bg-notice) info blue
   Used on: index, aba-therapy-center-in-woburn-ma
================================================ */
.hero__notice {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-notice);
  border-left: 12px solid var(--clr-blue);
  border-radius: 0 4px 4px 0;
  padding: 8px 12px;
  margin-top: 16px;
}
.hero__notice-label {
  font-family: var(--font-head); font-size: 10px; font-weight: 800;
  color: var(--clr-blue); letter-spacing: 0.10em; text-transform: uppercase;
  white-space: nowrap;
}
.hero__notice-label--red { color: var(--clr-red); }
.hero__notice .trust-dot { background: var(--clr-red); }
.hero__notice-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--clr-ink); line-height: 1.45; margin: 0;
}

/* ================================================
   SUBMIT BUTTON
   Used on: any page with the Get Started form
================================================ */
.btn--submit {
  background: var(--clr-blue); border-color: var(--clr-blue); color: var(--clr-white);
  width: 100%; font-size: 15px; padding: 14px 28px;
}
.btn--submit:hover { background: var(--clr-blue-dark); border-color: var(--clr-blue-dark); color: var(--clr-white); }

/* ================================================
   CTA FORM   bg: var(--bg-page)
   Used on: index, town pages
================================================ */
.brand-color { color: var(--clr-teal); }
.cta-form { background: var(--bg-page); padding: var(--section-pad) 0; }
.cta-form__inner { display: grid; grid-template-columns: 44fr 56fr; gap: var(--gap-split); align-items: center; }
.cta-form__message { display: flex; flex-direction: column; text-align: left; }
.cta-form__heading { font-size: clamp(24px, 3.2vw, 36px); font-weight: var(--weight-h2); color: var(--clr-ink); line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
.cta-form__brand-heading { font-family: var(--font-head); font-size: clamp(28px,3.6vw,40px); font-weight: 900; color: var(--clr-ink); line-height: 1.15; margin-bottom: 14px; max-width: 14ch; text-wrap: balance; }
.cta-form__audience { font-size: var(--text-sm); color: var(--clr-ink); opacity: 0.6; margin-bottom: 32px; line-height: 1.6; max-width: 34ch; }
.cta-form__callout { background: var(--bg-hero); border-radius: var(--radius-lg); border-left: 4px solid var(--clr-teal); padding: 32px 30px; margin-bottom: 20px; }
.cta-form__diag-headline { font-family: var(--font-head); font-size: clamp(19px,2.3vw,24px); font-weight: 900; color: var(--clr-ink); line-height: 1.25; margin-bottom: 2px; text-wrap: balance; }
.cta-form__diag-sub { font-family: var(--font-head); font-size: clamp(19px,2.3vw,24px); font-weight: 900; color: var(--clr-teal); line-height: 1.25; margin-bottom: 16px; text-wrap: balance; }
.cta-form__callout-body { font-size: var(--text-sm); color: var(--clr-ink); opacity: 0.8; line-height: 1.75; margin-bottom: 24px; }
.cta-form__callout .btn { width: fit-content; }
.cta-form__pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 6px; }
.cta-form__pills li { font-family: var(--font-head); font-size: 11.5px; font-weight: 800; text-align: center; white-space: nowrap; color: var(--clr-ink); background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 12px; }
.cta-form__pills li::before { content: "\2713"; color: var(--clr-teal); font-weight: 900; margin-right: 5px; }
.cta-form__card { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); text-align: left; }
.cta-form__card-title { font-size: var(--text-h3); font-weight: var(--weight-h3); color: var(--clr-ink); margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); text-wrap: balance; }
.form-row { display: grid; gap: 16px; }
.form-row--split   { grid-template-columns: 1fr 1fr; }
.form-row--70-30   { grid-template-columns: 2fr 1fr; }
.form-row--40-60   { grid-template-columns: 2fr 3fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700; color: var(--clr-ink); }
.contact-form input,
.contact-form textarea,
.contact-form select { font-family: var(--font-body); font-size: var(--text-sm); color: var(--clr-ink); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-page); width: 100%; transition: border-color 0.2s; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--clr-teal); }
.form-field--checkbox label { display: flex; align-items: center; justify-content: flex-start; gap: 10px; cursor: pointer; font-weight: 400; opacity: 0.8; }
.form-field--checkbox input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; }
.form-field--checkbox { margin: 4px 0 20px; }
@media (max-width: 900px) {
  .cta-form__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-form__pills { margin-top: 0; flex-wrap: wrap; }
  .cta-form__callout { padding: 26px 22px; }
}
@media (max-width: 768px) {
  .cta-form { padding: 50px 0; }
}
@media (max-width: 767px) {
  .form-row--split,
  .form-row--70-30,
  .form-row--40-60 { grid-template-columns: 1fr; }
}

/* ================================================
   REVIEWS BAND   bg: var(--bg-page)
   Used on: index, town pages
================================================ */
.reviews-band { background: var(--bg-page); padding: var(--section-pad) 0; }
.reviews-band__heading { font-size: var(--text-h2); font-weight: var(--weight-h2); color: var(--clr-ink); margin-bottom: 40px; text-align: center; text-wrap: balance; }
.reviews-band__widget { min-height: 220px; }

/* Static reviews block (replaces Trustindex widget) */
.reviews-band__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: 32px;
}
.reviews-band__rating {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
}
.reviews-band__stars { color: #F5A623; font-size: 1.3rem; line-height: 1; }
.reviews-band__count { font-size: 1.1rem; }
.reviews-band__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.review-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);
}
.review-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--clr-ink);
  margin-bottom: 4px;
}
.review-card__stars { color: #F5A623; margin-bottom: 10px; }
.review-card__text {
  font-size: var(--text-sm);
  color: var(--clr-ink);
  line-height: 1.7;
  opacity: 0.85;
}
.reviews-band__action { text-align: center; }
@media (max-width: 768px) {
  .reviews-band__cards { grid-template-columns: 1fr; }
}

/* ================================================
   FINAL CTA   bg: var(--clr-teal) brand teal
   Used on: index, town pages
================================================ */
.final-cta {
  background: var(--clr-teal);
  padding: var(--section-pad) 0;
  text-align: center;
}
.final-cta__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-white); margin-bottom: 16px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.final-cta__body {
  font-size: 17px; color: var(--clr-white); opacity: 0.88;
  margin-bottom: 36px; line-height: 1.7;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.final-cta__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
/* Text links on teal sections must be white + underlined */
.final-cta a:not(.btn),
.intro-split a:not(.btn) {
  color: var(--clr-white);
  text-decoration: underline;
}
.final-cta a:not(.btn):hover,
.intro-split a:not(.btn):hover { opacity: 0.85; text-decoration: underline; }

/* ================================================
   ACCORDION   used inside FAQ section
   Used on: index, town pages
================================================ */
.accordion__item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden; background: var(--bg-page);
}
.accordion__trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  min-height: 78px;
  box-sizing: border-box;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--clr-ink);
  line-height: 1.4;
  cursor: pointer; list-style: none; user-select: none;
  transition: background 0.15s;
}
.accordion__trigger:hover { background: var(--bg-section); }
.accordion__trigger::marker,
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger::after {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background-color: var(--clr-teal-mid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath stroke='%2374A4AA' stroke-width='2' stroke-linecap='round' fill='none' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform 0.25s;
}
details[open] > .accordion__trigger::after { transform: rotate(180deg); }
.accordion__body {
  padding: 4px 22px 20px;
  font-size: var(--text-sm); color: var(--clr-ink); opacity: 0.8; line-height: 1.75;
}
.accordion__body p { margin: 0; }
.accordion__body a { color: var(--clr-teal); }

/* ================================================
   FAQ SECTION   bg: var(--bg-section) teal-pale
   Used on: index, town pages
================================================ */
.faq-section {
  background: var(--bg-section);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}
.faq-section__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.faq-section__heading {
  font-size: var(--text-h2); font-weight: var(--weight-h2);
  color: var(--clr-ink); margin-bottom: 40px;
}
/* Count-based split: items in each column regardless of answer length. */
.faq-section .accordion {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 32px; align-items: start;
}
.faq-section .accordion__item { break-inside: avoid; }

/* ================================================
   FOOTER   bg: var(--bg-hero) warm beige
   Used on: every page
================================================ */
.site-footer {
  background: var(--bg-hero);
  padding: 48px 0 32px;
  border-top: 2px solid var(--border);
}
.site-footer__inner {
  padding: 0 var(--container-pad);
}
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: var(--clr-ink); opacity: 0.6; transition: opacity 0.2s, color 0.2s; display: inline-flex; text-decoration: none; }
.footer-social a:hover { color: var(--clr-teal); opacity: 1; }
.footer-social svg { width: 20px; height: 20px; }
.firststeps-footer { display: grid; grid-template-columns: 0.85fr 1fr 1fr 1.3fr 0.95fr 0.95fr; gap: 28px; }
.firststeps-footer h4 {
  font-family: var(--font-head); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 900; color: var(--clr-ink); margin: 0 0 14px;
}
.firststeps-footer li {
  font-size: var(--text-xs); line-height: 1.5;
  color: var(--clr-ink); margin-bottom: 8px; opacity: 0.75;
}
.firststeps-footer a {
  color: var(--clr-ink); opacity: 0.75; font-size: var(--text-xs); line-height: 1.5;
  transition: color 0.2s, opacity 0.2s; text-decoration: none;
}
.firststeps-footer a:hover { color: var(--clr-teal); opacity: 1; text-decoration: none; }
.firststeps-footer p { font-size: var(--text-xs); line-height: 1.6; color: var(--clr-ink); opacity: 0.75; margin: 0; }
.footer-hours-label {
  display: block; text-transform: uppercase; font-size: 10.5px;
  letter-spacing: 0.06em; font-weight: 700; color: var(--clr-ink); opacity: 0.5; margin-bottom: 4px;
}
.direction-btn {
  display: inline-block; background: var(--clr-teal); color: var(--clr-white) !important;
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  padding: 10px 18px; border-radius: var(--radius);
  margin-top: 18px; transition: background 0.2s; text-decoration: none; opacity: 1 !important;
}
.direction-btn:hover { background: var(--clr-teal-dark); text-decoration: none; }
.footer-map__wrap { position: relative; }
.footer-map__wrap img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.footer-map__btn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; margin-top: 0; }
.footer-areas { grid-column: span 2; }
.footer-areas__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ================================================
   DIRECTIONS WIDGET
================================================ */
.directions-widget { display: flex; flex-direction: column; gap: 16px; }

.directions-widget__form {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
}

.directions-widget__input {
  flex: 1 1 220px; min-width: 0;
  padding: 10px 14px;
  border: 2px solid var(--clr-teal);
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: 1rem;
  color: var(--clr-text); background: #fff;
}
.directions-widget__input:focus {
  outline: 2px solid var(--clr-teal); outline-offset: 2px;
}
.directions-widget__input::placeholder { color: var(--clr-text-muted, #6b7280); }

.directions-widget__route-btn { white-space: nowrap; }

.directions-widget__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .directions-widget__form { flex-direction: column; }
  .directions-widget__input { flex: 1 1 auto; }
}

/* ================================================
   MAP EMBED
================================================ */
.map-embed {
  position: relative;
  width: 100%;
  padding-top: 45%;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.town-directions__map {
  grid-column: 1 / -1;
  margin-top: 32px;
}
.service-area__map {
  grid-column: 1 / -1;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .map-embed { padding-top: 75%; }
}

/* ================================================
   UTILITY
================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================
   TYPOGRAPHY GUARDS — shared components
================================================ */
.faq-section__heading,
.final-cta__heading,
.accordion__trigger { text-wrap: balance; }

.final-cta__body { text-wrap: pretty; }

/* ================================================
   RESPONSIVE — 1024px (shared components)
================================================ */
@media (max-width: 1024px) {
  .site-footer__inner { padding: 0 var(--container-pad-sm); }
  .faq-section__inner { padding: 0 var(--container-pad-sm); }
}

/* ================================================
   SERVICE AREA — circular map + town grid
   Used on: aba-therapy-center-in-woburn-ma, home-based-aba-services
================================================ */
.service-area {
  background: #2F5F64;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.service-area__inner {
  display: grid;
  grid-template-columns: 48fr 52fr;
  gap: 56px;
  align-items: center;
}
.service-area__globe {
  position: relative;
  aspect-ratio: 1 / 1;
  width: calc(100% + 12%);
  max-width: 520px;
  margin-left: -12%;
  justify-self: start;
}
.service-area__maplink {
  display: block; position: absolute; inset: 0;
  text-decoration: none;
}
.service-area__maplink:hover { text-decoration: none; }
.service-area__disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
      #000 52%, rgba(0,0,0,0.92) 66%, rgba(0,0,0,0.6) 78%,
      rgba(0,0,0,0.25) 88%, transparent 97%);
          mask-image: radial-gradient(circle at 50% 50%,
      #000 52%, rgba(0,0,0,0.92) 66%, rgba(0,0,0,0.6) 78%,
      rgba(0,0,0,0.25) 88%, transparent 97%);
}
.service-area__disc img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  filter: saturate(0.88);
}
.service-area__dots { position: absolute; inset: 0; pointer-events: none; }
.map-dot {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--clr-blue);
  border: 2px solid var(--clr-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.map-dot--center {
  width: 22px; height: 22px;
  background: var(--bg-page);
  border: 5px solid var(--clr-blue);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.45), 0 3px 12px rgba(0,0,0,0.4);
  z-index: 2;
}
.service-area__ring {
  position: absolute; inset: 14%;
  border-radius: 50%;
  box-shadow: 0 0 90px 30px rgba(255,255,255,0.30),
              0 0 180px 70px rgba(255,255,255,0.14);
  pointer-events: none;
  transition: box-shadow 0.3s;
}
.service-area__maplink:hover .service-area__ring {
  box-shadow: 0 0 100px 36px rgba(255,255,255,0.38),
              0 0 200px 80px rgba(255,255,255,0.18);
}
.service-area__cta {
  position: absolute; left: 50%; bottom: 6%;
  transform: translateX(-50%);
  font-family: var(--font-head); font-size: var(--text-2xs); font-weight: 800;
  color: var(--clr-white); background: var(--clr-blue);
  border: 2px solid var(--clr-white);
  border-radius: var(--radius-pill);
  padding: 10px 20px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 3;
}
.service-area__maplink:hover .service-area__cta,
.service-area__maplink:focus-visible .service-area__cta {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.38);
}
.service-area__maplink:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 50%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.service-area__heading {
  font-size: clamp(23px, 3.1vw, 31px); font-weight: var(--weight-h2);
  color: var(--text-on-dark); margin-bottom: 14px;
}
.service-area__lead {
  font-size: var(--text-sm); color: var(--text-on-dark);
  opacity: 0.9; line-height: 1.75; margin-bottom: 24px;
}
.service-area__lead strong { color: var(--text-on-dark); }
.service-area__towns {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
}
.service-area__towns li { list-style: none; }
.town-card {
  display: flex; align-items: baseline; justify-content: center; gap: 7px;
  text-decoration: none;
  background: var(--bg-page);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 11px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.town-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  text-decoration: none;
}
.town-card__name {
  font-family: var(--font-head); font-size: var(--text-2xs); font-weight: 800;
  color: var(--clr-ink); line-height: 1.2; white-space: nowrap;
}
.town-card__time {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  color: var(--clr-teal-dark); white-space: nowrap;
}
.service-area__note {
  font-size: var(--text-xs); color: var(--text-on-dark);
  opacity: 0.8; line-height: 1.6; margin-bottom: 24px;
}
.service-area__note a { color: var(--text-on-dark); text-decoration: underline; }
.service-area__content > .btn {
  background: var(--bg-page); color: var(--clr-ink);
  border: 1px solid var(--clr-white);
}
.service-area__content > .btn:hover { background: var(--bg-hero); border-color: var(--bg-hero); }
.service-area__attrib {
  position: absolute; left: 50%; bottom: -22px;
  transform: translateX(-50%);
  font-size: 10.5px; color: var(--text-on-dark); opacity: 0.55;
  white-space: nowrap;
}
.service-area__attrib a { color: inherit; text-decoration: underline; }

/* ================================================
   RESPONSIVE — 900px (shared components)
================================================ */
/* ================================================
   RESPONSIVE — 1024px footer tablet (3-column)
================================================ */
@media (max-width: 1024px) {
  .firststeps-footer { grid-template-columns: 1fr 1.5fr 1.5fr; }
  .footer-areas { grid-column: 2 / span 2; }
}

@media (max-width: 900px) {
  .service-area__inner { grid-template-columns: 1fr; gap: 40px; }
  .service-area__globe { margin: 0 auto; max-width: 420px; width: 100%; }
}

/* ================================================
   RESPONSIVE — 767px (shared components)
================================================ */
@media (max-width: 767px) {
  .faq-section .accordion { grid-template-columns: 1fr; }
  .final-cta__actions { flex-direction: column; align-items: center; }
  /* footer two-column layout; map image hidden, Get Directions stays; Contact and Areas full-width */
  .firststeps-footer {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .footer-map { grid-column: 1 / -1; }
  .footer-map__wrap img { display: none; }
  .footer-map__btn { position: static; transform: none; }
  .firststeps-footer > div:nth-child(4) { grid-column: 1 / -1; }
  .footer-areas { grid-column: 1 / -1; }
  .service-area__towns { grid-template-columns: repeat(2, 1fr); }
}

/* Step 1 — faq and footer inner padding match the shared gutter at mobile */
@media (max-width: 768px) {
  .faq-section__inner { padding: 0 var(--gutter-mobile); }
  .site-footer__inner { padding: 0 var(--gutter-mobile); }
}

/* Touch devices: suppress CSS :hover on desktop dropdown so only
   JS .is-open opens it — prevents ghost-hover after tap on tablets */
@media (hover: none) and (pointer: coarse) {
  .site-nav__item--has-dropdown:not(.is-open):hover > .site-nav__dropdown {
    opacity: 0; visibility: hidden; transform: translateY(6px);
  }
}

/* ================================================
   BLOG — shared components
   Used on: blog index, category pages, post pages
================================================ */

/* ── Layout ── */
.blog-hero {
  background: var(--bg-section);
  padding: 48px 0 40px;
}
.blog-hero h1 {
  font-size: var(--text-h1, clamp(28px, 4vw, 44px));
  font-weight: var(--weight-h1, 900);
  color: var(--clr-ink);
  margin-bottom: 12px;
}
.blog-hero__intro {
  font-size: var(--text-base);
  color: var(--clr-ink);
  opacity: 0.8;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 24px;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-cats--other {
  margin-bottom: 28px;
}
.blog-cats .btn { min-height: 44px; }
.blog-filter__pill--active {
  background: var(--primary);
  color: var(--clr-white);
  border-color: var(--primary);
  pointer-events: none;
}

.blog-cat-hero {
  background: var(--clr-teal);
  padding: 48px 0 40px;
}
.blog-cat-hero h1 {
  font-size: var(--text-h1, clamp(28px, 4vw, 44px));
  font-weight: var(--weight-h1, 900);
  color: var(--clr-white);
  margin-bottom: 12px;
}
.blog-cat-hero p {
  font-size: var(--text-base);
  color: var(--clr-white);
  opacity: 0.88;
  line-height: 1.7;
  max-width: 560px;
}

.blog-grid {
  background: var(--bg-page);
  padding: 48px 0 64px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Search ── */
.blog-search {
  margin-bottom: 32px;
}
.blog-search__input {
  width: 100%;
  max-width: 480px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--clr-ink);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  transition: border-color 0.2s;
}
.blog-search__input:focus {
  outline: none;
  border-color: var(--clr-teal);
}
.blog-no-results {
  font-size: var(--text-sm);
  color: var(--clr-ink);
  opacity: 0.7;
  padding: 16px 0;
}

/* ── Post grid and cards ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.12));
  transform: translateY(-2px);
}
.post-card__img-link {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}
.post-card__img-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.post-card:hover .post-card__img-link img {
  transform: scale(1.03);
}
.post-card__body {
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__body time {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-teal-dark, #2a5d62);
  margin-bottom: 8px;
}
.post-card__title {
  font-size: var(--text-h3, 18px);
  font-weight: var(--weight-h3, 800);
  color: var(--clr-ink);
  line-height: 1.3;
  margin-bottom: 10px;
  text-wrap: balance;
}
.post-card__title a {
  color: inherit;
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--clr-teal);
  text-decoration: none;
}
.post-card__abstract {
  font-size: var(--text-sm, 14px);
  color: var(--clr-ink);
  opacity: 0.75;
  line-height: 1.6;
  flex: 1;
}

/* ── Post page header ── */
.post-intro {
  background: var(--bg-hero);
  padding: 48px 0 40px;
}
.post-intro__meta {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-ink);
  opacity: 0.65;
  margin-bottom: 8px;
}
.post-intro__meta time { font-weight: 700; }
.post-intro h1 {
  font-size: var(--text-h1, clamp(26px, 3.5vw, 40px));
  font-weight: var(--weight-h1, 900);
  color: var(--clr-ink);
  line-height: 1.2;
  margin-bottom: 20px;
  text-wrap: balance;
}
.post-intro__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  margin-top: 28px;
}

/* ── Post body ── */
.post-body {
  background: var(--bg-page);
  padding: 48px 0 64px;
}
.post-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Shared frame: post article and sidebar panel use same treatment */
.post-content-frame,
.sidebar-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--bg-page);
  min-width: 0;
}

.post-content {
  min-width: 0;
}
.post-content h2 {
  font-size: var(--text-h2, clamp(20px, 2.4vw, 26px));
  font-weight: var(--weight-h2, 800);
  color: var(--clr-ink);
  margin: 32px 0 14px;
  line-height: 1.25;
}
.post-content h3 {
  font-size: var(--text-h3, 18px);
  font-weight: var(--weight-h3, 700);
  color: var(--clr-ink);
  margin: 24px 0 10px;
  line-height: 1.3;
}
.post-content p {
  font-size: var(--text-base);
  color: var(--clr-ink);
  line-height: 1.8;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
.post-content li {
  font-size: var(--text-base);
  color: var(--clr-ink);
  line-height: 1.75;
  margin-bottom: 8px;
}
.post-content a { color: var(--clr-teal); font-weight: 600; }
.post-content a:hover { color: var(--clr-teal-dark); }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 24px 0;
}

/* ── Abstract box ── */
.abstract-box {
  background: var(--bg-section);
  border-left: 4px solid var(--clr-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.abstract-box p {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--clr-ink);
  line-height: 1.75;
  margin: 0;
}

/* ── Quotation block ── */
.quote-block {
  border-left: 4px solid var(--clr-blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-section);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block blockquote {
  margin: 0;
  padding: 0;
}
.quote-block p {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--clr-ink);
  line-height: 1.75;
  margin: 0 0 10px;
}
.quote-block cite {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.quote-block cite a {
  color: var(--clr-blue);
  text-decoration: underline;
}

/* ── Related service block ── */
.related-service {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  margin: 40px 0 0;
}
.related-service__label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-teal-dark, #2a5d62);
  margin-bottom: 8px;
  display: block;
}
.related-service h3 {
  font-size: var(--text-h3, 18px);
  font-weight: var(--weight-h3, 800);
  color: var(--clr-ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.related-service p {
  font-size: var(--text-sm, 14px);
  color: var(--clr-ink);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Download button ── */
.btn--download {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--download::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M8 2v8m0 0l-3-3m3 3l3-3M2 13h12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.btn--download:hover {
  background: var(--clr-blue-dark, #1a3d6b);
  border-color: var(--clr-blue-dark, #1a3d6b);
  color: var(--clr-white);
  text-decoration: none;
}
.post-content .btn--download { color: var(--clr-white); }

/* ── Tool post image ── */
.tool-image {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.1));
}

/* ── Sidebar ── */
.blog-sidebar {
  min-width: 0;
}

/* Sticky sidebar on desktop — sits below the sticky header (~112px) */
@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: 116px;
    max-height: calc(100vh - 136px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
}

/* Panel heading */
.sidebar-panel__heading {
  font-family: var(--font-head);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  color: var(--clr-ink);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-teal-mid);
}

/* Search */
.sidebar-search {
  margin-bottom: 24px;
}
.sidebar-search__input {
  width: 100%;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--clr-ink);
  border: 2px solid var(--clr-teal);
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.sidebar-search__input:focus {
  outline: none;
  border-color: var(--clr-teal-dark);
}
.sidebar-search__status {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-search__results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-search__result a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-teal-dark);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}
.sidebar-search__result a:hover { color: var(--clr-teal); text-decoration: underline; }

@keyframes fsds-spin { to { transform: rotate(360deg); } }
.sidebar-search__spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--clr-teal-mid);
  border-top-color: var(--clr-teal);
  border-radius: 50%;
  animation: fsds-spin 0.65s linear infinite;
}

/* Section heading inside sidebar panel */
.sidebar-section-heading {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 900;
  color: var(--clr-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
}

/* "More in category" section */
.sidebar-in-cat {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Category strip (image banner linking to category page) */
.sidebar-cat-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cat-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-cat-strip {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  text-decoration: none;
}
.sidebar-cat-strip img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.sidebar-cat-strip:hover img { transform: scale(1.04); }
.sidebar-cat-strip__name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(9,35,39,0.62);
  color: var(--clr-white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 7px 10px;
}

/* Post list */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sidebar-post-item__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-post-item__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-ink);
  line-height: 1.4;
  text-decoration: none;
  display: block;
}
.sidebar-post-item__title:hover { color: var(--clr-teal); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .blog-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    order: 2;
  }
  .post-content-frame,
  .post-content,
  .post-grid { order: 1; }
  .post-content-frame { padding: 20px 20px; }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero { padding: 36px 0 28px; }
  .post-intro { padding: 36px 0 28px; }
  .post-body { padding: 36px 0 48px; }
  .blog-grid { padding: 36px 0 48px; }
  .abstract-box { padding: 16px 18px; }
  .related-service { padding: 24px 20px 28px; }
  .sidebar-panel { padding: 20px 18px; }
}

/* ================================================
   GETTING STARTED CTA — two-column layout
   Used on: after-early-intervention, home-based-aba-services
   Base colours set in home-based-aba-services.css (loaded by both).
================================================ */
.fsds-cta-dark .fsds-school-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.fsds-cta-dark__left { text-align: left; }
.fsds-cta-dark__contact {
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 244px;
  flex-shrink: 0;
}
.fsds-cta-dark__contact-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fsds-cta-dark__contact-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.50);
  white-space: nowrap;
  min-width: 52px;
  padding-top: 2px;
}
.fsds-cta-dark__contact-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.fsds-cta-dark__contact-value a {
  color: var(--clr-white);
  font-weight: 700;
  text-decoration: underline;
}
.fsds-cta-dark__contact-value a:hover { opacity: 0.8; text-decoration: underline; }
@media (max-width: 768px) {
  .fsds-cta-dark .fsds-school-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 var(--gutter-mobile);
    text-align: center;
  }
  .fsds-cta-dark__left { text-align: center; }
  .fsds-cta-dark__contact { min-width: 0; text-align: left; }
}

/* ================================================
   CARD BODY CLAMP
   JS adds .card-body--clamped to any element it finds via the
   shared selector list (header.js). Without JS the class is never
   added and the full text is always visible.
================================================ */
.card-body--clamped {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.card-clamp-btn {
  display: block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-teal-dark);
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
  line-height: 1.5;
}
.card-clamp-btn:hover { color: var(--clr-teal-dark); }
