/* ==========================================================================
   Saka School — site stylesheet (two-theme design system)
   Brand: browns + white (school uniform), black design accents.
   LIGHT is the default theme; DARK (the chocolate look) is applied via
   html[data-theme="dark"]. The header toggle persists the choice in
   localStorage ('saka-theme'). Edit the tokens below to retune everything.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    color-scheme: light;

    /* brand (theme-independent) */
    --brown:      #a97142;
    --brown-2:    #c89b6d;
    --brown-deep: #7b4b24;
    --gold:       #d4a853;
    --gold-deep:  #a87f2f;

    /* LIGHT theme tokens */
    --bg-0:        #ffffff;
    --bg-1:        #faf6f0;
    --bg-2:        #f1e9dd;
    --tint-1:      rgba(169,113,66,.10);
    --tint-2:      rgba(123,75,36,.06);
    --ink:         #241a12;
    --muted:       #5d4f42;
    --muted-2:     #8a7a6a;
    --accent:      #8a5a2b;                 /* readable caramel for text accents */
    --surface:     #ffffff;                 /* cards / boxed items */
    --card:        rgba(36,26,18,.03);
    --card-2:      rgba(36,26,18,.05);
    --line:        rgba(36,26,18,.10);
    --line-2:      rgba(36,26,18,.16);
    --panel:       #ffffff;                 /* dropdowns, mobile menu */
    --frame:       #e9dfd2;                 /* media frames behind images */
    --field-bg:    #f7f2ea;                 /* form inputs */
    --soft:        rgba(169,113,66,.06);    /* .section--soft */
    --header-bg:   rgba(255,255,255,.78);
    --ring:        rgba(36,26,18,.05);
    --swirl-1:     .10;
    --swirl-2:     .06;
    --hover-shadow: 0 18px 44px -20px rgba(36,26,18,.28);
    --big-shadow:  0 40px 90px -24px rgba(36,26,18,.28);

    /* black primary button (light mode design accent) */
    --btn-primary-bg:     #16100b;
    --btn-primary-color:  #ffffff;
    --btn-primary-shadow: 0 10px 30px -10px rgba(22,16,11,.5);

    --radius:      14px;
    --radius-lg:   20px;
    --glow:        0 0 0 1px rgba(169,113,66,.5), 0 14px 44px -10px rgba(169,113,66,.45);
    --container:   1140px;
    --font:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --display:     "Space Grotesk", "Inter", sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg-0:        #14100c;
    --bg-1:        #241a12;
    --bg-2:        #3e2a1a;
    --tint-1:      rgba(169,113,66,.30);
    --tint-2:      rgba(123,75,36,.24);
    --ink:         #ffffff;
    --muted:       #c9bcab;
    --muted-2:     #a6937f;
    --accent:      #c89b6d;
    --surface:     linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    --card:        rgba(255,255,255,.04);
    --card-2:      rgba(255,255,255,.06);
    --line:        rgba(255,255,255,.10);
    --line-2:      rgba(255,255,255,.16);
    --panel:       #241a12;
    --frame:       #1f150d;
    --field-bg:    rgba(255,255,255,.03);
    --soft:        rgba(169,113,66,.04);
    --header-bg:   rgba(26,19,13,.72);
    --ring:        rgba(255,255,255,.03);
    --swirl-1:     .07;
    --swirl-2:     .04;
    --hover-shadow: 0 18px 44px -20px rgba(0,0,0,.6);
    --big-shadow:  0 40px 90px -24px rgba(0,0,0,.65);

    /* brown gradient primary button (dark mode) */
    --btn-primary-bg:     linear-gradient(135deg, #a97142, #7b4b24);
    --btn-primary-color:  #ffffff;
    --btn-primary-shadow: 0 10px 30px -8px rgba(169,113,66,.6);
}

