/* Autism Solutions — site stylesheet
   Calm, low-stimulation palette. No external fonts or libraries. */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #16232a;
  --muted: #56666b;
  --brand: #1f5f63;
  --brand-dark: #154448;
  --brand-soft: #e3efec;
  --accent: #b9722e;
  --accent-soft: #f7e9d7;
  --sand: #f1e9dc;
  --line: #e4ddd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 43, 47, 0.06), 0 6px 20px rgba(30, 43, 47, 0.05);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --wrap: 1120px;
  --prose: 50rem;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--brand-dark); margin: 0 0 0.45em; font-weight: 700; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 0.75em; }
ul, ol { padding-left: 1.3em; margin: 0 0 0.9em; }
li { margin-bottom: 0.25em; }
strong { color: var(--ink); }

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

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); }
/* a container that is both .wrap and .prose keeps the full column width (so it lines up with headings);
   its content is limited to the reading width instead */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: var(--prose); }
.wrap.prose > .section-head, .wrap.prose > .two-col { max-width: none; }
.wrap.prose.center > * { margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9a5a1f; font-weight: 700; margin-bottom: 0.4rem; display: block; }

/* ---------- Masthead banner + navigation ---------- */
.masthead { padding-top: 0.6rem; }
.masthead a { display: block; }
.masthead img { width: 100%; height: clamp(100px, 15.5vw, 172px); object-fit: cover; object-position: center 54%; border-radius: 10px; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; margin-top: 0.5rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.9rem; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--brand-dark); cursor: pointer; margin: 0.4rem 0; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; display: flex; gap: 0.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 0.55rem 0.8rem; text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--accent); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.4rem 1rem 0.8rem; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.65rem 0.6rem; font-size: 1rem; border-bottom: 0; border-radius: 8px; }
  .site-nav a[aria-current="page"] { background: var(--brand-soft); }
}

/* ---------- Home slideshow ---------- */
.slider { position: relative; margin-top: 0.8rem; }
.slides { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(320px, 78%); scroll-snap-align: start; margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--sand); }
.slide img { width: 100%; height: 175px; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.8rem 0.5rem; color: #fff; font-weight: 700; font-size: 0.95rem; background: linear-gradient(to top, rgba(10, 30, 34, 0.78), rgba(10, 30, 34, 0)); }
.slider-controls { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.35rem; z-index: 2; }
.slider-controls button { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 999px; min-width: 2.1rem; height: 2.1rem; padding: 0 0.7rem; font-size: 0.88rem; font: inherit; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.slider-controls button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.home-intro { display: grid; grid-template-columns: 1fr 230px; gap: 1.6rem; align-items: start; }
.home-intro img { border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .home-intro { grid-template-columns: 1fr; } .home-intro img { max-width: 200px; } }

/* ---------- Layout blocks ---------- */
.section { padding: clamp(1.4rem, 3vw, 2.2rem) 0; }
.section.tint { background: var(--brand-soft); }
.section.sand { background: var(--sand); }
.section-head { max-width: var(--prose); margin-bottom: 1.1rem; }

.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); padding: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(1.2rem, 2.5vw, 1.8rem); margin-top: 1rem; position: relative; overflow: hidden; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; color: var(--brand); margin-bottom: 0.7rem; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 0.4fr; gap: 1.5rem; align-items: center; }
.hero-art { width: 100%; max-width: 170px; justify-self: center; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 110px; order: -1; justify-self: start; } }

