/* Little Roots Day Home — styles
   Palette taken from the logo and business card */
:root {
  --cream: #FEFAEF;
  --cream-2: #F7F0DC;
  --forest: #1E5631;
  --forest-2: #164427;
  --leaf: #7DB343;
  --leaf-soft: #A9CF78;
  --bark: #6B3A1E;
  --sun: #F3BE3E;
  --sky: #5AA9E6;
  --rose: #EC5B77;
  --ink: #3A2A1E;
  --muted: #6E5B4B;

  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Andika", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--bark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; color: var(--forest); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none;
  border: 2.5px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-2); color: #fff; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--forest); color: #fff; }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-small { font-size: .98rem; padding: .5rem 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 250, 239, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 86, 49, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 64px; height: auto; mix-blend-mode: multiply; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: .95; color: var(--forest); }
.brand-name small { display: block; font-weight: 600; font-size: 1rem; color: var(--bark); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav ul a { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.site-nav ul a:hover { color: var(--forest); }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 26px; height: 3px; background: var(--forest); border-radius: 3px; position: relative; margin: auto; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 380px; height: 300px; left: -140px; top: -90px;
  background: #DDEBC5; border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%; opacity: .7;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 2.5rem; padding: 3.5rem 0 1rem;
}
.hero-kicker { font-family: var(--display); font-weight: 600; color: var(--bark); font-size: 1.15rem; margin-bottom: .6rem; }
.hero h1 {
  font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.01em; margin-bottom: 1.2rem;
}
.hero-lead { font-size: 1.2rem; max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; mix-blend-mode: multiply; }

/* The hill — signature element from the business card */
.hill { position: relative; margin-top: -10px; }
.hill-shape { display: block; width: 100%; height: clamp(60px, 9vw, 130px); fill: var(--leaf-soft); }
.hill-body { background: var(--leaf-soft); padding: .2rem 0 2.6rem; margin-top: -1px; }
.trust {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
}
.trust li {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--forest-2);
}
.trust svg { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 2px 0 rgba(22, 68, 39, .18)); }

/* About */
.about { background: var(--forest); color: #EAF3E0; padding: 5rem 0; }
.about h2 { color: #fff; }
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.about-text p { max-width: 38em; }
.about-quote { margin: 0; padding: 2.4rem 2rem; border: 3px dashed rgba(169, 207, 120, .6); border-radius: var(--radius-lg); text-align: center; }
.about-quote blockquote { margin: 0; }
.about-quote p { font-family: var(--display); font-weight: 700; color: var(--sun); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; margin: 0 0 .8rem; }
.about-quote figcaption { color: var(--leaf-soft); font-size: 1rem; }

/* Care / promises */
.care { padding: 5.5rem 0 5rem; }
.care h2, .care .section-lead { text-align: center; }
.section-lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 3rem; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.2rem; }
.promise { text-align: center; padding: 0 .4rem; }
.promise .heart { width: 64px; height: 64px; margin: 0 auto 1rem; display: block; }
.promise h3 { color: var(--bark); }
.promise p { color: var(--muted); font-size: 1rem; }
.promise-rose .heart { fill: var(--rose); }
.promise-sun .heart { fill: var(--sun); }
.promise-leaf .heart { fill: var(--leaf); }
.promise-sky .heart { fill: var(--sky); }

/* A day here */
.day { background: var(--cream-2); padding: 5rem 0; }
.day-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.day-intro { position: sticky; top: 110px; }
.day-intro p { color: var(--muted); max-width: 30em; }
.day-intro .note { font-size: .95rem; border-left: 4px solid var(--sun); padding-left: .9rem; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px;
  border-left: 3px dotted var(--leaf);
}
.timeline li { position: relative; padding: 0 0 1.6rem 4rem; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 45px; height: 45px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  background: var(--cream); color: var(--forest); border: 3px solid var(--leaf);
}
.timeline li:nth-child(4n+1)::before { border-color: var(--rose); }
.timeline li:nth-child(4n+2)::before { border-color: var(--sun); }
.timeline li:nth-child(4n+3)::before { border-color: var(--leaf); }
.timeline li:nth-child(4n+4)::before { border-color: var(--sky); }
.timeline h3 { margin-bottom: .15rem; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Enrolment */
.enrol { padding: 5rem 0; text-align: center; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 1rem; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; margin: 0 auto 1rem;
  width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--bark);
  font-family: var(--display); font-weight: 800; font-size: 1.8rem;
}
.steps p { color: var(--muted); max-width: 22em; margin-inline: auto; }

/* FAQ */
.faq { padding: 0 0 5rem; }
.faq-inner { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; }
.faq details { border-bottom: 2px solid var(--cream-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; color: var(--leaf); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* Contact */
.contact { background: var(--cream-2); padding: 5rem 0 6rem; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list strong { display: block; font-family: var(--display); color: var(--bark); font-size: .95rem; line-height: 1.2; }
.contact-list a { font-size: 1.1rem; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--forest); text-decoration: underline; }
.c-icon { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.c-icon svg { width: 24px; height: 24px; fill: #fff; }
.c-leaf { background: var(--forest); }
.c-sun { background: var(--sun); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 4px solid #fff; aspect-ratio: 16 / 10; background: #e8e2cf; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  background: #fff; border-radius: var(--radius-lg); padding: 2.2rem;
  border: 2px solid rgba(30, 86, 49, .1);
}
.contact-form h3 { font-size: 1.7rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--bark); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 2px solid #E4DCC5; background: var(--cream); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--rose); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-small { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }
.form-status { padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 700; }
.form-status.ok { background: #E6F2D8; color: var(--forest-2); }
.form-status.err { background: #FDE6EA; color: #9C2340; }

/* Footer */
.site-footer { margin-top: -1px; background: var(--cream-2); }
.footer-hill { display: block; width: 100%; height: 70px; fill: var(--forest); }
.footer-body { background: var(--forest); color: #D7E8C4; padding: 1.5rem 0 2rem; margin-top: -1px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.footer-inner p { margin: 0 0 .3rem; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.site-footer a { color: #fff; }
.copyright { font-size: .88rem; opacity: .8; margin-top: 1.5rem; }

/* Page-load moment: the hero settles in once */
@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: rise .7s ease-out both; }
  .hero-art img { animation: grow .9s .15s cubic-bezier(.2, .8, .3, 1.1) both; transform-origin: 50% 70%; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes grow { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .promises { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .day-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .day-intro { position: static; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--cream); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 3px solid var(--leaf-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--cream-2); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; gap: 1.5rem; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; margin: 0 auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .trust { flex-direction: column; align-items: flex-start; gap: .8rem; width: fit-content; max-width: calc(100% - 2.5rem); }
  .trust li { font-size: 1.15rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .promises, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.5rem; }
  .about, .care, .day, .enrol, .contact { padding-block: 3.5rem; }
  .brand-name { font-size: 1.25rem; }
  .brand img { width: 52px; }
}
