/* =========================================================
   TaylorMade Learning — stylesheet
   Hand-drawn / children's-crayon-drawing vibe:
   handwriting display font, warm crayon colour palette,
   wobbly "hand drawn" borders done purely in CSS (no images).
   ========================================================= */

:root {
  --cream: #FFF9EE;
  --paper: #FFFFFF;
  --ink: #3A3226;
  --ink-soft: #5b5245;
  --yellow: #FFCE4B;
  --yellow-soft: #FFEDB3;
  --blue: #6EC6DA;
  --blue-soft: #DEF3F7;
  --coral: #FF8A65;
  --coral-soft: #FFE3D8;
  --green: #93C572;
  --green-soft: #E7F3DC;
  --purple: #B39DDB;
  --purple-soft: #EDE6FA;
  --border: 3px solid var(--ink);
  --blob: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --blob-alt: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Comic Neue', 'Segoe UI', Verdana, sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

h1, h2, h3, h4,
.logo-text,
.btn,
nav a {
  font-family: 'Patrick Hand', 'Comic Neue', cursive;
}

h1, h2, h3 { line-height: 1.2; margin-top: 0; }

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: inherit; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Highlighter underline for key headings ---------- */
.highlight {
  background: linear-gradient(120deg, var(--hl, var(--yellow-soft)) 0%, var(--hl, var(--yellow-soft)) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.5em;
  background-position: 0 88%;
  padding: 0 0.15em;
}

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-family: 'Comic Neue', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border: 2px solid var(--ink);
  background: var(--yellow-soft);
  transform: rotate(-1deg);
}

.nav-toggle {
  display: none;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

/* Too narrow for brand + nav on one row: put the nav on its own centred row */
@media (min-width: 821px) and (max-width: 1400px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
  nav.main-nav { width: 100%; }
  nav.main-nav ul { justify-content: center; }
}

@media (max-width: 820px) {
  /* brand on the left, Menu button on the right, nav drops below when open */
  .header-inner { flex-wrap: wrap; gap: 0.8rem; padding: 0.8rem 1rem; }
  .brand { gap: 0.6rem; min-width: 0; }
  .logo-img { width: 52px; height: 52px; }
  .logo-text { white-space: normal; font-size: 1.3rem; }
  .logo-text span { font-size: 0.75rem; }
  .nav-toggle { display: inline-block; flex: 0 0 auto; margin-left: auto; font-size: 1rem; padding: 0.35rem 0.7rem; }
  nav.main-nav { width: 100%; display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
}

/* ---------- Hero ---------- */
/* Each page can pick its own soft colour with a .hero--{colour} class.
   Crayon doodles sit behind the text and the bottom edge is a wavy line. */
.hero {
  --hero-bg: var(--blue-soft);
  position: relative;
  background: var(--hero-bg);
  padding: 3.5rem 0;
  text-align: center;
}

.hero--yellow { --hero-bg: var(--yellow-soft); --hl: var(--yellow); }
.hero--green  { --hero-bg: var(--green-soft); }
.hero--coral  { --hero-bg: var(--coral-soft); }
.hero--purple { --hero-bg: var(--purple-soft); }

.hero .wrap { position: relative; z-index: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4.6 10.6 11.4 1-8.7 7.6 2.7 11.3L20 27.6 10 33.5l2.7-11.3L4 14.6l11.4-1z' fill='%23FFCE4B' stroke='%233A3226' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 7% top 22% / 48px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24'%3E%3Cpath d='M3 14c6-10 12-10 16 0s10 10 16 0 10-10 16 0 10 10 16 0 7-8 10-4' fill='none' stroke='%23FF8A65' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6% top 26% / 78px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M4 30c8 0 10-22 20-22s4 18-4 14 6-18 16-16 6 20-2 16 10-14 22-10' fill='none' stroke='%2393C572' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 9% bottom 20% / 64px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='8' cy='10' r='5' fill='%23B39DDB' stroke='%233A3226' stroke-width='2'/%3E%3Ccircle cx='28' cy='8' r='3.5' fill='%236EC6DA' stroke='%233A3226' stroke-width='2'/%3E%3Ccircle cx='20' cy='28' r='6' fill='%23FFCE4B' stroke='%233A3226' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10% bottom 18% / 46px;
}

/* wavy bottom edge: hero colour above an ink line */
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  pointer-events: none;
  background: var(--hero-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6Q10 0 20 6T40 6' fill='none' stroke='%233A3226' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 12px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0H40V6Q30 12 20 6T0 6Z'/%3E%3Cpath d='M0 6Q10 0 20 6T40 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 12px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0H40V6Q30 12 20 6T0 6Z'/%3E%3Cpath d='M0 6Q10 0 20 6T40 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 12px;
}

/* narrower screens: smaller doodles tucked into the corners, clear of the text */
@media (max-width: 900px) {
  .hero::before {
    background-position: left 4% top 14px, right 4% top 18px, left 5% bottom 16px, right 6% bottom 14px;
    background-size: 30px, 52px, 42px, 30px;
  }
}

.hero h1 { margin-bottom: 0.6rem; }

.hero p.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.6rem 1.4rem;
  border: var(--border);
  border-radius: var(--blob);
  background: var(--coral);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease;
}

.btn:hover { transform: translate(-2px, -2px); }

.btn.alt { background: var(--green); }
.btn.blue { background: var(--blue); }
.btn.yellow { background: var(--yellow); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ---------- Cards ---------- */
.section {
  padding: 3rem 0;
}

.section.tint { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }

/* the hero's wavy edge already separates them */
.hero + .section.tint { border-top: none; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--blob);
  padding: 1.8rem;
  text-align: center;
}

.card:nth-child(2n) { border-radius: var(--blob-alt); }

.card h3 { margin-bottom: 0.6rem; }

.card .btn { margin-top: 1rem; }

/* coloured cards with a doodle icon (home page) */
.card-grid--colour .card:nth-child(3n+1) { background: var(--blue-soft); }
.card-grid--colour .card:nth-child(3n+2) { background: var(--green-soft); }
.card-grid--colour .card:nth-child(3n)   { background: var(--coral-soft); }
.card-grid--colour .card { box-shadow: 5px 5px 0 var(--ink); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--paper);
  transform: rotate(-4deg);
}

.card:nth-child(2n) .card-icon { transform: rotate(4deg); }

.card-icon svg { width: 34px; height: 34px; }

/* ---------- Photo spots ----------
   Polaroid-style frames. While there's no photo yet the frame holds
   <span class="photo-spot__empty"></span>; swap that for an <img> later. */
/* a section holding just a photo strip, sitting close to the next one */
.section--photos { padding: 3.5rem 0 0.5rem; }
.section.tint + .section--photos { padding-top: 4rem; }

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.photo-strip .photo-spot { flex: 0 1 calc((100% - 4rem) / 3); }

.photo-spot {
  --spot: var(--yellow-soft);
  position: relative;
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 0.7rem 0.7rem 2rem;
  transform: rotate(-2deg);
}

.photo-spot:nth-child(2n) { --spot: var(--blue-soft); transform: rotate(2deg); }
.photo-spot:nth-child(3n) { --spot: var(--green-soft); transform: rotate(-1deg); }

/* strip of tape holding the photo up */
.photo-spot::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 76px;
  height: 24px;
  background: rgba(255, 206, 75, 0.7);
  border: 1px solid rgba(58, 50, 38, 0.25);
  transform: translateX(-50%) rotate(-4deg);
}

