/* BrightPath Learning Support
   Lexend throughout: a typeface built for reading ease, chosen for a dyslexia tutor.
   Caveat for the handwritten notes that echo Gemma's flyer. */

:root {
  --ink: #1b3360;        /* navy from the logo */
  --ink-soft: #4a5d80;
  --teal: #23808c;       /* swoosh teal */
  --teal-deep: #17626c;
  --star: #e3ae2f;       /* gold star */
  --sky: #e3eff8;        /* pale blue panels */
  --paper: #fbfdff;
  --pink: #f2a6b3;       /* pencil colours from the tutor card */
  --green: #7cc79a;
  --line: #d3e1ee;

  --wrap: 1240px;
  --radius-lg: 28px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.script {
  font-family: "Caveat", cursive;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.1;
}

/* Header */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { flex: none; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--teal-deep); margin-top: 4px; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a.plain { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.nav a.plain:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: #fff;
  font: 600 1rem "Lexend", sans-serif;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-deep); }
.btn .dot { width: 9px; height: 9px; background: var(--star); border-radius: 50%; }
.btn-small { padding: 10px 20px; font-size: 0.92rem; }

/* Hero */
.hero { padding: 24px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .tel { text-decoration: none; color: var(--ink-soft); font-size: 0.98rem; }
.hero-actions .tel strong { color: var(--ink); font-weight: 600; }

.portrait { position: relative; justify-self: end; width: min(100%, 420px); }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  max-height: 68vh;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  background: var(--sky);
}
.portrait .note {
  position: absolute;
  left: -54px; bottom: 34px;
  background: #fff;
  padding: 12px 20px 14px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -12px rgba(27, 51, 96, 0.35);
  transform: rotate(-4deg);
  font-size: 1.7rem;
}
.portrait .note span { display: block; font-family: "Lexend", sans-serif; font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.pencil-rule { display: flex; gap: 6px; margin-top: 8px; }
.pencil-rule i { height: 4px; flex: 1; border-radius: 4px; }
.pencil-rule i:nth-child(1) { background: #9ccbef; }
.pencil-rule i:nth-child(2) { background: var(--pink); }
.pencil-rule i:nth-child(3) { background: var(--green); }

/* Section shells */
section { padding: 88px 0; }
.section-head { max-width: 40ch; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { margin: 0; color: var(--ink-soft); }

/* Help with */
.help { background: var(--sky); border-radius: var(--radius-lg); margin: 0 24px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.help-item svg { margin-bottom: 18px; }
.help-item h3 { font-size: 1.25rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.help-item p { margin: 0; color: var(--ink-soft); max-width: 30ch; }

/* The path: the signature element */
.path-section { position: relative; overflow: hidden; }
.path-wrap { position: relative; }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.path-svg path { fill: none; stroke: var(--star); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 12; }
.stops { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; min-height: 360px; }
.stop { max-width: 28ch; }
.stop:nth-child(1) { align-self: start; padding-top: 0; }
.stop:nth-child(2) { align-self: end; }
.stop:nth-child(3) { align-self: start; padding-top: 10px; }
.stop .marker {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  display: grid; place-items: center;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.stop:nth-child(3) .marker { background: var(--star); border-color: var(--star); }
.stop h3 { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.stop p { margin: 0; color: var(--ink-soft); }
.path-end { margin-top: 36px; font-size: 2rem; text-align: right; }

/* Sessions */
.sessions .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.chips li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1.1rem; font-weight: 600;
}
.chips li span { font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; margin-left: auto; text-align: right; }
.chips svg { flex: none; }

/* About */
.about { padding-top: 24px; }
.about-card {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  border-top: 1.5px solid var(--line);
  padding-top: 64px;
}
.about-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.about-card blockquote { margin: 0; font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.45; max-width: 44ch; font-weight: 400; }
.about-card cite { display: block; font-style: normal; font-size: 1rem; color: var(--ink-soft); margin-top: 14px; }

/* CTA band */
.cta { padding: 0 24px 0; }
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch; }
.cta-band p { margin: 0 0 28px; color: #c9d6ec; max-width: 40ch; }
.cta-band .btn { background: var(--star); color: var(--ink); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn .dot { background: var(--ink); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list a { color: #fff; text-decoration: none; display: flex; gap: 14px; align-items: center; font-size: 1.02rem; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list svg { flex: none; }
.cta-star { position: absolute; right: -40px; top: -40px; opacity: 0.12; }

/* Footer */
.site-foot { padding: 48px 0 56px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: 0.9rem; }
.site-foot .script { font-size: 1.6rem; }

/* Booking page */
.book-hero { padding: 24px 0 40px; }
.book-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.book-hero p { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; padding-bottom: 96px; }

.form { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend { font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; padding: 0; display: flex; align-items: baseline; gap: 12px; }
legend .step { font-family: "Caveat", cursive; color: var(--teal-deep); font-size: 1.6rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .group-label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: 400 1rem "Lexend", sans-serif;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid #c3d3e3;
  border-radius: 10px;
  background: var(--paper);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35, 128, 140, 0.2); }
textarea { min-height: 120px; resize: vertical; }
.field.invalid input, .field.invalid select { border-color: #c2413a; }
.error-msg { color: #b0352e; font-size: 0.85rem; display: none; }
.field.invalid .error-msg { display: block; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid #c3d3e3;
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--paper);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--star); outline-offset: 2px; }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1.5px solid var(--line); padding-top: 28px; }
.form-foot p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 36ch; }

.aside { position: sticky; top: 24px; }
.aside-card { background: var(--sky); border-radius: var(--radius-lg); padding: 32px; }
.aside-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; margin-bottom: 16px; }
.aside-card h2 { font-size: 1.2rem; margin: 0 0 14px; }
.aside-card ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; }
.aside-card li { margin-bottom: 10px; }
.aside-card .contact { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid #c8dbea; font-size: 0.92rem; }
.aside-card .contact a { display: block; text-decoration: none; margin-bottom: 4px; font-size: 0.86rem; overflow-wrap: anywhere; }
.aside-card .contact a:hover { text-decoration: underline; }

.thanks { display: none; text-align: center; padding: 64px 24px; }
.thanks.show { display: block; animation: rise 0.45s ease-out both; }
.thanks h2 { font-size: 2rem; margin: 18px 0 10px; letter-spacing: -0.02em; }
.thanks p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks.show { animation: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .sessions .wrap, .cta-band, .book-layout { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(100%, 380px); margin-top: 8px; }
  .portrait .note { left: -12px; }
  .help-grid { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .nav a.plain { display: none; }
  .help { margin: 0 12px; }
  .cta { padding: 0 12px; }
  .cta-band { padding: 48px 28px; }
  .contact-list a { font-size: 0.9rem; overflow-wrap: anywhere; }
  .path-svg { display: none; }
  .stops { grid-template-columns: 1fr; min-height: 0; gap: 0; border-left: 3.5px dotted var(--star); margin-left: 30px; padding-left: 0; }
  .stop { align-self: auto !important; padding: 0 0 36px 0 !important; margin-left: -33px; display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; max-width: none; }
  .stop .marker { grid-row: span 2; margin: 0; }
  .path-end { text-align: left; }
  .about-card { grid-template-columns: 1fr; padding-top: 48px; }
  .form { padding: 28px 22px; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .chips li { flex-wrap: wrap; }
  .chips li span { margin-left: 44px; text-align: left; width: 100%; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .brand-name small { display: none; }
  .btn-small { padding: 9px 16px; }
}
