/* ====== IDEA Early Learning Center — Design tokens & base ====== */
:root {
  /* Brand letter colors — taken from the IDEA letterblock logo */
  --c-magenta: #E2417C;   /* I */
  --c-teal:    #14B6C6;   /* D */
  --c-green:   #6DBE3F;   /* E */
  --c-red:     #E63F35;   /* A */
  --c-sun:     #F2B33D;
  --c-sky:     #6FC4E8;

  /* Surface + ink */
  --ink:   #1B2641;
  --ink-2: #41506E;
  --muted: #6B7A95;
  --line:  #E6DFD2;
  --paper: #ffffff;
  --cream: #FBF6EE;
  --cream-2: #F4ECDB;

  /* CTA */
  --cta:   var(--c-red);
  --cta-2: #C8261B;

  /* Layout */
  --max: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Fredoka', 'Baloo 2', system-ui, sans-serif; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
h4 { font-size: 18px; }
p  { text-wrap: pretty; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
}

/* ------- Buttons ------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn-primary { background: var(--cta); color: white; box-shadow: 0 8px 20px -8px rgba(230,63,53,.55); }
.btn-primary:hover { background: var(--cta-2); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(230,63,53,.7); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-light { background: white; color: var(--ink); border: 1.5px solid var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1ebd5a; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ------- Chips ------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); display: inline-block; }
.chip-magenta .chip-dot { background: var(--c-magenta); }
.chip-teal    .chip-dot { background: var(--c-teal); }
.chip-green   .chip-dot { background: var(--c-green); }
.chip-red     .chip-dot { background: var(--c-red); }
.chip-sun     .chip-dot { background: var(--c-sun); }

/* ------- Card ------- */
.card { background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.card-soft { background: var(--cream-2); border-color: transparent; }

/* ------- IDEA letter underline (decorative) ------- */
.idea-rule { display: inline-flex; gap: 6px; }
.idea-rule span { width: 28px; height: 4px; border-radius: 4px; display: block; }
.idea-rule span:nth-child(1) { background: var(--c-magenta); }
.idea-rule span:nth-child(2) { background: var(--c-teal); }
.idea-rule span:nth-child(3) { background: var(--c-green); }
.idea-rule span:nth-child(4) { background: var(--c-red); }

/* ------- Eyebrow ------- */
.eyebrow { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--c-red); border-radius: 2px; }

/* ------- Nav ------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(251,246,238,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(0,0,0,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: all .15s; }
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav-link.active { color: var(--ink); background: white; box-shadow: 0 1px 0 var(--line); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.lang-toggle button { padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-toggle button.active { background: var(--ink); color: white; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ------- Hero ------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: white; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.hero h1 strong { color: var(--c-red); font-weight: 700; }
.hero-sub { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(27,38,65,.45), transparent); }
.hero-badges { position: absolute; right: -8px; bottom: 24px; background: white; padding: 18px; border-radius: 22px; box-shadow: 0 24px 48px -24px rgba(27,38,65,.35); display: flex; gap: 14px; align-items: center; }
.hero-pill { position: absolute; left: -8px; top: 32px; background: var(--c-sun); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px -12px rgba(242,179,61,.7); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4/3; }
}

/* ------- Trust strip ------- */
.trust { background: var(--ink); color: white; padding: 22px 0; }
.trust-row { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.85); }
.trust-item svg { color: var(--c-sun); flex: none; }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,.15); }
@media (max-width: 820px) {
  .trust-divider { display: none; }
}

