/* ==========================================================================
   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);
  --header-h: 118px;
  --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(--cream);
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
/* Homepage tagline hero: two-mode sizing that reconciles both owner requests.
   Earlier round: the 49-char sentence ("Lighting the way to communication
   and connection.") had to render on ONE line at every width — it wrapped
   into an ugly mid-sentence 3-line block, which was rejected. That rule
   satisfied "one line" but the fluid size needed to keep it from overflowing
   at narrow widths (down to a 375px phone) also capped it at ~44px on
   desktop — smaller than the page's own h2s. Owner's latest note: make it
   considerably bigger. Reconciled as two modes so neither complaint reopens:
     - Below 1100px there isn't room for one big line without shrinking back
       to the old cramped size, so instead we allow a clean, BALANCED
       two-line wrap (text-wrap: balance breaks near the midpoint — never
       the old ugly 3-line stack) at a much larger size than before. At a
       375px phone, real measurement of this exact string in Manrope shows
       28px+ needs ~420px of width just to break in two — more than a 375px
       viewport has even at zero side padding — so the low end of this
       clamp is tuned to the largest size that still empirically guarantees
       2 lines / no overflow at 375px (~22px) and ramps from there.
     - At 1100px+ we keep the one-line requirement, but widen the hero's
       container past the site's normal 1200px cap so a single line has
       room to be large without overflowing. Both the container formula and
       the h1 clamp below are tuned against real rendered-text measurements
       (not estimated char widths) at 1100/1150/1280/1440/1920.
   Scoped to .hero--tall only (the home hero) — other hero pages use
   .hero--short with short titles and keep the wrap + 22ch rule above. */
.hero--tall h1 {
  white-space: normal;
  max-width: none;
  text-wrap: balance;
  font-size: clamp(1.375rem, 0.18rem + 5.1vw, 2.625rem);
}
@media (min-width: 1100px) {
  /* clamp(), not min(): never let the hero container get narrower than the
     site's normal 1200px cap (94vw alone dips below 1200px until ~1277px
     viewport) — it only needs to grow BEYOND 1200px on larger screens, and
     the extra width directly raises the max size that still fits one line. */
  .hero--tall .container { max-width: clamp(1200px, 94vw, 1800px); }
  .hero--tall h1 {
    white-space: nowrap;
    font-size: clamp(2.625rem, 0.3rem + 3.38vw, 4.25rem);
  }
}

/* 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 (transparent, overlaid on the first section) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
}
.header-inner {
  display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.4rem);
  justify-content: space-between;
  padding-block: 1.6rem;
}
.site-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .2rem; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  padding: .3rem .4rem;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.social-row { display: flex; align-items: center; gap: .35rem; }
.social-row a { color: var(--cream); display: inline-flex; padding: .15rem; border-radius: 6px; }
.social-row a:hover { opacity: .75; }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }
.header-cta { padding: .58rem 1.15rem; font-size: .98rem; font-family: var(--font-body); font-weight: 600; }

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

/* Light-header pages: first section is light, so header text is slate */
body.hero-light .site-title,
body.hero-light .site-nav a,
body.hero-light .social-row a,
body.hero-light .nav-toggle { color: var(--slate); }

/* First section sits under the transparent header — pad it clear.
   Full-viewport hero images extend behind the header (content is centred). */
main > .section:first-child { padding-top: calc(var(--header-h) + var(--sec-y) * 0.5); }
main > .hero:first-child { padding-top: var(--header-h); }

@media (max-width: 1080px) {
  .site-nav a { font-size: .92rem; padding: .3rem .4rem; }
  .social-row { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .header-inner { padding-block: 1.15rem; }
  .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; align-items: flex-start; }
  .site-nav a { font-size: 1.1rem; padding: .7rem .25rem; color: var(--slate); }
  .site-nav a[aria-current="page"] { color: var(--teal); }
  .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; }
/* The firefly logo is a transparent-background mark, not a photo — the card
   treatment above paints a visible ghost rectangle behind it. Exempt it via
   attribute selector so no HTML change is required. */
.split-media img[src$="logo-full-color.png"] { box-shadow: none; border-radius: 0; }
@media (max-width: 800px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}
/* Modifier: top-align a row instead of vertically centering it — for rows
   where one column (e.g. a long bio) is much taller than the other, so the
   photo/short column hugs the top instead of floating at the row's midpoint. */
.split--top { align-items: start; }

/* 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); }

@media (prefers-reduced-motion: reduce) {
  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);
  /* Logo is navy-on-transparent; on the slate/blue footer it's invisible
     without a light chip behind it. */
  background: var(--cream);
  padding: .8rem;
}
.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; }
/* Fax number: match the teal underlined look of the mailto:/tel: links in the
   same block, without making it an actual clickable tel: link (fax lines
   shouldn't be dialed). */
.contact-info .fax-num {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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