/* ==========================================================================
   Little Luminaries Therapy Services — site styles
   Design tokens recreated from the original Squarespace 7.1 site styles:
   Headings: Manrope 500 · Body: Nunito Sans 400
   Palette: warm cream / slate navy / muted teal / pale blue-gray / deep teal
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets, variable weight) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-sans-italic-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --cream: hsl(45, 75.86%, 88.63%);        /* site "white" — warm cream */
  --cream-soft: hsl(45, 70%, 92%);
  --slate: hsl(200.69, 46.77%, 24.31%);    /* site "black" — deep blue slate */
  --teal: hsl(199.2, 34.25%, 42.94%);      /* accent */
  --teal-dark: hsl(199.2, 34.25%, 36%);
  --pale: hsl(201.43, 17.07%, 83.92%);     /* light accent — pale blue gray */
  --deep: hsl(199.64, 44.72%, 24.12%);     /* dark accent — deep teal */
  --white: #ffffff;

  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 12px;
  --shadow: 0 10px 30px hsla(200.69, 46.77%, 24.31%, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--slate); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.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;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.narrow { max-width: 820px; }

/* ---------- Section themes (mirroring the original palette classes) ---------- */
.section { padding-block: var(--sec-y); position: relative; }
.theme-cream  { background: var(--cream); color: var(--slate); }
.theme-light  { background: var(--pale); color: var(--slate); }
.theme-bright { background: var(--teal); color: var(--white); }
.theme-dark   { background: var(--deep); color: var(--cream); }
.theme-black  { background: var(--slate); color: var(--cream); }
.theme-bright h1, .theme-bright h2, .theme-bright h3, .theme-bright h4 { color: var(--white); }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4,
.theme-black h1, .theme-black h2, .theme-black h3, .theme-black h4 { color: var(--cream); }
.theme-dark a, .theme-black a, .theme-bright a { color: var(--cream); }
.theme-dark a:hover, .theme-black a:hover, .theme-bright a:hover { color: var(--white); }

/* Hero with background image */
.hero {
  min-height: 62vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  position: relative; isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: hsla(200.69, 46.77%, 15%, .45);
}
.hero--tall { min-height: 78vh; }
.hero--short { min-height: 40vh; }
.hero h1, .hero h2 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

/* Divider band (empty cream strip used on the original home page) */
.band { height: clamp(3rem, 7vw, 5rem); background: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: .9rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.theme-dark .btn-primary, .theme-black .btn-primary, .theme-bright .btn-primary {
  background: var(--cream); color: var(--slate);
}
.theme-dark .btn-primary:hover, .theme-black .btn-primary:hover, .theme-bright .btn-primary:hover {
  background: var(--white); color: var(--slate);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid hsla(200.69, 46.77%, 24.31%, .12);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .85rem;
}
.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--slate);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-title:hover { color: var(--teal-dark); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  font-size: .98rem;
  color: var(--slate);
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.social-row { display: flex; align-items: center; gap: .55rem; }
.social-row a { color: var(--slate); display: inline-flex; padding: .2rem; border-radius: 6px; }
.social-row a:hover { color: var(--teal); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; }
.header-cta { padding: .62rem 1.35rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; margin-left: auto;
  color: var(--slate);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .site-nav a { font-size: .9rem; padding: .4rem .45rem; }
  .social-row { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid hsla(200.69, 46.77%, 24.31%, .12);
    box-shadow: var(--shadow);
    margin: 0; padding: .75rem var(--pad-x) 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: 1.1rem; padding: .7rem .25rem; }
  .header-cta { display: none; }
}

/* ---------- Split rows (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.flip > .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}

/* Eyebrow / lead text */
.lead { font-size: 1.15rem; }

/* ---------- Accordions (details/summary) ---------- */
.accordion { border-top: 1px solid hsla(200.69, 46.77%, 24.31%, .18); }
.accordion details { border-bottom: 1px solid hsla(200.69, 46.77%, 24.31%, .18); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.05rem .25rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.5rem; line-height: 1;
  color: var(--teal);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 .25rem 1.2rem; }
.theme-dark .accordion, .theme-black .accordion,
.theme-dark .accordion details, .theme-black .accordion details { border-color: hsla(45, 75%, 88%, .25); }
.theme-dark .accordion summary::after, .theme-black .accordion summary::after { color: var(--cream); }

/* ---------- Forms ---------- */
.form {
  display: grid; gap: 1.1rem;
  text-align: left;
}
.form label { font-weight: 700; font-size: .98rem; display: block; margin-bottom: .35rem; }
.form .hint { font-weight: 400; font-size: .88rem; opacity: .8; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="number"], .form textarea {
  width: 100%;
  font: inherit;
  color: var(--slate);
  background: var(--white);
  border: 1px solid hsla(200.69, 46.77%, 24.31%, .3);
  border-radius: 8px;
  padding: .75rem .9rem;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.choice-group { display: grid; gap: .45rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--teal); flex-shrink: 0; }
.form-status { font-weight: 700; margin-top: .25rem; display: none; }
.form-status.ok { display: block; color: var(--teal-dark); }
.theme-dark .form-status.ok, .theme-black .form-status.ok, .theme-bright .form-status.ok { color: var(--cream); }
.form-status.err { display: block; color: #a33b3b; }
.theme-dark .form-status.err, .theme-black .form-status.err { color: #ffb4a8; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Testimonials ---------- */
.quote-list { display: grid; gap: 2rem; max-width: 900px; margin-inline: auto; }
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.6;
}
.quote-card cite { font-style: normal; font-weight: 700; color: var(--teal-dark); }

/* ---------- Resource cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}
.res-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--slate);
  display: block;
  transition: transform .18s ease;
}
.res-card:hover { transform: translateY(-4px); color: var(--slate); }
.res-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.res-card .res-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.1rem 1.25rem 1.3rem;
}

/* ---------- Marquee (AAC Bootcamp scrolling title) ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Profiles (Who We Are) ---------- */
.profile-figure figcaption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1rem;
}
.profile-figure { margin: 0; }
.profile-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-logo img { width: 170px; border-radius: var(--radius); }
.site-footer h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: .5rem; }
.site-footer p { margin-bottom: .4em; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a { color: var(--cream); display: inline-flex; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page-specific helpers ---------- */
.center { text-align: center; }
.center .btn { margin-top: .5rem; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.bug-accent { width: min(260px, 60%); margin-inline: auto; border-radius: var(--radius); }
.contact-info p { margin-bottom: .5em; }

/* 404 */
.error-hero { min-height: 55vh; display: grid; place-items: center; text-align: center; }
