/* ============================================================
   Spark Speech Language & Learning — design system
   Brand refresh. Tokens map 1:1 to captured live values.
   ============================================================ */

/* ---- Fonts (self-hosted from the Divi et-fonts cache) ---- */
@font-face {
  font-family: "Basic Sans";
  src: url("assets/fonts/basic-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Acumin Pro";
  src: url("assets/fonts/acumin-pro.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* brand ground truth */
  --blue: #0b56bb;
  --blue-deep: #08408c;
  --navy: #2d2f47;
  --orange: #cf621f;
  --orange-deep: #b3501594;
  --orange-hover: #b85317;
  --yellow: #ffbd59;       /* logo sunburst */
  --green: #1f8a5b;        /* success */

  /* surfaces */
  --white: #ffffff;
  --cream: #fdf7ef;        /* soft tint behind hero */
  --blue-tint: #eef3fb;
  --orange-tint: #fbeee3;
  --line: #ece6dc;

  /* text */
  --ink: #2d2f47;
  --ink-soft: #5a5c70;
  --ink-mute: #8a8c9c;

  /* fonts (overridable by Tweaks) */
  --font-head: "Basic Sans", "Figtree", system-ui, sans-serif;
  --font-body: "Acumin Pro", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  /* shape (overridable by Tweaks) */
  --radius: 8px;
  --radius-lg: 20px;
  --btn-radius: 8px;

  /* doodle intensity (overridable by Tweaks): 1 = generous, .45 = restrained, 0 = off */
  --doodle: 1;

  /* hero surface (overridable by Tweaks) */
  --hero-bg: var(--cream);

  /* rhythm */
  --container: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  --shadow-sm: 0 2px 10px rgba(45, 47, 71, .06);
  --shadow-md: 0 18px 44px rgba(45, 47, 71, .12);
  --shadow-lg: 0 30px 70px rgba(45, 47, 71, .18);
}

/* ---- 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(--white);
  font-size: 1.0625rem;        /* ~17px, bumped from the live 14px */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); color: var(--blue); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); color: var(--blue); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: var(--navy); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--navy); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--navy); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue); color: #eaf1fb; }
.section--blue h2, .section--blue h3 { color: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.7; }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); display: grid; gap: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.06rem;
  padding: calc(.85rem + 1px) 2rem calc(.85rem - 1px); border-radius: var(--btn-radius); border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  line-height: 1.1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(207,98,31,.28); }
.btn--primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(207,98,31,.34); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(11,86,187,.26); }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: calc(1.05rem + 1px) 2.4rem calc(1.05rem - 1px); font-size: 1.12rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.05; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a.navlink {
  padding: .6rem .95rem; border-radius: 8px; font-weight: 500; color: var(--navy);
  transition: background-color .18s, color .18s; position: relative;
}
.nav a.navlink:hover { background: var(--blue-tint); color: var(--blue); }
.nav a.navlink[aria-current="page"] { color: var(--blue); }
.nav a.navlink[aria-current="page"]::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .65rem; margin-left: .6rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); padding: .55rem .6rem; white-space: nowrap; }
.nav__phone:hover { color: var(--orange); }
.nav__phone svg { width: 1.05em; height: 1.05em; color: var(--orange); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #c9cbd9; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #c9cbd9; transition: color .18s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #9a9cb0; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col .row { display: flex; gap: .6rem; align-items: flex-start; color: #c9cbd9; }
.footer-col .row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .28rem; color: var(--yellow); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--orange); }
.socials svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: #8688a0; }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.4vw, 2.1rem); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.card p { color: var(--ink-soft); }

