/* ==========================================================================
   Kiddies Cave Pre-school — design system & components
   Brand colours: official production colour specification (sRGB)
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Brand — exact values from Kiddies_Cave_Colour_Specifications */
  --kc-navy: #021E59;        /* Cave lettering / supporting navy */
  --kc-red: #E70201;         /* K */
  --kc-orange: #FD6102;      /* i */
  --kc-yellow: #FEB901;      /* d */
  --kc-green: #48A102;       /* d */
  --kc-purple: #660C99;      /* i */
  --kc-pink: #F9036C;        /* e */
  --kc-blue: #0183C6;        /* s */
  --kc-ribbon: #FEC302;      /* Pre-school ribbon */
  --kc-accent-pink: #EF016F; /* dashes, dots, swooshes */
  --kc-accent-green: #449D03;

  /* Neutrals (supporting, not brand colours) */
  --ink: #1C2546;
  --ink-soft: #4A5272;
  --cream: #FFF8EC;
  --sky: #EEF6FC;
  --line: #E6E8F0;
  --white: #FFFFFF;

  /* Typography */
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.875rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 2.85rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem);

  /* Spacing scale (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --radius-s: 12px; --radius: 20px; --radius-l: 32px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-s: 0 2px 8px rgba(2, 30, 89, .06);
  --shadow: 0 18px 40px -18px rgba(2, 30, 89, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  color: var(--ink); background: var(--white); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kc-navy); text-underline-offset: .2em; }
a:hover { color: var(--kc-accent-pink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--kc-navy); line-height: 1.12; margin: 0 0 var(--s-4); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--kc-blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--kc-navy); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-s); }
.skip-link:focus { top: var(--s-4); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--cream { background: var(--cream); }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--kc-purple); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--kc-accent-pink); box-shadow: 1.05em 0 0 var(--kc-accent-green); margin-right: 1.05em; }
.lead { font-size: var(--fs-lg); color: var(--ink-soft); }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.c-red { color: var(--kc-red); } .c-blue { color: var(--kc-blue); } .c-green { color: var(--kc-green); }
.c-pink { color: var(--kc-pink); } .c-purple { color: var(--kc-purple); } .c-orange { color: var(--kc-orange); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--kc-navy); --fg: #fff; --bd: var(--kc-navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; line-height: 1.1; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(2, 30, 89, .55); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--yellow { --bg: var(--kc-ribbon); --fg: var(--kc-navy); --bd: var(--kc-ribbon); }
.btn--ghost { --bg: transparent; --fg: var(--kc-navy); --bd: var(--kc-navy); }
.btn--ghost:hover { --bg: var(--kc-navy); --fg: #fff; }
.btn--whatsapp { --bg: #fff; --fg: var(--kc-navy); --bd: var(--kc-accent-green); }
.btn--whatsapp svg { color: var(--kc-accent-green); }
.btn--whatsapp:hover { --bg: var(--kc-accent-green); --fg: #fff; }
.btn--whatsapp:hover svg { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { font-family: var(--font-display); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--kc-navy); }
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(2, 30, 89, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.brand .logo-compact { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.5rem); list-style: none; }
.nav-list a { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; text-decoration: none; color: var(--kc-navy); padding: .45em .1em; position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--kc-ribbon); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a.nav-cta { color: #fff; padding: .65em 1.25em; }
.nav-list a.nav-cta::after { display: none; }
.nav-cta { margin-left: var(--s-3); min-height: 46px; padding: .65em 1.25em; font-size: 1rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .word { display: inline-block; }
.nowrap { white-space: nowrap; }
.hero .lead { max-width: 34rem; margin-bottom: var(--s-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--ink-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero-meta svg { width: 18px; height: 18px; color: var(--kc-purple); }
.hero-media { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-media::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--kc-ribbon); right: -14%; top: 10%; z-index: 0; }
.hero-media::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--kc-blue); left: -6%; bottom: 6%; z-index: 0; opacity: .9; }
.hero-photo { position: relative; z-index: 1; border-radius: var(--arch); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; z-index: 2; left: -8%; top: 16%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem 1.1rem; display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 600; color: var(--kc-navy); line-height: 1.2; }
.hero-tag small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.hero-tag .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--kc-green); color: #fff; flex: none; }
.hero-tag .dot svg { width: 22px; height: 22px; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); color: var(--cream); pointer-events: none; }
.hero-curve svg { width: 100%; height: 100%; display: block; }

/* ---------- Strengths strip ---------- */
.strengths { background: var(--cream); padding-block: 0 var(--s-8); }
.strength-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); list-style: none; }
.strength { display: flex; gap: var(--s-4); align-items: flex-start; }
.strength .ico { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.strength .ico svg { width: 28px; height: 28px; }
.strength h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.strength p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.bg-red { background: var(--kc-red); } .bg-blue { background: var(--kc-blue); } .bg-green { background: var(--kc-green); } .bg-purple { background: var(--kc-purple); }
.bg-orange { background: var(--kc-orange); } .bg-pink { background: var(--kc-pink); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story-media { position: relative; min-height: 520px; }
.story-media figure { margin: 0; position: absolute; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.story-media .m1 { width: 74%; left: 0; top: 0; aspect-ratio: 4/3; border-radius: var(--radius-l); }
.story-media .m2 { width: 56%; right: 0; bottom: 0; aspect-ratio: 4/3; border-radius: var(--radius-l); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media .note { position: absolute; left: 6%; bottom: 12%; z-index: 2; background: var(--kc-purple); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 220px; font-family: var(--font-display); font-weight: 500; line-height: 1.3; box-shadow: var(--shadow); }
.story-media .note strong { display: block; font-size: 2rem; font-weight: 600; line-height: 1; margin-bottom: .2rem; color: var(--kc-ribbon); }
blockquote.pull { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 5px solid var(--kc-ribbon); background: var(--cream); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--kc-navy); }

/* ---------- Classes journey ---------- */
.journey { background: var(--kc-navy); color: #E7ECF8; position: relative; overflow: hidden; }
.journey h2, .journey h3 { color: #fff; }
.journey .eyebrow { color: var(--kc-ribbon); }
.journey .lead { color: #C9D3EC; }
.journey-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); list-style: none; counter-reset: step; }
.journey-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 3px dashed rgba(255, 255, 255, .28); }
.class-step { position: relative; }
.class-step .badge { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; border: 5px solid var(--kc-navy); box-shadow: 0 0 0 3px rgba(255,255,255,.12); margin-bottom: var(--s-5); position: relative; z-index: 1; }
.class-step .grade { display: inline-block; font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kc-ribbon); margin-bottom: .35rem; }
.class-step h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.class-step .age { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.class-step p { color: #C9D3EC; font-size: var(--fs-sm); }
.journey-foot { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.14); }
.journey-foot p { margin: 0; color: #C9D3EC; }
.journey .btn--yellow:hover { box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }

/* ---------- Learning ---------- */
.learn-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.learn-photo { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); border: 8px solid #fff; }
.learn-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; display: grid; gap: var(--s-4); margin: var(--s-5) 0 var(--s-6); }
.check-list li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-3); align-items: start; }
.check-list .tick { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: 2px; }
.check-list .tick svg { width: 18px; height: 18px; }
.check-list strong { font-family: var(--font-display); font-weight: 600; color: var(--kc-navy); display: block; font-size: 1.08rem; }
.check-list span.sub { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Facilities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: var(--s-4); list-style: none; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--sky); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,30,89,0) 40%, rgba(2,30,89,.82) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5); color: #fff; }
.tile .cap h3 { color: #fff; font-size: 1.3rem; margin-bottom: .25rem; }
.tile .cap p { margin: 0; font-size: var(--fs-sm); color: #E6ECFA; max-width: 34ch; }
.tile .chip { position: absolute; top: var(--s-4); left: var(--s-4); background: #fff; color: var(--kc-navy); border-radius: 999px; padding: .3rem .8rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem; display: inline-flex; align-items: center; gap: .45em; }
.tile .chip i { width: .6em; height: .6em; border-radius: 50%; display: inline-block; }
.t-outings { grid-column: span 7; grid-row: span 4; }
.t-meals { grid-column: span 5; grid-row: span 2; }
.t-play { grid-column: span 5; grid-row: span 2; }
.t-concerts { grid-column: span 4; grid-row: span 3; }
.t-swim { grid-column: span 4; grid-row: span 3; }
.t-grad { grid-column: span 4; grid-row: span 3; }
.tile--text { background: var(--kc-ribbon); display: flex; flex-direction: column; justify-content: center; padding: var(--s-6); }
.tile--text::after { display: none; }
.facts { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: .55em; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: var(--fs-sm); color: var(--kc-navy); }
.facts svg { width: 18px; height: 18px; color: var(--kc-purple); }

/* ---------- Gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); list-style: none; }
.gallery-strip li:nth-child(even) { transform: translateY(28px); }
.gallery-strip button { all: unset; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-s); position: relative; }
.gallery-strip button:focus-visible { outline: 3px solid var(--kc-blue); outline-offset: 3px; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-strip button:hover img { transform: scale(1.06); }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-7); }
.gallery-head .section-head { margin-bottom: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(2, 18, 54, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: var(--s-3); justify-items: center; padding: var(--s-6) var(--s-8); }
.lightbox img { max-width: min(92vw, 1200px); max-height: 78vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #E3E9F7; font-size: var(--fs-sm); text-align: center; max-width: 60ch; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--kc-navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: 32px; left: 50%; transform: translateX(-50%); color: #C9D3EC; font-family: var(--font-display); font-weight: 500; }

/* ---------- Visit band ---------- */
.visit { position: relative; background: var(--kc-ribbon); padding-block: calc(var(--section) + 30px) var(--section); }
.visit-curve { position: absolute; top: -1px; left: 0; right: 0; height: clamp(40px, 6vw, 90px); color: #fff; }
.visit-curve svg { width: 100%; height: 100%; display: block; }
.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.visit-logo { background: #fff; border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.visit h2 { margin-bottom: var(--s-4); }
.visit p { color: var(--ink); }
.visit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-6); }
.info-card { background: #fff; border-radius: var(--radius); padding: var(--s-5); display: flex; gap: var(--s-4); align-items: flex-start; }
.info-card svg { width: 26px; height: 26px; color: var(--kc-purple); flex: none; margin-top: 2px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.info-card p, .info-card a { margin: 0; font-size: var(--fs-sm); }
.visit .btn-row { margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--kc-navy); color: #C9D3EC; padding-block: var(--s-9) var(--s-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-7); }
.footer-brand img { width: 260px; height: auto; margin-bottom: var(--s-4); }
.footer-brand .tag { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.footer-brand .tag i { font-style: normal; color: var(--kc-ribbon); }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #E7ECF8; text-decoration: none; }
.site-footer a:hover { color: var(--kc-ribbon); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: .55rem; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); color: #9FAED3; font-size: var(--fs-xs); }
.footer-bottom a { color: #C9D3EC; }
.credit a { color: #9FAED3; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Breakpoints: 1100 (laptop) · 900 (tablet) · 640 (mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-list { gap: .9rem; }
  .nav-list a { font-size: .97rem; }
  .strength-list { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--kc-navy); background: #fff; color: var(--kc-navy); font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .nav-toggle[aria-expanded="true"] .i-menu { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 20px 30px -20px rgba(2,30,89,.4); padding: var(--s-4) var(--gutter) var(--s-6); display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 84px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: .95rem .25rem; font-size: 1.15rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--kc-accent-pink); }
  .nav-list li:last-child { border: 0; padding-top: var(--s-4); }
  .nav-cta { margin: 0; width: 100%; }
  .hero-grid, .story-grid, .learn-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-media { width: min(88%, 420px); margin-top: var(--s-4); }
  .story-media { min-height: 0; aspect-ratio: 1 / .82; max-width: 620px; }
  .learn-photo { max-width: 460px; aspect-ratio: 4 / 4; }
  .journey-track { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
  .journey-track::before { display: none; }
  .bento { grid-auto-rows: 110px; }
  .t-outings { grid-column: span 12; grid-row: span 3; }
  .t-meals, .t-play { grid-column: span 6; grid-row: span 2; }
  .t-concerts, .t-swim, .t-grad { grid-column: span 6; grid-row: span 2; }
  .t-grad { grid-column: span 12; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip li:nth-child(even) { transform: none; }
  .visit-logo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 68px; }
  .header-inner { min-height: 72px; }
  .brand .logo-horizontal { display: none; }
  .brand .logo-compact { display: block; height: 52px; }
  .site-nav { max-height: calc(100vh - 72px); }
  .hero { padding-top: var(--s-5); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-tag { left: -4%; top: 8%; padding: .6rem .8rem; font-size: .92rem; }
  .strength-list { grid-template-columns: 1fr; gap: var(--s-5); }
  .story-media { aspect-ratio: 1 / 1; }
  .story-media .m1 { width: 82%; }
  .story-media .m2 { width: 62%; }
  .story-media .note { left: 0; bottom: 4%; max-width: 170px; padding: .75rem 1rem; font-size: .9rem; }
  .story-media .note strong { font-size: 1.6rem; }
  .journey-track { grid-template-columns: 1fr; row-gap: var(--s-6); }
  .class-step { display: grid; grid-template-columns: 70px 1fr; column-gap: var(--s-4); }
  .class-step .badge { margin: 0; grid-row: span 4; }
  .bento { grid-auto-rows: 96px; gap: var(--s-3); }
  .t-meals, .t-play, .t-concerts, .t-swim, .t-grad { grid-column: span 12; grid-row: span 2; }
  .tile .cap { padding: var(--s-4); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .visit-cards { grid-template-columns: 1fr; }
  .visit .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(2,30,89,.45); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: grid; justify-items: center; gap: 2px; padding: .55rem .25rem .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--kc-navy); }
  .action-bar svg { width: 24px; height: 24px; }
  .action-bar a:nth-child(1) svg { color: var(--kc-blue); }
  .action-bar a:nth-child(2) svg { color: var(--kc-accent-green); }
  .action-bar a:nth-child(3) svg { color: var(--kc-accent-pink); }
  .lightbox figure { padding: var(--s-8) var(--s-3); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
