/* =========================================================================
   Wembley Speech Pathology — design system
   Static migration off Squarespace. No build step, no framework.
   Fonts: Poppins (Google) — the live site already served Poppins.
   Palette: warm teal (health/trust) + amber accent (approachable, child-friendly).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink:        #17262a;   /* near-black teal-grey — body text */
  --ink-soft:   #465257;   /* secondary text */
  --bg:         #ffffff;
  --bg-soft:    #f2f7f6;   /* soft mint section band */
  --bg-teal:    #0d6e68;   /* deep teal — dark sections/footer */
  --primary:    #0d857c;   /* teal — links, buttons */
  --primary-dk: #0a6259;
  --accent:     #f2994a;   /* warm amber — highlights, CTA hover */
  --accent-dk:  #e07f2c;
  --line:       #e0ebe8;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 10px 30px -12px rgba(13, 110, 104, 0.28);
  --shadow-sm:  0 4px 14px -8px rgba(23, 38, 42, 0.35);
  --wrap:       1120px;
  --pad:        clamp(1.2rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--light { background: #fff; color: var(--primary-dk); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: .55rem; }
.logo:hover { color: var(--primary); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--bg-teal));
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1rem;
}
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu .btn { color: #fff; }
.nav-menu .btn:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.2rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: .9rem; justify-content: center; }
}

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dk); background: var(--bg-soft); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: .5rem; }
.hero h1 .amp { color: var(--primary); }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .9rem 1.15rem; font-size: .9rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line);
}
.hero__badge b { color: var(--primary); font-size: 1.35rem; display: block; line-height: 1; }
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__lead { max-width: none; }
}

/* ---- sections ---- */
section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section-band { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head .eyebrow { font-weight: 600; color: var(--primary); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---- services grid ---- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--primary); margin-bottom: 1rem; flex: none;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* details / read-more for long service copy */
details.service p { margin-top: .6rem; }
details.service summary {
  cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; list-style: none;
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem;
}
details.service summary::-webkit-details-marker { display: none; }
details.service summary::after { content: '›'; transition: transform .2s ease; font-size: 1.2rem; line-height: 1; }
details.service[open] summary::after { transform: rotate(90deg); }

/* ---- difference / feature list ---- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---- quotes ---- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-teal); color: #eafbf8; border-radius: var(--radius-lg);
  padding: 2rem; font-size: 1.15rem; font-style: italic; line-height: 1.5; position: relative;
}
.quote::before { content: '“'; font-size: 4rem; line-height: .2; color: var(--accent); position: absolute; top: 1.7rem; left: 1.2rem; opacity: .55; }
.quote p { margin: 0; padding-left: 1.4rem; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  margin-bottom: .8rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 1.1rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--primary-dk); }
.faq .faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq .faq__body p { margin: 0; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .ci {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-soft);
  color: var(--primary); display: grid; place-items: center;
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-weight: 600; color: var(--ink); }
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--primary); }
.embed-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .5rem; box-shadow: var(--shadow-sm); min-height: 520px;
}
.embed-frame iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }

/* ---- our speechy / bio ---- */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } }
.bio__avatar {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--bg-teal));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
}
.bio__avatar .initials { font-size: 4.5rem; font-weight: 700; letter-spacing: -0.03em; }
.bio__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.bio__tags li { background: var(--bg-soft); color: var(--primary-dk); font-weight: 500; font-size: .88rem; padding: .4rem .9rem; border-radius: 999px; }
.bio dl { display: grid; gap: .6rem; margin: 1.4rem 0 0; }
.bio dl div { display: flex; gap: .6rem; flex-wrap: wrap; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.bio dt { font-weight: 600; min-width: 130px; }
.bio dd { margin: 0; color: var(--ink-soft); }

/* ---- referral / booking cards ---- */
.referral-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.referral-card h3 { margin-bottom: .2rem; }
.referral-card p { color: var(--ink-soft); font-size: .97rem; }
.referral-card .btn { align-self: flex-start; margin-top: .6rem; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-teal), var(--primary-dk));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6f2ef; max-width: 52ch; margin-inline: auto; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #c9d6d3; padding-block: 3rem 2rem; margin-top: 2rem; }
.site-footer a { color: #c9d6d3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand .logo { color: #fff; margin-bottom: .8rem; }
.footer-brand p { color: #9fb2ae; font-size: .95rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #2c3d40; padding-top: 1.4rem; font-size: .85rem; color: #8ba39e; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---- scroll reveal (progressive enhancement) ----
   Only hidden when JS is active (html.js). No JS = content fully visible. */
.reveal { transition: opacity .5s ease, transform .5s ease; }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- hero typewriter ("One word at a time." types out) ----
   Caret span exists only when JS ran with motion allowed (see main.js). */
.type-caret {
  display: inline-block; width: 2px; height: .9em;
  background: var(--primary); margin-left: 2px; vertical-align: -.08em;
  animation: caret-blink .9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-caret { display: none; } }
