/* ============================================================
   Bright Voices Speech Therapy — Design System
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Brand palette */
  --sunshine: #FFCE47;
  --amber:    #E6A817;
  --amber-deep: #C68A0A;
  --ink:      #1A1A1A;
  --ink-soft: #4A4742;
  --cream:    #FFFDF5;
  --soft-yellow: #FFF8E1;
  --teal:     #3E7C72;   /* supporting trust accent */
  --teal-deep:#2C5C54;
  --line:     #EAE3CF;
  --white:    #FFFFFF;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --maxw: 1180px;
  --radius: 22px;
  --radius-lg: 34px;

  --shadow-sm: 0 2px 12px rgba(50, 40, 0, 0.06);
  --shadow-md: 0 14px 40px rgba(60, 48, 0, 0.10);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--soft  { background: var(--soft-yellow); }
.section--ink   { background: var(--ink); color: var(--cream); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 18px; flex: none;
  background: var(--sunshine);
  border-radius: 9px 9px 9px 2px; /* tiny speech-bubble tail */
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--body); font-weight: 600; font-size: var(--step-0);
  padding: 0.85em 1.6em; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn--primary { background: var(--sunshine); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 500; font-size: var(--step--1); color: var(--ink); text-decoration: none;
  padding: 0.5em 0.8em; border-radius: 100px; transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--soft-yellow); }
