/* ==========================================================
   Cheetham Kids Academy – main stylesheet
   ========================================================== */

:root {
  --navy: #1e3a8a;
  --navy-dark: #172554;
  --blue: #2563eb;
  --sky: #e0f2fe;
  --sun: #fbbf24;
  --sun-dark: #f59e0b;
  --coral: #f97362;
  --green: #10b981;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --ink: #1f2937;
  --muted: #5b6475;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-tint: #f6f8fd;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(30, 58, 138, .08);
  --shadow-lg: 0 20px 45px rgba(30, 58, 138, .14);
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, .h2, .h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--sun); color: var(--navy-dark); }
.btn--accent:hover { background: var(--sun-dark); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--danger { background: #fff; border-color: #dc2626; color: #b91c1c; }
.btn--danger:hover { background: #dc2626; color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.inline { display: inline; }
.stack-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }
.center .stack-row { justify-content: center; }
.stack-sm > * + * { margin-top: 12px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-dark); color: #dbe4ff; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--sun); }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__name { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.brand__sub { font-size: .95rem; font-weight: 700; color: var(--sun-dark); letter-spacing: .02em; }
.brand--light .brand__name { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav ul a:hover { background: var(--sky); color: var(--navy); }
.site-nav ul a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 12px; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; display: block; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; border-radius: 12px; }
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-dark); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.lead-sm { font-size: 1.1rem; color: var(--muted); }
@media (max-width: 700px) { .section { padding: 56px 0; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 85% 20%, #fff4d6 0, transparent 45%), radial-gradient(circle at 10% 90%, var(--sky) 0, transparent 40%), #fff; padding: 64px 0 80px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .hl { color: var(--blue); background: linear-gradient(transparent 62%, rgba(251,191,36,.45) 62%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 700; color: var(--navy); }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--green); }
.hero__art img { width: 100%; max-width: 560px; margin-left: auto; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { max-width: 420px; margin: 0 auto; }
}

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #3048a8 100%); color: #e0e7ff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(251,191,36,.18); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #dbe4ff; max-width: 720px; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero a { color: #fff; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .card-grid, .three-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .three-col { grid-template-columns: 1fr; } }
.service-card { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card p { color: var(--muted); flex: 1; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px; }
.card__icon .icon { width: 28px; height: 28px; }
.card__icon--tuition     { background: #dbeafe; color: var(--blue); }
.card__icon--afterschool { background: #fef3c7; color: #b45309; }
.card__icon--holiday     { background: #ffe4e6; color: #e11d48; }
.card__icon--pickup      { background: #d1fae5; color: #047857; }
.card__icon--it          { background: #ede9fe; color: #6d28d9; }
.card__icon--trips       { background: #fce7f3; color: #be185d; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: .2em; }
.feature-list p { margin: 0; color: var(--muted); }
.feature-list__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.feature-list__icon .icon { width: 24px; height: 24px; }

.steps-card { background: var(--navy); color: #e0e7ff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.steps-card h3 { color: #fff; font-size: 1.5rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 28px; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--navy-dark); font-weight: 800; font-family: var(--font-head); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.steps strong { color: #fff; font-size: 1.05rem; }
.steps span { font-size: .95rem; }
.steps-card .btn--primary { background: var(--sun); color: var(--navy-dark); }
.steps--compact { margin: 12px 0 0; }
.card .steps strong { color: var(--navy-dark); }
.card .steps span { color: var(--muted); }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { border-radius: var(--radius); padding: 36px 20px; text-align: center; font-family: var(--font-head); font-size: 1.45rem; color: #fff; box-shadow: var(--shadow); }
.value--1 { background: linear-gradient(135deg, #f97362, #ec4899); }
.value--2 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: var(--navy-dark); }
.value--3 { background: linear-gradient(135deg, #34d399, #059669); }
.value--4 { background: linear-gradient(135deg, #60a5fa, #2563eb); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: -6px; right: 22px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--sky); }
.testimonial blockquote { margin: 12px 0; font-size: 1.08rem; position: relative; }
.testimonial figcaption { font-weight: 800; color: var(--navy); }
.stars { display: flex; gap: 2px; color: var(--sun-dark); }
.stars .icon { fill: currentColor; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.team-card__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 5px solid var(--sky); }
.team-card__initials { display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: #fff; }
.team-card__initials--0 { background: var(--blue); }
.team-card__initials--1 { background: var(--coral); }
.team-card__initials--2 { background: var(--green); }
.team-card__initials--3 { background: var(--purple); }
.team-card h3 { margin-bottom: .1em; }
.team-card__role { color: var(--sun-dark); font-weight: 800; margin-bottom: .5em; }

/* ---------- Services page ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff !important; text-decoration: none; font-weight: 700; font-size: .95rem; border: 1px solid rgba(255,255,255,.25); }
.chip:hover { background: #fff; color: var(--navy) !important; }
.service-list { display: grid; gap: 28px; }
.service-row { display: grid; grid-template-columns: 120px 1fr; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.service-row--alt { background: var(--bg-tint); }
.service-row__badge { width: 120px; height: 120px; border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.service-row__badge .icon { width: 56px; height: 56px; }
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; padding: 26px; gap: 16px; }
  .service-row__badge { width: 72px; height: 72px; border-radius: 18px; }
  .service-row__badge .icon { width: 36px; height: 36px; }
}
.tick-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--green); margin-top: .25em; }

/* ---------- Fees ---------- */
.price-grid { display: grid; gap: 16px; }
.price-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.price-card h3 { margin-bottom: .2em; }
.price-card__price { font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); font-weight: 800; margin: 0; }
.hours-table { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours-table li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.hours-table li:last-child { border-bottom: 0; }
.hours-table li:nth-child(odd) { background: var(--bg-tint); }
.notice { background: var(--bg-tint); border-left: 5px solid var(--blue); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 20px; }
.notice p:last-child { margin-bottom: 0; }
.notice--success { border-color: var(--green); background: #ecfdf5; }
.promo { background: linear-gradient(135deg, #fff7e0, #ffe8b3); border-radius: var(--radius); padding: 28px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--sky); color: var(--navy); }
.contact-list strong { display: block; color: var(--navy-dark); }
.contact-list div { min-width: 0; overflow-wrap: anywhere; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--bg-tint); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s; overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--blue); color: var(--ink); }
.contact-card .icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 6px; }
.contact-card strong { color: var(--navy-dark); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--bg-tint); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map--small, .map--small iframe { min-height: 240px; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.form-aside { display: grid; gap: 24px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form legend { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 12px; padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #dc2626; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
input[type="file"] { width: 100%; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg-tint); font: inherit; }
[aria-invalid="true"] { border-color: #dc2626 !important; }
.field-error { color: #b91c1c; font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.check:hover { border-color: #bfdbfe; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.check--highlight { margin-top: 12px; background: #fffbeb; border-color: #fde68a; font-weight: 700; }
.check--error { border-color: #dc2626; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 700; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- FAQ ---------- */
.faq-group { margin-top: 40px; font-size: 1.5rem; }
.faq-group:first-child { margin-top: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 800; color: var(--navy-dark); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Thank you ---------- */
.thanks__icon { display: inline-flex; width: 88px; height: 88px; border-radius: 50%; background: #d1fae5; color: #047857; align-items: center; justify-content: center; margin-bottom: 20px; }
.thanks__icon .icon { width: 44px; height: 44px; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #e0e7ff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--navy-dark); color: #c7d2fe; padding: 64px 0 24px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr; gap: 36px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-about { margin-top: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { margin-top: .3em; color: var(--sun); }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.15); padding-bottom: 6px; }
.ofsted-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--sun); color: var(--navy-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-bottom p { margin: 0; }

.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 800; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
.whatsapp-float:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.whatsapp-float .icon { width: 24px; height: 24px; }
@media (max-width: 600px) { .whatsapp-float span { display: none; } .whatsapp-float { padding: 14px; } }

/* ==========================================================
   Admin area
   ========================================================== */
body.admin { background: var(--bg-tint); }
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.admin-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.admin-nav a { color: var(--ink); text-decoration: none; }
.admin-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.auth-card { max-width: 440px; margin: 40px auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); border: 2px solid var(--line); display: grid; }
.stat--active { border-color: var(--blue); }
.stat__label { font-weight: 700; color: var(--muted); }
.stat__value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat__sub { color: var(--sun-dark); font-weight: 700; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar h1 { margin: 0; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filters input, .admin-filters select { width: auto; padding: 9px 12px; }
.admin-filters .btn { padding: .6em 1em; }
.table-wrap { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--bg-tint); font-weight: 800; color: var(--navy-dark); }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--sun); }
@media (max-width: 760px) {
  .admin-table thead { display: none; }
  .admin-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .admin-table td { display: block; border: 0; padding: 6px 16px; }
  .admin-table td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 800; color: var(--muted); }
}
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; vertical-align: middle; font-family: var(--font-body); }
.badge--new { background: #fef3c7; color: #92400e; }
.badge--contacted { background: #dbeafe; color: #1e40af; }
.badge--trial { background: #ede9fe; color: #5b21b6; }
.badge--enrolled { background: #d1fae5; color: #065f46; }
.badge--closed { background: #e5e7eb; color: #374151; }
.admin-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .admin-detail { grid-template-columns: 1fr; } }
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 20px 0; }
.detail-list dt { font-weight: 800; color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .detail-list { grid-template-columns: 1fr; } .detail-list dd { margin-bottom: 8px; } }
.danger-zone { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 600px) {
  .topbar { font-size: .85rem; }
  .topbar__links { gap: 14px; justify-content: center; }
  .topbar__links a[href^="mailto:"] { display: none; }
  .hero { padding: 36px 0 56px; }
  .hero__art { order: 0; }
  .hero__art img { max-width: 300px; }
}

/* ---------- Services grid (8 cards) & problem band ---------- */
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card__icon--gcse  { background: #e0f2fe; color: #0369a1; }
.card__icon--quran { background: #dcfce7; color: #15803d; }
.problem-band { background: var(--sun); padding: 44px 0; }
.problem-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.problem-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.problem-band p { margin: 0; font-size: 1.1rem; color: var(--navy-dark); }
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-list li { background: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 800; color: var(--navy-dark); display: flex; gap: 8px; align-items: flex-start; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.badge-list .icon { color: var(--green); margin-top: .2em; }
@media (max-width: 900px) { .problem-band__inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 420px) { .badge-list { grid-template-columns: 1fr; } }

/* ---------- Photos ---------- */
.hero__photo { position: relative; max-width: 600px; margin-left: auto; }
.hero__photo img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.hero__sticker { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy-dark); font-weight: 800; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .95rem; }
.hero__sticker .icon { color: var(--green); }
.hero__sticker--ofsted { left: -10px; bottom: 14%; }
.hero__sticker--free { right: 0; top: 8%; background: var(--sun); }
.hero__sticker--free .icon { color: var(--navy-dark); }
@media (max-width: 900px) { .hero__photo { margin: 0 auto; } .hero__sticker--ofsted { left: 0; } }
.service-card--photo { padding-top: 0; overflow: hidden; }
.service-card__img { width: calc(100% + 56px); max-width: none; margin: 0 -28px 0; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card--photo .card__icon { margin-top: -28px; position: relative; border: 4px solid #fff; }
.service-row--photo { grid-template-columns: 320px 1fr; }
.service-row__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 700px) { .service-row--photo { grid-template-columns: 1fr; } }
.rounded-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.brand img { border-radius: 50%; }

/* ---------- Photo refinements ---------- */
.hero__photo img { aspect-ratio: 4 / 3; object-position: 40% 30%; border-radius: 32px 120px 32px 120px; }
.cta-band--photo { position: relative; overflow: hidden; padding: 80px 0; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(23,37,84,.94) 0%, rgba(30,58,138,.86) 55%, rgba(37,99,235,.55) 100%); z-index: 1; }
.cta-band--photo .cta-band__inner { position: relative; z-index: 2; }

/* ---------- Landing pages ---------- */
.breadcrumb { font-size: .92rem; margin-bottom: 14px; color: #c7d2fe; position: relative; z-index: 1; }
.breadcrumb a { color: #fff; }
.breadcrumb span[aria-current] { color: var(--sun); font-weight: 700; }
.page-hero .hero__actions { position: relative; z-index: 1; margin-bottom: 0; }
@media (min-width: 1100px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 981px) { .footer-grid { grid-template-columns: 1.2fr 1.1fr .7fr 1.6fr .9fr; gap: 28px; } }
.footer-contact a[href^="mailto:"] { white-space: nowrap; font-size: .92rem; }
.contact-card--wide { grid-column: 1 / -1; }
.contact-card--wide:hover { border-color: transparent; }
.contact-card__emails { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.contact-card__emails a { font-weight: 700; }
