/* ============================================================
   Sim Speech Pathology — V9 "Quiet Campus"
   Minimalist · luxurious · lots of white space · neutral with
   small pastel pops · organic clipped photos · gentle glide motion.
   Type: Hanken Grotesk (airy) + Fraunces italic (accents)
   ============================================================ */

:root {
  /* Neutral surfaces */
  --white: #ffffff;
  --paper: #faf8f4;        /* warm off-white */
  --paper-2: #f4f1ea;      /* soft sand */
  --ink: #211f1c;          /* warm near-black */
  --ink-soft: #6f6a63;     /* muted body */
  --ink-faint: #a39d94;
  --hair: #ece8e0;         /* warm hairline */

  /* Small pops (whispers) */
  --sage: #d9e7d4;         --sage-ink: #5f7a59;
  --lavender: #e5ddf1;     --lavender-ink: #6f5d97;
  --peach: #f6e3d2;        --peach-ink: #b07d52;
  --plum: #6e2f4d;         /* rare brand signature */

  /* Page aura (faint pastel) */
  --aura: radial-gradient(60% 50% at 15% 0%, #dde8f6 0%, transparent 55%),
          radial-gradient(55% 45% at 95% 8%, #efe5f3 0%, transparent 55%),
          radial-gradient(60% 50% at 80% 100%, #f6ead9 0%, transparent 55%),
          radial-gradient(50% 40% at 5% 92%, #e2efe0 0%, transparent 55%);

  /* Shadow */
  --shadow-sm: 0 2px 14px rgba(33, 31, 28, .04);
  --shadow: 0 30px 70px -42px rgba(33, 31, 28, .26);

  --r: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;
  --wrap: 1160px;

  /* Gentle glide easings (soft, slow) */
  --glide: cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* faint full-page pastel aura behind everything */
body::before { content: ""; position: fixed; inset: 0; background: var(--aura); opacity: .5; z-index: -1; pointer-events: none; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
.shape-defs { position: absolute; width: 0; height: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.022em; color: var(--ink); }
em { font-style: italic; }
h1 em, h2 em, h3 em, .statement-text em, .big-quote em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 30px; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 14px; top: -60px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); z-index: 200; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared ---------- */
.pill {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  background: var(--lavender); padding: 8px 18px; border-radius: var(--pill);
}
.pill.center { display: block; width: max-content; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: var(--pill); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 400ms var(--glide), color 400ms var(--glide), transform 240ms var(--ease-out), box-shadow 400ms var(--glide);
}
.btn:active { transform: scale(.97); transition-duration: 120ms; }
.btn-sm { padding: 11px 22px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow); }
}

.section { padding: clamp(80px, 12vw, 168px) 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 7vw, 84px); }
.sec-head .pill { margin-bottom: 26px; }
.sec-head h2, .approach-card h3, .contact-info h2 { letter-spacing: -.025em; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 300; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 244, .72); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px); border-bottom: 1px solid var(--hair); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; line-height: 1.05; display: flex; flex-direction: column; letter-spacing: -.01em; }
.brand-sub { font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink-soft); padding: 9px 16px; border-radius: var(--pill); transition: color 320ms var(--glide); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1.5px; background: var(--plum); transform: scaleX(0); transform-origin: center; transition: transform 360ms var(--glide); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--ink); } .main-nav a:hover::after { transform: scaleX(1); } }
.header-end { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--glide), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .pill { margin-bottom: 30px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 300; line-height: 1.06; max-width: 16ch; }
.hero-lede { color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.16rem); max-width: 60ch; margin-top: 26px; }

/* Hero photo cluster: anchor + three smaller supports.
   The anchor is the guide (full colour, largest). Supports are the
   story beats (play → practice → connection), duotone-tinted to read
   as a sequence rather than a flat collage. */
.organics { width: 100%; margin-top: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 34px); }
.organics-supports { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 30px); width: 100%; max-width: 720px; }
.organic { margin: 0; position: relative; }
.organic--anchor { width: clamp(180px, 26vw, 280px); }
.organics-supports .organic { width: 100%; }
.organic--up { transform: translateY(-16px); }
.organic-svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.organic-svg image { transition: transform 900ms var(--glide); }

/* Duotone tints on supports only — anchor stays full colour.
   Applied to the <figure> (HTML element) for reliable cross-browser rendering. */
