/* Farmborough Preschool — stylesheet */

:root {
  --green-dark: #1e4a32;
  --green: #2f7a4f;
  --green-mid: #3f9463;
  --green-light: #eef5ef;
  --cream: #fdfbf5;
  --white: #ffffff;
  --text: #2b2b26;
  --text-soft: #565650;
  --border: #e3ddcd;
  --yellow: #f0ae3c;
  --red: #dd5c4f;
  --blue: #4a92c2;
  --purple: #9370b3;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(30, 74, 50, 0.25);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  color: var(--green-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 0.3em;
}

p { margin: 0 0 1em; color: var(--text); }
a { color: var(--green); }
img { max-width: 100%; display: block; }

.eyebrow {
  display: block;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--green-mid);
  margin-bottom: 0.6em;
}

.lede {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5em;
  color: var(--text-soft);
  font-size: 1.08rem;
}

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

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-dark); color: #fff; padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 245, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Baloo 2", sans-serif; color: var(--green-dark); font-size: 1.15rem; }
.brand-text span { color: var(--green-mid); font-size: 0.78rem; font-weight: 700; }

nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav a {
  color: var(--green-dark); text-decoration: none; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; font-size: 0.92rem;
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--green-light); }
.nav-cta {
  background: var(--green) !important; color: #fff !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--green); border-radius: 10px;
  padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-dark); margin: 4px 0; }

@media (max-width: 980px) {
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 10px; border-radius: 10px; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-dark), var(--green) 70%);
  color: #fff;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.10), transparent 40%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 0.35em; }
.hero .tagline { font-size: 1.2rem; opacity: 0.95; margin-bottom: 1.3em; max-width: 520px; }
@media (max-width: 860px) { .hero .tagline { margin-left: auto; margin-right: auto; } }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
@media (max-width: 860px) { .badges { justify-content: center; } }
.badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 0.82rem; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-buttons { justify-content: center; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 0.98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--green-dark); }
.btn-primary:hover { box-shadow: 0 8px 20px -6px rgba(240,174,60,0.6); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { box-shadow: 0 8px 20px -6px rgba(47,122,79,0.55); }

.hero-photo {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,0.25);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.hero-badge-panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  color: #fff;
}
.hero-badge-panel svg { margin: 0 auto 14px; display: block; }
.hero-badge-panel strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 2rem; margin-bottom: 6px; }
.hero-badge-panel span { color: #e4f0e8; font-size: 1rem; }

.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 32px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
}
.stat-card strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.7rem; color: var(--green-dark); margin-bottom: 6px; }
.stat-card span { color: var(--text-soft); font-size: 1rem; }

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: var(--green-light); }
.section.tight { padding: 50px 0; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 6px 20px -12px rgba(30,74,50,0.18);
  border: 1px solid var(--border);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.icon-list li:last-child { border-bottom: none; }
.icon-list .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  margin-top: 8px; background: var(--green);
}
.icon-list.multicolor li:nth-child(6n+1) .dot { background: var(--green); }
.icon-list.multicolor li:nth-child(6n+2) .dot { background: var(--yellow); }
.icon-list.multicolor li:nth-child(6n+3) .dot { background: var(--red); }
.icon-list.multicolor li:nth-child(6n+4) .dot { background: var(--blue); }
.icon-list.multicolor li:nth-child(6n+5) .dot { background: var(--purple); }
.icon-list.multicolor li:nth-child(6n+6) .dot { background: var(--green-mid); }

.term-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.term-table th, .term-table td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.term-table th { color: var(--green-dark); font-family: "Baloo 2", sans-serif; }
.term-table tr:last-child td { border-bottom: none; }
.dates-wrap {
  overflow-x: auto; background: var(--white); border-radius: var(--radius);
  padding: 8px 20px 18px; box-shadow: 0 6px 20px -12px rgba(30,74,50,0.18); border: 1px solid var(--border);
}

.quote-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 6px 20px -12px rgba(30,74,50,0.18); border: 1px solid var(--border);
  position: relative;
}
.quote-card::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 3.4rem; color: var(--green-light);
  position: absolute; top: 6px; left: 14px; line-height: 1;
}
.quote-card p { position: relative; z-index: 1; font-style: italic; color: var(--text); }
.quote-source { font-weight: 800; color: var(--green-dark); font-style: normal !important; display: block; margin-top: 10px; font-size: 0.85rem; }

.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.staff-photo { aspect-ratio: 4/3; overflow: hidden; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-body { padding: 22px 24px 26px; }
.staff-body h3 { margin-bottom: 0.1em; }
.staff-role { color: var(--green-mid); font-weight: 800; font-size: 0.92rem; margin-bottom: 12px; }
.staff-quals { list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.9rem; color: var(--text-soft); }
.staff-quals li { padding: 3px 0; padding-left: 20px; position: relative; }
.staff-quals li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.staff-bio { font-style: italic; color: var(--text-soft); border-left: 3px solid var(--green-light); padding-left: 14px; }

.committee-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 760px) { .committee-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .committee-grid { grid-template-columns: 1fr; } }
.committee-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; text-align: center;
}
.committee-item strong { display: block; color: var(--green-dark); }
.committee-item span { font-size: 0.82rem; color: var(--text-soft); }

.info-note {
  background: #fff8e8; border: 1px solid #f0d99a; border-radius: 14px;
  padding: 16px 20px; font-size: 0.95rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

footer.site-footer {
  background: var(--green-dark); color: #eaf3ec; padding: 50px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { height: 48px; }
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
footer.site-footer a { color: #cfe6d8; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  font-size: 0.85rem; color: #b9d3c3; text-align: center;
}

.charity-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  padding: 16px 0; font-size: 0.85rem; font-weight: 700; color: var(--green-dark);
}
.charity-strip span { display: flex; align-items: center; gap: 6px; }

.anchor-offset { scroll-margin-top: 90px; }

.donate-card {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; border-radius: 24px; padding: 40px; text-align: center;
}
.donate-card h2 { color: #fff; }
.donate-card p { color: #e4f0e8; max-width: 560px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 20px -12px rgba(30,74,50,0.18);
}
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 66px 20px 24px;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 700; font-size: 1.15rem;
  line-height: 1.3; color: var(--green-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--green-dark);
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.25rem; line-height: 32px; text-align: center;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; }
@media (max-width: 500px) {
  .faq-item summary { padding: 18px 58px 18px 18px; font-size: 1.05rem; }
  .faq-item summary::after { right: 16px; }
  .faq-answer { padding: 0 18px 18px; }
}