/* ----- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(1100px 600px at 85% -5%, var(--tint-1), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, var(--tint-2), transparent 55%),
        linear-gradient(150deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 130%);
    background-attachment: fixed;
}
/* decorative background art — soft, blurred, translucent */
body::before, body::after {
    content: ""; position: fixed; z-index: 0; pointer-events: none;
    width: 620px; height: 620px;
    background: url("/static/images/site/art-swirl.webp") no-repeat center / contain;
    filter: blur(8px);
}
body::before { top: -130px; right: -170px; opacity: var(--swirl-1); }
body::after  { bottom: -150px; left: -180px; opacity: var(--swirl-2); }
/* keep content above the background art */
.site-header, .hero, .section, .page-hero, .site-footer, .container { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.16; color: var(--ink); margin: 0 0 .5em; font-weight: 700; font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

/* ----- layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-family: var(--display);
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ----- buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; font-family: var(--display);
    letter-spacing: .01em; padding: 15px 26px; border-radius: 12px; border: 1px solid transparent;
    transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-color); box-shadow: var(--btn-primary-shadow); }
.btn--primary:hover { filter: brightness(1.35); transform: translateY(-1px); }
html[data-theme="dark"] .btn--primary:hover { filter: brightness(1.08); }
.btn--navy { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 10px 30px -8px rgba(200,155,80,.55); }
.btn--navy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brown); background: rgba(169,113,66,.08); }
.btn--ghost-light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost-light:hover { border-color: var(--brown); background: rgba(169,113,66,.08); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* ----- header ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 68px; width: auto; }
.nav__brand-text { font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; font-family: var(--display); }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .98rem; white-space: nowrap; }
.nav .btn, .nav__login { white-space: nowrap; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__login { font-weight: 600; color: var(--muted); }
.nav__login:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav__toggle svg { width: 26px; height: 26px; }

/* ----- theme toggle -------------------------------------------------------- */
.theme-toggle {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    background: transparent; border: 1px solid var(--line-2); color: var(--muted);
    display: grid; place-items: center; cursor: pointer; padding: 0;
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brown); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ----- header dropdowns --------------------------------------------------- */
.nav__item { position: relative; }
.nav__sub-toggle {
    display: flex; align-items: center; gap: 7px;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--muted); font-family: var(--font); font-weight: 500; font-size: .98rem;
    white-space: nowrap; transition: color .15s;
}
.nav__sub-toggle:hover, .nav__sub-toggle.is-active, .nav__item.open .nav__sub-toggle { color: var(--ink); }
.nav__sub-toggle svg { width: 13px; height: 13px; transition: transform .2s ease; }
.nav__item.open .nav__sub-toggle svg { transform: rotate(180deg); }
.nav__sub {
    position: absolute; top: calc(100% + 18px); left: -18px; min-width: 200px;
    background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
    padding: 10px; list-style: none; margin: 0; display: none;
    box-shadow: 0 22px 48px -14px rgba(0,0,0,.3);
}
html[data-theme="dark"] .nav__sub { box-shadow: 0 22px 48px -14px rgba(0,0,0,.65); }
.nav__sub::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav__item.open .nav__sub { display: block; }
.nav__sub a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--muted); font-size: .95rem; }
.nav__sub a:hover, .nav__sub a.is-active { background: rgba(169,113,66,.14); color: var(--ink); }
@media (hover: hover) {
    .nav__item:hover .nav__sub { display: block; }
    .nav__item:hover .nav__sub-toggle svg { transform: rotate(180deg); }
    .nav__item:hover .nav__sub-toggle { color: var(--ink); }
}

/* ----- hero -------------------------------------------------------------- */
.hero { padding: 92px 0 100px; }
.hero h1 { color: var(--ink); }
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 560px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display: flex; gap: 40px; margin-top: 44px; }
.hero__stat strong { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1; font-family: var(--display); }
.hero__stat span { color: var(--muted-2); font-size: .9rem; }
.hero__art { display: flex; align-items: center; justify-content: center; }
.hero__art img { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 26px 60px rgba(169,113,66,.35)); }

/* ----- centered hero + media stage --------------------------------------- */
.hero--center { text-align: center; padding: 72px 0 30px; }
.hero--center p { margin-left: auto; margin-right: auto; max-width: 640px; }
.hero--center .hero__cta, .hero--center .hero__stats { justify-content: center; }

