/* First Special Steps — brand palette taken from the logo */
:root {
  --brown: #7a4a35;      /* "First" + tagline */
  --brown-dark: #5c3524;
  --sage: #8aa465;       /* "Special" */
  --sage-dark: #6c8649;
  --sage-soft: #e8efdc;
  --rose: #cf7486;       /* "Steps" */
  --rose-dark: #b35a6d;
  --rose-soft: #f8e3e6;
  --sand: #e8c9a2;       /* roof */
  --sand-soft: #f6ead9;
  --butter: #f6e1a6;     /* rainbow yellow */
  --cream: #fffaf4;
  --white: #ffffff;
  --text: #4a3328;
  --muted: #7d665a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(122, 74, 53, 0.10);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--brown);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-kids { height: 84px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.brand-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.55rem; line-height: 1; }
.brand-tag { font-family: "Fredoka", sans-serif; font-weight: 400; font-size: .82rem; color: var(--brown); line-height: 1; letter-spacing: .01em; }
@media (max-width: 400px) {
  .brand-kids { height: 62px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tag { font-size: .7rem; }
}
.brand-text .f { color: var(--brown); }
.brand-text .sp { color: var(--sage); }
.brand-text .st { color: var(--rose); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--brown);
  font-weight: 700; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--sand-soft); }
.nav a.active { background: var(--rose-soft); color: var(--rose-dark); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brown);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 96px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); padding: 12px 20px 20px;
    border-bottom: 1px solid var(--sand-soft);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1rem;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-rose { background: var(--rose); color: var(--white) !important; }
.btn-rose:hover { background: var(--rose-dark); }
.btn-sage { background: var(--sage); color: var(--white) !important; }
.btn-sage:hover { background: var(--sage-dark); }
.btn-outline { border-color: var(--brown); color: var(--brown) !important; background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--white) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.bg-white { background: var(--white); }
.bg-sage { background: var(--sage-soft); }
.bg-rose { background: var(--rose-soft); }
.bg-sand { background: var(--sand-soft); }

/* Hero */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 span.sage { color: var(--sage); }
.hero h1 span.rose { color: var(--rose); }
.hero-photo { border-radius: 28px; box-shadow: var(--shadow); border: 6px solid var(--white); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero-badges li {
  background: var(--white); border: 1px solid var(--sand); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; font-weight: 700; color: var(--brown);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* Page banner for inner pages */
.page-banner { padding: 40px 0 32px; background: var(--white); border-bottom: 1px solid var(--sand-soft); }
.page-banner + section { padding-top: 56px; }
.banner-grid { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.banner-art { width: 100%; height: auto; }
.page-banner .lead { margin-bottom: 0; }
@media (max-width: 760px) {
  .banner-grid { grid-template-columns: 1fr; }
  .banner-art { display: none; }
}
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--sand-soft);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: "Fredoka", sans-serif; font-weight: 600; margin-bottom: 14px; color: var(--white);
}
.c-rose .num { background: var(--rose); }
.c-sage .num { background: var(--sage); }
.c-sand .num { background: #d5a56f; }
.c-brown .num { background: var(--brown); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.section-head { margin-bottom: 40px; }

/* Feature panel with illustration */
.panel {
  border-radius: 32px; padding: 40px; min-height: 280px;
  display: grid; place-items: center; text-align: center;
}
.panel svg { width: 100%; max-width: 360px; height: auto; }

/* EYFS tiles */
.area {
  border-radius: 18px; padding: 22px; background: var(--white);
  border-left: 6px solid var(--sage); box-shadow: var(--shadow);
}
.area.prime { border-left-color: var(--rose); }
.area small {
  display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
  font-size: .72rem; color: var(--muted); margin-bottom: 4px;
}
.area h3 { font-size: 1.1rem; margin: 0; }

/* Chip list */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--brown);
  background: var(--white); border: 2px solid var(--sand);
}
.chips li:nth-child(3n+1) { border-color: var(--rose); }
.chips li:nth-child(3n+2) { border-color: var(--sage); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 75px; top: 8px; bottom: 8px; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--sand) 0 8px, transparent 8px 14px);
}
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 36px; padding: 12px 0; position: relative; }
.timeline time { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--rose-dark); text-align: right; padding-top: 2px; }
.timeline li::after {
  content: ""; position: absolute; left: 69px; top: 13px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--sage);
}
.timeline .t-body { padding-left: 14px; }
.timeline strong { display: block; color: var(--brown); font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--sand-soft); }
th { background: var(--brown); color: var(--white); font-family: "Fredoka", sans-serif; font-weight: 500; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
td:last-child { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--rose-dark); font-size: 1.1rem; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); }

.note {
  background: var(--butter); border-radius: 16px; padding: 16px 20px; font-size: .95rem;
  color: var(--brown-dark); margin: 20px 0;
}

