/* ==========================================================================
   Hilary Bohl – Dyslexia Specialist
   Dyslexia-friendly choices: Lexend type, 18px body, generous line height,
   left-aligned text, cream background (less glare than pure white),
   no italics, short line lengths, strong contrast.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand – lilac / lavender */
  --lavender-50: #f7f3fc;
  --lavender-100: #efe7f9;
  --lavender-200: #ddd0f1;
  --lavender-300: #c0afe2; /* original brand lavender – decorative only */
  --lavender-500: #8f72c9;
  --plum-600: #6a4c9c;     /* buttons, links – 6.6:1 on white */
  --plum-700: #563d82;     /* hover */
  --plum-900: #2f2147;     /* headings */
  --sun-400: #fec42d;      /* small highlight accents only */

  /* Theme tokens – components use these, dark mode overrides them below */
  --bg: #fffdf8;           /* cream page background */
  --surface: #ffffff;
  --ink: #2b2633;          /* body text – 14:1 on cream */
  --ink-muted: #534c5e;    /* secondary text – 7.6:1 on cream */
  --line: #e6dff0;
  --heading: var(--plum-900);
  --accent: var(--plum-600);        /* links, icons, small labels */
  --accent-strong: var(--plum-700); /* hovered links, emphasised labels */
  --btn-bg: var(--plum-600);
  --btn-bg-hover: var(--plum-700);
  --deep: var(--plum-900);          /* footer and call-to-action panels */
  --tint-soft: var(--lavender-50);  /* section bands */
  --tint: var(--lavender-100);      /* icon circles, chips */
  --tint-strong: var(--lavender-200);
  --arch-from: var(--lavender-200);
  --arch-to: var(--lavender-300);
  --header-bg: rgba(255, 253, 248, 0.94);
  --field-border: #b9add0;
  --danger: #a3214f;
  --success-bg: #e7f6ec;
  --success-ink: #1d5b33;
  --error-bg: #fdecef;
  --error-ink: #8a1c3f;

  /* Type */
  --font: "Lexend", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);

  /* Space (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-12: 6rem;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(47, 33, 71, 0.06), 0 12px 32px -12px rgba(47, 33, 71, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(47, 33, 71, 0.08), 0 20px 40px -14px rgba(47, 33, 71, 0.26);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 72rem;
  --z-header: 100;
}

/* Dark mode – switched on by the header toggle (light is the default).
   Soft plum-black rather than pure black, with off-white text, to limit glare. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #16121d;
  --surface: #221b2c;
  --ink: #ece7f4;          /* 15:1 on bg */
  --ink-muted: #bdb3cc;    /* 9:1 on bg, 8:1 on surface */
  --line: #3a3149;
  --heading: #f4effb;
  --accent: #c9b6f2;       /* 10:1 on bg */
  --accent-strong: #e2d7fb;
  --btn-bg: #7a5bbd;       /* white text 5.2:1 */
  --btn-bg-hover: #6a4c9c;
  --deep: #2a2140;
  --tint-soft: #1c1726;
  --tint: #2e2542;
  --tint-strong: #3a2f52;
  --arch-from: #4a3d6b;
  --arch-to: #63518f;
  --header-bg: rgba(22, 18, 29, 0.92);
  --field-border: #5f5274;
  --danger: #ff9bbb;
  --success-bg: #173322;
  --success-ink: #a3e2b8;
  --error-bg: #3b1724;
  --error-ink: #ffb6c9;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.45), 0 20px 40px -14px rgba(0, 0, 0, 0.7);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  letter-spacing: 0.01em;
  word-spacing: 0.06em;
  color: var(--ink);
  background: var(--bg);
  font-weight: 350;
}

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

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3, .h3 { font-size: var(--text-xl); }
.span-all { grid-column: 1 / -1; }

p { margin: 0 0 var(--s-2); max-width: 65ch; }
strong { font-weight: 600; }
em { font-style: normal; font-weight: 500; } /* avoid italics for readability */

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-strong); }

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

