/* ==========================================================
   Flourish Playhouse — Crèche · Preschool · Primary School
   Festac Town, Amuwo Odofin, Lagos
   ========================================================== */

:root {
  /* Brand palette from the official Flourish Playhouse logo */
  --teal: #3a9b1f;          /* brand green */
  --teal-dark: #2a7214;     /* deep green */
  --teal-light: #ecf7e6;    /* soft green tint */
  --coral: #ef3f3a;         /* brand red */
  --coral-dark: #d32f2a;
  --sun: #f9b921;           /* brand yellow */
  --sun-light: #fff6dc;
  --ink: #22333b;
  --ink-soft: #55636b;
  --paper: #fffdf8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(14, 124, 107, 0.10);
  --shadow-lg: 0 12px 40px rgba(34, 51, 59, 0.14);
  --font-head: 'Fredoka', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { width: min(1140px, 92%); margin: 0 auto; }

section { padding: 70px 0; }

.section-label {
  display: inline-block;
  background: var(--sun-light);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-intro { max-width: 640px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-dark);
  color: #dff2ee;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--sun); font-weight: 700; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(34, 51, 59, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #57b53a);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-logo {
  width: 52px; height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  background: var(--white);
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.main-nav a { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.main-nav a:hover, .main-nav a.active { color: var(--coral); }
.main-nav .btn { padding: 10px 22px; font-size: 0.9rem; color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--teal);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--teal-light) 0%, var(--paper) 55%, var(--sun-light) 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 span { color: var(--coral); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 18px 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--white); box-shadow: var(--shadow); }

.hero-art {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  text-align: center;
}
.hero-art .big-emoji { font-size: 4.5rem; line-height: 1; }
.hero-art h3 { margin: 14px 0 6px; }
.hero-art p { color: var(--ink-soft); font-size: 0.95rem; }
.hero-art .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.hero-art .mini-grid div {
  background: var(--teal-light);
  border-radius: 14px;
  padding: 14px 6px;
  font-size: 1.6rem;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 40px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  background: var(--teal-light);
}
.card.accent-coral .icon { background: #ffe9e6; }
.card.accent-sun .icon { background: var(--sun-light); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .age-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
}
.card a.more { display: inline-block; margin-top: 14px; font-weight: 800; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .visual {
  background: linear-gradient(135deg, var(--teal), #57b53a);
  border-radius: 28px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  box-shadow: var(--shadow-lg);
}
.split .visual.sunny { background: linear-gradient(135deg, var(--sun), #ffb020); }
.split .visual.coral { background: linear-gradient(135deg, var(--coral), #ff8a7e); }

.checklist { list-style: none; margin-top: 22px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 13px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--teal); color: var(--white); padding: 50px 0; }
.stats-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat h3 { font-size: 2.4rem; color: var(--sun); }
.stat p { font-weight: 700; opacity: 0.92; font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 40px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border-top: 5px solid var(--sun);
}
.testimonial p.quote { font-style: italic; color: var(--ink-soft); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--teal-dark);
}
.testimonial .who strong { display: block; font-size: 0.95rem; }
.testimonial .who span { font-size: 0.82rem; color: var(--ink-soft); }
.stars { color: var(--sun); font-size: 1.05rem; margin-bottom: 10px; letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--coral), #ff8a7e);
  color: var(--white);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { opacity: 0.95; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { background: var(--white); color: var(--coral-dark); }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 34px;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(140deg, var(--teal-light), var(--sun-light));
  padding: 64px 0;
  text-align: center;
}
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 12px auto 0; }
.breadcrumb { font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e3e9e7;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 700;
  margin-top: 18px;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.gallery-item .ph {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
}
.gallery-item:nth-child(4n+1) .ph { background: var(--teal-light); }
.gallery-item:nth-child(4n+2) .ph { background: var(--sun-light); }
.gallery-item:nth-child(4n+3) .ph { background: #ffe9e6; }
.gallery-item:nth-child(4n+4) .ph { background: #e8ecff; }
.gallery-item p { padding: 14px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 20px 24px;
  list-style: none;
  position: relative;
}
.faq-item summary::after { content: "+"; position: absolute; right: 24px; color: var(--coral); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--ink-soft); }

/* ---------- Timeline (admissions steps) ---------- */
.steps { counter-reset: step; margin-top: 40px; display: grid; gap: 20px; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 26px 88px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 24px; top: 24px;
  width: 44px; height: 44px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Portal ---------- */
.portal-bg { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 60px 0; background: linear-gradient(140deg, var(--teal-light), var(--sun-light)); }
.portal-card { max-width: 460px; margin: 0 auto; width: 100%; }
.role-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.role-tab {
  border: 2px solid #e3e9e7;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: var(--font-body);
  transition: all 0.15s ease;
}
.role-tab .em { display: block; font-size: 1.4rem; margin-bottom: 4px; }
.role-tab.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }
.demo-hint {
  background: var(--sun-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-top: 16px;
}
.login-error { color: var(--coral-dark); font-weight: 700; font-size: 0.88rem; display: none; margin-top: 10px; }

/* ---------- Dashboard ---------- */
.dash-header { background: var(--teal-dark); color: var(--white); padding: 26px 0; }
.dash-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.dash-header h1 { font-size: 1.5rem; color: var(--white); }
.dash-header p { opacity: 0.85; font-size: 0.9rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 30px; }
.dash-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.dash-tile h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; }
.dash-tile ul { list-style: none; }
.dash-tile li { padding: 9px 0; border-bottom: 1px dashed #e3e9e7; font-size: 0.92rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; }
.dash-tile li:last-child { border-bottom: none; }
.dash-tile .tag { background: var(--teal-light); color: var(--teal-dark); font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dash-tile .tag.warn { background: #ffe9e6; color: var(--coral-dark); }
.dash-tile .tag.sun { background: var(--sun-light); color: #9a6b00; }
.big-number { font-family: var(--font-head); font-size: 2.2rem; color: var(--teal); font-weight: 700; }
.demo-banner {
  background: var(--sun-light);
  border-bottom: 2px solid var(--sun);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 14px;
  color: #7a5500;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2d6; margin-top: 70px; }
.footer-main { padding: 60px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.93rem; }
.site-footer a { color: #c9d2d6; }
.site-footer a:hover { color: var(--sun); }
.footer-brand p { font-size: 0.92rem; margin-top: 12px; max-width: 300px; }
.footer-bottom { border-top: 1px solid #3a474e; padding: 20px 0; font-size: 0.84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #3a474e;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}
.social-links a:hover { background: var(--coral); color: var(--white); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 90;
  color: var(--white);
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .role-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .topbar .container { justify-content: center; text-align: center; }
}