.media-stage { position: relative; max-width: 860px; margin: 66px auto 26px; }
.media-stage__main {
    position: relative; border-radius: 26px; overflow: hidden;
    border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: var(--frame);
    box-shadow: var(--big-shadow), 0 0 0 8px var(--ring);
}
.media-stage__main img, .media-stage__main video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* slow Ken Burns drift on the single fixed hero image */
@keyframes kenburns {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-2.2%, -1.6%, 0); }
}
.media-stage__main img { animation: kenburns 38s ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .media-stage__main img { animation: none; } }
.media-stage__side {
    position: absolute; width: 190px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--line-2); background: var(--frame);
    box-shadow: 0 24px 55px -14px rgba(0,0,0,.35);
}
.media-stage__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-stage__side--left  { left: -115px; bottom: -36px; transform: rotate(-5deg); }
.media-stage__side--right { right: -105px; top: -42px;  transform: rotate(4deg); }
.media-stage__brush {
    position: absolute; left: 50%; top: 50%; width: 130%; max-width: none;
    transform: translate(-50%, -50%); z-index: -1; opacity: .3; pointer-events: none;
}
@media (max-width: 1120px) { .media-stage__side, .media-stage__brush { display: none; } }

/* ----- full-bleed hero slideshow ----------------------------------------- */
.hero-hero {
    position: relative; z-index: 1;
    min-height: clamp(540px, 84vh, 840px);
    display: flex; align-items: center;
    overflow: hidden; isolation: isolate;
}
.hero-hero__slides { position: absolute; inset: 0; z-index: 0; background: #14100c; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* slow Ken Burns drift on whichever slide is showing */
@keyframes heroKen {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.6%, -1.2%, 0); }
}
.hero-slide.is-active img { animation: heroKen 22s ease-in-out infinite alternate; will-change: transform; }
/* brown-to-black scrim keeps white text legible over any photo */
.hero-hero__scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(20,12,7,.58) 0%, rgba(20,12,7,.20) 34%, rgba(20,12,7,.50) 74%, rgba(20,12,7,.86) 100%),
        linear-gradient(90deg, rgba(20,12,7,.45) 0%, rgba(20,12,7,.10) 46%, transparent 100%);
}
.hero-hero__inner { position: relative; z-index: 2; text-align: center; padding: 64px 24px; }
.hero-hero__inner .eyebrow--onphoto { color: #ecc790; }
.hero-hero__inner h1 {
    color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.7rem);
    text-shadow: 0 2px 28px rgba(0,0,0,.5); margin-bottom: .35em;
}
.hero-hero__inner p {
    color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 640px; margin: 0 auto;
    text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.hero-hero__inner .hero__cta { justify-content: center; margin-top: 30px; }
.btn--onphoto {
    background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.65);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.btn--onphoto:hover { background: rgba(255,255,255,.22); color: #fff; }
.hero-hero__stats { display: flex; gap: 44px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.hero-hero__stats .hero__stat strong { display: block; font-size: 1.9rem; line-height: 1; color: #fff; font-family: var(--display); }
.hero-hero__stats .hero__stat span { color: rgba(255,255,255,.78); font-size: .9rem; }
.hero-hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; gap: 9px; justify-content: center; }
.hero-hero__dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.42); transition: background .2s ease, width .25s ease, border-radius .25s ease;
}
.hero-hero__dots button:hover { background: rgba(255,255,255,.7); }
.hero-hero__dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }
@media (max-width: 640px) {
    .hero-hero { min-height: 74vh; }
    .hero-hero__stats { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-slide.is-active img { animation: none; }
}

/* ----- figures & lists ----------------------------------------------------- */
.figure { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--frame); }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figcap { font-size: .85rem; color: var(--muted-2); margin-top: 10px; text-align: center; }

.linelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.linelist li {
    padding: 18px 20px; color: var(--muted); line-height: 1.55;
    background: var(--surface);
    border: 1px solid var(--line); border-left: 3px solid var(--brown); border-radius: 12px;
    transition: border-color .18s ease;
}
.linelist li:hover { border-left-color: var(--gold); }
.linelist strong { color: var(--ink); font-family: var(--display); font-weight: 600; display: block; margin-bottom: 3px; }