.container { width: min(100% - 2 * var(--s-2), var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 2 * var(--s-4), var(--container)); } }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px;
  background: var(--plum-900); color: #fff; padding: var(--s-1) var(--s-2);
  border-radius: 8px; z-index: 1000; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.6rem;
  font: inherit; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em;
  border-radius: var(--radius-pill); border: 2px solid var(--btn-bg);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn--primary { background: var(--btn-bg); color: #fff; }
.btn--primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: #fff; box-shadow: 0 8px 20px -8px rgba(86, 61, 130, 0.6); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.btn:active { box-shadow: none; }
.btn .icon { width: 1.15rem; height: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--heading); }
/* HB monogram: thick stroke + thin stroke in the background colour = open double line */
.brand-mark { width: 48px; height: 48px; flex: none; overflow: visible; }
.brand-mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-outer { stroke: var(--accent); stroke-width: 6.5; }
.brand-mark .bm-inner { stroke: var(--logo-bg, var(--bg)); stroke-width: 2.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.brand-tag { font-size: 0.75rem; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }

/* Theme toggle + mobile menu button */
.header-actions { display: flex; align-items: center; gap: var(--s-1); }
.theme-toggle,
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--tint); color: var(--heading); cursor: pointer;
  transition: background-color 180ms var(--ease);
}
.theme-toggle:hover,
.nav-toggle:hover { background: var(--tint-strong); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; inset: 80px 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--s-2) var(--s-2) var(--s-3);
  box-shadow: 0 20px 30px -20px rgba(47, 33, 71, 0.25);
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-list a {
  display: block; padding: 0.75rem 1rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 450;
}
.nav-list a:hover { background: var(--tint-soft); color: var(--accent-strong); }
.nav-list a[aria-current="page"] { color: var(--accent); font-weight: 600; background: var(--tint-soft); }
.nav-cta { margin-top: var(--s-2); width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-actions { order: 3; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: var(--s-3); margin-left: auto;
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 0.25rem; }
  .nav-list a { padding: 0.5rem 0.85rem; font-size: var(--text-sm); }
  .nav-list a[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .nav-cta { margin-top: 0; width: auto; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-top: var(--s-6); }
.hero-grid { display: grid; gap: var(--s-4); align-items: end; }
.hero-copy { padding-bottom: var(--s-6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--accent);
  margin-bottom: var(--s-2);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--sun-400); border-radius: 2px; }
.hero h1 { margin-bottom: var(--s-3); }
.hero-lead { font-size: var(--text-lg); color: var(--ink-muted); max-width: 34ch; margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero-areas { display: flex; align-items: center; gap: 0.5rem; margin-top: var(--s-3); font-size: var(--text-sm); color: var(--ink-muted); }
.hero-areas .icon { color: var(--accent); width: 1.25rem; height: 1.25rem; }

.hero-portrait { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-portrait::before {
  content: ""; position: absolute; inset: 4% 0 0 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: linear-gradient(160deg, var(--arch-from), var(--arch-to));
}
.hero-portrait img,
.hero-portrait .photo-placeholder { position: relative; }
.hero-portrait img { width: 100%; }
.split-media .portrait-photo { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

/* Slanted lavender band – echoes the reference */
.band { position: relative; background: var(--tint-soft); }
.band--slant { margin-top: -1px; z-index: 1; } /* sits over the hero so its diagonal edge masks the portrait */
.band--slant::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 61px;
  background: var(--tint-soft);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.hero + .band--slant::before { clip-path: polygon(0 0, 100% 66%, 100% 100%, 0 100%); }

@media (min-width: 900px) {
  .hero { padding-top: var(--s-8); }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-6); }
  .hero-copy { padding-bottom: var(--s-12); }
  .hero-portrait { justify-self: end; margin-bottom: -1px; }
  .band--slant::before { top: -90px; height: 91px; }
}

/* ---------- Placeholders for photos still to be supplied ---------- */
.photo-placeholder {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(106, 76, 156, 0.06) 14px 28px),
    var(--tint);
  color: var(--accent-strong); font-size: var(--text-sm); font-weight: 500;
  border: 2px dashed var(--lavender-500);
  padding: var(--s-3);
}
.hero-portrait .photo-placeholder {
  position: absolute; inset: 12% 2% 0 2%; width: auto; aspect-ratio: auto;
  border: 0; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background-color: transparent;
}
.hero-portrait:has(.photo-placeholder) { aspect-ratio: 4 / 5; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
@media (min-width: 900px) { .section { padding-block: var(--s-12); } }
.section-head { max-width: 44rem; margin-bottom: var(--s-6); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center p { margin-inline: auto; }
.section-head p { color: var(--ink-muted); }

.grid { display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: var(--s-4); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--s-4);
  display: flex; flex-direction: column;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card p { color: var(--ink-muted); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card > .icon-badge + h3 { margin-top: var(--s-3); }
.site-footer .brand + p { margin-top: var(--s-2); }
.card-body { flex: 1; display: flex; flex-direction: column; }

/* Icon card – reference layout: round badge beside title */
.card--icon { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: stretch; }
.card--icon .icon-badge { align-self: start; }
.card--icon .card-body p { margin-bottom: var(--s-3); }
.icon-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
}
.icon-badge .icon { width: 1.9rem; height: 1.9rem; }
@media (max-width: 479px) { .card--icon { grid-template-columns: 1fr; } }
@media (min-width: 720px) and (max-width: 1199px) { .grid--3 > .card--icon:not(.span-all) { grid-template-columns: 1fr; } }

/* Services list: icon | text, rows separated by dividers */
.service-list { list-style: none; margin: 0 auto; padding: var(--s-1) var(--s-4); max-width: 60rem; }
.service-list li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-items: center;
  padding: var(--s-4) 0;
}
.service-list li + li { border-top: 1px solid var(--line); }
.service-list h2 { margin-bottom: 0.4rem; }
.service-list p { margin: 0; color: var(--ink-muted); }
@media (max-width: 479px) {
  .service-list { padding-inline: var(--s-3); }
  .service-list li { grid-template-columns: 1fr; gap: var(--s-2); }
  .service-list .icon-badge { width: 52px; height: 52px; }
  .service-list .icon-badge .icon { width: 1.5rem; height: 1.5rem; }
}
.service-cta { max-width: 60rem; margin: var(--s-6) auto 0; text-align: center; }
.service-cta p { margin-inline: auto; color: var(--ink-muted); margin-bottom: var(--s-3); }
.service-cta .hero-actions { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto;
  font-weight: 500; text-decoration: none; min-height: 44px;
}
.text-link .icon { width: 1.1rem; height: 1.1rem; transition: transform 180ms var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; }

/* ---------- Split / intro ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split--reverse > :first-child { order: 2; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.split-media { position: relative; }
.split-media::after {
  content: ""; position: absolute; z-index: -1; inset: auto -16px -16px auto;
  width: 60%; height: 60%; border-radius: var(--radius);
  background: var(--tint-strong);
}

/* Who I help list */
.audience { list-style: none; padding: 0; margin: var(--s-3) 0 var(--s-4); display: grid; gap: var(--s-2); }
.audience li { display: flex; gap: var(--s-2); align-items: flex-start; }
.audience .tick {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--tint); color: var(--accent);
  margin-top: 2px;
}
.audience .tick .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.5; }
.audience strong { color: var(--heading); display: block; }

