/* CLICKO KIDS International Preschool
   Layout idea: a discovery journal. Ivory and beige pages, royal-blue ink,
   photographs mounted on paper sheets, and a dotted learning trail that links the steps.
   Type: Fredoka SemiBold for headings (a close match to the logo lettering), Inter for body text.
   Colours are sampled from the logo: deep blue, coral orange, teal and yellow. */
:root {
  --blue: #135D9B;
  --blue-deep: #0F4C80;
  --navy: #0C3A63;
  --beige: #F4EDE2;
  --beige-deep: #E6DAC8;
  --ivory: #FFFCF7;
  --sun: #FBBA1E;
  --coral: #FC804D;
  --teal: #1BB2C3;
  --teal-ink: #0B7582;
  --ink-soft: #4B5A73;
  --text: #334155;
  --line: rgba(23, 43, 77, .16);
  --display: "Fredoka", "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12,58,99,.06), 0 16px 32px -20px rgba(12,58,99,.35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .13 0 0 0 0 .29 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory) var(--grain);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--blue); text-wrap: balance; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -.005em; }
h1 em { font-style: normal; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: 0; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: 0; }
p { max-width: 62ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--ivory); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--ivory); }

.eyebrow { font: 600 .8125rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; border-top: 3px solid var(--coral); border-radius: 2px; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 4px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--blue); font: 600 1rem/1.2 var(--body); text-decoration: none; transition: background-color .24s, border-color .24s, box-shadow .24s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(12,58,99,.6); }
.btn { transition: transform .24s, background-color .24s, border-color .24s, box-shadow .24s, color .24s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(12,58,99,.55); }
.btn:active { transform: translateY(0); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(19,93,155,.08); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(19,93,155,.35); }
.ask:hover { border-bottom-color: currentColor; }
.ask::after { content: "→"; transition: transform .24s; }
.ask:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; margin-right: auto; }
.brand-text { display: grid; }
.brand-name { font: 600 1.35rem/1 var(--display); letter-spacing: -.01em; color: var(--blue); }
.brand-logo { height: 76px; width: auto; max-width: 220px; object-fit: contain; flex: none; mix-blend-mode: multiply; /* lets the logo file's white background sit on the ivory header */ }
.brand-sub { font: 600 .625rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-top: 5px; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 12px 12px; color: var(--navy); font-weight: 500; font-size: .9375rem; text-decoration: none; border-radius: 8px; }
.nav a { position: relative; transition: color .24s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .26s; }
.nav a:hover, .nav a:focus-visible { color: var(--blue); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--ivory); place-items: center; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: transform .24s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.place { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; color: var(--navy); background: var(--beige); padding: 8px 14px 8px 10px; border-radius: 999px; }
.place svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero-photo { position: relative; padding: 18px 0 0 18px; }
.photo-stack { position: relative; }
.paper { position: absolute; inset: 0; border-radius: 6px; }
.paper-back { background: var(--beige-deep); transform: rotate(-3.2deg) translate(-10px, 12px); box-shadow: 0 18px 30px -22px rgba(12,58,99,.5); }
.paper-mid { background: var(--ivory); border: 1px solid var(--line); transform: rotate(-1.4deg) translate(6px, 8px); box-shadow: 0 14px 24px -20px rgba(12,58,99,.45); }
.photo-sheet { position: relative; background: #fff; padding: 12px; border-radius: 6px; box-shadow: 0 2px 4px rgba(12,58,99,.08), 0 22px 40px -22px rgba(12,58,99,.5); transform: rotate(.6deg); }
.photo-sheet img { border-radius: 3px; }
.photo-sheet::before, .photo-sheet::after { content: ""; position: absolute; width: 92px; height: 26px; background: rgba(251,186,30,.82); top: -12px; }
.photo-sheet::before { left: 28px; transform: rotate(-4deg); }
.photo-sheet::after { right: 28px; transform: rotate(3deg); background: rgba(252,128,77,.78); }
.hero-photo figcaption { margin-top: 18px; text-align: right; font: 500 .9375rem var(--body); color: var(--ink-soft); }
.cut { position: absolute; z-index: -1; }
.cut-arch { width: 62%; aspect-ratio: 1; right: -9%; top: -7%; background: var(--blue); border-radius: 50% 50% 8% 8%; }
.cut-sun { width: 132px; aspect-ratio: 1; left: -30px; bottom: 26px; border-radius: 50%; background: var(--sun); }
.cut-leaf { width: 96px; height: 60px; right: 12%; bottom: 10px; background: var(--teal); border-radius: 0 100% 0 100%; transform: rotate(-14deg); }

/* Story */
.story { background: var(--beige) var(--grain); padding: var(--section) 0; position: relative; }
.story::before, .enquiry::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: radial-gradient(circle at 16px 16px, var(--beige) 15.500px, transparent 16px) 0 0 / 32px 16px repeat-x; }
.story-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-copy { display: grid; gap: 18px; }
.story-copy .eyebrow { margin-bottom: 0; }
.statement { margin: 14px 0 6px; padding: 26px 28px; background: var(--blue); color: var(--ivory); border-radius: var(--radius) var(--radius) var(--radius) 0; position: relative; }
.statement p { font: 600 clamp(1.3rem, 2.3vw, 1.75rem)/1.3 var(--display); color: #fff; }
.statement footer { margin-top: 12px; font-size: .875rem; font-weight: 500; color: #DCE4F7; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.facts dt, .contact-list dt { font: 600 .75rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.facts dd { font: 600 1.0625rem/1.3 var(--display); color: var(--navy); }
.beginnings { position: relative; background: #fff; padding: 12px 12px 16px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-.8deg); }
.tab { position: absolute; z-index: 2; top: -18px; left: 22px; background: var(--sun); color: var(--navy); font: 600 .75rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 9px 12px; border-radius: 4px; transform: rotate(-1deg); }
figcaption { font-size: .9375rem; color: var(--ink-soft); margin-top: 10px; }
.beginnings figcaption { font: 500 .9375rem var(--body); color: var(--navy); text-align: center; }

/* Zoom buttons */
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.zoom img { width: 100%; transition: transform .3s; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.045); }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(12,58,99,.86); color: #fff; font: 600 .75rem/1 var(--body); padding: 7px 10px; border-radius: 999px; opacity: 0; transition: opacity .24s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }

/* 3D tilt (pointer-driven, see js/main.js). --rx / --ry are set in degrees, max 3. */
.tilt, .photo-stack { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .28s ease-out, box-shadow .28s; transform-style: preserve-3d; will-change: transform; }
.tilt { border-radius: 18px; box-shadow: var(--shadow); }
.tilt .zoom { border-radius: inherit !important; box-shadow: none !important; }
.tilt.is-tilting, .tilt:focus-within { --lift: -5px; box-shadow: 0 2px 4px rgba(12,58,99,.08), 0 14px 22px -12px rgba(12,58,99,.3), 0 34px 50px -28px rgba(12,58,99,.5); }
.photo-stack.is-tilting { --lift: -4px; }
.stop-body { transition: transform .24s; }
.stop:hover .stop-body, .stop-body:focus-within { transform: translateY(-3px); }
.stone { transition: transform .24s, box-shadow .24s; }
/* Programme number badges in the logo palette (number colours all pass 4.5:1 on their fill). */
.stop .stone { --badge: var(--blue); --badge-ink: #fff; background: var(--badge); color: var(--badge-ink); border: 0; box-shadow: 0 0 0 8px var(--ivory), 0 10px 18px -10px rgba(12,58,99,.55); }
.stop:nth-child(2) .stone { --badge: var(--coral); --badge-ink: var(--navy); }
.stop:nth-child(3) .stone { --badge: var(--teal); --badge-ink: var(--navy); }
.stop:nth-child(4) .stone { --badge: var(--sun); --badge-ink: var(--blue); }
.stop:nth-child(5) .stone { --badge: var(--navy); --badge-ink: #fff; }

/* Programmes trail */
.programmes { padding: var(--section) 0; }
.trail { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; row-gap: 12px; }
.trail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240' viewBox='0 0 60 240'%3E%3Cpath d='M30 0C60 40 60 80 30 120S0 200 30 240' fill='none' stroke='%23135D9B' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round'/%3E%3C/svg%3E") center top / 60px 240px repeat-y; }
.stop { display: contents; }
.stone { grid-column: 2; align-self: center; justify-self: center; position: relative; z-index: 1; width: 64px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 600 1.35rem/1 var(--display); box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px var(--line); }
.stop-body { display: grid; gap: 10px; justify-items: start; padding: 26px 0; }
.stop:nth-child(odd) .stop-body { grid-column: 1; text-align: right; justify-items: end; }
.stop:nth-child(even) .stop-body { grid-column: 3; }
.stop:nth-child(1) .stone, .stop:nth-child(1) .stop-body { grid-row: 1; }
.stop:nth-child(2) .stone, .stop:nth-child(2) .stop-body { grid-row: 2; }
.stop:nth-child(3) .stone, .stop:nth-child(3) .stop-body { grid-row: 3; }
.stop:nth-child(4) .stone, .stop:nth-child(4) .stop-body { grid-row: 4; }
.stop:nth-child(5) .stone, .stop:nth-child(5) .stop-body { grid-row: 5; }
.stop-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.stop-body p { color: var(--ink-soft); max-width: 36ch; }

.prog-features { display: grid; gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 7vw, 96px); }
.prog-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--beige) var(--grain); border-radius: 28px; padding: clamp(18px, 3vw, 40px); scroll-margin-top: 110px; }
.prog-feature.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.prog-feature.flip .prog-photo { order: 2; }
.prog-copy { display: grid; gap: 14px; justify-items: start; }
.prog-copy .eyebrow { margin-bottom: 0; }
.prog-copy h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.prog-copy .btn { margin-top: 6px; }

/* Learning through play */
.play { background: var(--blue); color: var(--ivory); padding: var(--section) 0; }
.play h2 { color: #fff; }
.play .eyebrow { color: var(--ivory); }
.play .eyebrow::before { border-color: var(--sun); }
.play .eyebrow { color: #fff; }
.play-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.play-photos { position: sticky; top: 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.play-shot { background: #fff; padding: 8px; border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }
.play-shot-main { grid-column: 1 / 12; grid-row: 1; transform: rotate(-.8deg); }
.play-shot-side { grid-column: 8 / 13; grid-row: 2; margin-top: -18%; transform: rotate(1.2deg); position: relative; z-index: 1; }
.play-photos figcaption, .play figcaption { color: #fff; }
.play-photos figcaption { grid-column: 1 / 8; grid-row: 2; align-self: end; font: 600 1.0625rem/1.5 var(--body); padding: 18px 16px 6px 0; margin-top: 0; }
.play-copy { display: grid; gap: 18px; }
.play-copy .eyebrow { margin-bottom: 0; }
.intro { color: #DCE4F7; }
.notes { display: grid; margin-top: 10px; }
.notes li { display: grid; grid-template-columns: 22px 1fr; column-gap: 18px; padding: 20px 0; border-top: 1px dashed rgba(255,252,247,.35); }
.notes li::before { content: ""; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--ivory); grid-row: span 2; }
.notes .n-sun::before { background: var(--sun); border-radius: 3px; transform: rotate(12deg); }
.notes .n-pink::before { background: var(--coral); border-radius: 50% 50% 0 50%; }
.notes .n-leaf::before { background: #7FE3EE; border-radius: 0 100% 0 100%; }
.notes h3 { color: #fff; font-size: 1.1875rem; }
.notes p { color: #DCE4F7; margin-top: 4px; }

/* Spaces tour */
.spaces { padding: var(--section) 0; }
.tour { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.tour-stop { display: grid; gap: 18px; align-content: start; }
.tour-stop figure .zoom { border-radius: 18px; box-shadow: var(--shadow); }
.tour-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; align-items: start; }
.tour-no { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(27,178,195,.14); border: 1.5px solid var(--teal); font: 600 1.0625rem/1 var(--display); color: var(--teal-ink); }
.tour-copy p { grid-column: 2; color: var(--ink-soft); }
.t-classroom { grid-column: 1 / -1; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: clamp(20px, 3vw, 40px); }
.t-science { grid-column: 1 / 7; }
.t-english { grid-column: 7 / -1; }
.t-reading { grid-column: 1 / 6; margin-top: clamp(0px, 4vw, 56px); }
.t-outdoor { grid-column: 6 / -1; }
.t-resting { grid-column: 3 / 11; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(20px, 3vw, 40px); }

/* Curriculum */
.curriculum { background: var(--beige) var(--grain); padding: var(--section) 0; }
.cur-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cur-copy { display: grid; gap: 18px; }
.cur-copy .eyebrow { margin-bottom: 0; }
.books { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--navy); }
.books > div { display: grid; grid-template-columns: minmax(130px, 1fr) 3fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.books dt { font: 600 1.0625rem/1.4 var(--display); color: var(--navy); }
.brochure { background: #fff; padding: 10px 10px 14px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(1deg); }
.brochure img { object-fit: contain; width: 100%; height: auto; }
.cur-visual { display: grid; gap: 22px; justify-items: center; }
.cur-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.cur-thumbs figure { background: #fff; padding: 8px 8px 10px; border-radius: 6px; box-shadow: var(--shadow); }
.cur-thumbs .zoom img { object-fit: contain; width: 100%; aspect-ratio: 1; height: auto; background: #fff; }
.cur-thumbs figcaption { font-size: .8125rem; line-height: 1.35; text-align: center; margin-top: 6px; color: var(--ink-soft); }
.brochure figcaption { text-align: center; }

/* Founder */
.founder { padding: var(--section) 0; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.founder-photo figcaption { font: 500 .9375rem var(--body); color: var(--navy); text-align: center; margin-top: 12px; }
.founder-copy { display: grid; gap: 14px; }
.founder-copy .eyebrow { margin-bottom: 0; }
.role { font-weight: 600; color: var(--teal-ink); }
.founder-copy p:not(.role):not(.eyebrow) { color: var(--ink-soft); }

/* Moments */
.moments { padding: 0 0 var(--section); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--blue); background: transparent; color: var(--blue); font-weight: 500; font-size: .9375rem; transition: background-color .24s; }
.filter:hover { background: var(--beige); }
.filter[aria-pressed="true"] { background: var(--blue); color: #fff; }
.gallery { columns: 3; column-gap: 22px; }
.gallery li { break-inside: avoid; margin-bottom: 22px; }
.gallery figure { background: #fff; padding: 8px 8px 12px; border-radius: 6px; box-shadow: var(--shadow); }
.gallery .zoom-hint { inset: 0; right: 0; bottom: 0; display: grid; place-items: end center; padding: 14px; border-radius: 0; background: linear-gradient(to top, rgba(12,58,99,.72), rgba(12,58,99,0) 55%); font: 600 .875rem/1 var(--body); letter-spacing: .02em; }
.gallery figure { transition: box-shadow .24s; }
.gallery figure:hover, .gallery figure:focus-within { box-shadow: 0 2px 4px rgba(12,58,99,.08), 0 22px 36px -20px rgba(12,58,99,.5); }
.gallery figcaption { text-align: center; font-weight: 500; color: var(--navy); }

/* Enquiry */
.enquiry { position: relative; background: var(--beige) var(--grain); padding: var(--section) 0; }
.enq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.enq-copy { display: grid; gap: 18px; }
.enq-copy .eyebrow { margin-bottom: 0; }
.small { font-size: .9375rem; color: var(--ink-soft); }
.enq-form { display: grid; gap: 18px; background: var(--ivory); padding: clamp(20px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--navy); background: #fff; border: 1.5px solid #8590A6; border-radius: 10px; transition: border-color .24s; }
input:hover, select:hover, textarea:hover { border-color: var(--blue); }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--blue); box-shadow: none; border-radius: 10px; }
[aria-invalid="true"] { border-color: #B3261E; }
.err { color: #B3261E; font-size: .9375rem; font-weight: 500; }
.enq-form .btn { justify-self: start; }
.enq-ready { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: 12px; background: var(--beige); }

/* Contact */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contact-copy { display: grid; gap: 22px; justify-items: start; align-content: start; }
.contact-copy .eyebrow { margin-bottom: 0; }
address { font-style: normal; width: 100%; display: grid; gap: 18px; }
.c-address strong { color: var(--navy); font-weight: 600; }
.c-links { display: grid; gap: 6px; }
.c-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px 8px 8px; margin-left: -8px; border-radius: 14px; text-decoration: none; color: var(--navy); transition: background-color .24s, color .24s; }
.c-link:hover, .c-link:focus-visible { background: var(--beige); color: var(--blue); }
.c-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(27,178,195,.14); color: var(--teal-ink); transition: transform .24s, background-color .24s; }
.c-link:hover .c-ico, .c-link:focus-visible .c-ico { transform: translateX(3px) scale(1.06); background: #fff; }
.c-ico svg { width: 22px; height: 22px; }
.line-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-ico { width: 22px; height: 22px; fill: currentColor; stroke: none !important; flex: none; }
.c-whatsapp .c-ico { background: rgba(37,211,102,.14); }
.c-whatsapp .brand-ico { fill: #25D366; }
.c-instagram .c-ico { background: rgba(214,41,118,.1); }
.c-instagram .brand-ico { fill: url(#ig-gradient) #D62976; }
.c-facebook .c-ico { background: rgba(8,102,255,.1); }
.c-facebook .brand-ico { fill: #0866FF; }
.c-text { display: grid; line-height: 1.3; }
.c-label { font: 600 .75rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.c-value { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.svg-defs { position: absolute; }
.f-social { display: inline-flex !important; align-items: center; gap: 10px; }
.f-social .brand-ico { width: 18px; height: 18px; transition: transform .24s; }
.f-social:hover .brand-ico, .f-social:focus-visible .brand-ico { transform: translateX(2px) scale(1.1); }
.map { min-height: 380px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--beige); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy); color: #E7ECF8; padding: 64px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h2 { font: 600 .8125rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a, .site-footer p a { display: inline-block; padding: 6px 0; }
.brand-footer .brand-name { color: #fff; font-size: 1.5rem; }
.brand-footer .brand-sub { color: #E7ECF8; }
.footer-phil { font: 500 1.0625rem/1.5 var(--display); margin-top: 16px; }
.privacy p { font-size: .9375rem; color: #C9D2EA; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9375rem; }
.footer-credit { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .875rem; color: #C9D2EA; }
.footer-credit p { max-width: none; }
.footer-credit a { font-weight: 600; padding: 6px 0; display: inline-block; }

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

/* Chat */
.chat-launcher { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px 8px 70px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 10px 24px -10px rgba(12,58,99,.55); transition: transform .24s, box-shadow .24s, background-color .24s; }
.chat-launcher:hover, .chat-launcher:focus-visible { transform: translateY(-3px); background: var(--ivory); box-shadow: 0 18px 30px -12px rgba(12,58,99,.6); }
.mascot { position: absolute; left: 10px; bottom: 4px; width: 54px; pointer-events: none; }
.mascot img, .chat-avatar img { width: 100%; height: auto; transform-origin: 50% 90%; animation: mascot-greet 1.8s ease-in-out 1.2s 1 both; }
.chat-launcher:hover .mascot img { animation: mascot-greet 1.2s ease-in-out 1; }
@keyframes mascot-greet { 0%, 100% { transform: none; } 18% { transform: translateY(-6px) rotate(-7deg); } 38% { transform: translateY(0) rotate(6deg); } 58% { transform: translateY(-4px) rotate(-5deg); } 78% { transform: rotate(3deg); } }
.ai-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; background: var(--sun); color: var(--navy); font: 600 .6875rem/1 var(--body); letter-spacing: .06em; vertical-align: middle; }
.chat-avatar { flex: none; width: 52px; height: 52px; display: grid; place-items: end center; border-radius: 50%; background: #fff; overflow: hidden; padding: 4px 8px 0; }
.chat-avatar img { animation-delay: .15s; }
.chat-id { margin-right: auto; }
.chat-launcher svg, .chat-close svg, .lb-btn svg, .action-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(12,58,99,.6); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 14px; background: var(--blue); color: var(--ivory); }
.chat-head h2 { color: #fff; font-size: 1.125rem; }
.chat-head p { font-size: .8125rem; font-weight: 500; color: #DCE4F7; }
.chat-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .9688rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--beige); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--blue); color: var(--ivory); border-bottom-right-radius: 4px; }
.msg-error { background: #FCE8E6; color: #7A1810; }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--blue); font-weight: 600; font-size: .875rem; text-decoration: none; }
.typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .24s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; padding: 0 12px 10px; overflow-x: auto; }
.chat-chips button { flex: none; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 500; font-size: .8438rem; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { min-height: 44px; }
.chat-form .btn { box-shadow: none; }

/* Enquiry popup */
.enq-pop { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--ivory); color: var(--text); box-shadow: 0 30px 80px -20px rgba(12,58,99,.6); overflow: auto; }
.enq-pop::backdrop { background: rgba(12,58,99,.55); }
.enq-pop-inner { display: grid; gap: 16px; padding: clamp(20px, 5vw, 32px); }
.enq-pop-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.enq-pop h2 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); }
.enq-pop-head p { grid-column: 1 / -1; color: var(--ink-soft); }
.pop-close { width: 44px; height: 44px; margin: -6px -6px 0 0; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); transition: background-color .24s; }
.pop-close:hover { background: var(--beige); }
.pop-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.enq-pop form { display: grid; gap: 14px; }
.enq-pop .btn { width: 100%; }

/* Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 12px; border: 0; background: rgba(13,22,48,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
.lightbox::backdrop { background: rgba(13,22,48,.9); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; }
.lightbox-bar p { font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 0; }
.lightbox-stage img { grid-column: 2; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: auto; border-radius: 4px; min-height: 0; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lightbox-caption { text-align: center; max-width: none; font: 500 1rem var(--body); padding: 4px 0 8px; }

/* Tablet */
@media (max-width: 959px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(12,58,99,.3); padding: 8px var(--gutter) 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .menu-toggle { display: grid; }
  .header-row { gap: 10px; }
  .hero-grid, .story-grid, .play-grid, .cur-grid, .founder-grid, .enq-grid, .contact-grid, .prog-feature, .prog-feature.flip { grid-template-columns: minmax(0, 1fr); }
  .prog-feature.flip .prog-photo { order: 0; }
  .hero-photo { max-width: 640px; }
  .play-photos { position: static; max-width: 560px; }
  .cur-visual { max-width: 420px; justify-self: center; grid-row: 2; width: 100%; }
  .founder-photo { max-width: 460px; }
  .beginnings { max-width: 600px; }
  .gallery { columns: 2; column-gap: 14px; }
  .gallery li { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .t-classroom, .t-resting { grid-template-columns: minmax(0, 1fr); }
  .t-science, .t-english, .t-reading, .t-outdoor, .t-resting { grid-column: 1 / -1; margin-top: 0; }
  .t-reading { max-width: 78%; }
  .t-outdoor { margin-left: 8%; }
  .t-resting { max-width: 70%; justify-self: end; }
}

/* Phone */
@media (max-width: 719px) {
  html { scroll-padding-top: 84px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .header-row { min-height: 68px; }
  .brand-name { font-size: 1.125rem; }
  .brand-logo { height: 56px; max-width: 150px; }
  .brand-sub { font-size: .5625rem; letter-spacing: .14em; }
  .site-header .btn-small { padding: 8px 14px; font-size: .875rem; }
  .cut-sun { width: 84px; left: -14px; }
  .trail { grid-template-columns: 56px 1fr; }
  .trail::before { left: 28px; }
  .stone, .stop .stone { grid-column: 1; width: 48px; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--ivory), 0 8px 14px -10px rgba(12,58,99,.55); }
  .stop:nth-child(n) .stop-body { grid-column: 2; text-align: left; justify-items: start; padding: 18px 0 18px 12px; }
  .books > div { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .t-reading, .t-resting { max-width: none; }
  .t-outdoor { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .action-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--blue); border-top: 1px solid var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; font-weight: 600; font-size: .8125rem; text-decoration: none; }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.25); }
  .chat-launcher { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 0; width: 62px; height: 62px; min-height: 0; justify-content: center; }
  .launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mascot { left: 50%; margin-left: -23px; bottom: 3px; width: 46px; }
  .chat-launcher .ai-badge { position: absolute; top: -6px; right: -6px; border: 2px solid #fff; }
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(86dvh, 640px); border-radius: 20px 20px 0 0; border-width: 1px 0 0; }
  .lightbox-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox-stage img { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev, .lb-next { grid-row: 2; grid-column: 1; }
  .lb-prev { justify-self: start; } .lb-next { justify-self: end; }
}

@media (hover: none) {
  .tilt, .photo-stack { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt, .photo-stack, .btn:hover, .btn:focus-visible, .stop:hover .stop-body, .zoom:hover img, .zoom:focus-visible img { transform: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .action-bar, .chat-launcher, .chat, .map { display: none !important; }
}
.action-bar .brand-ico { fill: currentColor; }
.brand-sub, .site-header .btn { white-space: nowrap; }

/* Photo-preview watermark (shared lightbox component) */
.lightbox-stage { position: relative; }
.lightbox-stage .lb-btn { position: relative; z-index: 2; }
.lb-wm { position: absolute; z-index: 1; overflow: hidden; pointer-events: none; user-select: none; border-radius: 4px; left: 0; top: 0; width: 0; height: 0; }
.lb-wm::before { content: ""; position: absolute; inset: -70%; transform: rotate(-28deg); opacity: .11; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='150' viewBox='0 0 340 150'%3E%3Cg font-family='Arial,Helvetica,sans-serif' font-size='16' font-weight='700' text-anchor='middle' fill='%23fff' stroke='%230C3A63' stroke-width='3' paint-order='stroke' stroke-linejoin='round'%3E%3Ctext x='170' y='40'%3ECLICKO KIDS International Preschool%3C/text%3E%3Ctext x='0' y='115'%3ECLICKO KIDS International Preschool%3C/text%3E%3Ctext x='340' y='115'%3ECLICKO KIDS International Preschool%3C/text%3E%3C/g%3E%3C/svg%3E") 0 0 / 340px 150px repeat; }
@media (max-width: 640px) { .lb-wm::before { background-size: 238px 105px; } }
