/* ==========================================================================
   Dominique Solia — site stylesheet
   Single stylesheet, no build step. Custom properties at the top are the
   whole design system: change a value here and it changes everywhere.
   Token names describe the ROLE, not the hue, so the palette can be swapped
   without touching the rest of the file.
   ========================================================================== */

/* Self-hosted variable fonts (latin subset, from Google Fonts) ---------------- */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/figtree.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/lora.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/lora-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Text ---------------------------------------------------------------- */
  --ink:          #33262C;  /* body text — warm charcoal */
  --ink-soft:     #59454F;  /* secondary text */
  --ink-mute:     #7A6470;  /* captions, fine print */

  /* Brand (structural dark colour: footer, credentials bar, headings) ---- */
  --brand:        #234436;  /* deep forest green. 8.6:1 on white */
  --brand-mid:    #2F5A45;  /* hover state */
  --brand-pale:   #EAF1E1;  /* soft ground */
  --brand-line:   #BAD6A1;  /* rules, dots */

  /* Action (buttons, links, small emphasis) ----------------------------- */
  --action:       #A63A6B;  /* deep rose. 6.1:1 on white */
  --action-dark:  #8C2F58;  /* hover state */

  /* Warm grounds (hero, CTA panels, card borders) ----------------------- */
  --warm:         #FBE7EF;  /* blush */
  --warm-pale:    #FDF1F6;
  --warm-line:    #F0E2E8;
  --spark:        #FDB8D9;  /* brand pink — accent only, never behind text */

  /* Neutrals ------------------------------------------------------------ */
  --paper:        #FDFAF7;  /* page ground — warm off-white */
  --white:        #FFFFFF;
  --line:         #EDDCE3;

  /* Text on the dark brand colour --------------------------------------- */
  --on-dark:      #DCE9DA;
  --on-dark-mute: #BFD3BD;

  /* Block colours: credentials bar, stats band, dark CTA band, footer ---- */
  --block-bg:     var(--brand);
  --block-text:   var(--on-dark);
  --block-mute:   var(--on-dark-mute);
  --block-strong: #FFFFFF;          /* headings + links on the block */
  --block-accent: var(--spark);     /* stat figures, footer wordmark */
  --block-line:   rgba(255,255,255,.16);
  --block-chip:   rgba(255,255,255,.12);

  /* Type --------------------------------------------------------------- */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Form --------------------------------------------------------------- */
  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(51, 38, 44, .05);
  --shadow-md: 0 2px 8px rgba(51, 38, 44, .07);

  --gutter: clamp(20px, 5vw, 44px);
  --bay: clamp(39px, 5.6vw, 67px);   /* vertical rhythm between sections */
  --max: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#enquire { scroll-margin-top: 0; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--action); }

ul { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 600; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff;
  padding: 14px 20px; border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none; z-index: 100;
}
.skip:focus { left: 0; top: 0; color: #fff; }

.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;
}

/* Layout ------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.bay { padding: var(--bay) 0; }
.bay--tight { padding: clamp(28px, 4.2vw, 45px) 0; }

.stack { display: flex; flex-direction: column; }
.stack--xs { gap: 10px; }
.stack--sm { gap: 16px; }
.stack--md { gap: 24px; }
.stack--lg { gap: 36px; }

.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.measure { max-width: 66ch; }
.measure--narrow { max-width: 54ch; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--action);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-dark); color: #fff; }

.btn--secondary { background: var(--brand-pale); color: var(--brand); border-color: var(--brand-line); }
.btn--secondary:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-mid); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header ------------------------------------------------------------------- */
/* WP: this block becomes header.php. Markup is identical on every page —
   the active link is derived from the <body> class, not from the markup. */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
}

.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.4vw, 25px); color: var(--action); line-height: 1.1; }
.brand__role { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.brand:hover .brand__name { color: var(--action-dark); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--brand); }

.page-home    .nav__link[href="/"],
.page-services .nav__link[href="/services"],
.page-contact .nav__link[href="/contact"] {
  color: var(--ink); font-weight: 600; border-bottom-color: var(--spark);
}

.nav__cta { margin-left: 4px; }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  min-height: 48px; padding: 10px 16px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-pill); color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

/* Hero --------------------------------------------------------------------- */
/* Full-bleed bands: background runs edge to edge, content stays in .wrap */
.band { padding: clamp(31px, 4.2vw, 50px) 0; }
.band--warm { background: var(--warm); }
.band--brand { background: var(--brand-pale); }
.band--dark { background: var(--block-bg); color: var(--block-strong); }
.band--dark h2, .band--dark h3 { color: var(--block-strong); }
.band--dark p { color: var(--block-text); }
main > .band:last-child + footer, main:has(> .band:last-child) + .footer { margin-top: 0; }