/* Testimonials */
.quote { position: relative; padding-top: 44px; }
.quote::before {
  content: "\201C"; position: absolute; top: 8px; left: 26px;
  font-family: "Fredoka", sans-serif; font-size: 4rem; line-height: 1; color: var(--rose);
}
.quote footer { margin-top: 14px; font-weight: 800; color: var(--brown); }
.placeholder-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--butter); color: var(--brown-dark); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 800; color: var(--brown); margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 16px; border-radius: 14px; border: 2px solid var(--sand); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); }
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-success { display: none; background: var(--sage-soft); border-radius: 14px; padding: 16px; font-weight: 700; color: var(--sage-dark); }

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--sand); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--rose); margin-top: 3px; }

/* CTA band */
.cta {
  background: var(--brown); color: var(--white); border-radius: 36px; padding: 56px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: var(--white); }
.cta p { color: #f3e2d6; max-width: 560px; margin: 0 auto 24px; }
.cta .btn-row { justify-content: center; }
.cta .btn-outline { border-color: var(--white); color: var(--white) !important; }
.cta .btn-outline:hover { background: var(--white); color: var(--brown) !important; }
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; opacity: .18;
}
.cta::before { width: 220px; height: 220px; background: var(--rose); left: -60px; bottom: -80px; }
.cta::after { width: 160px; height: 160px; background: var(--sage); right: -40px; top: -50px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--sand-soft); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.45fr; gap: 40px; align-items: start; }
.site-footer h4 {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown);
  margin: 6px 0 18px; padding-bottom: 10px; position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--rose); }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.site-footer li { margin-bottom: 10px; line-height: 1.45; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--rose-dark); }
.footer-brand { display: block; margin: -6px 0 10px; }
.footer-logo { width: 200px; height: auto; mix-blend-mode: multiply; }
.footer-intro { color: var(--muted); max-width: 240px; font-size: .92rem; line-height: 1.55; margin: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--rose); margin-top: 3px; }
.footer-contact a { word-break: break-word; }
.footer-map { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--sand); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom > span:first-child { max-width: 760px; }
.footer-bottom a { color: var(--muted); text-decoration: underline; }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* Small decorative heart divider */
.heart-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 18px; }
.heart-divider::before, .heart-divider::after { content: ""; width: 60px; height: 2px; background: var(--rose); border-radius: 2px; opacity: .6; }
.heart-divider svg { width: 22px; height: 22px; color: var(--rose); }
.photo { width: 100%; height: auto; border-radius: 32px; box-shadow: var(--shadow); border: 6px solid var(--white); }
.nowrap { white-space: nowrap; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team-card { text-align: center; width: 240px; }
.team-card p { color: var(--muted); font-weight: 700; }
.avatar {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  color: var(--white); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 2rem; margin-bottom: 14px;
}
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4a35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.team-card { width: 280px; }
.team-photo {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; border: 6px solid var(--sage-soft);
}
.team-card:nth-child(2n) .team-photo { border-color: var(--rose-soft); }
.team-card h3 { margin-bottom: 2px; }
.quote p { font-size: 1.02rem; }
.quote-meta { font-weight: 600; color: var(--muted); font-size: .9rem; }

/* Review marquee: continuous, seamless auto-scroll (pauses on hover/focus) */
.review-marquee {
  overflow: hidden; padding: 8px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.review-track {
  display: flex; align-items: stretch; gap: 20px; width: max-content;
  animation: review-roll 48s linear infinite;
}
.review-marquee:hover .review-track,
.review-marquee:focus-within .review-track { animation-play-state: paused; }
@keyframes review-roll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}
.review {
  flex: none; width: 320px; margin: 0;
  display: flex; flex-direction: column; background: var(--white); border-radius: 18px;
  border: 1px solid var(--sand-soft); box-shadow: 0 6px 18px rgba(122, 74, 53, 0.08); padding: 20px 22px;
}
.review blockquote { margin: 0 0 14px; position: relative; padding-top: 26px; }
.review blockquote::before {
  content: "\201C"; position: absolute; top: -8px; left: 0;
  font-family: "Fredoka", sans-serif; font-size: 2.4rem; line-height: 1; color: var(--rose);
}
.review blockquote p {
  margin: 0; font-size: .92rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.review.expanded blockquote p { -webkit-line-clamp: unset; display: block; }
.review-more {
  align-self: flex-start; background: none; border: 0; padding: 0; margin: -8px 0 14px; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 800; color: var(--sage-dark);
}
.review-more:hover { color: var(--rose-dark); }
.review figcaption {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sand-soft);
}
.review-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .95rem;
}
.review figcaption strong { display: block; color: var(--brown); font-size: .95rem; line-height: 1.2; }
@media (max-width: 620px) { .review { width: 270px; } }
@media (prefers-reduced-motion: reduce) {
  .review-marquee { overflow-x: auto; }
  .review-track { animation: none; }
  .review[aria-hidden="true"] { display: none; }
}