/* ---------- Testimonials ---------- */
.quote { position: relative; }
.quote blockquote { margin: 0 0 var(--s-3); font-size: var(--text-base); color: var(--ink); }
.quote blockquote p { color: var(--ink); }
.quote-mark { font-size: 3.5rem; line-height: 0.6; color: var(--lavender-300); font-weight: 600; height: 1.5rem; display: block; margin-bottom: var(--s-2); }
.quote figcaption { margin-top: auto; font-size: var(--text-sm); color: var(--ink-muted); }
.quote figcaption strong { display: block; color: var(--heading); }

.placeholder-note {
  display: inline-block; font-size: 0.85rem; font-weight: 500;
  background: #fff4d1; color: #6b4e00; border: 1px solid #f1d27a;
  padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: var(--s-2);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--deep); color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: var(--s-6) var(--s-4);
  display: grid; gap: var(--s-3); align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: #e7def5; margin-bottom: 0; }
.cta .btn--primary { background: var(--lavender-300); border-color: var(--lavender-300); color: var(--plum-900); }
.cta .btn--primary:hover { background: #fff; border-color: #fff; color: var(--plum-900); }
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(192, 175, 226, 0.18); pointer-events: none;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.6fr auto; padding: var(--s-8); } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: var(--s-6) 0 var(--s-8); background: linear-gradient(180deg, var(--bg), var(--tint-soft)); }
.page-hero p { font-size: var(--text-lg); color: var(--ink-muted); }
.page-hero + .band--slant::before { display: none; }