.hero { --hero-pad: clamp(31px, 4.2vw, 56px); background: var(--warm); padding: var(--hero-pad) 0; overflow: hidden; }

.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero__panel--plain { grid-template-columns: minmax(0, 1fr); }

.hero h1 { font-size: clamp(31px, 4.6vw, 47px); }
.hero__title-sm { font-size: clamp(28px, 4vw, 40px); }

.pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--action);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 15px; border-radius: var(--r-pill);
}
.pill--brand { color: var(--brand); }

.fineprint { font-size: 14px; line-height: 1.55; color: var(--ink-mute); }

/* Photos ------------------------------------------------------------------ */
/* Cut-out figure in the hero: sits on the bottom edge of the band. */
/* Cut-out figure: right edge pinned to the content width, but the image may grow
   leftwards past its column (the outstretched hand) behind the text layer. */
/* Text column always starts at the top of the band, so the pill and heading sit
   at the same height on every page regardless of the photo beside them. */
.hero__panel > .stack { position: relative; z-index: 1; align-self: start; }
.hero__figure { position: relative; z-index: 0; align-self: end; display: flex; justify-content: flex-end; margin-bottom: calc(-1 * var(--hero-pad)); min-width: 0; }
.hero__figure img { width: 116%; max-width: none; height: auto; }
.hero__figure--photo img { width: 100%; }
/* Framed photo in the hero: centred, does not bleed. */
.hero__figure--photo { align-self: center; margin-bottom: 0; }
.hero__figure--photo img { max-width: 380px; }
.about__photo { width: 100%; max-width: 400px; height: auto; margin-top: 6px; }
/* Plain photos get a CSS polaroid frame so they sit with the pre-framed ones. */
.photo--framed {
  background: var(--white); padding: 12px 12px 34px; border-radius: 3px;
  box-shadow: 0 6px 18px rgba(51, 38, 44, .12), 0 1px 2px rgba(51, 38, 44, .08);
  transform: rotate(-2deg);
}
.split__photo { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* Credentials bar ---------------------------------------------------------- */
.credbar { background: var(--block-bg); color: var(--block-strong); }
.credbar__list {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding: 22px 0; align-items: center; justify-content: center; text-align: center;
}
.credbar__list li { font-size: 14px; color: var(--block-text); }
.credbar a { color: var(--block-strong); }
.credbar a:hover { color: var(--block-accent); }

/* Section heads ------------------------------------------------------------ */
.sechead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px); }
.sechead .lede { margin: 0 auto; }
.sechead h2 { font-size: clamp(27px, 3.6vw, 36px); color: var(--brand); }
.sechead h2.is-ink { color: var(--ink); }

/* Cards ------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--warm-line);
  border-radius: var(--r-md);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.card__rule { width: 32px; height: 3px; border-radius: 2px; background: var(--spark); }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

/* Panels ------------------------------------------------------------------ */
.panel {
  border-radius: var(--r-lg);
  padding: clamp(32px, 4.5vw, 52px) clamp(24px, 4vw, 48px);
}
.panel--warm { background: var(--warm); }
.panel--brand { background: var(--brand-pale); }
.panel--dark { background: var(--block-bg); color: var(--block-strong); }
.panel--dark h2, .panel--dark h3 { color: var(--block-strong); }
.panel--dark p { color: var(--block-text); }
.panel--white { background: var(--white); border: 1px solid var(--line); }

/* Split ------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.split--wide-first { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--narrow-first { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }

/* Q&A grid (tutoring vs MSL) ---------------------------------------------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qa__item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 26px 30px;
}
/* Cards are <details>: always open on wide screens (summary is inert), an
   accordion once the grid stacks (see the 860px breakpoint + nav.js). */
.qa__q { list-style: none; pointer-events: none; }
.qa__q::-webkit-details-marker { display: none; }
.qa__item h3 { font-size: 20px; color: var(--brand); }
.qa__a { margin-top: 12px; }
.qa__item p { font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }

/* Prose block (intro) ----------------------------------------------------- */
.prose p { color: var(--ink-soft); }

/* Approach grid ----------------------------------------------------------- */
.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.approach__item {
  background: var(--white); border-radius: var(--r-md);
  padding: 24px 24px 26px;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; align-items: center;
}
.approach__num {
  grid-row: 1 / 3; align-self: start;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--brand-pale); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
}
.approach__item h3 { font-size: 20px; color: var(--brand); }
.approach__item p { grid-column: 2; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }

