/* Jelly Bean Child Care Centre: one-page mock-up.
   Personality: "a jar full of colour". Colours come only from assets/brand/tokens.css;
   tints and shades are color-mix() of those tokens. */

:root {
  --bg: var(--brand-neutral);
  --ink: var(--brand-ink);
  --ink-soft: color-mix(in srgb, var(--brand-ink) 78%, var(--brand-neutral));
  --paper: color-mix(in srgb, var(--brand-neutral) 35%, white);
  --line: color-mix(in srgb, var(--brand-ink) 10%, transparent);
  --shadow-sm: 0 2px 6px color-mix(in srgb, var(--brand-ink) 8%, transparent);
  --shadow: 0 14px 34px -14px color-mix(in srgb, var(--brand-ink) 28%, transparent);
  --shadow-lg: 0 30px 60px -28px color-mix(in srgb, var(--brand-secondary) 45%, transparent);
  --focus: var(--brand-extra-violet);
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 92px;
}

/* Colour coding: each component reads --c (fill) and --on-c (text on that fill) */
.c-sky     { --c: var(--brand-accent);       --on-c: var(--brand-on-accent); }
.c-yellow  { --c: var(--brand-extra-yellow); --on-c: var(--brand-ink); }
.c-lime    { --c: var(--brand-extra-lime);   --on-c: var(--brand-ink); }
.c-violet  { --c: var(--brand-extra-violet); --on-c: white; }
.c-magenta { --c: var(--brand-secondary);    --on-c: var(--brand-on-secondary); }
.c-yellow-bg { background: var(--brand-extra-yellow); }
.c-lime-bg   { background: var(--brand-extra-lime); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--brand-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--brand-font-heading); margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-secondary); color: var(--brand-on-secondary);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1.1 var(--brand-font-body);
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: .8rem 1.75rem; font-size: 1.125rem; }
.btn-primary {
  background: var(--brand-secondary); color: var(--brand-on-secondary);
  box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--brand-secondary) 55%, var(--brand-ink)), var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 8px 0 -1px color-mix(in srgb, var(--brand-secondary) 55%, var(--brand-ink)), var(--shadow); }
.btn-secondary {
  background: var(--paper); color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--brand-secondary) 8%, white); box-shadow: var(--shadow); }
.btn-light { background: white; color: var(--brand-extra-violet); }
.btn-light:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand-ink) 50%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--brand-neutral) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { flex: none; border-radius: 12px; }
.logo img { height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav ul a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  transition: background-color .2s ease;
}
.nav ul a:hover { background: color-mix(in srgb, var(--brand-extra-yellow) 30%, transparent); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav-phone svg, .vi-icon svg, .why-icon svg, .jar-bean svg, .bottom-bar svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-phone svg { width: 20px; height: 20px; color: var(--brand-secondary); }
.header-ctas { display: flex; gap: 10px; }

.menu-btn {
  display: none; margin-left: auto;
  align-items: center; gap: .55rem;
  min-height: 44px; padding: .5rem 1rem .5rem .85rem;
  border: 2px solid color-mix(in srgb, var(--brand-secondary) 30%, transparent);
  border-radius: 999px; background: var(--paper); color: var(--brand-secondary);
  font: 800 .95rem/1 var(--brand-font-body); cursor: pointer;
}
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 48px 8px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero-kicker { font-weight: 800; color: var(--brand-extra-violet); margin-bottom: 18px; font-size: 1.0625rem; }
.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.1rem);
  font-weight: 800; line-height: .98; letter-spacing: -.03em;
  color: var(--brand-heading); max-width: 11ch;
}
.hero-sub { margin-top: 22px; font-size: 1.25rem; line-height: 1.5; max-width: 38ch; color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem .5rem .7rem; border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  font-weight: 700; font-size: .95rem; line-height: 1.2;
}
.dot {
  width: 16px; height: 11px; flex: none; background: var(--c);
  border-radius: 60% 45% 55% 50% / 65% 55% 45% 40%; transform: rotate(-18deg);
  box-shadow: inset 2px 2px 0 color-mix(in srgb, white 45%, transparent);
}