.photo-spot > img,
.photo-spot__empty {
  display: block;
  width: 100%;
  height: auto; /* the img height attribute is only for reserving space */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.photo-spot__empty {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M6 12h8l4-6h12l4 6h8a3 3 0 0 1 3 3v19a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V15a3 3 0 0 1 3-3z' fill='%23FFFFFF' stroke='%233A3226' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='24' r='7.5' fill='%23DEF3F7' stroke='%233A3226' stroke-width='2.5'/%3E%3C/svg%3E") center / 52px no-repeat,
    repeating-linear-gradient(135deg, var(--spot), var(--spot) 10px, var(--paper) 10px, var(--paper) 20px);
}

@media (max-width: 640px) {
  .photo-strip { gap: 1.6rem 1.2rem; }
  .photo-strip .photo-spot { flex-basis: calc((100% - 1.2rem) / 2); }
  .photo-spot { padding: 0.45rem 0.45rem 1.3rem; }
  .photo-spot::before { width: 54px; height: 18px; top: -9px; }
  .photo-spot__empty { background-size: 36px, auto; }
}

.logo-banner {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

/* text beside a round badge (Drawing & Talking page) */
.badge-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem;
  align-items: center;
}

.badge-side__text { grid-column: 1; grid-row: 1; font-size: 1.15rem; }

.badge-frame {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 260px;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: var(--border);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-3deg);
}

