/* ==========================================================================
   Developing Minds Therapy Services — site styles
   Implements DMTS Brand Identity v1 (sibling system to ANNA Brand v2):
   ivory leads, sprout signs, spruce speaks. Plus Jakarta Sans everywhere,
   display headings Light 300 in sprout. Doodles used like seasoning.
   ========================================================================== */

/* Plus Jakarta Sans loads via the <link> in each page head; no @import here
   (a CSS @import would add a render-blocking round trip after the CSS loads) */

:root {
  /* DMTS brand tokens */
  --spruce: #1E3D33;
  --ivory: #F6F2E8;
  --ivory-light: #FBF8F1;
  --sprout: #67A957;
  --deep-sprout: #4A793E;
  --sprout-display: #548746;
  --sprout-soft: #96C78A;
  --sprout-tint: #EAF3E6;
  --marigold: #EFB954;
  --sky: #7BC3DE;
  --coral: #EF8A6E;
  --lavender: #C99BE3;
  --peach: #FFC9A8;
  --stone: #706B60;
  --white: #FFFFFF;

  /* legacy aliases so existing inline styles keep working */
  --ink: var(--spruce);
  --ink-soft: var(--stone);
  --evergreen: var(--spruce);
  --evergreen-deep: var(--spruce);
  --teal: var(--sprout);
  --teal-bright: var(--sprout);
  --mint: var(--sprout-soft);
  --mint-tint: var(--sprout-tint);
  --coral-deep: var(--coral);
  --coral-tint: #FCE7DF;
  --amber: var(--marigold);
  --amber-tint: #FBEED2;
  --cream: var(--ivory);
  --paper: var(--ivory-light);
  --line: rgba(30, 61, 51, 0.1);

  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(30, 61, 51, 0.06);
  --shadow-lift: 0 10px 28px rgba(30, 61, 51, 0.1);
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;

  /* margin doodles */
  --doodle-sprout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='60' viewBox='0 0 54 60'%3E%3Cpath d='M27 58 C 27 40, 27 34, 27 22' stroke='%2367A957' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M27 26 C 15 22, 11 10, 13 2 C 25 4, 31 14, 27 26 Z' fill='%2367A957'/%3E%3Cpath d='M27 26 C 39 22, 43 10, 41 2 C 29 4, 23 14, 27 26 Z' fill='%2396C78A'/%3E%3C/svg%3E");
  --doodle-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='12' fill='none' stroke='%23EFB954' stroke-width='3.5'/%3E%3Cg stroke='%23EFB954' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='30' y1='10' x2='30' y2='3'/%3E%3Cline x1='30' y1='50' x2='30' y2='57'/%3E%3Cline x1='10' y1='30' x2='3' y2='30'/%3E%3Cline x1='50' y1='30' x2='57' y2='30'/%3E%3Cline x1='16' y1='16' x2='11' y2='11'/%3E%3Cline x1='44' y1='44' x2='49' y2='49'/%3E%3Cline x1='44' y1='16' x2='49' y2='11'/%3E%3Cline x1='16' y1='44' x2='11' y2='49'/%3E%3C/g%3E%3C/svg%3E");
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--spruce);
  color: var(--ivory);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.55;
  color: var(--spruce);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--deep-sprout); color: #fff; }

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

a { color: var(--deep-sprout); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep-sprout);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.08; }
h2 { font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-weight: 600; font-size: 1.13rem; color: var(--spruce); letter-spacing: 0; }
h4 { font-weight: 600; color: var(--spruce); }

/* emphasis words in display headings: a sun-yellow highlighter swash in the
   logo's exact marigold, with spruce letters for legibility (marigold as
   letter color fails contrast on ivory) */
h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--spruce);
  background: linear-gradient(180deg, transparent 16%, var(--marigold) 16% 92%, transparent 92%);
  padding: 0 0.14em;
  border-radius: 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

/* Eyebrow — bold caps with left bar */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-sprout, #4A793E);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--sprout);
}

.lede { font-size: 1.22rem; color: var(--spruce); max-width: 46em; }