.hero-art { position: relative; aspect-ratio: 1.12; margin-right: -12px; }
.bean-photo, .bean-shadow { position: absolute; inset: 6% 4% 4% 4%; margin: 0; clip-path: url(#bean); }
.bean-shadow { transform: translate(16px, 20px) rotate(2deg); }
.bean-photo.flip, .bean-shadow.flip { clip-path: url(#bean-flip); }
.bean-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Glossy highlight, like the sheen on a real jelly bean */
.bean-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 10% at 30% 22%, color-mix(in srgb, white 70%, transparent), transparent 75%),
    radial-gradient(ellipse 60% 40% at 30% 25%, color-mix(in srgb, white 16%, transparent), transparent 70%);
}
.spill {
  position: absolute; height: auto; pointer-events: none;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--brand-ink) 18%, transparent));
  transform: rotate(var(--r, 0deg));
  animation: drop .8s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: var(--d, 0s);
}
.s1 { width: 108px; top: 0;    left: 2%;   --r: -28deg; --d: .15s; }
.s2 { width: 92px;  top: 2%;   right: 4%;  --r: 22deg;  --d: .3s; }
.s3 { width: 86px;  bottom: 3%; left: -2%; --r: -12deg; --d: .45s; }
.s4 { width: 112px; bottom: -1%; right: 18%; --r: 160deg; --d: .6s; }
.s5 { width: 70px;  top: 44%;  right: -1%; --r: 18deg;  --d: .75s; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r, 0deg) - 40deg)) scale(.7); }
  to   { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
.divider { width: min(620px, 82%); height: auto; margin: 36px auto 0; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.15rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-heading); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; font-size: 1.1875rem; color: var(--ink-soft); }

/* About */
.about { padding-top: 72px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { margin-top: 18px; max-width: 54ch; font-size: 1.125rem; }
.about-copy h2 { max-width: 14ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  padding: .5rem 1rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 24%, white);
  font-weight: 700; font-size: .98rem;
}
.about-art { position: relative; aspect-ratio: 1.2; }
.about-art .bean-shadow { transform: translate(-18px, 18px) rotate(-2deg); }
.s6 { width: 150px; top: 0; right: 4%; --r: -8deg; animation: none; }
.s7 { width: 92px; bottom: 0; left: 6%; --r: 24deg; animation: none; }

.why-title { margin-top: 96px; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.why-card {
  padding: 28px 24px 30px; border-radius: 30px;
  background: color-mix(in srgb, var(--c) 17%, white);
  border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.why-icon {
  display: grid; place-items: center; width: 60px; height: 52px;
  background: var(--c); color: var(--on-c);
  border-radius: 58% 42% 52% 48% / 60% 55% 45% 40%;
  box-shadow: inset 4px 4px 0 color-mix(in srgb, white 30%, transparent);
  margin-bottom: 18px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h4 { font-size: 1.2rem; font-weight: 800; }
.why-card p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

/* Quality strip: the three official logos only, untouched, on plain white with clear space
   (ACECQA NQS rules). No filter, shadow, transform or hover effect ever touches a logo.
   Heights are set so the VISIBLE marks match (~60px): the NQS SVG carries ~30% white margin. */
.quality { background: white; padding-block: 48px; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(48px, 7vw, 96px); }
.badge-link { display: block; border-radius: 8px; }
.badge-link img { width: auto; }
.logo-nqs img { height: 96px; }
.logo-kindy img { height: 54px; }
.logo-free img { height: 62px; }
.program-free a {
  color: var(--brand-secondary); font-weight: 800;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand-secondary) 45%, transparent);
}

/* Programs */
.programs { background: var(--paper); border-radius: 56px 56px 0 0; position: relative; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  position: relative; padding: 14px 14px 32px; border-radius: 36px;
  background: color-mix(in srgb, var(--c) 22%, var(--brand-neutral));
}
.program-card > :not(.program-pic):not(.program-bean) { margin-inline: 16px; }
.program-pic {
  aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 22px;
  border-radius: 26px 26px 26px 70px;
  background: color-mix(in srgb, var(--c) 40%, white);
}
.program-card:nth-child(2) .program-pic { border-radius: 70px 26px 26px 26px; }
.program-card:nth-child(3) .program-pic { border-radius: 26px 26px 70px 26px; }
.program-pic img { width: 100%; height: 100%; object-fit: cover; }
.program-bean {
  position: absolute; width: 96px; top: -30px; right: 22px;
  transform: rotate(18deg);
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--brand-ink) 16%, transparent));
}
.program-card h3 { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.program-age {
  display: inline-block; margin-top: 12px; padding: .3rem .8rem; border-radius: 999px;
  background: var(--c); color: var(--on-c); font-weight: 800; font-size: .92rem;
}
.program-card p:last-child { margin-top: 18px; max-width: 30ch; }
.program-card .program-age + p { margin-top: 18px; max-width: 30ch; }
.program-card p.program-free { margin-top: 12px; max-width: 40ch; font-size: .94rem; line-height: 1.55; color: var(--ink-soft); }

.kindy-band {
  position: relative; margin-top: 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 36px 44px 36px 36px; border-radius: 40px;
  background: var(--brand-extra-violet); color: white;
  --focus: white;
  box-shadow: var(--shadow-lg);
}
.kindy-star { width: 96px; filter: brightness(1.6) saturate(.9) drop-shadow(0 6px 10px color-mix(in srgb, black 30%, transparent)); transform: rotate(-12deg); }
.kindy-text h3 { font-size: clamp(1.4rem, 1rem + 1vw, 1.85rem); font-weight: 800; }
.kindy-text p { margin-top: 10px; max-width: 64ch; color: color-mix(in srgb, white 90%, var(--brand-extra-violet)); }

.included {
  margin-top: 32px; padding: 32px 36px; border-radius: 40px;
  background: var(--brand-neutral);
  border: 2px dashed color-mix(in srgb, var(--brand-primary) 35%, transparent);
  display: grid; grid-template-columns: 220px 1fr; gap: 12px 32px; align-items: center;
}
.included h3 { font-size: 1.45rem; font-weight: 800; color: var(--brand-heading); }
.jar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.jar-bean {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 78px; padding: .75rem 1rem;
  background: var(--c); color: var(--on-c);
  font-weight: 800; font-size: 1.1rem;
  border-radius: 58% 42% 50% 50% / 62% 58% 42% 38%;
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--brand-ink) 12%, transparent), var(--shadow-sm);
}
.jar-bean:nth-child(odd) { transform: rotate(-2.5deg); }
.jar-bean:nth-child(even) { border-radius: 45% 55% 52% 48% / 42% 40% 60% 58%; transform: rotate(2.5deg); }
.jar-bean::before {
  content: ""; position: absolute; top: 12px; left: 22%; width: 26%; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, white 45%, transparent); transform: rotate(-8deg);
}
.jar-bean svg { width: 24px; height: 24px; flex: none; }
.included-note { grid-column: 2; color: var(--ink-soft); font-size: .98rem; }