/* ----- cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px;
    padding: 28px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card::before {
    content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brown), var(--gold));
    margin-bottom: 18px;
}
.card:hover { transform: translateY(-3px); border-color: rgba(169,113,66,.45); box-shadow: var(--hover-shadow); }
.card__icon { color: var(--accent); margin-bottom: 14px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ----- steps ------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 24px 26px 24px 84px;
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 24px; top: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: 1px solid var(--brown); color: var(--accent);
    font-weight: 600; font-size: 1.05rem; font-family: var(--display);
    display: grid; place-items: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ----- pricing (legacy, unused on school pages) --------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
    display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px 30px;
}
.price-card--featured { border-color: transparent; box-shadow: var(--glow); background: rgba(169,113,66,.10); position: relative; }
.price-card--featured .price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brown), var(--brown-deep)); color: #fff; font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
}
.price-card h3 { font-size: 1.25rem; }
.price-card__amount { margin: 14px 0 4px; }
.price-card__amount .num { font-size: 2.4rem; font-weight: 800; color: var(--ink); font-family: var(--display); }
.price-card__amount .from { color: var(--muted-2); font-size: .95rem; }
.price-card__desc { color: var(--muted); font-size: .96rem; min-height: 48px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.price-card li { position: relative; padding-left: 28px; color: var(--muted); font-size: .96rem; }
.price-card li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
    border-radius: 50%; background: rgba(169,113,66,.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.price-card .btn { margin-top: auto; width: 100%; }

/* ----- budget selector (legacy, unused) ----------------------------------- */
.budget {
    margin-top: 56px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 38px;
    max-width: 860px; margin-left: auto; margin-right: auto;
}
.budget h3 { text-align: center; margin-bottom: 6px; }
.budget > p { text-align: center; color: var(--muted); margin-bottom: 26px; }
.budget__ranges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 22px; }
.budget__range { position: relative; }
.budget__range input { position: absolute; opacity: 0; pointer-events: none; }
.budget__range label {
    display: block; cursor: pointer; padding: 12px 20px; border-radius: 30px;
    border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: .95rem;
    transition: all .15s ease; user-select: none;
}
.budget__range input:checked + label { border-color: var(--brown); background: rgba(169,113,66,.14); color: var(--ink); }
.budget__range label:hover { border-color: var(--brown); }
.budget__custom { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: center; }
.budget__field { flex: 1; min-width: 220px; max-width: 320px; }
.budget__field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.budget__input-wrap { position: relative; }
.budget__input-wrap .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.budget__custom input[type="number"] {
    width: 100%; padding: 14px 16px 14px 34px; font-size: 1rem; font-family: var(--font);
    border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--field-bg);
}
.budget__custom input[type="number"]:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(169,113,66,.18); }
.budget__note { text-align: center; color: var(--muted-2); font-size: .88rem; margin: 18px 0 0; }