.organics-supports [data-tone="sage"] { filter: url(#tone-sage); }
.organics-supports [data-tone="lavender"] { filter: url(#tone-lavender); }
.organics-supports [data-tone="peach"] { filter: url(#tone-peach); }

/* Caption under each beat */
.organic-cap { text-align: center; margin-top: 12px; font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .04em; color: var(--ink-faint); }
.organic--anchor .organic-cap { color: var(--ink-soft); font-weight: 600; }

@media (hover: hover) and (pointer: fine) { .organic:hover .organic-svg image, .g-organic:hover .organic-svg image { transform: scale(1.05); } }

/* ============================================================
   PHILOSOPHY STATEMENT
   ============================================================ */
.statement { padding: clamp(70px, 9vw, 130px) 0; background: linear-gradient(180deg, var(--white), #eef3ec 60%, var(--white)); margin: 0 14px; border-radius: var(--r-xl); }
.statement-text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.28; text-align: center; max-width: 20ch; margin-inline: auto; letter-spacing: -.02em; }
.statement-text { max-width: 24ch; }
.statement-text em { color: var(--plum); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.approach-card { background: var(--peach); border-radius: var(--r-lg); padding: clamp(34px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.approach-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; line-height: 1.12; max-width: 14ch; }
.approach-card p { color: var(--ink-soft); margin: 20px 0 30px; font-size: 1.04rem; }
.approach-card p em { color: var(--ink); }
.approach-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.approach-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

/* ============================================================
   PROGRAMS (minimal list)
   ============================================================ */
.prog-list { border-top: 1px solid var(--hair); }
.prog-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(20px, 4vw, 52px); padding: clamp(26px, 3.6vw, 44px) 8px; border-bottom: 1px solid var(--hair); transition: background 500ms var(--glide), padding-inline 400ms var(--glide); }
@media (hover: hover) and (pointer: fine) { .prog-row:hover { background: var(--white); padding-inline: 24px; } }
.prog-index { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--ink-faint); }
.prog-main h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 400; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.prog-age { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.prog-main p { color: var(--ink-soft); margin-top: 6px; max-width: 52ch; }
.prog-dot { width: 14px; height: 14px; border-radius: 50%; }
.prog-dot[data-pop="sage"] { background: var(--sage-ink); }
.prog-dot[data-pop="lavender"] { background: var(--lavender-ink); }
.prog-dot[data-pop="peach"] { background: var(--peach-ink); }
.prog-go { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; color: var(--ink); background: var(--white); transition: transform 360ms var(--glide), background 360ms var(--glide), color 360ms var(--glide); }
.prog-go:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .prog-go:hover { background: var(--ink); color: var(--paper); transform: translateX(3px); } }

/* ============================================================
   VALUES
   ============================================================ */
.sr-vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 72px); }
.value { text-align: center; }
.value-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--ink); letter-spacing: -.04em; display: block; }
.value p { color: var(--ink-soft); margin-top: 16px; font-size: 1.02rem; max-width: 24ch; margin-inline: auto; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); max-width: 920px; margin-inline: auto; }
.g-organic { margin: 0; }
.g-organic--up { transform: translateY(-30px); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { text-align: center; }
.testimonial .pill { margin-bottom: 36px; }
.big-quote { max-width: min(760px, 92vw); margin-inline: auto; }
.big-quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
.big-quote em { color: var(--plum); }
.big-quote footer { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--ink-soft); font-size: .92rem; }
.big-quote footer span:last-child { color: var(--ink-faint); }
.bq-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--lavender); color: var(--lavender-ink); display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); flex-shrink: 0; }
.bq-avatar[data-pop="sage"] { background: var(--sage); color: var(--sage-ink); }
.bq-avatar[data-pop="lavender"] { background: var(--lavender); color: var(--lavender-ink); }
.bq-avatar[data-pop="peach"] { background: var(--peach); color: var(--peach-ink); }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(56px, 7vw, 88px); text-align: left; }
.testi-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow-sm); }
.testi-quote { font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.testi-by { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testi-by > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.testi-by strong { font-family: var(--font-display); font-weight: 600; font-size: .94rem; color: var(--ink); }
.testi-role { color: var(--ink-faint); font-size: .82rem; }
.testi-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.testi-grid .reveal:nth-child(3) { transition-delay: 180ms; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 72px); background: var(--white); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 68px); box-shadow: var(--shadow); border: 1px solid var(--hair); }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
.contact-info h2 em { color: var(--plum); }
.contact-lede { color: var(--ink-soft); margin-top: 18px; font-size: 1.04rem; max-width: 38ch; }
.contact-list { display: grid; gap: 11px; margin-top: 28px; font-size: 1rem; }
.contact-list a { color: var(--ink); border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: border-color 360ms var(--glide); width: max-content; }
.contact-list a:hover { border-color: var(--plum); }
.contact-list li:last-child { color: var(--ink-soft); }

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--ink); }
.field .opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field select { font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 13px 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; transition: border-color 360ms var(--glide); width: 100%; }
.field input::placeholder { color: var(--ink-faint); }
.field select { color: var(--ink-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--plum); }
.form-note { font-size: .92rem; font-weight: 500; color: var(--plum); min-height: 1em; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--hair); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--ink-soft); max-width: 28ch; }
.footer-col h4 { font-family: var(--font-display); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin-bottom: 15px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: .95rem; transition: color 320ms var(--glide); }
.footer-col a:hover { color: var(--plum); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: .84rem; color: var(--ink-faint); }

/* ============================================================
   GENTLE REVEAL ("glide")
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--glide), transform 900ms var(--glide); }
.reveal.in { opacity: 1; transform: translateY(0); }
.organic--up.reveal { transform: translateY(-16px) translateY(22px); }
.organic--up.reveal.in { transform: translateY(-16px); }
.g-organic--up.reveal { transform: translateY(-30px) translateY(22px); }
.g-organic--up.reveal.in { transform: translateY(-30px); }
/* gentle stagger across grouped items */
.organics-supports .reveal:nth-child(2), .gallery-row .reveal:nth-child(2), .values-grid .reveal:nth-child(2), .prog-row.reveal:nth-child(2) { transition-delay: 90ms; }
.organics-supports .reveal:nth-child(3), .gallery-row .reveal:nth-child(3), .values-grid .reveal:nth-child(3), .prog-row.reveal:nth-child(3) { transition-delay: 180ms; }
.organics-supports .reveal:nth-child(4) { transition-delay: 270ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .approach-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .organics-supports { gap: 12px; }
}

@media (max-width: 720px) {
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--hair); padding: 12px 30px 22px; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform .3s var(--glide), opacity .3s var(--glide); }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-end .btn-sm { display: none; }
  .organics-supports { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .organic--up, .organic--up.reveal.in { transform: translateY(-10px); }
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .gallery-row { grid-template-columns: 1fr; max-width: 360px; gap: 28px; }
  .g-organic--up, .g-organic--up.reveal.in { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: auto 1fr auto; }
  .prog-dot { display: none; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .organic--up, .organic--up.reveal.in { transform: translateY(-16px); }
}