/* Little moments (AI pictures) */
.everyday { background: var(--paper); padding-top: 24px; }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.moment figure { margin: 0; }
.moment-pic {
  aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 30px;
  box-shadow: 10px 10px 0 var(--c);
}
.moment-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moment:hover .moment-pic img { transform: scale(1.04); }
.moment figcaption { margin-top: 24px; padding-inline: 6px; color: var(--ink-soft); line-height: 1.5; }
.moment figcaption strong { display: block; color: var(--ink); font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }

/* Gallery */
.gallery { background: var(--paper); padding-top: 24px; border-radius: 0 0 56px 56px; }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px;
}
.mosaic li { overflow: hidden; border-radius: 26px; background: color-mix(in srgb, var(--brand-extra-lime) 30%, white); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic li:hover img { transform: scale(1.04); }
.m-a { grid-column: 1 / 3; grid-row: 1 / 3; border-radius: 26px 26px 26px 110px !important; }
.m-b { grid-column: 3; grid-row: 1; }
.m-c { grid-column: 4; grid-row: 1 / 3; border-radius: 26px 90px 26px 26px !important; }
.m-d { grid-column: 3; grid-row: 2; }
.m-e { grid-column: 1; grid-row: 3 / 5; border-radius: 90px 26px 26px 26px !important; }
.m-f { grid-column: 2 / 4; grid-row: 3 / 5; border-radius: 26px 110px 26px 26px !important; }
.m-g { grid-column: 4; grid-row: 3; }
.m-h { grid-column: 4; grid-row: 4; border-radius: 26px 26px 90px 26px !important; }
.swipe-hint { display: none; }

/* Reviews */
.reviews { padding-bottom: 24px; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.1rem .6rem .9rem; border-radius: 999px;
  background: white; box-shadow: var(--shadow-sm);
  border: 1.5px solid color-mix(in srgb, var(--brand-extra-yellow) 60%, transparent);
  font-weight: 700;
}
.rating-badge strong { font-weight: 800; font-size: 1.15rem; }
.stars { width: 100px; height: 20px; fill: var(--brand-primary); flex: none; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 30px 32px 28px; border-radius: 32px; background: white;
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: var(--shadow-sm);
}
/* A coloured bean tucked in the corner of each card, like one dropped from the jar */
.review::after {
  content: ""; position: absolute; top: 22px; right: 24px; width: 40px; height: 28px;
  background: var(--c); border-radius: 58% 42% 52% 48% / 60% 55% 45% 40%; transform: rotate(-16deg);
  box-shadow: inset 3px 3px 0 color-mix(in srgb, white 35%, transparent);
}
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.6; }
.review-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-name { font-weight: 800; }
.review-src { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.g-mark {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--brand-ink) 35%, transparent);
  font-size: .75rem; font-weight: 800; line-height: 1; color: var(--ink-soft);
}
.reviews-foot { margin-top: 32px; display: flex; justify-content: center; }