/* ----- CTA band (stays dark in BOTH themes — black design anchor) ---------- */
.cta-band {
    background: linear-gradient(120deg, #2a1c10, #16100b);
    color: #fff; border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-lg); padding: 56px; text-align: center;
    box-shadow: 0 20px 60px -18px rgba(22,16,11,.5);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn { margin: 0 7px; }
.cta-band .btn--primary { background: #fff; color: var(--brown-deep); box-shadow: none; }
.cta-band .btn--primary:hover { background: #f7f0e6; filter: none; }
.cta-band .btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ----- contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic {
    width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: rgba(169,113,66,.14); color: var(--accent);
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: 13px 15px; font-size: 1rem; font-family: var(--font);
    border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--field-bg);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--muted-2); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(169,113,66,.18); }
.form-row select option { background: var(--panel); }
.form-row textarea { resize: vertical; min-height: 130px; }

/* ----- footer (stays dark in BOTH themes — black design anchor) ------------ */
.site-footer { background: #16100b; border-top: 1px solid rgba(255,255,255,.10); color: #c9bcab; padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; color: #a6937f; max-width: 280px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: #c9bcab; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: .88rem; color: #a6937f;
}
.footer-bottom a { color: #c9bcab; }

/* ----- photo tiles --------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: .16s; background: var(--frame); }
.shot:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
    font-size: 13px; font-weight: 600; color: #fff; font-family: var(--display);
    background: linear-gradient(transparent, rgba(24,17,11,.92));
}

.shots--3 { grid-template-columns: repeat(3, 1fr); }

/* ----- blog ---------------------------------------------------------------- */
.post-card {
    display: flex; flex-direction: column; color: inherit;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(169,113,66,.45); box-shadow: var(--hover-shadow); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--frame); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__date { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.post-card__body h3 { margin: 9px 0 8px; font-size: 1.12rem; color: var(--ink); }
.post-card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.pagination-simple { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 44px; color: var(--muted-2); }

.post-narrow { max-width: 780px; margin: 0 auto; }
.post__meta { color: var(--muted-2); font-size: .92rem; margin: 10px 0 26px; }
.post__cover { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); margin: 0 0 34px; background: var(--frame); }
.post__cover img { width: 100%; display: block; }
.prose { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 30px 0 12px; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 3px solid var(--brown); margin: 22px 0; padding: 6px 0 6px 18px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 8px 12px; }

/* ----- people (leadership page) ------------------------------------------- */
.person { text-align: center; }
.person .figure { aspect-ratio: 3 / 4; max-width: 250px; margin: 0 auto 16px; border-radius: 18px; }
.person h3 { margin-bottom: 3px; font-size: 1.08rem; }
.person p { color: var(--muted-2); font-size: .92rem; margin: 0; }

/* ----- homepage package teaser (legacy) ----------------------------------- */
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.pkg-price { font-size: 1.7rem; font-weight: 700; font-family: var(--display); margin: 6px 0 4px; }
.pkg-price small { font-size: .85rem; color: var(--muted-2); font-weight: 600; }
.pkg-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .93rem; }
.pkg-link:hover { color: var(--ink); }

/* ----- M-Pesa / payments badge (legacy) ------------------------------------ */
.mpesa-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,168,83,.10); border: 1px solid rgba(212,168,83,.35);
    color: var(--accent); font-size: .9rem; font-weight: 600;
    padding: 9px 16px; border-radius: 999px;
}
.mpesa-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(212,168,83,.8); }

