/* KidSkills Pediatric OT — draft redesign
   Fonts: Bricolage Grotesque (headings), Lexend (body) */

:root,
[data-theme="current"] {
  --bg: #ffffff;
  --tint: #e8f5f4;
  --tint-2: #bacfcd;
  --ink: #1d2b36;
  --muted: #4d5b66;
  --primary: #2e5e85;
  --primary-hover: #234a6a;
  --on-primary: #ffffff;
  --line: #d5e3e2;
}
[data-theme="raspberry"] {
  --bg: #ffffff;
  --tint: #fdeef2;
  --tint-2: #f4c3d1;
  --ink: #2a1520;
  --muted: #5e4650;
  --primary: #b0123f;
  --primary-hover: #8c0e32;
  --on-primary: #ffffff;
  --line: #f1d6de;
}
[data-theme="forest"] {
  --bg: #fbfcf9;
  --tint: #eaf1ea;
  --tint-2: #c5d6c3;
  --ink: #1c2a22;
  --muted: #4a5a50;
  --primary: #2f5d46;
  --primary-hover: #234736;
  --on-primary: #ffffff;
  --line: #d6e2d5;
}
[data-theme="indigo"] {
  --bg: #ffffff;
  --tint: #eef0fa;
  --tint-2: #cdd3ef;
  --ink: #1a1f3a;
  --muted: #4b5170;
  --primary: #3a3f8f;
  --primary-hover: #2c3070;
  --on-primary: #ffffff;
  --line: #dcdff2;
}

/* Logo colours never change with the theme */
:root {
  --logo-pink: #ee1f57;
  --logo-orange: #f7941d;
  --logo-overlap: #b5121b;
  --radius: 14px;
  --max: 1160px;
  --read: 68ch;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  transition: background-color .3s, color .3s;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--logo-orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 40ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 52px; height: auto; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; display: block; }
.brand-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
@media (max-width: 480px) { .site-header .brand-sub { display: none; } .site-header .brand svg { width: 42px; } }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav li { position: relative; }
.nav a, .nav .nav-group > span {
  display: block; padding: .5rem .75rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 1rem; cursor: pointer;
}
.nav a:hover, .nav .nav-group:hover > span { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav .nav-group > span::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.nav .sub {
  list-style: none; margin: 0; padding: .4rem; position: absolute; left: 0; top: 100%;
  min-width: 200px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(20, 30, 40, .25);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav .nav-group:hover .sub, .nav .nav-group:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

.btn {
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; font-family: var(--font-body); line-height: 1.2;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--tint); color: var(--primary-hover); border-color: var(--primary-hover); }
.nav .btn { margin-left: .6rem; padding: .6rem 1.1rem; color: var(--on-primary); }
.nav .btn:hover { background: var(--primary-hover); color: var(--on-primary); }

.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem 1.5rem; flex-direction: column; align-items: stretch; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav .nav-group > span { font-weight: 700; color: var(--muted); font-size: .9rem; padding-bottom: 0; }
  .nav .nav-group > span::after { display: none; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 .4rem .6rem; background: none; }
  .nav .btn { margin: 1rem 0 0; }
}