/* --------------------------------------------------------------------------
   Buttons — sprout pill primary, outlined secondary
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--deep-sprout); color: #fff; }
.btn-primary:hover { background: var(--spruce); }

.btn-outline { background: transparent; color: var(--deep-sprout, #4A793E); border-color: var(--deep-sprout, #4A793E); }
.btn-outline:hover { background: var(--deep-sprout, #4A793E); color: #fff; }

.btn-light { background: var(--ivory); color: var(--spruce); }
/* heroes are ivory now, so the old dark-hero ghost button renders as a sprout outline */
.btn-ghost-light { background: transparent; color: var(--deep-sprout); border-color: var(--deep-sprout); }
.btn-ghost-light:hover { background: var(--deep-sprout); color: #fff; }

/* --------------------------------------------------------------------------
   Header — ivory, lowercase wordmark with seed dot
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(30, 61, 51, 0.06); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark { width: 38px; height: 44px; flex: none; }

.brand-name {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--spruce);
  line-height: 1;
}
.brand-name span {
  display: block;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--deep-sprout);
  margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: 1.05rem; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--spruce);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--sprout);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--deep-sprout, #4A793E); font-weight: 700; }

.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn { padding: 0.6rem 1.25rem; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--spruce); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(30, 61, 51, 0.1);
    padding: 0.6rem 4% 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .nav-cta { margin: 0.6rem 0 0; }
}

/* --------------------------------------------------------------------------
   Hero — ivory, calm, doodles in the margins
   -------------------------------------------------------------------------- */

.hero { position: relative; background: var(--ivory); color: var(--spruce); overflow: visible; }
.hero::before {
  content: "";
  position: absolute;
  top: 46px;
  right: 4%;
  width: 60px;
  height: 60px;
  background: var(--doodle-sun) no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 { color: var(--deep-sprout); }
.hero h1 .swap-word {
  color: var(--spruce);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 16%, var(--marigold) 16% 92%, transparent 92%);
  padding: 0 0.14em;
  border-radius: 0.2em;
}
.hero .lede { color: var(--spruce); margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--spruce);
  font-weight: 600;
  font-size: 0.93rem;
}
.hero-note svg { width: 32px; height: 32px; flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { display: none; }
}

/* the marquee is retired under the DMTS system (calm over motion) */
.marquee { display: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 4.5vw, 3.2rem) 0; }
.section-teal { background: var(--ivory-light); }
.section-white { background: var(--ivory-light); }

.section-head { max-width: 48em; margin-bottom: clamp(1.8rem, 4.5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }

/* Cards — ivory light rounded rectangles, icon circles */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }

.card {
  position: relative;
  background: var(--ivory-light);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  border: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card::before { display: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.section-teal .card, .section-white .card { background: var(--white); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  color: var(--spruce);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.teal { background: var(--sprout-soft); }
.card-icon.coral { background: var(--peach); }
.card-icon.amber { background: var(--marigold); }

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--spruce); font-size: 0.97rem; margin-bottom: 0; }
.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--deep-sprout);
}
.card .card-link:hover { text-decoration: underline; }

/* Split rows */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split + .split { margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.split-art svg { width: 100%; height: auto; }
/* staff portraits: keep headshots at a human scale on wide screens */
.split-art.leader { max-width: 360px; width: 100%; margin-inline: auto; }
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; }
  .split-art { max-width: 380px; margin-inline: auto; order: -1; }
}

/* Checklist */

.checklist { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: 0.7rem; color: var(--spruce); }
.checklist li strong { color: var(--spruce); font-weight: 700; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sprout);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.5em;
  width: 0.58rem;
  height: 0.32rem;
  border-left: 2.4px solid #fff;
  border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg);
}

/* Badge band */

.badge-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.badge-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--ivory-light);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.badge-item:hover { transform: translateY(-3px); }
.badge-item svg { width: 38px; height: 38px; flex: none; color: var(--deep-sprout); }
.badge-item strong { display: block; font-size: 0.99rem; }
.badge-item span { color: var(--stone); font-size: 0.88rem; }

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  border: 0;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: "0" counter(step);
  display: inline-block;
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  color: var(--deep-sprout);
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--spruce); margin: 0; font-size: 0.95rem; }
.steps a { color: var(--deep-sprout); font-weight: 700; }

/* Quote */

.quote { text-align: center; max-width: 44em; margin-inline: auto; position: relative; }
.quote::before { content: none; }
.quote blockquote {
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.3;
  color: var(--deep-sprout);
  margin: 0 0 1rem;
}
.quote cite { font-style: normal; font-weight: 700; color: var(--stone); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }

/* CTA banner — spruce band */

.cta-banner {
  position: relative;
  background: var(--spruce);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--ivory);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-banner::before, .cta-banner::after { content: none; }