/* Visit */
.visit { padding-top: 72px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; }
.visit-card { padding: 32px; border-radius: 34px; background: white; box-shadow: var(--shadow); }
.visit-list { margin: 0; display: grid; gap: 22px; }
.visit-item { display: grid; gap: 4px; }
.visit-item dt { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.vi-icon {
  display: grid; place-items: center; width: 40px; height: 34px; flex: none;
  background: var(--c); color: var(--on-c);
  border-radius: 58% 42% 52% 48% / 60% 55% 45% 40%;
}
.vi-icon svg { width: 20px; height: 20px; }
.visit-item dd { margin: 0 0 0 calc(40px + .7rem); font-weight: 800; font-size: 1.2rem; line-height: 1.35; }
.visit-item dd a { text-decoration-color: color-mix(in srgb, var(--brand-secondary) 50%, transparent); text-underline-offset: 4px; }
.map-frame {
  min-height: 400px; border-radius: 34px; overflow: hidden;
  border: 6px solid white; box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--brand-accent) 18%, white);
  position: relative;
}
/* Shown only until (or if) the Google map loads over it */
.map-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px; text-align: center; font-weight: 800; color: var(--ink);
}
.map-fallback img { width: 64px; transform: rotate(-14deg); }
.map-fallback a { color: var(--brand-secondary); text-underline-offset: 4px; }
.map-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 388px; border: 0; }

.closing {
  margin-top: 88px; padding: 110px 32px; border-radius: 44px; text-align: center;
  background: var(--brand-neutral) url("assets/decor/splash-wide.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.closing .closing-title { max-width: 18ch; margin-inline: auto; }
.closing p { max-width: 46ch; margin: 16px auto 0; font-size: 1.1875rem; color: var(--ink-soft); }

/* Footer */
.site-footer { padding-top: 72px; background: url("assets/decor/pattern.jpg") 0 0 / 300px repeat; }
.footer-grid {
  display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 40px; align-items: center;
  padding: 40px 44px; border-radius: 40px 40px 0 0; background: white;
}
.footer-logo { width: 150px; height: auto; }
.footer-info { display: grid; gap: 4px; font-weight: 700; }
.footer-info a { text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--brand-secondary) 50%, transparent); }
.footer-info a:hover { color: var(--brand-secondary); }
.footer-small { display: grid; gap: 10px; font-size: .9rem; color: var(--ink-soft); }

/* Mobile bottom bar (hidden on wide screens) */
.bottom-bar { display: none; }