/* Ticked / bulleted lists ------------------------------------------------- */
.ticks { display: grid; gap: 12px; }
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .8em;
  width: 9px; height: 9px; border-radius: var(--r-pill);
  background: var(--spark); border: 2px solid var(--action);
  transform: translateY(-50%);
}
.ticks--brand li::before { background: var(--brand-line); border-color: var(--brand); }


/* Steps ------------------------------------------------------------------- */
.steps { display: grid; gap: 20px; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(26px, 3vw, 36px);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}
.step__num {
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: var(--warm); color: var(--action);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.step h3 { font-size: clamp(21px, 2.4vw, 25px); }
.step__body { display: flex; flex-direction: column; gap: 14px; }

/* Stat strip -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.stat__fig { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 44px); font-weight: 600; color: var(--action); line-height: 1; }
.stat__lab { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.panel--dark .stat__fig { color: var(--block-accent); }
.band--dark .stat__fig { color: var(--brand-line); }   /* stats band: sage figures on forest (final) */
.panel--dark .stat__lab, .band--dark .stat__lab { color: var(--block-text); }

/* Quotes ------------------------------------------------------------------ */
/* .quotes is a snapping slider at every size: 3 cards per view on desktop,
   2 on tablet, 1 on phone. --per-view drives the card width; nav.js reads it. */
.quotes {
  --per-view: 3; --gap: 18px;
  display: flex; align-items: stretch; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0;
}
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); scroll-snap-align: start; }
.quote {
  background: var(--white); border: 1px solid var(--warm-line);
  border-radius: var(--r-md); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow);
}
.quote p { font-family: var(--serif); font-size: 17.5px; line-height: 1.55; color: var(--ink); }
.quote footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--action);
}
/* Stars scale with the card so the name never wraps: the widest name is
   75px; footer gap 12px; star gaps 8px; 14px slack. Capped at 32px, floored at 12px. */
.quote { container-type: inline-size; }
.stars { display: inline-flex; gap: 2px; color: #F2B52E; flex-shrink: 0; }
.stars svg { width: 20px; height: 20px; fill: currentColor; display: block; }
@supports (width: 1cqw) {
  .stars svg { --star: clamp(12px, calc((100cqw - 109px) / 5), 32px); width: var(--star); height: var(--star); }
}

.quote--feature { background: transparent; border: 0; box-shadow: none; padding: 0; }
.quote--feature p { font-size: clamp(21px, 2.8vw, 27px); line-height: 1.42; }

/* Testimonial slider arrows -------------------------------------------------- */
.slider { position: relative; }
.slider__btn {
  display: inline-flex;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; padding: 0; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--brand-line); color: var(--brand);
  box-shadow: var(--shadow-md); cursor: pointer;
  align-items: center; justify-content: center;
}
.slider__btn svg { width: 18px; height: 18px; display: block; }
.slider__btn--prev { left: -22px; }
.slider__btn--next { right: -22px; }
.slider__btn:hover { background: var(--brand-pale); }

/* FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 4px 22px;
}
.faq__item[open] { border-color: var(--brand-line); background: var(--white); }
.faq__q {
  font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--brand);
  padding: 18px 34px 18px 0; cursor: pointer; position: relative;
  list-style: none; min-height: 48px; display: flex; align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--action); border-bottom: 2px solid var(--action);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(225deg); margin-top: -2px; }
.faq__a { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 70ch; }
.faq__a p + p { margin-top: 12px; }

/* Contact ----------------------------------------------------------------- */
/* Map: static image with a button; the Google embed only loads on click. */
.map { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--brand-pale); }
.map img { display: block; width: 100%; height: auto; }
.map__load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; box-shadow: var(--shadow-md); }
.map__credit { position: absolute; right: 0; bottom: 0; font-size: 11px; line-height: 1; padding: 4px 7px; color: var(--ink-soft); background: rgba(255,255,255,.8); border-top-left-radius: 6px; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--action); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px var(--warm); }

.honeypot { position: absolute; left: -9999px; }

.formnote { font-size: 14px; line-height: 1.55; color: var(--ink-mute); }

.alert { border-radius: var(--r-sm); padding: 16px 20px; font-size: 15.5px; line-height: 1.55; }
.alert--ok { background: var(--brand-pale); border: 1px solid var(--brand-line); color: var(--brand); }
.alert--bad { background: var(--warm); border: 1px solid var(--warm-line); color: var(--action-dark); }