.cta-banner h2 { color: var(--ivory); font-weight: 300; margin-bottom: 0.3em; }
.cta-banner p { color: #BFD4C6; margin: 0; }
.cta-banner .cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--deep-sprout); }
.cta-banner .btn-light { background: var(--ivory); color: var(--spruce); }
@media (max-width: 720px) { .cta-banner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Page intro — ivory light band with margin doodles
   -------------------------------------------------------------------------- */

.page-intro {
  position: relative;
  color: var(--spruce);
  background: var(--ivory-light);
  padding: clamp(2.8rem, 6vw, 4.4rem) 0;
  overflow: visible;
}
.page-intro::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 5%;
  width: 52px;
  height: 58px;
  background: var(--doodle-sprout) no-repeat center / contain;
  pointer-events: none;
}
.page-intro::after { content: none; }
.page-intro h1 { color: var(--deep-sprout); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-intro .lede { color: var(--spruce); margin-bottom: 0; }

/* FAQ */

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  color: var(--spruce);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--sprout-tint);
  color: var(--deep-sprout);
  font-size: 1.2rem;
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sprout); color: #fff; }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--spruce); margin: 0; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.2rem); align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--ivory-light); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.7rem; }
.contact-card h2, .contact-card h3 { color: var(--deep-sprout); font-weight: 300; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line svg { width: 22px; height: 22px; flex: none; color: var(--deep-sprout); margin-top: 0.15rem; }
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line > div { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-line a:hover { text-decoration: underline; }
.contact-line span { display: block; color: var(--stone); font-size: 0.9rem; }

.map-embed { border: 0; width: 100%; height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1.3rem; }

/* Form */

.form-card { background: var(--ivory-light); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.7rem; }
.form-card h2 { color: var(--deep-sprout); font-weight: 300; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(30, 61, 51, 0.18);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--spruce);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--deep-sprout);
  box-shadow: 0 0 0 4px rgba(103, 169, 87, 0.16);
}
.form-hint { font-size: 0.86rem; color: var(--stone); margin-top: 0.85rem; }

/* --------------------------------------------------------------------------
   Footer — spruce band, ivory wordmark plate, quiet network line
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--spruce);
  color: #BFD4C6;
  padding: clamp(2.6rem, 6vw, 3.8rem) 0 1.6rem;
  margin-top: clamp(3rem, 7vw, 4.6rem);
}
.site-footer::before { content: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: var(--ivory); font-size: 1rem; margin-bottom: 0.85rem; }
.site-footer a { color: #BFD4C6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li.sub { padding-left: 1rem; font-size: 0.92rem; }
.site-footer li.sub::before { content: "\2022"; margin-right: 0.45rem; color: var(--marigold); }
.card p a { color: var(--deep-sprout, #4A793E); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--marigold); }
.card p a:hover { background: var(--marigold); color: var(--spruce); }
.footer-brand { margin-bottom: 1rem; }
.footer-plate { display: inline-flex; align-items: center; gap: 10px; background: var(--ivory); border-radius: 10px; padding: 10px 16px; }
.footer-plate .brand-mark { width: 30px; height: 35px; }
.footer-plate .fw { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; color: var(--spruce); }
.footer-mission { max-width: 30em; font-size: 0.95rem; color: #BFD4C6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: 0.84rem;
  color: #9DBFA9;
}

/* --------------------------------------------------------------------------
   Portraits, gallery, chips
   -------------------------------------------------------------------------- */

.portrait { display: block; width: 100%; height: auto; }

/* real photos crop to the brand's arch mask; illustrated SVGs carry their own arch */
.portrait[src*="/photos/"] {
  aspect-ratio: 300 / 380;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 999px 999px 20px 20px;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: end;
  padding: 0.8rem 0.4rem 1.2rem;
}
.hero-collage .portrait { filter: drop-shadow(0 14px 26px rgba(30, 61, 51, 0.16)); }
.hero-collage .pc-a { transform: rotate(-2deg); }
.hero-collage .pc-b { transform: rotate(1.5deg) translateY(14px); }

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ivory-light);
  color: var(--spruce);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
  animation: none;
}
.hero-chip::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--coral); }
.hero-chip.chip-1 { top: 2%; left: -3%; }
.hero-chip.chip-2 { top: 40%; right: -4%; }
.hero-chip.chip-2::before { background: var(--marigold); }
.hero-chip.chip-3 { bottom: -1%; left: 12%; }
.hero-chip.chip-3::before { background: var(--sprout); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.3rem; align-items: end; }
.gallery-grid figure { margin: 0; text-align: center; transition: transform 0.25s ease; }
.gallery-grid figure:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery-grid figure:nth-child(even) { transform: rotate(1.5deg) translateY(8px); }
.gallery-grid figure:hover { transform: rotate(0) translateY(-4px); }
.gallery-grid .portrait { filter: drop-shadow(0 10px 22px rgba(30, 61, 51, 0.14)); }
.gallery-grid figcaption {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--ivory-light);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--spruce);
}