/* ----- FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; }
.faq details[open] { border-color: rgba(169,113,66,.35); }
.faq summary {
    cursor: pointer; font-weight: 600; padding: 16px 20px; font-family: var(--display);
    font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 20px 16px; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* ----- portfolio (legacy) --------------------------------------------------- */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.pf-chip {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
    color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; font-family: var(--display); transition: .15s;
}
.pf-chip:hover { color: var(--ink); border-color: var(--brown); }
.pf-chip.on { background: linear-gradient(135deg, var(--brown), var(--brown-deep)); border-color: transparent; color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pf-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: .16s; cursor: pointer;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.pf-card .im { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pf-card .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pf-card:hover .im img { transform: scale(1.045); }
.pf-card .bd { padding: 20px 22px 22px; }
.pf-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pf-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.pf-tag {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: rgba(169,113,66,.12); border: 1px solid rgba(169,113,66,.3);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.pf-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(16,11,7,.88); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 28px; }
.pf-lightbox.on { display: flex; }
.pf-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.pf-lightbox .x { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.pf-lightbox .x:hover { border-color: var(--brown); background: rgba(169,113,66,.2); }

/* ----- page hero (sub-pages) -------------------------------------------- */
.page-hero { padding: 78px 0 68px; text-align: center; }
.page-hero h1 { color: var(--ink); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.12rem; }

/* ----- responsive -------------------------------------------------------- */
@media (max-width: 920px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__art { order: -1; }
    .grid--3, .pricing { grid-template-columns: 1fr 1fr; }
    .grid--4, .shots { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
    .section { padding: 60px 0; }
    .nav__links, .nav__login { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav { height: 84px; }
    .nav__brand img { height: 52px; }
    .nav__links.is-open {
        display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute;
        top: 84px; left: 0; right: 0; background: var(--panel); padding: 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -18px rgba(0,0,0,.3);
    }
    /* dropdowns become inline groups inside the mobile panel */
    .nav__sub {
        position: static; display: none; min-width: 0; background: transparent;
        border: 0; box-shadow: none; padding: 10px 0 0 16px;
    }
    .nav__sub::before { display: none; }
    .nav__item.open .nav__sub { display: block; }
    .grid--3, .grid--2, .grid--4, .pricing, .footer-grid, .shots, .pf-grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 28px; }
    .cta-band { padding: 40px 24px; }
    .cta-band .btn { display: flex; margin: 10px 0 0; }
}

/* ===== parent portal (/parent) ===== */
.parent-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line, rgba(0,0,0,.1));
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.parent-flash {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}
.parent-flash--error { background: rgba(179,38,30,.12); color: #b3261e; border: 1px solid rgba(179,38,30,.3); }
.parent-flash--ok { background: rgba(46,125,50,.12); color: #2e7d32; border: 1px solid rgba(46,125,50,.3); }
html[data-theme="dark"] .parent-flash--error { color: #ffb4ab; }
html[data-theme="dark"] .parent-flash--ok { color: #9ae6a0; }
.parent-label { display: block; font-size: .85em; font-weight: 600; margin: 12px 0 4px; }
.parent-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line, rgba(0,0,0,.18));
    border-radius: 8px;
    background: var(--bg, #fff);
    color: inherit;
    font: inherit;
}
.parent-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; opacity: .6; font-size: .85em;
}
.parent-divider::before, .parent-divider::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .35; }
.parent-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.parent-table th { text-align: left; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; opacity: .65; padding: 6px 8px; }
.parent-table td { padding: 10px 8px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); vertical-align: middle; }
/* fee balance — only rendered when the school switches it on */
.parent-fees {
    border-radius: 10px; padding: 12px 14px; margin: 0 0 16px;
    border-left: 4px solid #a97142; background: rgba(169, 113, 66, .08);
}
.parent-fees--owing { border-left-color: #b3452f; background: rgba(179, 69, 47, .08); }
.parent-fees--clear, .parent-fees--credit { border-left-color: #3c8a5a; background: rgba(60, 138, 90, .08); }
.parent-fees__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.parent-fees__label { font-size: .82em; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.parent-fees__amount { font-size: 1.35em; font-weight: 700; }
.parent-fees--owing .parent-fees__amount { color: #b3452f; }
.parent-fees--clear .parent-fees__amount, .parent-fees--credit .parent-fees__amount { color: #2f7a4d; }
.parent-fees__detail { font-size: .85em; opacity: .75; margin-top: 2px; }
.parent-fees__note { font-size: .78em; opacity: .6; margin-top: 6px; }
html[data-theme="dark"] .parent-fees { background: rgba(169, 113, 66, .16); }
html[data-theme="dark"] .parent-fees--owing { background: rgba(179, 69, 47, .18); }
html[data-theme="dark"] .parent-fees--clear,
html[data-theme="dark"] .parent-fees--credit { background: rgba(60, 138, 90, .18); }
html[data-theme="dark"] .parent-fees--owing .parent-fees__amount { color: #f0947f; }
html[data-theme="dark"] .parent-fees--clear .parent-fees__amount,
html[data-theme="dark"] .parent-fees--credit .parent-fees__amount { color: #8fd6ac; }

.parent-trend { display: flex; align-items: flex-end; gap: 14px; height: 120px; margin: 10px 0 2px; }
.parent-trend__bar { position: relative; width: 44px; height: 100px; background: var(--line, rgba(0,0,0,.07)); border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; }
.parent-trend__fill { width: 100%; background: #a97142; border-radius: 6px 6px 0 0; }
.parent-trend__val { position: absolute; top: -20px; width: 100%; text-align: center; font-size: .75em; font-weight: 700; }
.parent-trend__lbl { position: absolute; bottom: -20px; width: 100%; text-align: center; font-size: .68em; opacity: .7; white-space: nowrap; }