/* Scroll reveal: only when JS is running, so content never hides without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .header-row { gap: 18px; }
  .nav { gap: 16px; }
  .nav ul a { padding: .5rem .6rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: auto 1fr; }
  .footer-small { grid-column: 1 / -1; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 920px) {
  :root { --header-h: 68px; --gutter: 16px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .logo img { height: 48px; }
  .header-ctas { display: none; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 12px 16px 18px; margin: 0;
    background: var(--brand-neutral); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: .8rem 1rem; font-size: 1.125rem; }
  .nav-phone { padding: .8rem 1rem; font-size: 1.125rem; }

  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; margin: 0 -6px; aspect-ratio: 1.15; }
  .hero h1 { max-width: 12ch; }
  .hero-sub { font-size: 1.125rem; margin-top: 16px; }
  .cta-row { margin-top: 24px; }
  .cta-row .btn { flex: 1 1 140px; }
  .chips { margin-top: 26px; gap: 8px; display: grid; grid-template-columns: 1fr 1fr; }
  .chip { font-size: .88rem; padding: .5rem .7rem .5rem .6rem; border-radius: 18px; }
  .s1 { width: 70px; } .s2 { width: 62px; } .s3 { width: 58px; } .s4 { width: 72px; } .s5 { width: 48px; }
  .divider { margin-top: 28px; width: 88%; }

  .section { padding-block: 64px; }
  .about { padding-top: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .s6 { width: 100px; } .s7 { width: 64px; }
  .why-title { margin-top: 56px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 20px 16px 22px; border-radius: 24px; }
  .why-icon { width: 50px; height: 44px; margin-bottom: 14px; }
  .why-icon svg { width: 24px; height: 24px; }
  .why-card h4 { font-size: 1.05rem; }
  .why-card p { font-size: .94rem; }

  /* Phones: NQS + Free Kindy on one row, the wide kindy tick centred under them */
  .quality { padding-block: 40px; }
  .badge-row { gap: 24px 48px; }
  .badge-row li:nth-child(2) { order: 3; flex-basis: 100%; display: flex; justify-content: center; }
  .logo-nqs img { height: 78px; }
  .logo-kindy img { height: 44px; }
  .logo-free img { height: 51px; }

  .programs { border-radius: 36px 36px 0 0; }
  .section-head { margin-bottom: 28px; }
  .program-grid { grid-template-columns: 1fr; gap: 14px; }
  .program-card { padding: 12px 12px 26px; border-radius: 28px; }
  .program-bean { width: 72px; top: -22px; right: 18px; }
  .program-grid { gap: 30px; margin-top: 8px; }
  .program-card h3 { font-size: 1.7rem; }
  .kindy-band { grid-template-columns: 1fr; gap: 16px; padding: 28px 22px 26px; border-radius: 30px; margin-top: 40px; }
  .kindy-star { position: absolute; width: 70px; top: -30px; right: 18px; }
  .kindy-text h3 { padding-right: 64px; }
  .kindy-band .btn { justify-self: start; }
  .included { grid-template-columns: 1fr; padding: 24px 18px; border-radius: 30px; gap: 18px; }
  .included h3 { font-size: 1.3rem; }
  .jar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .jar-bean { min-height: 68px; font-size: 1.02rem; }
  .included-note { grid-column: 1; }

  /* Gallery becomes a swipe row */
  .gallery-wrap { width: 100%; }
  .mosaic {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    padding: 4px 16px 12px; scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic li { flex: 0 0 80%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 24px !important; }
  .mosaic li:nth-child(odd) { border-radius: 24px 24px 24px 70px !important; }
  .swipe-hint {
    display: block; margin: 6px 16px 0; font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  }

  .program-pic { margin-bottom: 18px; }
  .program-card > :not(.program-pic):not(.program-bean) { margin-inline: 10px; }

  .everyday, .gallery { padding-top: 8px; }
  .moments { grid-template-columns: 1fr; gap: 30px; }
  .moment figure { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: center; }
  .moment-pic { border-radius: 22px; box-shadow: 6px 6px 0 var(--c); }
  /* Cards in a swipe row should not fade in sideways */
  .js .review.reveal { opacity: 1; transform: none; }
  .moment figcaption { margin-top: 0; padding-inline: 0; font-size: .95rem; }
  .moment figcaption strong { font-size: 1.05rem; }

  .reviews-head { margin-bottom: 24px; }
  .rating-badge { font-size: .95rem; }
  .reviews-wrap { width: 100%; }
  .review-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    padding: 4px 16px 12px; scrollbar-width: none;
  }
  .review-grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: start; padding: 24px 20px 20px; border-radius: 26px; }
  .review blockquote p { font-size: 1rem; }
  .reviews-foot { margin-top: 20px; }
  .reviews-foot .btn { width: 100%; }
  .visit { padding-top: 56px; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-card { padding: 24px 20px; border-radius: 28px; }
  .visit-list { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .visit-item dt { font-size: .9rem; gap: .5rem; }
  .vi-icon { width: 34px; height: 30px; }
  .vi-icon svg { width: 18px; height: 18px; }
  .visit-item dd { margin-left: 0; font-size: 1.05rem; }
  .visit-item:first-child, .visit-item:last-child { grid-column: 1 / -1; }
  .map-frame { min-height: 300px; border-radius: 28px; }
  .map-frame iframe { min-height: 288px; }

  .closing {
    margin-top: 56px; padding: 96px 20px 290px; border-radius: 32px;
    background-image: url("assets/decor/splash-tall.jpg"); background-position: center bottom;
  }
  .closing .cta-row .btn { flex: 1 1 100%; }

  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 22px 28px; border-radius: 32px 32px 0 0; }
  .footer-logo { width: 120px; }
  .footer-small { grid-column: auto; }

  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, white 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -16px color-mix(in srgb, var(--brand-ink) 40%, transparent);
  }
  .bottom-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border-radius: 18px; text-decoration: none;
    font-weight: 800; font-size: .92rem; line-height: 1.1;
  }
  .bottom-bar svg { width: 22px; height: 22px; }
  .bb-tour { background: var(--brand-secondary); color: var(--brand-on-secondary); }
  .bb-enrol { background: white; color: var(--brand-secondary); border: 2px solid var(--brand-secondary); }
  .bb-call { background: var(--brand-accent); color: var(--brand-on-accent); }
}

@media (max-width: 380px) {
  .visit-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