.nav__links a[aria-current="page"] { background: var(--sunshine); color: var(--ink); }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  border-radius: 12px;
}
.nav__toggle svg { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform .28s ease;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 0.85em 1em; font-size: var(--step-0); }
  .nav__cta { margin: 0.4rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Hero — the speech-bubble thesis
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__bubble {
  position: relative; background: var(--sunshine);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}
.hero__bubble::after {
  content: ""; position: absolute; left: 38px; bottom: -26px;
  border: 18px solid transparent; border-top-color: var(--sunshine); border-bottom: 0;
  filter: drop-shadow(0 8px 6px rgba(60,48,0,0.06));
}
.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero__sub { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; margin-bottom: 0; }
.hero__aside {
  background: var(--soft-yellow); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
}
.hero__aside h2 { font-size: var(--step-1); margin-bottom: 0.4em; }

/* decorative floating bubbles */
.float-bubble { position: absolute; border-radius: 50% 50% 50% 6px; opacity: 0.5; z-index: -1; }
.fb1 { width: 140px; height: 140px; background: var(--soft-yellow); top: -40px; right: -30px; }
.fb2 { width: 90px;  height: 90px;  background: #EAF3F1; bottom: 10%; left: -40px; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ---- Centred hero variant (logo as centrepiece) ---- */
.hero--centred { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.hero__center { max-width: 780px; margin-inline: auto; }
.hero__logo {
  width: clamp(220px, 40vw, 340px); height: auto; margin: 0 auto clamp(1.5rem, 3vw, 2.2rem);
  display: block;
}
.hero--centred h1 { margin-bottom: 0.4em; }
.hero--centred h1 em { font-style: italic; color: var(--amber-deep); }
.hero--centred .hero__sub { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; margin: 0 auto 0; max-width: 620px; }
.hero__buttons { justify-content: center; }
/* aside sits below, centred and contained */
.hero--centred .hero__aside {
  max-width: 720px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: left;
}
@media (max-width: 560px) {
  .hero--centred .hero__aside { text-align: center; }
  .hero--centred .hero__buttons { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Section heading block
   ============================================================ */
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---- Speech-bubble divider (signature) ---- */
.bubble-divider { display: flex; justify-content: center; gap: 10px; padding-block: 0.5rem; }
.bubble-divider span {
  width: 12px; height: 22px; border-radius: 7px; background: var(--sunshine); opacity: 0.85;
}
.bubble-divider span:nth-child(1){ height: 14px; background: var(--soft-yellow); }
.bubble-divider span:nth-child(2){ height: 26px; }
.bubble-divider span:nth-child(3){ height: 18px; background: var(--amber); }
.bubble-divider span:nth-child(4){ height: 12px; background: var(--soft-yellow); }

/* ============================================================
   Cards
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card__tag {
  align-self: flex-start; font-weight: 600; font-size: var(--step--1);
  background: var(--soft-yellow); color: var(--amber-deep);
  padding: 0.35em 0.9em; border-radius: 100px; margin-bottom: 1rem;
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   Areas of support / icon list
   ============================================================ */
.support-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.support-list li {
  display: flex; gap: 0.9rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.1rem 1.2rem;
}
.support-list .ico { font-size: 1.5rem; line-height: 1; flex: none; }
.support-list strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.support-list span { color: var(--ink-soft); font-size: var(--step--1); }

/* Even, uniform grid: 4 across on desktop, 2x2 on tablet, 1 on mobile */
.support-list--even { grid-template-columns: repeat(4, 1fr); }
.support-list--even li { flex-direction: column; text-align: center; align-items: center; gap: 0.6rem; }
.support-list--even .ico { font-size: 1.9rem; }
@media (max-width: 900px) { .support-list--even { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .support-list--even { grid-template-columns: 1fr; } }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); position: relative;
}
.price-card--feature { background: var(--sunshine); border-color: var(--amber); }
.price-card .amount { font-family: var(--display); font-size: var(--step-3); font-weight: 700; line-height: 1; }
.price-card .price-name { font-weight: 600; font-size: var(--step-1); margin: 0.3em 0 0.6em; font-family: var(--display); }
.price-card p { color: var(--ink-soft); margin-bottom: 0; }
.price-card--feature p { color: #5a4a14; }

.addons { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); }
.addons table { width: 100%; border-collapse: collapse; }
.addons th, .addons td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.addons th { font-family: var(--body); font-weight: 600; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-deep); }
.addons td:last-child { font-weight: 600; white-space: nowrap; text-align: right; }
.addons tr:last-child td { border-bottom: 0; }

.fineprint { font-size: var(--step--1); color: var(--ink-soft); }
.fineprint p { max-width: none; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 0.8rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 600;
  font-size: var(--step-1); 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(--amber); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.3rem 1.3rem; margin: 0; color: var(--ink-soft); }

/* ============================================================
   Forms
   ============================================================ */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.4rem; }
.field .req { color: var(--amber-deep); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: var(--step-0); color: var(--ink);
  padding: 0.75em 0.9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,206,71,0.3);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px){ .field-2 { grid-template-columns: 1fr; gap: 0; } }

.checkgroup { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.checkgroup label {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: var(--step--1);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 100px;
  padding: 0.5em 1em; cursor: pointer; margin: 0;
}
.checkgroup input { width: auto; }
.hint { font-size: var(--step--1); color: var(--ink-soft); margin-top: 1.2rem; }

/* ============================================================
   Contact split
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 760px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--soft-yellow); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); }
.email-link { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--teal-deep); word-break: break-word; }

/* ============================================================
   Resources
   ============================================================ */
.res-group { margin-bottom: 2.2rem; }
.res-group h3 { font-size: var(--step-1); color: var(--amber-deep); margin-bottom: 0.8rem; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.res-list li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.res-list strong { font-family: var(--display); font-size: 1.05rem; }
.res-list a { font-weight: 600; }
.res-list p { margin: 0.3rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

/* ============================================================
   Marquee strip
   ============================================================ */
.strip { background: var(--ink); color: var(--cream); overflow: hidden; padding-block: 1rem; }
.strip__track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.strip__track span { font-family: var(--display); font-size: var(--step-1); display: inline-flex; align-items: center; gap: 2.5rem; }
.strip__track span::after { content: "•"; color: var(--sunshine); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .strip__track { animation: none; } }

/* ============================================================
   Legal / prose pages
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--ink-soft); font-size: var(--step--1); }
.policy-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.policy-table th, .policy-table td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--line); vertical-align: top; font-size: var(--step--1); }
.policy-table th { background: var(--soft-yellow); font-family: var(--body); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--soft-yellow); color: var(--ink); padding-block: clamp(2.5rem,5vw,4rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer img { height: 54px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: var(--amber-deep); font-family: var(--body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer p { color: var(--ink-soft); font-size: var(--step--1); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-bottom p { margin: 0; }
.social { display: flex; gap: 0.8rem; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--sunshine); border-radius: 50%; }
.social a:hover { background: var(--amber); }
.social svg { width: 20px; height: 20px; fill: var(--ink); }
.social a:hover svg { fill: var(--ink); }

/* ============================================================
   Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }
