/* 3 to 7 Montessori — Site Styles */
:root {
  /* Backgrounds — alternate these section by section */
  --bg-sky: #DCEEF8;
  --bg-sky-soft: #E9F4FB;
  --bg-cream: #FDFBF0;
  --bg-white: #FFFFFF;

  /* Primary (blue) */
  --blue-600: #5B9BCB;
  --blue-500: #6FA8D6;
  --blue-400: #8FC1E3;
  --blue-100: #EAF4FB;

  /* Secondary (peach/orange accent) */
  --peach-400: #F7B77E;
  --peach-100: #FDEBD8;

  /* Text */
  --text-heading: #6E9FC9;
  --text-body: #6B7A8A;
  --text-label: #7CADD6;

  /* Footer */
  --footer-bg: #7FB3DA;
  --footer-text: #FFFFFF;

  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-soft: 0 8px 24px rgba(111, 168, 214, 0.12);

  /* Back-compat aliases for existing component CSS */
  --cream: var(--bg-cream);
  --peach: var(--peach-100);
  --coral: var(--blue-600);
  --coral-dark: var(--blue-500);
  --leaf: #6E9B6B;
  --ink: var(--text-heading);
  --muted: var(--text-body);
  --white: var(--bg-white);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-soft);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-body);
  background: var(--bg-cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Fredoka', 'Baloo 2', sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--text-heading); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--text-label); margin-bottom: 10px; }
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--text-body); }

/* Section background alternation */
.bg-cream { background: var(--bg-cream); }
.bg-sky { background: var(--bg-sky); }
.bg-white { background: var(--bg-white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-full); font-weight: 700; font-size: .95rem; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(91,155,203,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91,155,203,.45); }
.btn-outline { background: transparent; border: 2px solid var(--blue-500); color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(233,244,251,.92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(111,168,214,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka',sans-serif; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav-links a:hover { color: var(--coral-dark); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg-sky-soft) 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%; opacity: .8; pointer-events: none;
}
.hero::before { width: 90px; height: 34px; top: 60px; left: 6%; box-shadow: 22px 10px 0 -4px #fff, -18px 6px 0 -6px #fff; }
.hero::after { width: 70px; height: 28px; top: 140px; right: 8%; box-shadow: 20px 8px 0 -4px #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; }
.hero h1 .hl { color: var(--blue-600); }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badge { position: absolute; bottom: -24px; left: -24px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-badge svg { width: 20px; height: 20px; stroke: var(--coral); flex-shrink: 0; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--blue-500); }
.grid-3 .card:nth-child(even) .icon, .grid-2 .card:nth-child(even) .icon { background: var(--peach-100); }
.grid-3 .card:nth-child(even) .icon svg, .grid-2 .card:nth-child(even) .icon svg { stroke: var(--peach-400); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--text-body); font-size: .95rem; margin: 0; }

/* Fit lists */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { border-radius: var(--radius); padding: 30px; }
.fit-card.yes { background: #EAF3E8; }
.fit-card.no { background: #FBEAE6; }
.fit-card ul { list-style: none; padding: 0; margin: 0; }
.fit-card li { padding: 8px 0 8px 28px; position: relative; }
.fit-card.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.fit-card.no li::before { content: "✕"; position: absolute; left: 0; color: var(--coral-dark); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }

/* Growth checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist div { background: var(--white); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.checklist span.num { color: var(--coral-dark); font-weight: 700; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-grid img { height: 220px; width: 100%; object-fit: cover; }
.gallery-grid figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); color: #fff; font-size: .85rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats > div { background: var(--blue-100); border-radius: var(--radius-lg); padding: 28px 20px; }
.stats .num { font-family: 'Fredoka', sans-serif; font-size: 2.6rem; color: var(--blue-500); display: block; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.testi-card p { font-size: .95rem; color: var(--text-heading); }
.testi-card footer { margin-top: 12px; font-size: .85rem; color: var(--text-body); font-weight: 600; }

/* Fee table */
.fee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fee-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-soft); }
.fee-card h3 { margin-bottom: 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-500); }
.fee-card .age { color: var(--text-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; display: block; font-family: 'Fredoka', sans-serif; }
.fee-card ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; }
.fee-card li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #dce8f0; }
.fee-card .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; padding-top: 8px; color: var(--blue-500); }
.fee-note { max-width: 700px; margin: 30px auto 0; font-size: .85rem; color: var(--text-body); text-align: center; }

/* Contact / lead form */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info div { margin-bottom: 22px; }
.contact-info h4 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.contact-info h4 svg { width: 18px; height: 18px; stroke: var(--coral-dark); flex-shrink: 0; }
.contact-info p { color: var(--muted); margin: 0; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #E5DED1; font-family: inherit; font-size: .95rem; background: var(--cream);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
#form-alert { display: none; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
#form-alert.success { display: block; background: #EAF3E8; color: #2f5f2c; }
#form-alert.error { display: block; background: #FBEAE6; color: #8a2f1f; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; }
.footer-grid a { color: #fff; opacity: .85; }
.footer-grid a:hover { opacity: 1; }
.footer-grid p { display: flex; align-items: center; gap: 8px; }
.footer-grid svg { width: 16px; height: 16px; stroke: #fff; flex-shrink: 0; }
.footer-bottom { text-align: center; margin-top: 34px; font-size: .82rem; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }

/* Whatsapp floating button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 60; }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Download App floating button */
.download-app-float { position: fixed; bottom: 92px; right: 24px; background: var(--coral); color: #fff; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: none; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: 0 8px 20px rgba(78,143,201,.4); z-index: 60; transition: transform .15s ease, box-shadow .15s ease; }
.download-app-float:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(78,143,201,.5); }
.download-app-icon { display: flex; }
.download-app-icon svg { width: 18px; height: 18px; }

/* iOS "Add to Home Screen" instructions modal */
.ios-modal-overlay { position: fixed; inset: 0; background: rgba(46,42,38,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.ios-modal-overlay[hidden] { display: none; }
.ios-modal { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px; max-width: 360px; width: 100%; box-shadow: var(--shadow); }
.ios-modal h3 { margin-top: 0; }
.ios-modal p { color: var(--muted); }
.ios-modal ol { padding-left: 20px; color: var(--muted); font-size: .92rem; }
.ios-modal ol li { margin-bottom: 8px; }
.ios-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-wrap, .fit-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .steps, .stats, .testi-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .hero h1 { font-size: 2.1rem; }
  .grid-3, .grid-2, .steps, .stats, .testi-grid, .gallery-grid, .fee-grid, .form-row { grid-template-columns: 1fr; }
  .download-app-float { bottom: 88px; right: 16px; padding: 12px; }
  .download-app-text { display: none; }
  .whatsapp-float { bottom: 16px; right: 16px; }
}
