/* ==========================================================================
   Sarah Claydon — shared base
   Brand: plum #26133F · hot pink #F53EA0 · blush #F8C3E2
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--plum); }

h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* Eyebrow: bumped 11 → 12.5px and darkened off pure pink so small caps
   clear WCAG AA (hot pink on light only reaches ~3.3:1). */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep, #C21B76);
  font-weight: 700;
}

/* --- header: tightened ~28% per brief ------------------------------------ */
.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 50; }
.site-header__in {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 12px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo { display: block; flex: none; }
.logo img { height: 54px; width: auto; }

/* Tagline kept in the header per brief ("KEEP logo, tagline, navigation"),
   sized down so the tightened header height still holds. */
.tagline {
  font-size: 13px;
  line-height: 1.35;
  color: var(--tagline-ink, var(--muted));
  font-style: italic;
  max-width: 30ch;
  flex: 1 1 auto;
  margin: 0 auto 0 4px;
}
@media (max-width: 1100px) { .tagline { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav a { font-size: 15px; font-weight: 500; color: var(--nav-ink); white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--nav-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* --- buttons -------------------------------------------------------------
   Whole box is the hover target (brief: "hover over is the whole box").     */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--btn-radius, 100px);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--pink    { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn--pink:hover    { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn--plum    { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn--plum:hover    { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn--outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn--outline:hover { background: var(--plum); color: #fff; }
.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover   { background: #fff; color: var(--plum); border-color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.nav .btn { color: #fff; }
.nav .btn--outline { color: var(--plum); }
.nav .btn--outline:hover { color: #fff; }

/* --- sections ------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }

/* --- media --------------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--tall     { aspect-ratio: 3 / 4; }
.media--square   { aspect-ratio: 1 / 1; }
.media--wide     { aspect-ratio: 3 / 2; }

/* --- pull quotes (brief: larger than review text) ------------------------ */
.pullquote { text-align: center; max-width: 62ch; margin-inline: auto; }
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.34;
  color: var(--plum);
  letter-spacing: -.015em;
}
.pullquote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-deep, #C21B76);
  font-weight: 700;
}

/* --- individual services list ------------------------------------------- */
.isvc__t { display: block; font-size: 16px; color: var(--plum); font-weight: 700; }
.isvc__d { display: block; font-size: 15.5px; color: var(--muted); margin-top: 5px; line-height: 1.62; }

/* --- testimonials page -------------------------------------------------- */
.tst__pull {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.9vw, 30px);
  line-height: 1.34;
  color: var(--plum);
  letter-spacing: -.015em;
}
.tst__body { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.tst__who {
  margin-top: 20px; font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep, #C21B76); font-weight: 700;
}

/* --- "What I tell families" callouts ------------------------------------ */
.callout__label {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-deep, #C21B76); font-weight: 700;
}
.callout__text { margin-top: 8px; font-size: 15.5px; line-height: 1.62; color: var(--plum); }

/* --- Q&A accordion (brief: question + first two lines, then "Read more…") - */
.qa { border-top: 1px solid var(--rule); padding: 20px 0; }
.qa summary { cursor: pointer; list-style: none; display: block; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.3;
  color: var(--plum);
  padding-right: 32px;
  position: relative;
}
.qa__q::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 22px; font-weight: 400;
  color: var(--accent-deep, #C21B76); line-height: 1;
}
.qa[open] .qa__q::after { content: "–"; }
/* Peek: exactly two lines of the answer, faded out. */
.qa__peek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.qa__more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep, #C21B76);
}
.qa[open] .qa__peek,
.qa[open] .qa__more { display: none; }
.qa summary:hover .qa__q { color: var(--accent-deep, #C21B76); }
.qa summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* --- pink CTA bar -------------------------------------------------------- */
.cta-bar { background: var(--pink); padding: clamp(36px, 5vw, 52px) 0; }
.cta-bar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-bar h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 31px);
  color: var(--plum);
  letter-spacing: -.015em;
  line-height: 1.15;
}

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--plum-deep); color: rgba(255,255,255,.72); padding: 30px 0; font-size: 14px; }
.site-footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--blush); }

/* --- forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--plum); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
/* Flagged by validation until the visitor edits the field. */
.field [aria-invalid="true"] { border-color: #B3261E; background: #FFF8F8; }
.field textarea { min-height: 96px; resize: vertical; }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 600; }
.form-status[data-state="ok"]  { color: #1B7A4B; }
.form-status[data-state="err"] { color: #B3261E; }

/* --- concept switcher (demo only) ---------------------------------------- */
.concept-bar {
  background: var(--plum-deep);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 0;
}
.concept-bar__in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.concept-bar strong { font-weight: 600; letter-spacing: .04em; }
.concept-bar a { color: rgba(255,255,255,.68); }
.concept-bar a:hover, .concept-bar a[aria-current="true"] { color: var(--blush); }
.concept-bar .spacer { margin-left: auto; }

/* --- utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--plum); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

@media (max-width: 880px) {
  .nav { display: none; }
  /* Touch targets: 44px minimum (Apple HIG / WCAG 2.5.5). */
  .nav-toggle { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  .btn, .btn--sm { min-height: 48px; display: inline-flex; align-items: center;
                   justify-content: center; width: auto; }
  /* Footer + inline text links get a real touch area. */
  .site-footer a { display: inline-block; padding: 13px 0; min-height: 44px; box-sizing: content-box; }
  .site-footer__in { gap: 2px; }
  main a:not(.btn) { padding: 12px 0; display: inline-block; }
  /* Demo-only concept switcher */
  .concept-bar a { padding: 15px 0; display: inline-block; }
  .concept-bar__in { gap: 14px 18px; }
  .nav.is-open a { min-height: 44px; display: flex; align-items: center; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    width: auto; max-width: 100%; box-sizing: border-box;
    background: var(--header-bg); padding: 12px clamp(20px, 5vw, 56px) 20px;
    border-bottom: 1px solid var(--rule); gap: 6px;
    box-shadow: 0 12px 28px rgba(38,19,63,.14);
  }
  .nav.is-open .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
  .site-header__in { position: relative; }
  .field--pair { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