/* ------- Programme card ------- */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .prog-grid { grid-template-columns: 1fr; } }
.prog-card { padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; transition: transform .18s ease, box-shadow .2s ease; }
.prog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(27,38,65,.35); }
.prog-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: white; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px; }
.prog-card h3 { font-size: 22px; }
.prog-age { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.prog-list { margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.prog-list li { padding: 6px 0; border-top: 1px dashed var(--line); }
.prog-list li:first-child { border-top: none; }

/* ------- Facility tiles ------- */
.fac-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.fac-tile { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.fac-tile img { width: 100%; height: 100%; object-fit: cover; }
.fac-tile .fac-cap { position: absolute; inset: auto 0 0 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); color: white; font-weight: 700; }
.fac-tile.span-7 { grid-column: span 7; }
.fac-tile.span-5 { grid-column: span 5; }
.fac-tile.span-4 { grid-column: span 4; }
.fac-tile.span-8 { grid-column: span 8; }
.fac-tile.span-6 { grid-column: span 6; }
.fac-tile.span-12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-tile, .fac-tile.span-7, .fac-tile.span-5, .fac-tile.span-4, .fac-tile.span-8, .fac-tile.span-6 { grid-column: span 2; }
  .fac-tile.span-12 { grid-column: span 2; }
}

/* ------- Curriculum block ------- */
.curr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .curr-grid { grid-template-columns: 1fr; } }
.objective-counter { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 96px; line-height: 0.9; color: var(--c-red); letter-spacing: -0.03em; }
.objective-counter small { font-size: 22px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; display: block; margin-top: 6px; }

/* ------- CTA band ------- */
.cta-band { background: var(--ink); color: white; border-radius: 36px; padding: 56px; position: relative; overflow: hidden; }
.cta-band h2 { color: white; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 540px; }
.cta-band .cta-shapes { position: absolute; right: -40px; bottom: -40px; opacity: .25; }
@media (max-width: 720px) { .cta-band { padding: 36px 28px; } }

/* ------- Footer ------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 32px; }
.footer h4 { color: white; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-family: 'Nunito', sans-serif; font-weight: 700; margin-bottom: 14px; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ------- Tour modal ------- */
.modal-shade { position: fixed; inset: 0; background: rgba(11,16,30,.55); z-index: 200; backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal { background: white; border-radius: 28px; width: min(820px, 100%); max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 280px 1fr; }
@media (max-width: 720px) { .modal { grid-template-columns: 1fr; } .modal-aside { display: none; } }
.modal-aside { background: var(--ink); color: white; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.modal-body { padding: 32px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: white; display: grid; place-items: center; }
.step-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.step-bar span { height: 4px; flex: 1; background: var(--line); border-radius: 4px; transition: background .2s ease; }
.step-bar span.done { background: var(--c-green); }
.step-bar span.active { background: var(--c-red); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: white; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.tile-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile-radio button { background: white; border: 1.5px solid var(--line); padding: 14px; border-radius: 14px; text-align: left; font-weight: 700; font-size: 14px; color: var(--ink); }
.tile-radio button.selected { border-color: var(--c-red); background: #FFF5F4; }
.tile-radio small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ------- WhatsApp FAB ------- */
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(37,211,102,.65); transition: transform .18s; }
.wa-fab:hover { transform: scale(1.06); }

/* ------- Page banner ------- */
.page-banner { aspect-ratio: 21/7; border-radius: 32px; overflow: hidden; position: relative; margin-top: 28px; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,38,65,.65), rgba(27,38,65,.15)); }
.page-banner .pb-content { position: absolute; left: 40px; bottom: 32px; color: white; max-width: 600px; }
.page-banner .pb-content h1 { color: white; font-size: clamp(34px, 4vw, 56px); }
@media (max-width: 700px) {
  .page-banner { aspect-ratio: 4/3; }
  .page-banner .pb-content { left: 24px; bottom: 24px; right: 24px; }
}

/* ------- Misc ------- */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: start; }
.feature-list .bullet { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: white; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; margin-top: 2px; }

.divider { height: 1px; background: var(--line); margin: 0; }

.imagery-placeholder { background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 8px, transparent 8px, transparent 16px); border: 1.5px dashed var(--line); border-radius: 18px; display: grid; place-items: center; padding: 32px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }

.kbd { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--cream-2); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }

.toast { position: fixed; bottom: 96px; right: 24px; background: var(--ink); color: white; padding: 14px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 20px 36px -20px rgba(27,38,65,.6); z-index: 70; max-width: 300px; }

/* Focus */
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; border-radius: 6px; }

/* Page enter */
.page-enter { animation: pf .35s ease; }
@keyframes pf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
