/* ==========================================================
   The Next Gen Preschool — main stylesheet
   Brand colors live in :root below. Change them here and the
   whole site updates.
   ========================================================== */

:root {
  --blue: #1463B8;
  --blue-dark: #0F4E93;
  --ink: #102A52;
  --ink-2: #1C3C6E;
  --body: #3D4760;
  --muted: #5B6478;
  --green: #257A33;
  --orange: #F7A823;
  --cream: #FBF6EE;
  --sand: #F3EADC;
  --line: #EADFCF;
  --white: #FFFFFF;

  --tint-yellow: #FDEBC8;  --on-yellow: #7A4B0E;
  --tint-green: #DDEFCF;   --on-green: #245C22;
  --tint-pink: #FBD9E5;    --on-pink: #9A1F4F;
  --tint-blue: #D8E6F7;    --on-blue: #0E4A8A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; color: inherit; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 800; font-size: 17px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #081A36; color: #fff; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 52px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-family: var(--serif); font-size: 21px; }
.brand-name span { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 6px 0; }
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom: 3px solid var(--blue); }
.main-nav .btn { padding: 12px 22px; color: #fff; border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font: 800 15px var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-blue { background: var(--blue); color: #fff; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--orange); }
.section-title { font-size: clamp(34px, 4.5vw, 52px); }
.section-intro { font-size: 19px; color: var(--body); max-width: 640px; margin-top: 16px; }
.section-dark .section-intro, .section-dark p { color: #D6DBE6; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .section { padding: 72px 0; } }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Photo placeholders ----------
   Replace a placeholder with a real photo like this:
   <img class="photo" src="images/your-photo.jpg" alt="Describe the photo">
   ------------------------------------------ */
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; border-radius: var(--radius); font-weight: 700;
  background: #EFE6D8; color: #6B5A42; border: 3px dashed #C9B89E; min-height: 240px;
}
.tint-yellow { background: var(--tint-yellow); color: var(--on-yellow); }
.tint-green  { background: var(--tint-green);  color: var(--on-green); }
.tint-pink   { background: var(--tint-pink);   color: var(--on-pink); }
.tint-blue   { background: var(--tint-blue);   color: var(--on-blue); }
.photo-placeholder.tint-yellow, .photo-placeholder.tint-green, .photo-placeholder.tint-pink, .photo-placeholder.tint-blue { border: 0; }

/* ---------- Hero (home) ---------- */
.hero { padding: 72px 0 96px; }
.hero .badge { display: inline-block; background: var(--tint-yellow); color: var(--on-yellow); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); letter-spacing: -0.02em; margin: 22px 0; }
.hero-lead { font-size: 20px; color: var(--body); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; min-height: 460px; }
.hero-visual .circle-a { position: absolute; right: 0; top: 0; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--tint-yellow); }
.hero-visual .circle-b { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--tint-green); }
.hero-visual .arch { position: absolute; left: 8%; right: 8%; top: 6%; bottom: 8%; border-radius: 999px 999px 32px 32px; overflow: hidden; }
.hero-visual .arch .photo-placeholder, .hero-visual .arch img { height: 100%; min-height: 0; border-radius: 0; object-fit: cover; width: 100%; }
.hero-card { position: absolute; right: 0; bottom: 20px; background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(16,42,82,.12); display: flex; gap: 12px; align-items: center; }
.hero-card .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card strong { display: block; }
.hero-card span { font-size: 14px; color: var(--muted); }

/* ---------- Page header (inner pages) ---------- */
.page-header { position: relative; overflow: hidden; padding: 88px 0; }
.page-header::before, .page-header::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); }
.page-header::before { width: 420px; height: 420px; right: -80px; top: -140px; }
.page-header::after { width: 180px; height: 180px; right: 280px; bottom: -90px; }
.page-header .container { position: relative; }
.page-header h1 { color: var(--ink); font-size: clamp(40px, 6vw, 68px); max-width: 820px; letter-spacing: -0.02em; }
.page-header p { font-size: 20px; color: var(--body); max-width: 680px; margin-top: 18px; }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 2px 0 var(--line); }
.card h3 { font-size: 24px; margin: 14px 0 10px; }
.card p { color: var(--body); }
.card-dark { background: var(--ink-2); border-radius: var(--radius); padding: 34px; }
.card-dark h3 { font-size: 25px; margin: 14px 0 10px; }
.icon-tile { width: 56px; height: 56px; border-radius: 16px; background: var(--cream); display: flex; align-items: center; justify-content: center; }

.program-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 var(--line); text-decoration: none; color: var(--ink); }
.program-card:hover { color: var(--ink); box-shadow: 0 10px 28px rgba(16,42,82,.12); }
.program-card .photo-placeholder, .program-card img { border-radius: 0; min-height: 160px; height: 160px; object-fit: cover; }
.program-card .body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-card h3 { font-size: 28px; }
.program-card p { color: var(--body); flex: 1; }
.pill { align-self: flex-start; display: inline-block; font-size: 14px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--cream); }
.more { font-weight: 800; color: var(--blue); }

