/* Emerald International Kindergarten
   Palette taken from the building itself: white walls, emerald chairs,
   blue + green foam puzzle floors, sky-blue hallway. Dark mode = the garden at night. */

:root {
  --bg: #ffffff;
  --bg-soft: #eef6fb;
  --surface: #ffffff;
  --ink: #0f2a20;
  --ink-soft: #4a5f55;
  --line: #d6e4dd;
  --emerald: #077a42;
  --emerald-hi: #0a8f4e;
  --on-emerald: #ffffff;
  --link: #066b3a;
  --royal: #1e4fc0;
  --mat-a: #1f4fc2;
  --mat-b: #3fd26a;
  --cloud: #3fd26a;
  --footer-bg: #0f2a20;
  --footer-ink: #d9ece2;
  --footer-soft: #9fbcaf;
  --focus: #1e4fc0;

  --font-display: 'Baloo Bhaijaan 2', 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --wrap: 1180px;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --dir: 1;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1914;
  --bg-soft: #0f231c;
  --surface: #122a21;
  --ink: #e4f1ea;
  --ink-soft: #a2bcaf;
  --line: #234334;
  --emerald: #33c97e;
  --emerald-hi: #52dc95;
  --on-emerald: #04140d;
  --link: #6be3a6;
  --royal: #8aa9ff;
  --mat-a: #1b3f94;
  --mat-b: #1d8f49;
  --cloud: #1d8f49;
  --footer-bg: #06110d;
  --footer-ink: #d9ece2;
  --footer-soft: #8fab9e;
  --focus: #8aa9ff;
  color-scheme: dark;
}

[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
html[lang="en"] h1 { letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--on-emerald); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.i { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--emerald); color: var(--on-emerald); }
.btn-primary:hover { background: var(--emerald-hi); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--emerald); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

.text-link { font-weight: 600; color: var(--link); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--emerald); }

