/* Alle Scholars - one stylesheet for both schools.
   Classes wear the teal of the Alle Scholars logo; the Kids Play School wears the green of its own. */

:root {
    --brand: #009999;          /* the logo */
    --brand-strong: #007375;   /* buttons and links: white on this reads clearly */
    --brand-deep: #06494d;     /* dark bands */
    --brand-soft: #e5f4f3;
    --accent: #98c23a;         /* the Kids Play School logo */
    --accent-strong: #4e7410;
    --accent-soft: #f1f7e1;
    --sun: #ffc928;
    --ink: #17302f;
    --muted: #51696a;
    --line: #d9e6e4;
    --paper: #ffffff;
    --tint: #f5faf9;
    --on-deep: #d8ecea;
    --radius: 14px;
    --heading: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --shell: 1160px;
}

.kps {
    --brand: #98c23a;
    --brand-strong: #4e7410;
    --brand-deep: #2f4a0a;
    --brand-soft: #f1f7e1;
    --ink: #24320f;
    --muted: #55634a;
    --line: #e2e9d2;
    --tint: #fafcf3;
    --on-deep: #e9f2d5;
    --heading: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
.kps h1, .kps h2, .kps h3 { letter-spacing: 0; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.shell { width: min(var(--shell), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section.tint { background: var(--tint); }
.eyebrow { display: block; font: 800 .8rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: .7em; }
.lead { font-size: 1.14rem; color: var(--muted); }
.head { max-width: 720px; margin-bottom: 38px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    padding: 10px 24px; border-radius: 999px; border: 2px solid var(--brand-strong);
    background: var(--brand-strong); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none;
    cursor: pointer; transition: transform .15s, background-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--brand-strong); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-deep); }
.btn.light { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn.light:hover { background: var(--sun); border-color: var(--sun); color: #1d2a06; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn.outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn.small { min-height: 40px; padding: 6px 18px; font-size: .94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- top bar and header */
.topbar { background: var(--brand-strong); color: #fff; font-size: .9rem; }
.topbar .shell { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 6px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { margin-right: auto; display: block; }
.brand img { height: 46px; width: auto; }
.kps .brand img { height: 52px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 700; font-size: .97rem; text-decoration: none; }
.nav-links a:not(.btn):hover { background: var(--brand-soft); }
.nav-links a[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand-strong); border-radius: 8px 8px 0 0; }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); }

/* ---- hero, Classes */
.hero { background: radial-gradient(1100px 600px at 90% -10%, #0b7b7f 0%, transparent 70%), var(--brand-deep); color: #fff; overflow: hidden; }
.hero .shell { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(44px, 7vw, 88px) 0; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--sun); }
.kps .hero h1 em { color: var(--sun); }
.hero .tagline { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--on-deep); margin-bottom: 1em; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.7em; }
.hero .facts li { padding: 5px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .94rem; font-weight: 700; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(255,255,255,.28); border-radius: 20px; }
.hero-photo img { position: relative; }

/* ---- hero, Kids Play School */
.kps .hero { background: radial-gradient(900px 520px at 88% 0%, #6d9a1d 0%, transparent 72%), var(--brand-deep); }
.kps .hero h1 { font-weight: 700; }
.kps .hero .tagline { color: var(--sun); font-weight: 700; }
.hero p.intro { color: var(--on-deep); max-width: 34em; }

/* ---- the plain band under each inner page's menu */
.page-head { background: radial-gradient(800px 340px at 92% -30%, #0b7b7f 0%, transparent 70%), var(--brand-deep); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.kps .page-head { background: radial-gradient(800px 340px at 92% -30%, #6d9a1d 0%, transparent 70%), var(--brand-deep); }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: .3em; }
.page-head p { color: var(--on-deep); max-width: 760px; margin: 0; font-size: 1.08rem; }

/* ---- layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

.rounded { border-radius: var(--radius); width: 100%; }
.gap { height: 22px; }
.after { margin: 28px 0 0; }
.subject .mark sub, .subject .mark sup { font-size: .6em; }
.site-header .shell { position: relative; }
.site-header nav { position: static; }

.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 34px; font-weight: 700; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%23007375' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.kps .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%234e7410' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.note-quote { border-left: 4px solid var(--brand); padding-left: 18px; font-size: 1.08rem; color: var(--muted); font-style: italic; }

/* ---- cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.reason { position: relative; padding-top: 30px; }
.reason .num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: var(--brand-strong); color: #fff; font: 600 1.15rem/1 var(--heading); }

/* ---- what we offer: a tight list of eight */
.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer li { padding: 22px 20px; font-weight: 800; line-height: 1.3; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }

/* ---- subjects: the tile carries the subject's own notation */
.subject { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.subject .mark { display: flex; align-items: center; justify-content: center; min-height: 118px; background: var(--brand-deep); color: #fff; font: 500 2.7rem/1 var(--heading); }
.subject:nth-child(3n+2) .mark { background: var(--brand-strong); }
.subject:nth-child(3n) .mark { background: #0c5f63; }
.subject .body { padding: 22px 24px 26px; }
.subject .meta { display: block; font-size: .88rem; font-weight: 800; color: var(--brand-strong); margin-bottom: 8px; }

/* ---- teachers */
.person { text-align: left; padding: 0; overflow: hidden; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person .body { padding: 16px 20px 20px; }
.person h3 { margin-bottom: 2px; font-size: 1.16rem; }
.person .role { display: block; color: var(--brand-strong); font-weight: 800; font-size: .92rem; margin-bottom: 8px; }
.person p { font-size: .96rem; margin: 0; }

/* ---- the band that crosses to the other school */
.band { background: var(--accent-soft); }
.band .split { align-items: center; }
.band h2 { color: var(--accent-strong); font-family: "Baloo 2", "Trebuchet MS", sans-serif; font-weight: 700; letter-spacing: 0; }
.band .btn { background: var(--accent-strong); border-color: var(--accent-strong); }
.band .btn:hover { background: #2f4a0a; border-color: #2f4a0a; }
.band.to-classes { background: var(--brand-deep); color: #fff; }

/* ---- activities (play school) */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile h3 { margin: 0; padding: 14px 16px 16px; font-size: 1.14rem; }

/* ---- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--brand-soft); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(10,18,10,.92); padding: 16px 60px; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.lightbox button { position: absolute; width: 48px; height: 48px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: calc(50% - 24px); }
.lb-next { right: 8px; top: calc(50% - 24px); }

/* ---- principal */
.principal { display: grid; grid-template-columns: 300px 1fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.principal figure { margin: 0; }
.principal figure img { border-radius: var(--radius); width: 100%; }
.principal figcaption { margin-top: 12px; line-height: 1.4; }
.principal figcaption strong { display: block; font-family: var(--heading); font-size: 1.2rem; }
.principal figcaption span { display: block; color: var(--muted); font-size: .95rem; }

/* ---- statement */
.statement { background: var(--brand-deep); color: #fff; text-align: center; padding: clamp(44px, 6vw, 72px) 0; }
.statement p { font: 600 clamp(1.45rem, 1.1rem + 1.6vw, 2.25rem)/1.25 var(--heading); margin: 0 auto; max-width: 820px; }

/* ---- contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.info { list-style: none; margin: 0; padding: 0; }
.info li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.info li:first-child { padding-top: 0; }
.info .label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info a { font-weight: 700; word-break: break-word; }

.enquiry { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; font-size: .94rem; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #b4c9c6; border-radius: 10px; background: #fff; color: var(--ink); }
.kps .field input, .kps .field textarea { border-color: #c5d2a6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.map { display: block; width: 100%; height: 400px; border: 0; }

/* ---- footer */
.site-footer { background: #062f32; color: #cfe3e1; font-size: .97rem; }
.kps .site-footer { background: #1f3106; color: #dfe9c9; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 34px; padding: 54px 0 38px; }
.site-footer img.logo { height: 48px; width: auto; margin-bottom: 16px; }
.kps .site-footer img.logo { border-radius: 6px; }
.site-footer h3 { color: #fff; font-size: 1.08rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer .base { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 20px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; }

/* ---- narrower screens */
@media (max-width: 1020px) {
    .g4, .g5 { grid-template-columns: repeat(3, 1fr); }
    .offer { grid-template-columns: repeat(2, 1fr); }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
        gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; box-shadow: 0 14px 28px rgba(0,0,0,.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a:not(.btn) { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-links a[aria-current="page"] { box-shadow: none; border-radius: 0; }
    .nav-links .btn { margin: 14px 0 0; }
}
@media (max-width: 820px) {
    .hero .shell, .split, .contact-grid, .principal { grid-template-columns: 1fr; }
    .g3, .g4, .g5, .g2 { grid-template-columns: repeat(2, 1fr); }
    .subjects, .reasons { grid-template-columns: 1fr; }
    .hero-photo::before { display: none; }
    .site-footer .cols { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
    .principal figure { max-width: 300px; }
    .split .order-first { order: -1; }
    .map { height: 320px; }
}
@media (max-width: 460px) {
    body { font-size: 16px; }
    .two { grid-template-columns: 1fr; gap: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .brand img { height: 40px; }
    .kps .brand img { height: 44px; }
    .lightbox { padding: 8px; }
    .lb-prev, .lb-next { top: auto; bottom: 14px; }
    .lb-prev { left: calc(50% - 58px); }
    .lb-next { right: calc(50% - 58px); }
    .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .gallery img { transition: none; }
}