/* ---- Photo frames (angled, overlapping) ---- */
.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.frame--tilt { transform: rotate(-2.2deg); }
.frame--tilt-r { transform: rotate(2.4deg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Doodle decorations ---- */
.doodle { position: absolute; pointer-events: none; opacity: var(--doodle); user-select: none; z-index: 1; }

/* ---- Checklist ---- */
.checklist { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); grid-template-columns: 1fr 1fr; gap: .9rem 2.5rem; align-content: start; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--navy); line-height: 1.35; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: .12rem;
  background: var(--orange-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf621f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center;
}

/* ---- FAQ accordion ---- */
.faq { display: grid; gap: .85rem; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #dcd4c7; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .plus { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq__q .plus svg { width: 16px; height: 16px; }
.faq__item[open] .plus { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }
.faq__a p + p { margin-top: .8rem; }

/* ---- Testimonial ---- */
.testimonial { text-align: center; max-width: 880px; margin-inline: auto; }
.testimonial .quote-mark { font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--yellow); }
.testimonial blockquote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.28; color: var(--navy); letter-spacing: -0.01em; margin: 1rem 0 1.5rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--orange); font-size: 1.05rem; }

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: clamp(20px, 3vw, 32px); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e0f4; max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---- Hero ---- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero::after { /* subtle doodle wash */
  content: ""; position: absolute; inset: 0; background: url("assets/pattern.webp"); background-size: 760px;
  opacity: calc(var(--doodle) * .5); mix-blend-mode: multiply; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero__copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero__copy h1 { max-width: 13ch; }
.hero__copy .lead { max-width: 46ch; }
.hero__art { position: relative; }
.hero__art .frame { max-width: 540px; margin-inline: auto; }
.hero__trust { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; color: var(--ink-soft); font-size: .95rem; }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.hero__trust strong { color: var(--navy); }

/* doodle accents reusing baked-in photo doodles is enough; this is a soft halo */
.hero__art::before {
  content: ""; position: absolute; width: 78%; height: 78%; right: -6%; top: 8%;
  background: radial-gradient(circle, var(--orange-tint) 0%, transparent 70%);
  opacity: var(--doodle); z-index: -1; border-radius: 50%;
}

/* ---- Story (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__copy { display: grid; gap: 1.2rem; justify-items: start; }
.split__media { position: relative; }
.split__media .frame { box-shadow: var(--shadow-md); }

/* ---- Feature grid (value cards) ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }

/* ---- Service cards ---- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2.2vw, 1.6rem); }
.service-grid--home { grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.4vw, 2.1rem); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; position: relative; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { margin-bottom: .65rem; font-size: 1.3rem; color: var(--blue); }
.service-card p { color: var(--ink-soft); font-size: 1rem; }
.service-card__num { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--orange); background: var(--orange-tint); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; }
.service-card__icon { width: 60px; height: 60px; margin-bottom: 1.1rem; }
.service-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card--icon h3 { color: var(--navy); }

/* ---- Bios ---- */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.bio + .bio { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.bio--rev .bio__photo { order: 2; }
.bio__photo .frame { box-shadow: var(--shadow-md); }
.bio__body { display: grid; gap: 1rem; }
.bio__name { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--navy); }
.bio__role { color: var(--orange); font-weight: 600; font-family: var(--font-body); margin-top: -.4rem; }
.bio__body p { color: var(--ink-soft); }

/* ---- Checklist panel ---- */
.checklist-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 3rem); box-shadow: var(--shadow-sm); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input, .field textarea { font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); transition: border-color .18s, box-shadow .18s; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,86,187,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: .9rem; color: var(--ink-mute); margin-top: .4rem; }
.form-sent[hidden] { display: none; }
.form-sent { display: flex; align-items: flex-start; gap: .9rem; background: #edf7f0; border: 1.5px solid #c2e3cf; border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-bottom: 1.6rem; }
.form-sent:focus { outline: none; box-shadow: 0 0 0 3px rgba(31,138,91,.2); }
.form-sent__icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.form-sent__icon svg { width: 20px; height: 20px; }
.form-sent__text strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: #176343; line-height: 1.2; }
.form-sent__text p { margin: .2rem 0 0; color: #2f6b4e; font-size: .95rem; }
.info-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 1.3rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; }
.info-row .ico { flex-shrink: 0; width: 30px; height: 1.6rem; background: none; border: none; border-radius: 0; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.info-row .ico svg { width: 24px; height: 24px; }
.info-row h4 { font-size: 1.05rem; margin-bottom: .15rem; line-height: 1.6rem; }
.info-row a, .info-row p { color: var(--ink-soft); }
.info-row a:hover { color: var(--orange); }
.hours-list { display: grid; gap: .4rem; }
.hours-list .hrow { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours-list .hrow:last-child { border-bottom: none; }
.hours-list .closed { color: var(--ink-mute); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---- page intro (inner pages) ---- */
.page-hero { position: relative; background: var(--cream); overflow: hidden; padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("assets/pattern.webp"); background-size: 700px; opacity: calc(var(--doodle) * .5); mix-blend-mode: multiply; }
.page-hero__inner { position: relative; z-index: 2; display: grid; gap: 1rem; max-width: 760px; }
.page-hero--split .page-hero__inner { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem,5vw,4rem); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero__inner, .split, .contact-grid, .page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .service-grid--home { grid-template-columns: 1fr; }
  .bio, .bio--rev .bio__photo { grid-template-columns: 1fr; }
  .bio--rev .bio__photo { order: 0; }
  .bio__photo .frame { max-width: 320px; }
  .hero__art { order: -1; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- Hero artwork: float the cut-out collage (no white card) ---- */
.hero__art .frame,
.page-hero .frame {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: none;          /* let the collage sit naturally, no extra tilt */
}
.hero__art .frame img,
.page-hero .frame img {
  object-fit: contain;
  width: 100%;
  height: auto;
}
/* make them bigger now that there's no frame to contain them */
.hero__inner { grid-template-columns: 1fr 1.08fr; }
.hero__art .frame { max-width: 660px; }

/* Inner-page header: match the home hero's width & proportions exactly.
   The base rule sets max-width:none (full-bleed) — restore the container cap
   so the header content is the same 1180px wide, centered, as the home page. */
.page-hero--split .page-hero__inner {
  max-width: var(--container);
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero .hero__art .frame { max-width: 660px; margin-inline: auto; }

/* ---- Bare frame: float a cut-out image with no white card ---- */
.frame--bare,
.split__media .frame--bare,
.hero__art .frame--bare {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: none;
}
.frame--bare img { object-fit: contain; }

/* ---- Reversed bio: keep the photo column the same width as the normal bio ---- */
.bio--rev { grid-template-columns: 1fr 300px; }

/* ---- Mosaic service grid (About): card height follows its own copy ---- */
.service-grid--mosaic {
  display: block;
  columns: 2;
  column-gap: clamp(1.1rem, 2.2vw, 1.6rem);
}
.service-grid--mosaic .service-card {
  break-inside: avoid;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}
@media (max-width: 760px) {
  .service-grid--mosaic { columns: 1; }
}

/* ---- Stacked evaluation images (Services): fill the left column ---- */
.eval-stack { display: grid; gap: clamp(1rem, 2.5vw, 2rem); justify-items: center; }
.eval-stack .frame { width: 100%; max-width: 480px; }
.eval-stack .frame--bare img { width: 100%; }

/* ---- Utilities ---- */
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.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; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---- Mobile nav ---- */
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem clamp(1.25rem,4vw,2.5rem) 1.5rem;
    gap: .25rem; box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s ease; margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: .85rem .5rem; font-size: 1.1rem; }
  .nav a.navlink[aria-current="page"]::after { display: none; }
  .nav__cta { margin: .5rem 0 0; flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav__phone { justify-content: center; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .checklist { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE REFINEMENTS — must stay LAST in the file.
   The "ground-truth" overrides above re-declare the two-column
   header/bio grids OUTSIDE a media query, which defeats the
   earlier responsive stacking. These rules win by source order.
   ============================================================ */
@media (max-width: 980px) {
  /* Re-collapse every two-column header + reversed bio to one column */
  .hero__inner,
  .page-hero--split .page-hero__inner,
  .bio--rev {
    grid-template-columns: 1fr;
  }
  /* Text first, photo below — on every stacked header */
  .hero__copy { order: -1; }
  .hero__art { order: 0; }
  .hero__copy h1,
  .hero__copy .lead { max-width: none; }
  /* Center the now full-width header art and keep it sensibly sized */
  .hero__art .frame,
  .page-hero .hero__art .frame { max-width: 460px; margin-inline: auto; }
  /* Reversed bio photo back into normal flow (photo first, like normal bios) */
  .bio--rev .bio__photo { order: 0; }
}

/* Phones: stop sideways scroll from tilts + decorative offsets,
   and give headings a touch more room. */
@media (max-width: 620px) {
  html, body { overflow-x: clip; }
  .frame--tilt, .frame--tilt-r { transform: none; }
  .hero__art::before { display: none; }
  /* Mobile home hero: drop the trust line and pull the photo up to close the gap */
  .hero__trust { display: none; }
  .hero__art { margin-top: -1.4rem; }
  .page-hero, .hero { padding-block: clamp(2rem, 7vw, 3rem); }
  .hero__inner { padding-block: clamp(2rem, 7vw, 3rem); }
}

/* Mobile menu: dimmed backdrop + scroll lock (toggled from app.js) */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(45, 47, 71, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