.lang-btn {
  display: inline-flex; align-items: center; height: 42px; padding-inline: 16px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.lang-btn:hover { border-color: var(--emerald); }
.lang-btn[lang="ar"] { font-family: var(--font-display); font-size: 1.05rem; }

/* theme icon swap */
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.gem { width: 38px; height: 38px; }
.gem-body { fill: var(--emerald); }
.gem-top { fill: var(--mat-b); }
.gem-left { fill: #000; fill-opacity: .18; }
.gem-lines { stroke: #fff; stroke-opacity: .5; stroke-width: 1.2; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand-sub { font-size: .74rem; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--link); background: var(--bg-soft); font-weight: 600; }
.nav-extra { display: none; }

.tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.i-close { display: none; }
[data-menu-open] .i-close { display: block; }
[data-menu-open] .i-menu { display: none; }

.header-cta { flex: none; white-space: nowrap; }

@media (max-width: 1360px) {
  .header-cta { display: none; }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .header-inner { height: 68px; }
  .tools { margin-inline-start: auto; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px clamp(20px, 4vw, 40px) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  [data-menu-open] .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-extra { display: block; margin-top: 10px; }
  .nav-extra .btn { width: 100%; }
}
/* "Parent login" in the main menu: outlined so it reads as an action, not a page */
.nav a.nav-login { border: 1.5px solid var(--emerald); color: var(--link); font-weight: 600; margin-inline-start: 6px; }
.nav a.nav-login:hover { background: var(--emerald); color: var(--on-emerald); }
@media (max-width: 1100px) { .nav a.nav-login { margin: 6px 0 0; text-align: center; } }

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .lang-btn { padding-inline: 12px; }
}

/* ---------- Floor (foam puzzle mat) ---------- */
.floor { height: 64px; overflow: hidden; position: relative; }
.floor svg { width: 100%; height: 100%; }
.floor .ma { fill: var(--mat-a); }
.floor .mb { fill: var(--mat-b); }
.floor--thin { height: 22px; }

/* ---------- Cloud photo ---------- */
.cloud-photo { position: relative; aspect-ratio: 4 / 4.6; isolation: isolate; }
.cloud-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cloud);
  clip-path: url(#cloud);
  translate: calc(var(--dir) * 5%) 5%;
}
.cloud-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  clip-path: url(#cloud);
}

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { max-width: 11ch; }
html[lang="en"] .hero h1 { max-width: 12ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40ch; }

.glance {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.glance > div { padding: 18px 0 22px; padding-inline-end: 18px; }
.glance > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.glance dt { font-size: .9rem; color: var(--ink-soft); }
.glance dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.35; }
.glance dd a { color: inherit; text-decoration: none; }
.glance dd a:hover { color: var(--link); }

@media (max-width: 1040px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .glance > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .cloud-photo { max-width: 420px; width: 88%; justify-self: center; order: -1; }
  .glance { grid-template-columns: 1fr; }
  .glance > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .glance > div { padding: 14px 0; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(32px, 5vw, 64px); }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }
.page-hero-text { padding-bottom: 8px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.cloud-photo--small { max-width: 340px; width: 100%; justify-self: end; }
.page-hero--plain .page-hero-text { padding-bottom: clamp(28px, 4vw, 48px); }

@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .cloud-photo--small { max-width: 240px; justify-self: start; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--bg-soft); }
.section-title { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { margin: 0; }
.section-head .muted { margin: 0; }

.prose { max-width: 36rem; }
.prose p { font-size: 1.08rem; }
.muted { color: var(--ink-soft); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.split--flip > :first-child { order: 2; }
.split--text { align-items: start; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* photos */
.photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.photo-pair .photo--offset { margin-top: 22%; }

/* ---------- Phonics block ---------- */
.letter-tile { width: min(100%, 400px); margin-inline: auto; overflow: visible; }
.tile-a { fill: var(--mat-a); }
.tile-b { fill: var(--mat-b); }
.tile-letter { font-family: var(--font-display); font-weight: 800; font-size: 128px; }
.tile-letter--a { fill: var(--mat-a); font-size: 120px; }
.tile-letter--b { fill: var(--mat-b); }
.phonics h2 { font-size: clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) { .letter-tile { width: min(80%, 300px); } }

/* ---------- Ages list ---------- */
.age-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.age-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.6fr);
  gap: 8px 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.age-list .age { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--link); line-height: 1.3; }
.age-list h3 { margin: 0; }
.age-list p:last-child { margin: 0; color: var(--ink-soft); }

@media (max-width: 760px) {
  .age-list li { grid-template-columns: 1fr; }
}

/* ---------- Visit CTA ---------- */
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.visit-address {
  font-style: normal; display: grid; gap: 10px; justify-items: start;
  padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
}
.visit-address .i { color: var(--emerald); width: 26px; height: 26px; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.name-note {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  background: var(--bg-soft); border-inline-start: 6px solid var(--mat-b);
}
.name-note h3 { font-size: 1.5rem; }
.name-note p { margin: 0; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.value { padding: 26px 0; border-top: 1px solid var(--line); }
.value h3 { color: var(--link); }
.value p { margin: 0; max-width: 42ch; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.gallery-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-strip .photo:nth-child(2) { margin-top: 40px; }
@media (max-width: 700px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip .photo:nth-child(2) { margin-top: 0; }
  .gallery-strip .photo:nth-child(3) { display: none; }
}

.center-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: clamp(40px, 6vw, 72px); }
.section--soft .center-cta { padding-top: 0; }
.center-cta p { font-size: 1.2rem; margin-bottom: 12px; }
.center-cta h2 { margin-bottom: 18px; }

/* ---------- Programs ---------- */
.programs { display: grid; gap: clamp(56px, 8vw, 104px); }
.program {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.program--flip .photo { order: 2; }
.program .age { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--link); }
@media (max-width: 860px) {
  .program { grid-template-columns: 1fr; }
  .program--flip .photo { order: 0; }
}

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--mat-b); box-shadow: inset 0 0 0 4px var(--mat-a);
}

.timeline {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px);
}
.timeline li { counter-increment: step; position: relative; padding: 22px 0 26px; border-top: 2px solid var(--line); }
.timeline li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 12px; background: var(--emerald); color: var(--on-emerald);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
[lang="ar"] .timeline li::before { content: counter(step, arabic-indic); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.note-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.note-box > div { max-width: 38rem; }
.note-box h2 { margin-bottom: 8px; }
.note-box p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 500 .97rem/1.2 var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--emerald); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px;
  grid-auto-flow: dense;
}
.gallery li { display: flex; flex-direction: column; }
.gallery li[hidden] { display: none; }
/* wide 3:2 photo: spans two columns and fills the row height set by its neighbours */
.gallery li.is-wide { grid-column: span 2; }
.gallery li.is-wide .gallery-item { position: relative; aspect-ratio: auto; flex: 1 1 auto; min-height: 220px; }
.gallery li.is-wide .gallery-item img { position: absolute; inset: 0; }
@media (max-width: 900px) { .gallery li.is-wide .gallery-item { aspect-ratio: 3 / 2; flex: none; min-height: 0; } }
@media (max-width: 520px) { .gallery li.is-wide { grid-column: auto; } }
.gallery-item {
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg-soft);
  border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.caption { margin: 10px 0 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgb(4 14 10 / .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 72px; }
.lightbox img { max-height: calc(100vh - 170px); width: auto; border-radius: var(--r); }
.lightbox figcaption { color: #e4f1ea; text-align: center; max-width: 50ch; }
.lightbox .icon-btn { position: fixed; color: #fff; border-color: rgb(255 255 255 / .35); background: rgb(0 0 0 / .3); width: 48px; height: 48px; }
.lightbox .icon-btn:hover { border-color: #fff; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }
[dir="rtl"] .lb-prev .i, [dir="rtl"] .lb-next .i { transform: scaleX(-1); }
@media (max-width: 600px) {
  .lightbox figure { padding: 72px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
}

/* ---------- Admissions ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
}
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--mat-b);
  -webkit-text-stroke: 0;
}
[lang="ar"] .steps li::before { content: counter(step, arabic-indic); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 1.2rem; line-height: 1; color: var(--link);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px); align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list dl { margin: 0; }
.contact-list dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dl > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.contact-list dt .i { color: var(--emerald); width: 18px; height: 18px; }
.contact-list dd { margin: 4px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list dd a { color: var(--ink); }
.contact-list dd a:hover { color: var(--link); }
.dd-line { display: block; }
.dd-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dd-pay > span[dir] { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* ---------- Working hours ---------- */
.shifts { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 8px; }
.shifts li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.shifts .i { color: var(--emerald); width: 18px; height: 18px; }
.shift-name { font-weight: 600; }
.shift-time { color: var(--ink-soft); }

/* ---------- Payment ---------- */
.pay-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.pay-text h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pay-text h2 .i { width: 30px; height: 30px; color: var(--emerald); }
.pay-text p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.pay-methods { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.pay-methods li {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); font-weight: 600; font-size: .95rem;
}
.pay-number { display: grid; gap: 10px; justify-items: start; padding: 22px 24px; border-radius: var(--r); background: var(--bg-soft); }
.pay-label { font-size: .92rem; color: var(--ink-soft); }
.pay-number strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: .02em; }
.pay-note { font-size: .92rem; color: var(--ink-soft); }
a[dir="ltr"], .pay-number strong, .dd-pay > span[dir] { white-space: nowrap; unicode-bidi: isolate; }
@media (max-width: 760px) { .pay-card { grid-template-columns: 1fr; } }

.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 .92rem/1.2 var(--font-body); cursor: pointer;
  transition: border-color .15s ease, background-color .2s ease, color .2s ease;
}
.copy-btn:hover { border-color: var(--emerald); }
.copy-btn .i { width: 18px; height: 18px; }
.copy-btn .i-check { display: none; }
.copy-btn.is-done { background: var(--emerald); border-color: var(--emerald); color: var(--on-emerald); }
.copy-btn.is-done .i-copy { display: none; }
.copy-btn.is-done .i-check { display: block; animation: pop .35s var(--ease-spring); }

.wa-form {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.wa-form h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.wa-form > .muted { margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .97rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.field-error { margin: 0; color: #c2412d; font-size: .92rem; }
[data-theme="dark"] .field-error { color: #ff8f7a; }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #ff8f7a; }

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.site-footer .floor--thin { --mat-a: #1f4fc2; --mat-b: #3fd26a; }
[data-theme="dark"] .site-footer .floor--thin { --mat-a: #1b3f94; --mat-b: #1d8f49; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 40px; padding-block: 56px 32px;
}
.brand--footer { color: var(--footer-ink); }
.brand--footer .brand-sub { color: var(--footer-soft); }
.site-footer .gem-body { fill: #3fd26a; }
.site-footer .gem-top { fill: #a5f0bb; }
.footer-brand p { margin-top: 18px; color: var(--footer-soft); }
.footer-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--footer-soft); margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact .i { margin-top: 3px; color: #3fd26a; width: 18px; height: 18px; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-contact a[href^="mailto:"] { font-size: .9rem; overflow-wrap: normal; word-break: normal; }
@media (max-width: 420px) { .footer-contact a[href^="mailto:"] { font-size: .8rem; } }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 20px 28px; }
.footer-bottom p { margin: 0; font-size: .9rem; color: var(--footer-soft); }
.site-footer :focus-visible { outline-color: #a5f0bb; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp (phones) ---------- */
.wa-float {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 999px;
  background: var(--emerald); color: var(--on-emerald);
  box-shadow: 0 6px 18px rgb(7 60 34 / .3);
}
.wa-float .i { width: 26px; height: 26px; }
@media (max-width: 760px) { .wa-float { display: grid; } }

/* =====================================================================
   Motion
   One orchestrated load per hero, gentle idle float, reveals on scroll,
   and motion that answers taps (tiles, buttons, theme, menus).
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.5, .5, 1);
  --purple: #7a4cc2;
  --balloon: #e5484d;
  interpolate-size: allow-keywords;
}
[data-theme="dark"] { --purple: #a98bf0; --balloon: #ff6b6f; }

@keyframes rise { from { opacity: 0; transform: translateY(.55em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-cloud {
  0% { opacity: 0; transform: scale(.82) rotate(-4deg); }
  60% { opacity: 1; transform: scale(1.03) rotate(1deg); }
  100% { transform: none; }
}
@keyframes roll-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes roll-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(6px, -14px) rotate(8deg); }
  66% { transform: translate(-4px, -6px) rotate(-6deg); }
}
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-10px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.8) rotate(20deg); opacity: .75; } }
@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-70px) rotate(-14deg); }
  65% { opacity: 1; transform: translateY(6px) rotate(2deg); }
  100% { transform: none; }
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(12deg); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }

/* ---- Hero load sequence ---- */
.hero h1 .w, .page-hero h1 .w {
  display: inline-block;
  animation: rise .8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 80ms);
}
.hero .lede, .page-hero .lede { animation: fade-up .8s .45s var(--ease-out) both; }
.hero .actions { animation: fade-up .8s .6s var(--ease-out) both; }
.hero .cloud-photo, .page-hero .cloud-photo { animation: pop-cloud 1s .15s var(--ease-out) both; }
.glance > div { animation: fade-up .7s var(--ease-out) both; }
.glance > div:nth-child(1) { animation-delay: .75s; }
.glance > div:nth-child(2) { animation-delay: .85s; }
.glance > div:nth-child(3) { animation-delay: .95s; }
.glance > div:nth-child(4) { animation-delay: 1.05s; }
.hero .floor, .page-hero .floor { animation: roll-ltr 1.1s .35s var(--ease-out) both; }
[dir="rtl"] .hero .floor, [dir="rtl"] .page-hero .floor { animation-name: roll-rtl; }

/* ---- Idle float: the photo and its green cloud breathe out of step ---- */
.cloud-photo img { animation: float 6.5s 1.2s ease-in-out infinite; }
.cloud-photo::before { animation: float 8s 1.2s ease-in-out infinite reverse; }

.decor { position: absolute; inset: 0; pointer-events: none; }
.decor svg { position: absolute; }
.decor .decor-star {
  width: 13%; top: 2%; inset-inline-start: -4%; fill: var(--purple);
  animation: fade .6s 1.1s both, twinkle 4s 1.7s ease-in-out infinite;
}
.decor .decor-balloon {
  width: 11%; top: 6%; inset-inline-end: -5%; transform-origin: 50% 100%;
  animation: fade .6s 1.25s both, sway 6s 1.85s ease-in-out infinite;
}
.decor-balloon .b { fill: var(--balloon); }
.decor-balloon .s { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; }
.decor .decor-dot {
  width: 5%; bottom: 10%; inset-inline-start: 2%; fill: var(--royal);
  animation: fade .6s 1.4s both, drift 9s 2s ease-in-out infinite;
}
.hero { overflow-x: clip; }

/* ---- Letter tiles: drop in like puzzle pieces, idle bob, lift on hover ---- */
.tile { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease-spring); }
.tile--front { animation: bob 5s 1.2s ease-in-out infinite; }
.tile--back { animation: bob 6s 2s ease-in-out infinite; }
.js .phonics-art.reveal .tile { opacity: 0; }
.js .phonics-art.reveal.is-in .tile { opacity: 1; }
.js .phonics-art.is-in .tile--back { animation: drop-in .9s .15s var(--ease-out) backwards, bob 6s 1.4s ease-in-out infinite; }
.js .phonics-art.is-in .tile--front { animation: drop-in .9s .4s var(--ease-out) backwards, bob 5s 1.6s ease-in-out infinite; }
.js .phonics-art.reveal { opacity: 1; transform: none; }
@media (hover: hover) {
  .phonics-art:hover .tile--front { transform: translate(-8px, -12px) rotate(-5deg); }
  .phonics-art:hover .tile--back { transform: translate(8px, 6px) rotate(5deg); }
}
.phonics-art { cursor: default; }

/* ---- Scroll reveals (only hidden when JS runs and the element starts below the fold) ---- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-photo {
  opacity: 0; clip-path: inset(9% 9% 9% 9% round var(--r-lg));
  transition: clip-path 1.1s var(--ease-out), opacity .6s ease;
  transition-delay: var(--d, 0ms);
}
.js .reveal-photo img { transform: scale(1.14); transition: transform 1.5s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal-photo.is-in { opacity: 1; clip-path: inset(0 round var(--r-lg)); }
.js .reveal-photo.is-in img { transform: none; }

.timeline li.is-in::before, .steps li.is-in::before {
  animation: pop .55s var(--ease-spring) backwards;
  animation-delay: calc(var(--d, 0ms) + 250ms);
}

/* ---- Header gains a soft shadow once the page scrolls ---- */
.site-header { transition: box-shadow .3s ease, border-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgb(15 42 32 / .08); border-bottom-color: transparent; }
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 8px 24px rgb(0 0 0 / .35); }

/* ---- Buttons and small controls answer the pointer ---- */
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .2s var(--ease-spring), box-shadow .2s ease; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 8px 20px rgb(7 122 66 / .28); }
  .btn-primary:hover .i { animation: wiggle .5s ease; }
  .icon-btn:hover .i { transform: rotate(-14deg); }
}
.btn:active { transform: translateY(0) scale(.97); }
.icon-btn .i { transition: transform .3s var(--ease-spring); }
[data-theme-toggle]:active .i { transform: rotate(90deg) scale(.85); }

/* ---- Mobile menu slides down, links follow one by one ---- */
@media (max-width: 1100px) {
  [data-menu-open] .nav { animation: fade-up .3s var(--ease-out) both; }
  [data-menu-open] .nav > * { animation: fade-up .35s var(--ease-out) both; }
  [data-menu-open] .nav > :nth-child(2) { animation-delay: 30ms; }
  [data-menu-open] .nav > :nth-child(3) { animation-delay: 60ms; }
  [data-menu-open] .nav > :nth-child(4) { animation-delay: 90ms; }
  [data-menu-open] .nav > :nth-child(5) { animation-delay: 120ms; }
  [data-menu-open] .nav > :nth-child(6) { animation-delay: 150ms; }
  [data-menu-open] .nav > :nth-child(7) { animation-delay: 180ms; }
}

/* ---- FAQ opens smoothly where the browser supports it ---- */
.faq details::details-content {
  height: 0; overflow: clip;
  transition: height .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.faq details[open]::details-content { height: auto; }
.faq summary::after { transition: transform .3s var(--ease-spring), background-color .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* ---- Gallery: filter re-entry and the photo viewer ---- */
.gallery li.pop-in { animation: fade-up .5s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.lightbox[open] { animation: fade .25s ease both; }
.lightbox[open]::backdrop { animation: fade .25s ease both; }
.lightbox[open] figure { animation: zoom-in .35s var(--ease-out) both; }
.lightbox img { transition: opacity .3s ease; }
.lightbox img.is-loading { opacity: 0; }

/* ---- Floating WhatsApp button pulses now and then ---- */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--emerald); animation: ring 3s 2s ease-out infinite;
}
.wa-float { animation: pop .5s 1.2s var(--ease-spring) backwards; }

/* ---- Page-to-page cross-fade (supporting browsers) ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
html.theme-vt .site-header { view-transition-name: none; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease-out) both vt-in; }
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media print {
  .js .reveal, .js .reveal-photo { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-photo, .js .phonics-art.reveal .tile { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .reveal-photo img { transform: none !important; }
  .decor { display: none; }
}
