/* =========================================================
   Carmel Girls Secondary School — Main Stylesheet
   ========================================================= */
:root {
  --maroon: #6b1d2a;
  --maroon-dark: #4a121c;
  --maroon-soft: #8a2f3e;
  --gold: #c9a24a;
  --gold-light: #e8d39c;
  --cream: #faf6ef;
  --sand: #f1e9db;
  --ink: #1f1a17;
  --muted: #5e5650;
  --line: #e4dccf;
  --white: #ffffff;
  --green: #2f6b4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 18, 22, 0.08);
  --shadow-lg: 0 20px 50px rgba(43, 18, 22, 0.16);
  --container: 1180px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--maroon-soft); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--maroon-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 90px 0; }
.section--sand { background: var(--sand); }
.section--maroon { background: var(--maroon-dark); color: #f4ece6; }
.section--maroon h2, .section--maroon h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .8rem;
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--maroon .section-head p { color: #e2d3cf; }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); color: var(--ink); }
.btn--maroon { background: var(--maroon); color: var(--white); }
.btn--maroon:hover { background: var(--maroon-soft); color: var(--white); }
.btn--outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--maroon-dark); }
.btn--ghost { border-color: var(--maroon); color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: var(--white); }

/* Top bar */
.topbar { background: var(--maroon-dark); color: #e9dcd6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #e9dcd6; }
.topbar a:hover { color: var(--gold-light); }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }

/* Header / nav */
.header { position: sticky; top: 0; z-index: 100; background: rgba(250,246,239,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--maroon-dark); }
.brand__crest { width: 52px; height: 52px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 10px; color: var(--ink); font-weight: 500; font-size: .9rem; white-space: nowrap; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--maroon); background: var(--sand); }
.nav .btn { margin-left: 8px; padding: 10px 20px; color: var(--white); background: var(--maroon); }
.nav .btn:hover { background: var(--maroon-soft); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--maroon-dark); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: var(--white); overflow: hidden; background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #93404a 100%); }
.hero__inner { position: relative; z-index: 2; padding: 110px 0 190px; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p { font-size: 1.18rem; color: #f0e3df; max-width: 620px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__mountain { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; width: 100%; height: auto; }
.hero__sun { position: absolute; right: 12%; top: 18%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232,211,156,.55), rgba(232,211,156,0) 70%); z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 16px; border-radius: 999px; font-size: .85rem; margin-bottom: 22px; }

/* Page banner (inner pages) */
.page-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); color: var(--white); padding: 80px 0 120px; }
.page-banner h1 { color: var(--white); margin-bottom: .3em; }
.page-banner p { color: #f0e3df; max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-banner .hero__mountain { opacity: .9; }
.page-banner .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .88rem; color: var(--gold-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); }

