/* =====================================================================
   Public website — light, calm, school-friendly
   ===================================================================== */
:root {
  --navy: #1e3a8a;
  --blue: #2563eb;
  --blue-soft: #e8f0fe;
  --ink: #1f2937;
  --muted: #64708a;
  --line: #e6ebf3;
  --bg: #f7f9fc;
  --mint: #e7f7ef;  --mint-ink: #127a4a;
  --peach: #fff1e6; --peach-ink: #b4541a;
  --lav: #eef0ff;   --lav-ink: #4338ca;
  --sky: #e8f4fd;   --sky-ink: #0b6aa2;
  --rose: #fdecef;  --rose-ink: #b42343;
  --amber: #fff7e0; --amber-ink: #946200;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6rem; color: #172554; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.35rem; border-radius: 12px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { background: var(--bg); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; position: relative; }
.site-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 700; flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.site-nav { display: flex; gap: .3rem; align-items: center; }
.site-nav a { padding: .5rem .9rem; border-radius: 10px; text-decoration: none; color: #334155; font-weight: 500; }
.site-nav a:hover { background: var(--bg); color: var(--navy); }
.site-nav a.active { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.section-head .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); }

.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow); }
.hero-card .pill-list { display: grid; gap: .75rem; }
.pill { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; }
.pill strong { display: block; }
.pill small { color: var(--muted); }
.pill .dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; background: rgba(255, 255, 255, .7); }
.tone-mint { background: var(--mint); } .tone-mint .dot { color: var(--mint-ink); }
.tone-peach { background: var(--peach); } .tone-peach .dot { color: var(--peach-ink); }
.tone-lav { background: var(--lav); } .tone-lav .dot { color: var(--lav-ink); }
.tone-sky { background: var(--sky); } .tone-sky .dot { color: var(--sky-ink); }
.tone-rose { background: var(--rose); } .tone-rose .dot { color: var(--rose-ink); }
.tone-amber { background: var(--amber); } .tone-amber .dot { color: var(--amber-ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1rem; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stats-band .item { text-align: center; padding: 1.25rem; border-radius: var(--radius); }
.stats-band .num { font-size: 1.9rem; font-weight: 800; color: #172554; }
.stats-band .lbl { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.soft-panel { background: var(--bg); border-radius: 22px; padding: 2rem; border: 1px solid var(--line); }
.quote { font-size: 1.08rem; color: #334155; border-left: 4px solid var(--blue); padding-left: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-size: .8rem; display: grid; place-items: center; font-weight: 700; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; border: 1px solid var(--line); cursor: zoom-in; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; color: #fff; font-size: .88rem; background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .65)); text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }
.chips a { padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #334155; text-decoration: none; font-size: .92rem; }
.chips a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, .88); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #e2e8f0; margin-top: .75rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; background: var(--bg); border-radius: var(--radius); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.info-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: 14px; margin-bottom: .9rem; }
.info-card svg { width: 22px; height: 22px; margin-top: .15rem; flex-shrink: 0; }
.info-card strong { display: block; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card .field { margin-bottom: 1rem; }
.form-card input, .form-card textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #d5dcea; border-radius: 12px; font: inherit; }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid rgba(37, 99, 235, .2); border-color: var(--blue); }
.form-card textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: 16px; margin-top: 2rem; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: var(--mint); color: var(--mint-ink); }
.alert-error { background: var(--rose); color: var(--rose-ink); }
.alert-info { background: var(--sky); color: var(--sky-ink); }

.page-hero { padding: 3rem 0 2.25rem; background: linear-gradient(180deg, #f2f6ff, #fff); text-align: center; }
.page-hero h1 { font-size: 2.2rem; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Footer */
.site-footer { background: #0f1e4a; color: #cbd5f5; padding: 3rem 0 1.25rem; margin-top: 0; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer h3 { font-size: 1.1rem; }
.site-footer h4 { font-size: .95rem; margin-bottom: .75rem; }
.site-footer p { margin: 0 0 .4rem; font-size: .92rem; }
.site-footer a { color: #cbd5f5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #94a3d8; text-align: center; }

/* Error page */
.error-page { background: var(--bg); min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.error-box { text-align: center; background: #fff; padding: 2.5rem 2rem; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 440px; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: .5rem; }
.error-box p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-card .row { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.75rem; }
}

/* Home page banner (Admin → Settings → Home page banner) */
.home-banner { padding: 1.5rem 0 0; background: #f2f6ff; }
.home-banner-inner { position: relative; border-radius: 20px; overflow: hidden; min-height: 140px; display: flex; align-items: center;
  background: linear-gradient(120deg, #1c3486 0%, #2563eb 100%); background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(28, 52, 134, .15); }
.home-banner.has-image .home-banner-inner { aspect-ratio: 16 / 5; min-height: 220px; }
.home-banner-text { position: relative; z-index: 1; padding: 2rem 2.5rem; max-width: 640px; color: #fff; }
.home-banner.has-image .home-banner-text { background: linear-gradient(90deg, rgba(10, 20, 60, .72) 0%, rgba(10, 20, 60, .35) 75%, rgba(10, 20, 60, 0) 100%); align-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: 70%; }
.home-banner-text h2 { color: #fff; margin: 0 0 .4rem; font-size: 2rem; line-height: 1.2; }
.home-banner-text p { margin: 0 0 1rem; font-size: 1.1rem; color: #e6ecff; }
.home-banner-text .btn { align-self: flex-start; background: #fff; color: #1c3486; border-color: #fff; }
.home-banner + .hero { padding-top: 2.5rem; }
@media (max-width: 760px) {
  .home-banner.has-image .home-banner-inner { aspect-ratio: auto; min-height: 200px; }
  .home-banner-text, .home-banner.has-image .home-banner-text { padding: 1.4rem; max-width: 100%; }
  .home-banner-text h2 { font-size: 1.4rem; }
  .home-banner-text p { font-size: .98rem; }
}