.page-hero { background: var(--brand-soft); padding: clamp(1.1rem, 2.5vw, 1.7rem) 0 clamp(1rem, 2vw, 1.4rem); margin-top: 0; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero p.lead { font-size: 1.1rem; font-weight: 500; color: var(--brand); max-width: var(--prose); margin: 0; }

.btn { display: inline-block; padding: 0.6rem 1.15rem; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; border: 2px solid var(--brand); transition: background 0.15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

.arrow-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.arrow-link:hover { border-color: var(--brand); }

.cards { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.4em; }
.card .tag { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.card p.said { font-style: italic; font-size: 1.05rem; color: var(--brand); flex: 1; }
.card .go { margin-top: auto; font-weight: 600; }
.card a.stretch { text-decoration: none; }
.card.link-card { transition: transform 0.15s, box-shadow 0.15s; }
.card.link-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30,43,47,.08), 0 10px 26px rgba(30,43,47,.09); }

.quote { border-left: 5px solid var(--accent); background: var(--surface); padding: 0.8rem 1.2rem; margin: 1rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; font-weight: 500; line-height: 1.45; color: var(--brand-dark); max-width: var(--prose); }
.quote p { margin: 0; }
.pull { font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.4; color: var(--brand-dark); font-weight: 650; max-width: var(--prose); margin: 1rem 0; }

/* ---------- Philosophy flow ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0.8rem 0 1rem; counter-reset: flow; }
.flow li { margin: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 700; letter-spacing: 0.06em; font-size: 0.88rem; text-transform: uppercase; }
.flow li:not(:last-child)::after { content: "→"; margin-left: 0.8rem; opacity: 0.7; }
.stage { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; }
.stage .num { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; font-weight: 600; }
.stage h2 { font-size: 1.35rem; }
.questions { list-style: none; padding: 0; }
.questions li { padding: 0.35rem 0 0.35rem 1.3rem; position: relative; font-style: italic; color: var(--brand-dark); }
.questions li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Questions (Parents / Professionals) ---------- */
.q-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; box-shadow: var(--shadow); }
.q-card .q { font-style: italic; font-size: 1.05rem; line-height: 1.35; font-weight: 500; color: var(--brand-dark); margin: 0; }
.q-card .explore { margin-top: auto; font-size: 0.95rem; display: flex; flex-direction: column; gap: 0.35rem; }

.res-link { font-weight: 600; }
.res-link.pending { color: var(--muted); font-weight: 500; cursor: default; }
.badge { display: inline-block; font-style: normal; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; background: var(--accent-soft); color: #7a4713; border-radius: 999px; padding: 0.12rem 0.55rem; margin-left: 0.35rem; vertical-align: 1px; }
.badge.pdf { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Accordion steps ---------- */
.steps details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; box-shadow: var(--shadow); }
.steps summary { list-style: none; cursor: pointer; padding: 0.7rem 1.1rem; display: flex; gap: 0.8rem; align-items: center; font-size: 1.05rem; font-weight: 650; color: var(--brand-dark); }
.steps summary::-webkit-details-marker { display: none; }
.steps summary .n { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: 0.95rem; }
.steps summary::after { content: "+"; margin-left: auto; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.steps details[open] summary::after { content: "–"; }
.steps .body { padding: 0 1.1rem 0.9rem 3.7rem; }
@media (max-width: 600px) { .steps .body { padding-left: 1.3rem; } }
.expand-all { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; margin-bottom: 1rem; }

/* ---------- AAPT ---------- */
.two-col { display: grid; grid-template-columns: 1fr 15rem; gap: 1.8rem; align-items: start; }
@media (min-width: 861px) { .two-col.side-wide { grid-template-columns: 1fr 17rem; } }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .book-figure img { max-width: 16rem; } }
.book-figure { margin: 0; }
.book-figure img { border-radius: 8px; box-shadow: 0 10px 30px rgba(30,43,47,.22); }
.book-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.7rem; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 0.9rem 1.2rem; margin: 1rem 0; max-width: var(--prose); }
.callout p:last-child { margin-bottom: 0; }
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; max-width: var(--prose); margin: 0.8rem 0; }
@media (max-width: 600px) { .contrast { grid-template-columns: 1fr; } }
.contrast > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 1rem; font-weight: 600; }