/* ---------- Logo shapes ---------- */
.shapes .pink { fill: var(--logo-pink); }
.shapes .orange { fill: var(--logo-orange); }
.shapes .overlap { fill: var(--logo-overlap); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--tint); transition: background-color .3s; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; min-height: min(78vh, 680px); padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art { position: relative; justify-self: end; width: min(520px, 100%); }
.hero-art .orange-group { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .slide-in { animation: slideIn 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .hero-art .fade-in { animation: fadeIn .5s ease 1.05s both; }
}
@keyframes slideIn { from { transform: translateX(140px) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-note { font-size: 1rem; color: var(--muted); margin-top: 1.2rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
  .hero-art { order: -1; width: 62%; justify-self: start; margin-bottom: -.5rem; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.2rem; }

.mission { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.mission h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); }
.mission .body p { max-width: var(--read); }
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; gap: 1rem; } }

/* Specialties — rows, not cards */
.specialties { border-top: 1px solid var(--line); }
.spec {
  display: grid; grid-template-columns: 56px 14rem 1fr auto; gap: 1.5rem; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.spec .mark { width: 48px; }
.spec h3 { margin: 0; font-size: 1.5rem; }
.spec h3 small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
.spec p { margin: 0; max-width: 60ch; }
.spec .more { white-space: nowrap; font-weight: 700; }
@media (max-width: 900px) {
  .spec { grid-template-columns: 44px 1fr; gap: .6rem 1rem; }
  .spec .mark { grid-row: span 3; width: 40px; }
  .spec p, .spec .more { grid-column: 2; }
}

/* Services */
.services { background: var(--tint); transition: background-color .3s; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--bg); border-radius: var(--radius); padding: 1.8rem;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.service:first-child { grid-row: span 2; background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.service:first-child a { color: var(--on-primary); }
.service:first-child h3 { font-size: 1.8rem; }
.service p { flex: 1; }
.service a { font-weight: 700; }
.service-grid.two { grid-template-columns: 1.1fr 1fr 1fr; }
@media (max-width: 900px) { .service-grid, .service-grid.two { grid-template-columns: 1fr; } .service:first-child { grid-row: auto; } }

/* Quotes (rotating) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quote .qmark { width: 70px; margin-bottom: 1.2rem; }
.quotes { display: grid; max-width: 52rem; }
.q-slide { grid-area: 1 / 1; margin: 0; }
.q-slide[hidden] { display: block; visibility: hidden; }
.q-slide blockquote { margin: 0; }
.q-slide blockquote p { font-family: var(--font-head); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .8rem; }
.q-slide figcaption { color: var(--muted); font-size: 1.05rem; }
.q-slide.placeholder blockquote p { color: var(--muted); font-style: italic; }
.q-slide.placeholder::before { content: "Draft placeholder"; display: inline-block; font-size: .8rem; font-weight: 600; background: var(--logo-orange); color: #1d2b36; border-radius: 6px; padding: .15rem .5rem; margin-bottom: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .q-slide.entering { animation: qIn .6s ease both; }
}
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quote-controls { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; }
.quote-controls[hidden] { display: none; }
.quote-controls button { font: inherit; cursor: pointer; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem; font-size: 1rem; }
.quote-controls .q-prev, .quote-controls .q-next { font-size: 1.4rem; line-height: 1; padding: 0; }
.quote-controls button:hover { border-color: var(--primary); color: var(--primary); }
.q-dots { display: flex; gap: .3rem; }
.q-dots button { min-width: 0; width: 2.6rem; height: 2.6rem; border: 0; background: none; padding: 0; position: relative; }
.q-dots button::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--tint-2); transition: width .2s; }
.q-dots button[aria-current="true"]::after { background: var(--primary); width: 26px; border-radius: 6px; }
.q-pause { margin-left: .4rem; }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact a { color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
.contact h2 { color: #fff; }
.contact .intro { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 40ch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }
.contact-list .k { color: rgba(255,255,255,.65); font-size: .95rem; }
.contact-list .v { font-size: 1.15rem; }
.contact form { background: var(--bg); color: var(--ink); border-radius: 20px; padding: 2rem; }
.contact form h3 { margin-bottom: .3rem; }
.form-note { font-size: .95rem; color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: .35rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--tint-2); background: var(--bg); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: var(--tint); display: none; }
.form-status.show { display: block; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; gap: 2.5rem; } .row2 { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--tint); position: relative; overflow: hidden; transition: background-color .3s; }
.page-hero .wrap { padding-top: 3.5rem; padding-bottom: 3rem; position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); max-width: 18ch; }
.page-hero .lede { max-width: 50ch; margin: 0; }
.crumb { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--muted); }
.page-hero .corner { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .95; }
@media (max-width: 760px) { .page-hero .corner { width: 150px; right: -40px; bottom: -40px; opacity: .5; } }

.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.prose { max-width: var(--read); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--logo-pink); }
.prose .callout { background: var(--tint); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.prose .callout p:last-child { margin: 0; }
.prose .refs { font-size: 1rem; color: var(--muted); }
.prose .refs li::marker { color: var(--muted); }
.prose .pullquote { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.3; font-weight: 600; border-left: 6px solid var(--logo-orange); padding-left: 1.2rem; margin: 2rem 0; }
.prose .parent-voices { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.prose .parent-voices li { background: var(--tint); border-radius: 999px; padding: .45rem 1rem; margin: 0; font-size: 1.02rem; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: .8em; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: -.05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .95rem; display: grid; place-items: center; }

.aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-card { border-radius: var(--radius); padding: 1.5rem; background: var(--primary); color: var(--on-primary); }
.aside-card h2 { font-size: 1.35rem; color: var(--on-primary); }
.aside-card p { font-size: 1rem; opacity: .92; }
.aside-card .btn { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); width: 100%; }
.aside-card .btn:hover { background: var(--tint); color: var(--primary); }
.aside-card .phone { display: block; margin-top: .8rem; color: var(--on-primary); text-align: center; font-weight: 700; }
.aside-links { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.aside-links h2 { font-size: 1rem; font-family: var(--font-body); color: var(--muted); font-weight: 700; letter-spacing: 0; }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: .55rem 0; text-decoration: none; }
.aside-links a[aria-current="page"] { font-weight: 700; color: var(--ink); }
@media (max-width: 960px) { .page-body .wrap { grid-template-columns: 1fr; gap: 2.5rem; } .aside { position: static; } }

.photo-placeholder { border: 2px dashed var(--tint-2); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 1rem; font-size: 1rem; margin-bottom: 2rem; background: var(--tint); }

.next-steps { background: var(--tint); transition: background-color .3s; }
.next-steps .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.next-steps h2 { margin: 0; max-width: 24ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); color: var(--muted); letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 32ch; }
.legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Service icons */
.service .icon { width: 44px; height: 44px; color: var(--primary); margin-bottom: 1rem; }
.service .icon .dot { fill: var(--logo-orange); }
.service:first-child .icon { color: var(--on-primary); width: 56px; height: 56px; }
.service:first-child .icon .dot { fill: var(--logo-orange); }

/* Accordions */
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc > summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; position: absolute; right: .4rem; top: 1.55rem; width: .6rem; height: .6rem; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.acc[open] > summary::after { transform: translateY(.25rem) rotate(-135deg); }
.acc > summary:hover .acc-title { color: var(--primary); }
.acc-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.acc-sub { display: block; color: var(--muted); font-size: 1rem; margin-top: .3rem; }
.acc[open] { padding-bottom: 1rem; }
.prose .acc + p, .prose p + .acc { margin-top: 1.5rem; }
.refs-acc { margin-top: 2.5rem; }
.refs-acc > summary { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; padding-top: 1rem; padding-bottom: 1rem; }
.refs-acc > summary::after { top: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .acc > summary::after { transition: none; } }

.prose .faq .acc-title { font-size: 1.15rem; }
.prose .faq > summary { padding-top: 1rem; padding-bottom: 1rem; }
.prose .faq > summary::after { top: 1.35rem; }
.prose .faq p { max-width: 60ch; }
.prose h2 + .acc { margin-top: 0; }

/* Page hero with photo */
.page-hero.has-photo .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-bottom: 3.5rem; }
.ph-photo { margin: 0; position: relative; }
.ph-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px -28px rgba(20, 30, 40, .45); }
.ph-photo.portrait { max-width: 380px; justify-self: end; }
.ph-photo.portrait img { aspect-ratio: 1 / 1; border-radius: 50% 50% 22px 22px; }
.ph-photo .ph-shapes { position: absolute; z-index: 0; width: 46%; right: -9%; top: -14%; }
@media (max-width: 860px) {
  .page-hero.has-photo .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .ph-photo .ph-shapes { width: 34%; right: -4%; top: -10%; }
  .ph-photo.portrait { justify-self: start; max-width: 280px; }
}
.mission-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-top: 1.5rem; }