/* ---------- Program detail rows ---------- */
.program-row + .program-row { margin-top: 96px; }
.program-row h2 { font-size: clamp(36px, 4.5vw, 48px); margin: 16px 0; }
.program-row p { color: var(--body); font-size: 18px; }
.program-row .photo-placeholder, .program-row img { min-height: 360px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--muted); }
@media (min-width: 901px) { .program-row.reverse .photo-col { order: 2; } }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.check-list.single { grid-template-columns: 1fr; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Schedule ---------- */
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid #E0D2BC; font-size: 18px; }
.schedule li:last-child { border-bottom: 0; }
.schedule time { width: 96px; flex-shrink: 0; font-weight: 800; color: var(--blue); }

/* ---------- Steps ---------- */
.step-num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--blue); line-height: 1; }
.card.step h3 { font-family: var(--sans); font-size: 21px; font-weight: 800; }

/* ---------- Fees & docs ---------- */
.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fee-row strong { display: block; font-size: 18px; }
.fee-row small { color: var(--muted); font-size: 15px; }
.fee-row .amount { font-weight: 800; font-size: 18px; text-align: right; }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: 20px; padding: 22px 28px; box-shadow: 0 2px 0 var(--line); }
.faq details + details { margin-top: 14px; }
.faq summary { font-weight: 800; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--body); margin-top: 12px; }

/* ---------- Team ---------- */
.team-member .photo-placeholder, .team-member img { min-height: 280px; height: 280px; object-fit: cover; }
.team-member h3 { font-size: 23px; margin-top: 14px; }
.team-member p { color: var(--muted); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-grid > * { min-height: 260px; height: 260px; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .wide { grid-column: auto; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 80px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(34px, 4.5vw, 50px); }
.cta-band p { font-size: 19px; margin-top: 12px; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; }
.contact-list .icon-tile { background: var(--tint-yellow); flex-shrink: 0; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.contact-list small { display: block; color: var(--muted); font-size: 15px; font-weight: 700; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 32px; }

.form-card { background: #fff; border-radius: 32px; padding: 40px; box-shadow: 0 2px 0 var(--line); }
.form-card h2 { font-size: 32px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 15px; font-weight: 800; }
.field input, .field select, .field textarea {
  font: 16px var(--sans); color: var(--ink); background: #fff;
  border: 2px solid #E0D2BC; border-radius: 14px; padding: 13px 16px; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--blue); }
.hidden-field { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6DBE6; padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; max-width: 520px; }
.footer-brand .mark { width: 80px; height: 80px; border-radius: 22px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-brand .mark img { width: 58px; height: 63px; }
.footer-brand strong { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--cream); display: block; }
.footer-brand .tagline { color: var(--orange); font-weight: 700; display: block; margin: 4px 0 10px; }
.footer-brand address { font-style: normal; font-size: 15px; line-height: 1.7; }
.footer-brand a { color: #D6DBE6; text-decoration: none; }
.footer-brand a:hover { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.footer-nav a { color: #D6DBE6; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2A4C80; margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }

/* ---------- Simple centered pages (thank you / 404) ---------- */
.center-page { min-height: 60vh; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.center-page .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.center-page h1 { font-size: clamp(38px, 6vw, 60px); }
.center-page p { font-size: 19px; color: var(--body); max-width: 520px; }

/* ---------- WhatsApp ---------- */
.btn-whatsapp { background: #167A3F; color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #0F5E2F; color: #fff; }
.form-error { color: #9A1F4F; font-weight: 700; margin: 0 0 12px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #167A3F; color: #fff; text-decoration: none; font-weight: 800;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 10px 28px rgba(16,42,82,.25);
}
.wa-float:hover { background: #0F5E2F; color: #fff; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ---------- Parent app ---------- */
.app-section { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.app-code { margin-top: 18px; font-size: 18px; color: var(--body); }
.app-qr-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.app-qr { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-qr img { width: 160px; height: 160px; }
.app-qr strong { font-size: 18px; }
.app-qr .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 900px) { .app-section { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Promo popup ---------- */
.promo { border: 0; padding: 0; background: transparent; max-width: min(480px, 90vw); overflow: visible; }
.promo::backdrop { background: rgba(16, 42, 82, 0.65); }
.promo img { display: block; width: 100%; height: auto; max-height: 85vh; object-fit: contain; border-radius: 20px; }
.promo-close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.promo-close:hover { background: var(--cream); }

/* ---------- Social media links ---------- */
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #FFFFFF; transition: transform .15s;
}
.social a:hover { transform: translateY(-2px); }
.social img { width: 24px; height: 24px; }

/* ---------- Announcement ribbon ---------- */
.ribbon { background: var(--orange); color: var(--ink); overflow: hidden; font-weight: 800; font-size: 16px; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-scroll 30s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon-content { display: flex; margin: 0; padding: 12px 0; white-space: nowrap; }
.ribbon-content span { padding: 0 28px; position: relative; }
.ribbon-content span::after { content: "\2726"; position: absolute; right: -8px; }
.ribbon a { color: var(--ink); }
@keyframes ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Visitors who prefer less motion see the messages still, wrapped and centered */
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; width: auto; }
  .ribbon-content { flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; padding: 10px 20px; }
  .ribbon-content[aria-hidden="true"] { display: none; }
  .ribbon-content span::after { content: none; }
}

/* ---------- Gallery lightbox ---------- */
.gallery-grid img { cursor: zoom-in; transition: transform .2s; }
.gallery-grid img:hover { transform: scale(1.02); }

.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: rgba(8, 20, 40, 0.95); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 20, 40, 0.95); }
.lightbox figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lightbox figure img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  margin: 0 auto; border-radius: 12px; object-fit: contain;
}
.lightbox figcaption { margin-top: 14px; font-size: 16px; color: #D6DBE6; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; margin: 0; font-weight: 700; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lightbox figure img { max-height: 68vh; }
}