/* --------------------------------------------------------------------------
   Evidence — calm ivory-light band, sprout Light numerals
   -------------------------------------------------------------------------- */

.section-evidence {
  position: relative;
  color: var(--spruce);
  background: var(--ivory-light);
}
.section-evidence::before { content: none; }
.section-evidence h2 { color: var(--deep-sprout); }
.section-evidence .lede { color: var(--spruce); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.stat-card {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  display: block;
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0.6rem;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--deep-sprout);
}
.stat-card h3 { color: var(--spruce); font-size: 1.05rem; }
.stat-card p { color: var(--spruce); font-size: 0.93rem; margin-bottom: 0.75rem; }
.stat-src { font-size: 0.8rem; color: var(--stone); }
.stat-src a { color: var(--deep-sprout); font-weight: 700; }
.evidence-note { margin-top: 1.6rem; font-size: 0.85rem; color: var(--stone); max-width: 56em; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ivory-light);
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--ivory-light);
  border-bottom: 2px solid var(--sprout);
}
.compare-table thead th.highlight-col { background: var(--deep-sprout); color: #fff; }
.compare-table td.highlight-col { background: var(--sprout-tint); font-weight: 600; color: var(--spruce); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { font-weight: 700; color: var(--spruce); width: 24%; }
.compare-table td { color: var(--spruce); }
.compare-table td .yes {
  display: inline-block;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: -0.22rem;
  background: var(--sprout) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 0.68rem no-repeat;
}

/* --------------------------------------------------------------------------
   Reveal on scroll — subtle and steady
   -------------------------------------------------------------------------- */

.reveal-pending { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Garden color distribution — leaning into the full DMTS accent family.
   Full-strength garden hues stay decorative; text uses darkened, readable
   versions of the same hues.
   -------------------------------------------------------------------------- */

:root {
  /* official deep tier per DMTS Brand Identity v2 (AA 4.5:1 on ivory) */
  --deep-sprout: #4A793E;
  --marigold-text: #916610;
  --sky-text: #2D7594;
  --coral-text: #B35032;
  --lavender-text: #8D56B4;
  --sky-tint: #EAF4F9;
  --lavender-tint: #F3EAF9;
  --peach-tint: #FFF0E6;
  --doodle-seeds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='40' viewBox='0 0 70 40'%3E%3Ccircle cx='14' cy='20' r='6' fill='%23EF8A6E'/%3E%3Ccircle cx='35' cy='28' r='6' fill='%23C99BE3'/%3E%3Ccircle cx='56' cy='18' r='6' fill='%2367A957'/%3E%3C/svg%3E");
  --doodle-vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='40' viewBox='0 0 70 40'%3E%3Cpath d='M4 30 C 16 10, 28 10, 35 22 C 42 34, 54 34, 66 14' stroke='%237BC3DE' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* Eyebrows vary by surface: marigold on tinted panels, sky on evidence */
.section-teal .eyebrow, .section-white .eyebrow, .page-intro .eyebrow { color: var(--marigold-text); }
.section-teal .eyebrow::before, .section-white .eyebrow::before, .page-intro .eyebrow::before { background: var(--marigold); }
.section-evidence .eyebrow { color: var(--sky-text); }
.section-evidence .eyebrow::before { background: var(--sky); }

/* H2s on panel surfaces read in spruce, keeping sprout for page-level moments */
.section-white h2, .section-teal h2 { color: var(--spruce); }
.section-evidence h2 { color: var(--deep-sprout); }

/* Icon circles cycle through the whole garden */
.card-grid .card:nth-child(5n+2) .card-icon { background: var(--sky); }
.card-grid .card:nth-child(5n+3) .card-icon { background: var(--marigold); }
.card-grid .card:nth-child(5n+4) .card-icon { background: var(--lavender); }
.card-grid .card:nth-child(5n) .card-icon { background: var(--peach); }

/* Checklist bullets become seed dots: sprout, coral, sky, lavender */
.checklist li:nth-child(4n+2)::before { background: var(--coral); }
.checklist li:nth-child(4n+3)::before { background: var(--sky); }
.checklist li:nth-child(4n)::before { background: var(--lavender); }

/* Step numerals cycle text-safe garden shades */
.steps li:nth-child(4n+2)::before { color: var(--marigold-text); }
.steps li:nth-child(4n+3)::before { color: var(--sky-text); }
.steps li:nth-child(4n)::before { color: var(--coral-text); }

/* Stat numerals: one card each of sprout, sky, coral, marigold */
.stat-grid .stat-card:nth-child(4n+2) .stat-num { color: var(--sky-text); }
.stat-grid .stat-card:nth-child(4n+3) .stat-num { color: var(--coral-text); }
.stat-grid .stat-card:nth-child(4n) .stat-num { color: var(--marigold-text); }

/* Badge band icons pick up garden shades */
.badge-band .badge-item:nth-child(4n+2) svg { color: var(--sky-text); }
.badge-band .badge-item:nth-child(4n+3) svg { color: var(--coral-text); }
.badge-band .badge-item:nth-child(4n) svg { color: var(--marigold-text); }

/* FAQ toggles alternate soft tints */
.faq details:nth-child(3n+2) summary::after { background: var(--sky-tint); color: var(--sky-text); }
.faq details:nth-child(3n) summary::after { background: var(--peach-tint); color: var(--coral-text); }
.faq details[open] summary::after { background: var(--sprout); color: #fff; }

/* Gallery caption dots */
.gallery-grid figcaption::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  background: var(--coral);
}
.gallery-grid figure:nth-child(2) figcaption::before { background: var(--sky); }
.gallery-grid figure:nth-child(3) figcaption::before { background: var(--marigold); }
.gallery-grid figure:nth-child(4) figcaption::before { background: var(--lavender); }

/* Doodle seasoning: seed dots on page intros, vine wave on evidence, sun on CTA */
.page-intro::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 4%;
  width: 64px;
  height: 36px;
  background: var(--doodle-seeds) no-repeat center / contain;
  opacity: 0.85;
  pointer-events: none;
}
.section-evidence { position: relative; overflow: hidden; }
.section-evidence::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 4%;
  width: 66px;
  height: 38px;
  background: var(--doodle-vine) no-repeat center / contain;
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  background: var(--doodle-sun) no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}
.cta-banner { position: relative; overflow: hidden; }

/* Hero: lavender + coral seeds join the marigold sun */
.hero::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 3%;
  width: 60px;
  height: 34px;
  background: var(--doodle-seeds) no-repeat center / contain;
  opacity: 0.85;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Intake handoff keeps family details in Passage Health. */
.intake-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.intake-card > .btn { margin-top: 0.5rem; }
.intake-card .form-hint { line-height: 1.6; }
.passage-intake { display: block; width: 100%; height: 1250px; border: 0; border-radius: 12px; background: white; }
.intake-preview { padding: 2rem; margin-top: 1rem; border: 2px dashed var(--line); border-radius: 12px; background: white; }
.intake-preview h3 { margin-bottom: 1rem; }
.intake-preview p + p { margin-top: 1rem; }
.contact-grid > * { min-width: 0; }
.contact-grid:has(.passage-intake, .intake-preview) { grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); }
.intake-next { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.intake-next h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.intake-next p { font-size: 0.95rem; }
[id] { scroll-margin-top: 7rem; }
@media (max-width: 840px) {
  .contact-grid:has(.passage-intake, .intake-preview) { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > :last-child { grid-row: 1; }
  .intake-card { padding: 1.2rem 0.65rem; }
  .passage-intake { height: 1350px; }
}
@media (max-width: 1120px) {
  html:not(.js-enabled) .nav-toggle { display: none; }
  html:not(.js-enabled) .nav-bar { flex-wrap: wrap; }
  html:not(.js-enabled) .nav-links { display: flex; position: static; width: 100%; }
}

/* Readable text tones preserve the original sprout in decorative fills. */
h1, h2, .hero h1, .page-intro h1, .section-evidence h2,
.contact-card h2, .form-card h2, .quote blockquote { color: var(--sprout-display); }
.contact-card h3 { color: var(--deep-sprout); }
.section-white h2, .section-teal h2 { color: var(--spruce); }
.cta-banner h2 { color: var(--ivory); }
.nav-links a.btn-primary { color: var(--white); }
.site-footer :focus-visible, .cta-banner :focus-visible { outline-color: var(--ivory); }
