/* Juniper Tree Early Learning (sample) — mobile-first, soft and friendly */
:root {
  --sky: #2f6f9f;
  --sky-dark: #22557b;
  --sun: #ffcf4a;
  --leaf: #5aa469;
  --coral: #f08a6c;
  --cream: #fffaf0;
  --ink: #2a3a4a;
  --muted: #5f6f7f;
  --line: #e8e0cf;
  /* Rounded system fonts where available, no downloads */
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: #fff; padding-bottom: 58px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; color: #fff; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; color: var(--sky-dark); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--sky); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
svg { display: block; max-width: 100%; height: auto; }
.eyebrow { font-family: var(--round); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); margin-bottom: 0.3rem; }
.eyebrow.dark { color: var(--coral); }
.small { font-size: 0.9rem; color: var(--muted); }
.sub { max-width: 40rem; color: var(--muted); }

.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px; font: inherit; font-family: var(--round); font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; white-space: nowrap; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #d9a91f; }
.btn-sun:hover { background: #ffd966; }
.btn-white { background: #fff; color: var(--sky-dark); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--sky-dark); text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 1.2rem; line-height: 1.05; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-size: 0.75rem; font-weight: 700; color: var(--leaf); letter-spacing: 0.05em; }
.nav { display: none; }
@media (min-width: 920px) {
  .nav { display: flex; gap: 1.5rem; }
  .nav a { color: var(--ink); text-decoration: none; font-family: var(--round); font-weight: 700; }
  .nav a:hover { color: var(--coral); }
}

/* Hero */
.hero { background: var(--sky); color: #e3f1fb; padding: 3rem 0 3.5rem; }
.lead { font-size: 1.15rem; max-width: 34rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.status { margin: 0; }
.status b { background: rgba(255,255,255,0.15); padding: 0.15rem 0.6rem; border-radius: 999px; }
.status .is-open { color: #c9f7cf; }
.status .is-closed { color: #ffd6c9; }
.hero-art { margin-top: 2rem; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
  .hero-art { margin-top: 0; }
}

/* Trust strip */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center; }
.trust b { display: block; font-family: var(--round); color: var(--sky-dark); }
.trust span { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-sky { background: var(--sky-dark); color: #dcecf8; }
.section-sky h2 { color: #fff; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split-top { align-items: start; } }

/* Programs */
.programs { display: grid; gap: 1rem; }
@media (min-width: 640px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program { position: relative; border-radius: 20px; padding: 1.5rem; background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--p); }
.program h3 { color: var(--ink); }
.ages { font-weight: 700; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.program p:last-child { margin: 0; }
.status-badge { float: right; font-size: 0.78rem; font-weight: 800; padding: 0.2rem 0.7rem; border-radius: 999px; margin-left: 0.5rem; }
.program[data-status="open"] .status-badge { background: #dff3e3; color: #276b37; }
.program[data-status="few"] .status-badge { background: #fff1c7; color: #7a5800; }
.program[data-status="waitlist"] .status-badge { background: #fde2da; color: #9b3a1f; }

/* Tuition estimator */
.estimator { background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(47,111,159,0.12); display: grid; gap: 1rem; }
.estimator label { display: grid; gap: 0.3rem; font-weight: 700; }
.estimator select { font: inherit; padding: 0.7rem; border-radius: 12px; border: 2px solid var(--line); }
.estimator fieldset { border: 0; padding: 0; margin: 0; }
.estimator legend { font-weight: 700; margin-bottom: 0.4rem; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.days label { display: block; }
.days input { position: absolute; opacity: 0; }
.days span { display: block; text-align: center; padding: 0.6rem; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-family: var(--round); }
.days input:checked + span { background: var(--sky); border-color: var(--sky); color: #fff; }
.days input:focus-visible + span { outline: 3px solid var(--sun); }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.results div { background: var(--cream); border-radius: 14px; padding: 0.9rem; text-align: center; }
.results span { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.results b { font-family: var(--round); font-size: 1.9rem; color: var(--sky-dark); }
.estimator .small { margin: 0; }

/* Day timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.timeline time { font-family: var(--round); font-weight: 800; background: var(--sun); color: var(--ink); border-radius: 12px; text-align: center; padding: 0.4rem 0; }
.timeline li:nth-child(3n+2) time { background: var(--coral); color: #fff; }
.timeline li:nth-child(3n) time { background: var(--leaf); color: #fff; }
.timeline h3 { font-size: 1.1rem; margin: 0.2rem 0 0.1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* Safety + daily report */
.safety { list-style: none; padding: 0; margin: 0; }
.safety li { padding: 0.45rem 0 0.45rem 1.8rem; position: relative; }
.safety li::before { content: "\2714"; position: absolute; left: 0; color: var(--sun); font-weight: 800; }
.safety b { color: #fff; }
.report { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.25); max-width: 420px; width: 100%; justify-self: center; }
.report-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.kid { width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-family: var(--round); font-weight: 800; font-size: 1.3rem; }
.report-head b { display: block; font-family: var(--round); font-size: 1.15rem; }
.report-head span { font-size: 0.85rem; color: var(--muted); }
.report ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.report li { display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.report li em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--muted); text-align: right; }
.teacher-note { background: var(--cream); border-radius: 14px; padding: 0.8rem 1rem; margin: 0; font-size: 0.95rem; }

/* Reviews */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews figure { margin: 0; background: var(--cream); border-radius: 20px; padding: 1.5rem; }
.stars { color: #f2a900; letter-spacing: 2px; }
.reviews blockquote { margin: 0.5rem 0 1rem; }
.reviews figcaption { font-weight: 700; color: var(--muted); font-size: 0.9rem; }

/* Tour form + hours */
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 1rem 0; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sky); font-weight: 800; }
.form { background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(47,111,159,0.12); display: grid; gap: 1rem; }
.form h3 { margin: 0; color: var(--sky-dark); }
.form label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 0.7rem; border: 2px solid var(--line); border-radius: 12px; width: 100%; background: #fff; }
.form .btn { justify-self: start; }
.row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }
.field-note { margin: 0; font-size: 0.9rem; color: #b42318; }
.field-note:empty { display: none; }

/* FAQ */
.faq details { border-bottom: 2px dotted var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--round); font-weight: 800; color: var(--sky-dark); }
.faq details p { color: var(--muted); }

.footer { background: var(--sky-dark); color: #c3dbee; padding: 2.5rem 0; text-align: center; font-size: 0.92rem; }
.footer a { color: var(--sun); }
.footer p { margin: 0 0 0.5em; }
.footer-brand { font-family: var(--round); font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer-note { font-size: 0.85rem; margin-top: 1rem !important; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 2fr; }
.mobile-bar a { padding: 1rem; text-align: center; font-family: var(--round); font-weight: 800; text-decoration: none; background: var(--sky-dark); color: #fff; }
.mobile-bar a.sun { background: var(--sun); color: var(--ink); }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