/* The badge's circle is ~478px wide and sits off-centre in its 500px file
   (left 5.5px, top 6.5px). Size and shift the image so exactly that circle
   fills the frame: no white edge showing and nothing cut off. */
.badge-frame img {
  position: absolute;
  max-width: none;
  width: 104.6%;
  height: 104.6%;
  left: -1.15%;
  top: -1.36%;
}

/* phones: small badge floated top-right, text wraps around the circle */
@media (max-width: 760px) {
  .badge-side { display: block; }
  .badge-side::after { content: ""; display: block; clear: both; }
  .badge-side__text { font-size: inherit; }
  .badge-frame {
    float: right;
    width: 130px;
    margin: 0.3rem 0 0.6rem 0.8rem;
    shape-outside: circle(50%);
    shape-margin: 0.6rem;
  }
}

/* two side-by-side info cards with left-aligned text */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.info-cards .card { text-align: left; }

/* longer intro paragraph in the hero (Tutoring page) */
.hero p.lead--wide { max-width: 780px; }

/* subject cards with ticked lists (Tutoring page) */
.subject-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

@media (max-width: 640px) {
  .subject-cards { grid-template-columns: 1fr; }
  .hero p.lead--wide { text-align: left; font-size: 1.1rem; }
}

.subject-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--blob);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.6rem 1.5rem 1.4rem;
}

.subject-card:nth-child(2n) { border-radius: var(--blob-alt); }

.subject-card h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }

.subject-card--blue   { background: var(--blue-soft); }
.subject-card--coral  { background: var(--coral-soft); }
.subject-card--green  { background: var(--green-soft); }
.subject-card--purple { background: var(--purple-soft); }

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
  line-height: 1.4;
}

.tick-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
}

.hero .logo-banner {
  max-width: 200px;
  margin-bottom: 1.4rem;
}

/* ---------- Lists / steps ---------- */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: var(--border);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.4rem 4.2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
}


/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 3px dashed var(--ink-soft);
  margin: 2.6rem 0;
}

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  /* separate (not collapse) so the rounded outer border shows */
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  background: var(--paper);
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.price-table th, .price-table td {
  border-bottom: 2px solid var(--ink-soft);
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 1.05rem;
}

.price-table th {
  background: var(--yellow-soft);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
}

.price-table tr:last-child td { border-bottom: none; }

/* same price column width in every table so they line up */
.price-table th:last-child,
.price-table td.price {
  width: 28%;
  text-align: right;
  white-space: nowrap;
}