.contact-list { display: grid; gap: 22px; }
.contact-list__row { display: flex; flex-direction: column; gap: 3px; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.contact-list dd a { font-weight: 600; }

/* Footer ------------------------------------------------------------------ */
/* WP: becomes footer.php */
.footer { background: var(--block-bg); color: var(--block-text); margin-top: var(--bay); }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(44px, 6vw, 64px); padding-bottom: clamp(32px, 4vw, 44px);
}
.footer h2, .footer h3 { color: var(--block-strong); }
.footer h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer__brand { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.1; color: var(--block-accent); }
.footer p, .footer li { font-size: 15px; line-height: 1.6; color: var(--block-text); }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--block-strong); }
.footer a:hover { color: var(--block-accent); }
.footer__base {
  border-top: 1px solid var(--block-line);
  padding-top: 20px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 13.5px; color: var(--block-mute);
}
.footer .socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--block-chip); color: var(--block-strong); text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.socials a:hover { background: var(--block-accent); color: var(--block-bg); }
.socials svg { width: 20px; height: 20px; display: block; }
.footer__note { color: var(--block-mute); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .cards, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { --per-view: 2; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
    z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 10px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .masthead__inner { position: relative; }
  .nav__link { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:last-of-type { border-bottom: 0; }
  .page-home .nav__link[href="/"],
  .page-services .nav__link[href="/services"],
  .page-contact .nav__link[href="/contact"] { border-bottom-color: var(--line); color: var(--action); }
  .nav__cta { margin: 10px 12px 6px; }

  .hero__panel, .split, .split--wide-first, .split--narrow-first { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: clamp(22px, 3.5vw, 31px); }
  .hero__figure { margin-top: 8px; justify-content: center; }
  .hero__figure img { width: min(100%, 440px); }
  .hero__figure--photo img, .split__photo { max-width: 340px; }
  .qa, .approach { grid-template-columns: minmax(0, 1fr); }
  .ticks--2 { grid-template-columns: minmax(0, 1fr); }

  /* Tutoring or MSL cards behave like the FAQ once stacked */
  .qa { gap: 12px; }
  .qa__item { padding: 4px 22px; border-radius: var(--r-sm); }
  .qa__item[open] { border-color: var(--brand-line); }
  .qa__q {
    pointer-events: auto; cursor: pointer; position: relative;
    padding: 16px 34px 16px 0; min-height: 48px; display: flex; align-items: center;
  }
  .qa__q h3 { font-size: 19px; font-weight: 500; }
  .qa__q::after {
    content: ""; position: absolute; right: 2px; top: 50%;
    width: 10px; height: 10px; margin-top: -6px;
    border-right: 2px solid var(--action); border-bottom: 2px solid var(--action);
    transform: rotate(45deg);
  }
  .qa--ready .qa__q::after { transition: transform .2s ease; }   /* no spin while JS collapses them on load */
  .qa__item[open] .qa__q::after { transform: rotate(225deg); margin-top: -2px; }
  .qa__a { margin-top: 0; padding: 0 0 20px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .cards, .stats { grid-template-columns: minmax(0, 1fr); }
  .quotes { --per-view: 1; }
  .field--pair { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__num { width: 48px; height: 48px; font-size: 19px; }
  .btn { width: 75%; }
  .btn-row { flex-direction: column; align-items: center; }
  .nav__cta.btn { width: auto; }
  /* Buttons inside the How it works steps span the card's text column */
  .step__body .btn { width: 100%; padding-left: 12px; padding-right: 12px; font-size: 14px; }

  .quotes { align-items: start; }
  .quote { padding: 28px 34px; }
  .slider__btn { width: 34px; height: 34px; box-shadow: var(--shadow); }
  .slider__btn svg { width: 14px; height: 14px; }
  .slider__btn--prev { left: -6px; }
  .slider__btn--next { right: -6px; }
}

/* Legal pages ---------------------------------------------------------------- */
.legal { max-width: 74ch; margin: 0 auto; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); color: var(--brand); margin: 36px 0 12px; }
.legal__meta { font-size: 14px; color: var(--ink-mute); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.legal ul { list-style: disc; } .legal ol { list-style: decimal; }
.legal a { color: var(--action); }
.footer__legal { flex-basis: 100%; }

/* Print ------------------------------------------------------------------- */
@media print {
  .masthead, .footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .faq__item[open] .faq__a, .faq__a { display: block !important; }
}