/* ---------- Qualifications ---------- */
.quals { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.quals li {
  display: flex; gap: var(--s-2); align-items: flex-start;
  background: var(--surface); border-radius: 12px; padding: var(--s-2) var(--s-3);
  box-shadow: var(--shadow-card);
}
.quals .icon { color: var(--accent); margin-top: 4px; }
.quals strong { display: block; color: var(--heading); }
.quals span { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---------- Pricing ---------- */
.price-group + .price-group { margin-top: var(--s-8); }
.price-group > h2 { display: flex; align-items: center; gap: var(--s-2); }
.price-card { gap: var(--s-1); }
.price-card .price {
  font-size: 2rem; font-weight: 600; color: var(--heading);
  font-variant-numeric: tabular-nums; line-height: 1.1; margin: 0.25rem 0 var(--s-2);
}
.price-card .age {
  display: inline-block; align-self: flex-start;
  font-size: 0.85rem; font-weight: 500; color: var(--accent-strong);
  background: var(--tint); padding: 0.15rem 0.7rem; border-radius: var(--radius-pill);
}
.price-card h3 { font-size: var(--text-lg); margin-bottom: 0; }
.price-card--featured { outline: 2px solid var(--accent); }
.notice {
  display: flex; gap: var(--s-2); align-items: flex-start;
  background: var(--surface); border-left: 4px solid var(--sun-400);
  border-radius: 10px; padding: var(--s-2) var(--s-3); box-shadow: var(--shadow-card);
  max-width: 44rem;
}
.notice .icon { color: var(--accent); margin-top: 3px; }
.notice p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-3); }
.contact-list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.contact-list .icon-badge { width: 52px; height: 52px; }
.contact-list .icon-badge .icon { width: 1.5rem; height: 1.5rem; }
.contact-list strong { display: block; color: var(--heading); }

.form { display: grid; gap: var(--s-3); }
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; color: var(--heading); font-size: var(--text-sm); }
.field .req { color: var(--danger); }
.field .hint { font-size: 0.9rem; color: var(--ink-muted); }
.field input,
.field textarea,
.field select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--field-border); border-radius: 10px;
  padding: 0.75rem 1rem; min-height: 52px; width: 100%;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(143, 114, 201, 0.3); }
.field .error { display: none; color: var(--danger); font-size: 0.9rem; font-weight: 500; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.form-status { display: none; padding: var(--s-2) var(--s-3); border-radius: 10px; font-weight: 500; }
.form-status.is-success { display: block; background: var(--success-bg); color: var(--success-ink); }
.form-status.is-error { display: block; background: var(--error-bg); color: var(--error-ink); }

/* ---------- Privacy notice ---------- */
.legal {
  scroll-margin-top: 100px;
  padding-top: var(--s-3); border-top: 1px solid var(--line);
  font-size: 0.9rem; line-height: 1.6; color: var(--ink-muted);
}
.legal h2 { font-size: var(--text-sm); margin-bottom: var(--s-1); }
.legal p { max-width: 80ch; margin-bottom: var(--s-1); }
/* Side by side on wide screens: fills the width while keeping lines short enough to read comfortably */
@media (min-width: 900px) {
  .legal { display: grid; grid-template-columns: 3fr 2fr; column-gap: var(--s-6); }
  .legal h2 { grid-column: 1 / -1; }
  .legal p { max-width: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: #e7def5; padding-top: var(--s-8); margin-top: var(--s-8); }
:root[data-theme="dark"] .site-footer { background: #0f0c15; border-top: 1px solid var(--line); }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; --logo-bg: var(--plum-900); }
:root[data-theme="dark"] .site-footer .brand { --logo-bg: #0f0c15; }
.site-footer .brand-mark .bm-outer { stroke: var(--lavender-300); }
.site-footer .brand-tag { color: var(--lavender-300); }
.footer-grid { display: grid; gap: var(--s-4); padding-bottom: var(--s-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: var(--text-base); margin-bottom: var(--s-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.footer-links a { text-decoration: none; display: inline-block; padding: 0.35rem 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: var(--s-3); font-size: 0.9rem; color: #cfc3e3; }
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); }

/* ---------- Reveal on scroll (progressive; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