/* Keep anchored headings clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* Self-hosted fonts */
@font-face { font-family: "Lexend"; src: url("fonts/lexend.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
.legal a { color: var(--muted); }
.draft-note { background: #fff4e0; border-left: 4px solid var(--logo-orange); padding: .5rem .8rem; border-radius: 6px; font-size: .95rem; display: block; margin: .5rem 0 1rem; }

/* Nov 15 updates */
.nowrap { white-space: nowrap; }
.field select { width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--tint-2); background: var(--bg); color: var(--ink); }
.field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.q-slide blockquote p { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); line-height: 1.38; }
/* Self-regulation diagram */
.sr-diagram { margin: 2rem 0; padding: 1.5rem; background: var(--tint); border-radius: var(--radius); }
.sr-top { background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-align: center; border-radius: 12px; padding: .7rem 1rem; position: relative; }
.sr-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
.sr-part { background: var(--bg); border-radius: 14px; padding: 1.2rem 1rem; text-align: center; border-top: 5px solid; position: relative; display: grid; justify-items: center; gap: .3rem; }
.sr-part::before { content: ""; position: absolute; top: calc(-1.4rem - 5px); left: 50%; width: 3px; height: 1.4rem; background: var(--tint-2); }
.sr-a { border-color: var(--logo-pink); } .sr-b { border-color: var(--logo-orange); } .sr-c { border-color: var(--primary); }
.sr-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); margin-bottom: .2rem; }
.sr-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-part strong { font-family: var(--font-head); font-size: 1.15rem; }
.sr-part span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.sr-base { background: var(--bg); border: 2px dashed var(--tint-2); border-radius: 12px; text-align: center; padding: .7rem 1rem; font-size: .98rem; }
@media (max-width: 640px) {
  .sr-parts { grid-template-columns: 1fr; gap: .8rem; }
  .sr-part { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 1rem; row-gap: .1rem; }
  .sr-part .sr-ic { grid-row: span 2; margin: 0; }
  .sr-part::before { display: none; }
}
.contact form a { color: var(--primary); }

/* Home: mission block (Nov 18) */
.mission { grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem 3.5rem; }
.mission .mission-h { margin: 0; font-size: 2.6rem; letter-spacing: -0.02em; line-height: 1.18; }
.mission .mission-photo { margin-top: 0; }
.mission .body { grid-column: 1 / -1; }
.mission .body p { max-width: none; font-size: 1.15rem; }
@media (max-width: 1023px) { .mission .mission-h { font-size: 2.2rem; } }
@media (max-width: 820px) {
  .mission { grid-template-columns: 1fr; gap: 1.5rem; }
  .mission .mission-h { font-size: 1.4rem; }
}

/* Testimonials: regular body font with bold key phrases (Nov 18) */
.q-slide blockquote p { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.55; }
.q-slide blockquote strong { font-weight: 600; color: var(--ink); }
/* Home mission text: about two-thirds of the row on wide screens */
.mission .body { max-width: 66%; }
@media (max-width: 820px) { .mission .body { max-width: none; } }