/* ---------- Resources ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.tabs-nav a { display: block; padding: 0.55rem 1.1rem; border: 1px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 600; }
.tabs-nav a:hover { background: var(--brand); color: #fff; }
.res-group { margin-bottom: 1.2rem; }
.res-group h3 { margin-bottom: 0.2em; }
.res-group .desc { color: var(--muted); margin-bottom: 0.8rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.doc-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 1rem; display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; }
.doc-list .n { color: var(--accent); font-weight: 700; min-width: 1.6rem; }
.doc-list .meta { margin-left: auto; font-size: 0.85rem; color: var(--muted); }
.webinar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.webinar-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 1rem; display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.webinar-list .date { font-size: 0.85rem; color: var(--muted); min-width: 5.5rem; letter-spacing: 0.04em; }
.subhead { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 1rem 0 0.4rem; }

/* ---------- Thousand words ---------- */
.tw-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tw-nav a { display: block; padding: 0.45rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.tw-nav a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tw-section { padding: 1.3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.tw-section:first-of-type { border-top: 0; }
.gallery { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); margin: 0.8rem 0 0; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--sand); }
.gallery.portrait img { aspect-ratio: 3 / 4; }

/* ---------- Community ---------- */
.conv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.conv-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.conv-list summary { list-style: none; cursor: pointer; padding: 0.65rem 1.1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 1rem; align-items: center; }
.conv-list summary::-webkit-details-marker { display: none; }
.conv-list .num { font-size: 1.6rem; color: var(--accent); font-weight: 700; grid-row: span 2; line-height: 1; }
.conv-list .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.conv-list .title { font-size: 1.05rem; font-weight: 650; color: var(--brand-dark); grid-column: 2; }
.conv-list summary::after { content: "+"; grid-column: 3; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--accent); }
.conv-list details[open] summary::after { content: "–"; }
.conv-list .body { padding: 0 1.1rem 0.9rem 3.6rem; }
@media (max-width: 600px) { .conv-list .body { padding-left: 1.3rem; } }
.conv-list .recording { font-size: 0.92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 0.7rem; margin-top: 0.4rem; }
.path { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; list-style: none; padding: 0; margin: 0.5rem 0 0.9rem; }
.path li { margin: 0; font-size: 1.02rem; color: var(--brand-dark); font-weight: 600; }
.path li:not(:last-child)::after { content: "→"; color: var(--accent); margin-left: 0.7rem; }

.rhythm { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); list-style: none; padding: 0; margin: 0.9rem 0; counter-reset: r; }
.rhythm li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); padding: 0.75rem 1rem; }
.rhythm li:nth-child(3) { border-top-color: var(--accent); }
.rhythm .step { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: block; }
.rhythm strong { font-size: 1.05rem; color: var(--brand-dark); display: block; margin: 0.2rem 0 0.4rem; }
.rhythm span.sub { font-size: 0.92rem; color: var(--muted); }
.timeline { border-left: 3px solid var(--brand-soft); margin: 0.8rem 0 0; padding-left: 1.5rem; max-width: var(--prose); }
.timeline .beat { position: relative; padding-bottom: 0.9rem; }
.timeline .beat::before { content: ""; position: absolute; left: -2.05rem; top: 0.35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); }
.timeline .beat.live::before { background: var(--accent); }
.timeline h3 { margin-bottom: 0.15em; }
.timeline .kicker { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.6rem; }

/* ---------- Saima ---------- */
.fee-table { border-collapse: collapse; width: 100%; max-width: 32rem; margin: 0.8rem 0 1rem; background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--brand-soft); font-weight: 600; }
.fee-table tr:last-child td { border-bottom: 0; }
.inline-fig { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #e9f1ef; padding: 1.6rem 0 1.2rem; margin-top: 1.5rem; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 1rem; padding-top: 0.8rem; font-size: 0.86rem; color: #c8d9d5; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .steps details, .conv-list details { border: 0; box-shadow: none; }
  details > * { display: block !important; }
}

.btn-wrap{display:inline-flex; flex-direction:column; align-items:center; gap:0.2rem}
.btn.is-disabled{cursor:default; user-select:none}
.btn.is-disabled:hover{background:var(--brand)}
.soon-note{font-size:0.8rem; color:var(--muted,#666)}
.btn-row{align-items:flex-start}