/* Stats strip */
.stats { margin-top: -70px; position: relative; z-index: 5; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sand); color: var(--maroon); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 28px; height: 28px; }
.section--maroon .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section--maroon .card p { color: #e2d3cf; }
.section--maroon .card__icon { background: rgba(201,162,74,.18); color: var(--gold-light); }

/* Image placeholders (replace with real photos) */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(140deg, var(--maroon-soft), var(--maroon-dark)); display: grid; place-items: center; color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo__label { position: relative; z-index: 1; text-align: center; font-size: .9rem; padding: 20px; }
.photo__label svg { width: 46px; height: 46px; margin: 0 auto 8px; opacity: .8; }
.photo::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.photo--gold { background: linear-gradient(140deg, #d8b65f, #9c7a2b); }
.photo--green { background: linear-gradient(140deg, #3f8565, #1f4a37); }
.photo--tall { aspect-ratio: 3/4; }
.photo--wide { aspect-ratio: 16/9; }
.photo-stack { position: relative; }
.photo-stack .photo--small { position: absolute; width: 48%; right: -24px; bottom: -40px; border: 6px solid var(--cream); aspect-ratio: 1; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--maroon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Quote / head message */
.message { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.message blockquote { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.5; color: var(--maroon-dark); font-style: italic; position: relative; }
.message blockquote::before { content: "\201C"; font-size: 6rem; color: var(--gold); position: absolute; left: -10px; top: -60px; opacity: .5; }
.signature { margin-top: 22px; font-family: var(--font-body); font-style: normal; font-size: 1rem; }
.signature strong { display: block; color: var(--maroon); }
.signature span { color: var(--muted); font-size: .9rem; }

/* News */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 16/10; }
.news-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.news-card__meta { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: .96rem; }
.news-card .more { margin-top: auto; font-weight: 600; }

/* Events */
.event { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event__date { flex: none; width: 74px; text-align: center; background: var(--maroon); color: var(--white); border-radius: 12px; padding: 10px 6px; }
.event__date strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.event__date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.event h4 { margin: 0 0 4px; font-size: 1.1rem; }
.event p { margin: 0; color: var(--muted); font-size: .94rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--maroon), var(--maroon-dark)); color: var(--white); border-radius: 22px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(201,162,74,.15); }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: #f0e3df; margin: 0; max-width: 560px; }
.cta > * { position: relative; z-index: 1; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--maroon); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fcfaf6; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab-btn { padding: 12px 24px; border-radius: 999px; border: 2px solid var(--maroon); background: transparent; color: var(--maroon); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem; }
.tab-btn.active, .tab-btn:hover { background: var(--maroon); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Combination chips */
.combo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.combo__code { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--white); background: var(--maroon); padding: 4px 16px; border-radius: 10px; margin-bottom: 12px; }
.combo p { margin: 0; color: var(--muted); font-size: .95rem; }
.combo strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 34px 26px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -20px; left: 26px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem; }
.step h3 { margin-top: 10px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Accordion (FAQ) */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 20px 56px 20px 24px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--maroon); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Gallery */
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery__item { cursor: zoom-in; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; }
.gallery__item .photo { aspect-ratio: 1; transition: transform .3s; }
.gallery__item:hover .photo { transform: scale(1.02); }
.gallery__item.hidden { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(20,8,10,.92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox__content { width: min(900px, 100%); }
.lightbox__content .photo { aspect-ratio: 16/10; }
.lightbox__caption { color: var(--white); text-align: center; margin-top: 14px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(107,29,42,.1); }
.form textarea { min-height: 140px; resize: vertical; }
.form .error { color: #b3261e; font-size: .82rem; margin-top: 4px; display: none; }
.form .invalid input, .form .invalid select, .form .invalid textarea { border-color: #b3261e; }
.form .invalid .error { display: block; }
.form-success { display: none; background: #e6f2ec; color: var(--green); border: 1px solid #b9dccb; padding: 16px 20px; border-radius: 10px; margin-top: 16px; font-weight: 500; }
.form-success.show { display: block; }

/* Contact */
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-item .card__icon { margin: 0; flex: none; width: 48px; height: 48px; }
.contact-item h4 { margin: 0 0 2px; font-size: 1.05rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Values ribbon */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.value-pill { background: var(--white); border: 1px solid var(--line); padding: 12px 24px; border-radius: 999px; font-weight: 600; color: var(--maroon-dark); box-shadow: var(--shadow); }

/* Timeline */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 36px; border-left: 3px solid var(--gold); }
.timeline__item { position: relative; margin-bottom: 36px; }
.timeline__item::before { content: ""; position: absolute; left: -46px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--maroon); border: 3px solid var(--cream); box-shadow: 0 0 0 3px var(--gold); }
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--maroon); font-size: 1.3rem; }
.timeline__item p { color: var(--muted); margin: 0; }

/* Staff */
.staff { text-align: center; }
.staff .photo { aspect-ratio: 1; border-radius: 50%; width: 150px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.staff h3 { margin-bottom: 2px; font-size: 1.1rem; }
.staff span { color: var(--muted); font-size: .9rem; }

/* Notice */
.notice { background: #fff8e6; border: 1px solid var(--gold-light); border-left: 5px solid var(--gold); border-radius: 10px; padding: 18px 22px; color: #5b4a1d; font-size: .95rem; }

/* Footer */
.footer { background: #2a0d13; color: #cdbdb8; padding-top: 80px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #cdbdb8; }
.footer a:hover { color: var(--gold-light); }
.footer .brand { color: var(--white); margin-bottom: 18px; }
.footer .brand__sub { color: #a8948e; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }
.newsletter { display: flex; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; border-radius: 8px 0 0 8px; font: inherit; }
.newsletter button { border: 0; background: var(--gold); padding: 0 18px; border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer; font-family: inherit; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--maroon); color: var(--white); border: 0; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90; display: grid; place-items: center; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-open .nav { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split, .message { grid-template-columns: 1fr; gap: 40px; }
  .message .photo { max-width: 280px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .photo-stack .photo--small { right: 0; bottom: -24px; width: 40%; }
  .photo--tall { aspect-ratio: 4/3; }
  .cta { padding: 40px 28px; }
  .hero__inner { padding: 80px 0 150px; }
  .topbar__hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid--4, .steps, .footer__grid, .form { grid-template-columns: 1fr; }
  .stat__num { font-size: 2rem; }
  .brand__name { font-size: 1.02rem; }
  .brand__crest { width: 44px; height: 44px; }
  .topbar .container { justify-content: center; }
  .topbar__social { display: none; }
}

/* ---------- Added: results, contact people, boxed map ---------- */
.form-success.form-error { background: #fdecea; color: #8c1d18; border-color: #f2b8b5; }
.form button[disabled] { opacity: .7; cursor: wait; transform: none; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.result-card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.result-card h3 { margin: 0; }
.result-card__big { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.result-card p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.result-card .btn { margin-top: auto; align-self: flex-start; padding: 11px 20px; font-size: .9rem; }
.result-card--pending { border-style: dashed; background: #fffdf8; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--maroon); }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow); }
.person .photo { width: 96px; flex: none; aspect-ratio: 1; border-radius: 50%; box-shadow: none; }
.person .photo__label { font-size: .7rem; padding: 6px; }
.person h4 { margin: 0; font-size: 1.05rem; }
.person__role { display: block; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.person p { margin: 0; font-size: .9rem; color: var(--muted); }
.person a { word-break: break-all; }

.map-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.map-box iframe { width: 100%; height: 300px; border: 0; border-radius: 10px; display: block; }
.map-box__caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 8px 4px; font-size: .9rem; color: var(--muted); }

.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 22px; }
.teachers .staff .photo { width: 130px; }
.teachers .staff h3 { font-size: 1rem; }
.teachers .staff .subject { display: inline-block; margin-top: 6px; }

@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.results-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } }

/* ---------- Real photos ---------- */
.photo:has(img)::after { display: none; }
.photo img { object-fit: cover; }
.gallery__item .photo img { transition: transform .4s; }
.gallery__item:hover .photo img { transform: scale(1.04); }
.lightbox__content .photo { aspect-ratio: auto; max-height: 82vh; background: #000; }
.lightbox__content .photo img { position: static; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