/* prices and option text in a plain font so the numbers read clearly */
.price-table td {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

.price-table td.price {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* session length under the option name, with a small clock icon */
.price-table__tag {
  display: block;
  margin-top: 0.3rem;
  padding-left: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23FFCE4B' stroke='%233A3226' stroke-width='2.5'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='%233A3226' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") left center / 1.1rem no-repeat;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.price-table__note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Gallery grid ---------- */
/* masonry-style columns so landscape and portrait photos both fit uncropped */
.gallery-grid {
  columns: 3;
  column-gap: 2.2rem;
  margin-top: 1rem;
}

/* inline-block keeps each polaroid (and its tape) whole inside its column */
.gallery-grid .photo-spot {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 14px 0 2.4rem;
}

.gallery-grid .photo-spot > img { aspect-ratio: auto; height: auto; }

/* scattered pinboard look: each photo gets its own tilt, size and nudge */
.gallery-grid .photo-spot:nth-child(7n+1) { transform: rotate(-4deg); width: 92%; margin-left: 2%; }
.gallery-grid .photo-spot:nth-child(7n+2) { transform: rotate(3deg) translateY(18px); width: 100%; }
.gallery-grid .photo-spot:nth-child(7n+3) { transform: rotate(-2deg); width: 86%; margin-left: 12%; margin-top: 40px; }
.gallery-grid .photo-spot:nth-child(7n+4) { transform: rotate(5deg); width: 94%; margin-left: 4%; }
.gallery-grid .photo-spot:nth-child(7n+5) { transform: rotate(-3deg) translateX(-10px); width: 90%; margin-top: 30px; }
.gallery-grid .photo-spot:nth-child(7n+6) { transform: rotate(2deg); width: 84%; margin-left: 10%; }
.gallery-grid .photo-spot:nth-child(7n)   { transform: rotate(-5deg); width: 96%; margin-top: 24px; }

.gallery-grid .photo-spot:nth-child(3n+2)::before { transform: translateX(-50%) rotate(6deg); }
.gallery-grid .photo-spot:nth-child(3n)::before   { left: 30%; transform: translateX(-50%) rotate(-10deg); }

@media (max-width: 760px) {
  .gallery-grid { columns: 2; column-gap: 1.2rem; }
  .gallery-grid .photo-spot { margin-bottom: 1.6rem; }
}

/* ---------- Testimonial cards ---------- */
.testimonial {
  background: var(--paper);
  border: var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  position: relative;
  font-size: 1.1rem;
}

.testimonial::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--coral);
  position: absolute;
  top: -0.3rem;
  left: 1rem;
  line-height: 1;
}

.testimonial p { margin: 0 0 0.8rem; padding-left: 1.5rem; }
.testimonial .who { font-family: 'Patrick Hand', cursive; font-size: 1.1rem; color: var(--ink-soft); padding-left: 1.5rem; }

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
}

.contact-direct { margin: 1.8rem 0; }

.contact-email {
  font-family: 'Patrick Hand', 'Comic Neue', cursive;
  font-size: 1.45rem;
  text-decoration: none;
  border-bottom: 2px dashed var(--ink);
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 2rem;
}

.form-card__title { margin-bottom: 0.2rem; }
.form-card__required { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.req { color: #b3261e; font-weight: 700; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full { grid-column: 1 / -1; }

.field > label,
.field legend {
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0;
  margin-bottom: 0.35rem;
}

.field > label { margin-bottom: 0; }
.field__hint { font-weight: 400; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  font: inherit;
  width: 100%;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: #9a9081; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--yellow);
}

.field input[aria-invalid="true"] { border-color: #b3261e; }

.field__error { margin: 0; color: #b3261e; font-size: 0.9rem; font-weight: 700; }

/* "What are you interested in?" pills */
.choice-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.98rem;
}

.choice:has(input:checked) { background: var(--green-soft); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--yellow); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }

.contact-form__submit { margin-top: 1.5rem; cursor: pointer; }
.contact-form__submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--coral-soft);
  border: 2px solid #b3261e;
  border-radius: 12px;
  color: #8c2a1f;
  font-weight: 700;
}

.form-status__msg { margin: 0; }
.form-status__email { margin-top: 0.8rem; }

.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success:focus { outline: none; }
.form-success svg { color: var(--green); margin: 0 auto 0.8rem; }
.form-success p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.4rem; }
  .contact-form__submit { width: 100%; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: var(--border);
  background: var(--paper);
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

footer.site-footer nav {
  margin-bottom: 0.8rem;
}

footer.site-footer nav a {
  text-decoration: none;
  margin: 0 0.5rem;
  color: var(--ink);
}

footer.site-footer nav a:hover { text-decoration: underline; }

/* Instagram / Facebook links (footer and contact page) */
.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0;
}

.socials--contact { justify-content: flex-start; margin: 0.4rem 0 0; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Patrick Hand', 'Comic Neue', cursive;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease;
}

.social:hover { transform: translate(-1px, -1px); }

.socials li:first-child .social { background: var(--coral-soft); }
.socials li:last-child .social  { background: var(--blue-soft); }

.note {
  background: var(--purple-soft);
  border: 2px dashed var(--ink-soft);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- Under construction banner ---------- */
.under-construction {
  background: var(--yellow-soft);
  border: var(--border);
  border-radius: var(--blob);
  padding: 2.6rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.under-construction h2 {
  margin-bottom: 0.6rem;
}

.under-construction p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- About page (checklist + title also used on Drawing & Talking) ---------- */
.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.4rem;
}

.story-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: center;
}

.story-photo {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 340px;
  justify-self: center;
}

/* offset crayon-coloured shape behind the photo */
.story-photo::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--blob-alt);
  transform: rotate(2deg);
}

.story-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--blob);
}

.story-intro__text h2 { font-size: 2.4rem; margin-bottom: 0.8rem; }

.story-facts {
  grid-column: 1 / -1;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) { .story-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .story-facts { grid-template-columns: 1fr; } }

.story-facts li {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: var(--border);
  border-left: 9px solid var(--coral);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-family: 'Patrick Hand', 'Comic Neue', cursive;
  font-size: 1.2rem;
  line-height: 1.3;
}

.story-facts li:nth-child(2) { border-left-color: var(--yellow); }
.story-facts li:nth-child(3) { border-left-color: var(--green); }
.story-facts li:nth-child(4) { border-left-color: var(--blue); }

.story-title { text-align: center; margin-bottom: 2rem; }

.story-center { text-align: center; max-width: 640px; margin: 0 auto; }

/* timeline-style list with crayon dots joined by a dashed line */
.story-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}

.story-timeline__step {
  position: relative;
  padding: 0 0 2.4rem 3.4rem;
}

.story-timeline__step:last-child { padding-bottom: 0; }

.story-timeline__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  border: var(--border);
}

.story-timeline__step:nth-child(2)::before { background: var(--yellow); }
.story-timeline__step:nth-child(3)::before { background: var(--green); }

.story-timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 2.4rem;
  bottom: 0.4rem;
  border-left: 3px dashed var(--ink-soft);
}

.story-timeline__step h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }

/* SEND checklist */
.story-checklist {
  list-style: none;
  margin: 1.8rem auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.2rem;
}

.story-checklist li {
  /* centre text vertically when a row's boxes are different heights */
  display: flex;
  align-items: center;
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1rem 0.8rem 3.2rem;
}

.story-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

/* closing call-to-action band */
.story-cta {
  background: var(--yellow-soft);
  border-top: var(--border);
  padding: 3rem 0;
}

.story-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.story-cta__quote {
  font-family: 'Patrick Hand', 'Comic Neue', cursive;
  font-size: 1.8rem;
  line-height: 1.3;
  max-width: 620px;
  margin: 0;
}

.story-cta .btn-row { margin-top: 0; }

@media (max-width: 760px) {
  .story-intro__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .story-photo { max-width: 280px; }
  .story-checklist { grid-template-columns: 1fr; }
  .story-cta__inner { justify-content: center; text-align: center; }
}
