/* Freedom World School -- navy and gold from the school crest. A classic
   look: a dark header with the crest in the middle, full-width photos,
   uppercase serif headings and a light sans-serif body. */
:root {
  --night: #161d33;       /* top bar, header, footer */
  --navy: #24304d;
  --navy-2: #2f3d62;
  --navy-3: #3b4b78;
  --gold: #f2cf72;
  --gold-deep: #9a6f0e;   /* gold for text on light backgrounds */
  --paper: #ffffff;
  --grey: #f3f3f1;
  --ink: #1d2433;
  --muted: #5d6474;
  --line: #e4e2dc;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(22, 29, 51, 0.35);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 2px; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s; font-family: var(--sans); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #f6dc8f; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--night); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.more { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Top bar and header */
.topbar { background: var(--night); color: #c9cfdf; font-size: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a[href^="tel"] { color: var(--gold); }
.header { background: var(--night); position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.5); }
.header__inner { display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; width: 100%; }
.nav__group { display: flex; gap: 36px; }
.nav__group:first-child { justify-content: flex-end; }
.nav a:not(.btn):not(.nav__crest) { color: #fff; text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):not(.nav__crest):hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav__crest img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(242, 207, 114, 0.5); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 1.15rem; }
.brand__text small { color: #b8c0d4; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand--light { color: #fff; }
.nav__login, .header .brand--mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

/* Hero: a full-width campus photo with the school's name over it */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; min-height: calc(100vh - 130px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 50% 22%, rgba(242, 207, 114, 0.22), transparent 55%),
  linear-gradient(160deg, var(--navy-2), var(--night) 70%); }
/* A photo uploaded in CampusDesk (Website page, "hero") replaces the gradient. */
.hero__bg[style*="--hero-img"] { background: linear-gradient(rgba(14, 19, 36, 0.6), rgba(14, 19, 36, 0.72)), var(--hero-img) center / cover; }
.hero__inner { position: relative; text-align: center; padding: 100px 0 120px; }
.hero__kicker { display: block; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 300; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.hero__lead { font-size: clamp(1rem, 1.8vw, 1.25rem); color: #e4e8f2; letter-spacing: 0.04em; margin: 0 auto; max-width: 46em; }
.hero__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px; }
.hero__scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); margin-bottom: 12px; }
.section--navy .eyebrow, .banner .eyebrow { color: var(--gold); }

/* Sections */
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #dde3f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center, .title-center { margin-inline: auto; text-align: center; }
.title-center { margin-bottom: 56px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.intro__inner { max-width: 1000px; margin-inline: auto; text-align: center; }
.intro__inner h2 { margin-bottom: 28px; }
.intro__inner p { color: var(--muted); font-size: 1.08rem; font-weight: 300; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }

/* Photo tiles: a picture, a title and "Read more" */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tile { display: flex; flex-direction: column; background: var(--paper); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tile__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__body { display: block; padding: 22px 22px 26px; }
.tile h3 { text-transform: uppercase; font-weight: 500; font-size: 1.15rem; letter-spacing: 0.03em; margin-bottom: 18px; }
.tile:hover .more { color: var(--gold-deep); }

/* Stats band over the campus photo */
.stats { position: relative; color: #fff; overflow: hidden; background: var(--night); }
.stats__bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(242, 207, 114, 0.18), transparent 60%), linear-gradient(160deg, var(--navy), var(--night)); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 88px 0; }
.stat { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255, 255, 255, 0.25); }
.stat:last-child { border-right: 0; }
.stat svg { margin: 0 auto 14px; color: #fff; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.stat span { color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px; box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; color: var(--navy); margin-bottom: 14px; font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.section--navy .card { background: var(--navy-2); border-color: var(--navy-3); border-top-color: var(--gold); box-shadow: none; }
.section--navy .card p { color: #c9d0e0; }
.section--navy .card__icon { background: rgba(242, 207, 114, 0.15); color: var(--gold); }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stage { background: var(--paper); padding: 28px 24px; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.stage small { color: var(--gold-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.stage h3 { margin-top: 4px; }
.stage p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Photos */
.photo { overflow: hidden; background: #e9e6df; aspect-ratio: 4 / 3; position: relative; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: auto; }

/* Quote */
.quote { margin: 0; background: var(--grey); padding: 48px 44px 40px; position: relative; border-left: 3px solid var(--gold); }
.quote::before { content: '\201C'; font-family: var(--serif); font-size: 6rem; color: var(--gold); position: absolute; top: -18px; left: 28px; line-height: 1; }
.quote p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--navy); line-height: 1.6; }
.quote footer { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }

/* Lists and steps */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding: 6px 0 6px 32px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2324304d' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 48px; max-width: 980px; margin: 0 auto 40px; }
.ticks--grid li { background: var(--paper); padding: 16px 20px 16px 52px; box-shadow: var(--shadow); }
.ticks--grid li::before { left: 20px; top: 20px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--paper); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.96rem; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--gold-deep); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }

/* Enquiry form */
.form { background: var(--paper); padding: 36px; border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-3); outline: none; box-shadow: 0 0 0 3px rgba(59, 75, 120, 0.15); }
.form__hp { position: absolute; left: -5000px; }
.form__note { color: var(--muted); font-size: 0.85rem; }
.form__msg { padding: 14px 16px; margin-top: 12px; display: none; }
.form__msg--ok { display: block; background: #e8f5ec; color: #1d6b3a; }
.form__msg--err { display: block; background: #fdecec; color: #a32020; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--navy); }
.map { border: 0; width: 100%; height: 420px; box-shadow: var(--shadow); }

/* Page banner (inner pages): the campus photo, darkened, with a centred title */
.banner { position: relative; color: #dde3f0; padding: 96px 0 84px; overflow: hidden; text-align: center; background: var(--night); }
.banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(242, 207, 114, 0.2), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--night) 75%); }
.banner .wrap { position: relative; }
.banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.banner p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; font-weight: 300; }
.crumbs { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* App promo */
.app-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.phone-mock { justify-self: center; width: 260px; aspect-ratio: 9 / 18; border-radius: 36px; background: var(--navy-2); border: 10px solid #111827; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.phone-mock div { background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px; color: #e5e9f2; font-size: 0.82rem; line-height: 1.5; }
.phone-mock b { color: var(--gold); display: block; font-size: 0.9rem; }

/* CTA band and footer */
.cta-band { background: var(--gold); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 4px; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--night); }
.cta-band p { margin: 0; color: var(--navy-2); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--gold { background: var(--night); color: #fff; }
.cta-band .btn--ghost { border-color: var(--night); color: var(--night); }
.cta-band .btn--ghost:hover { background: var(--night); color: #fff; }
.footer { background: var(--night); color: #b8c0d4; padding: 64px 0 0; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--gold); font-family: var(--sans); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.footer a { color: #e2e7f2; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer__note { margin-top: 14px; font-size: 0.88rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding: 20px 0; font-size: 0.85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35); z-index: 60; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .hero__scroll::after { animation: none; } }

/* The school's campus photo (a wide strip) and small photos of school moments. */
.photo--campus { aspect-ratio: 4 / 3; }
.photo--campus img { object-position: 100% 50%; }
.photo--panorama { aspect-ratio: auto; }
.photo--panorama img { height: auto; }
.gallery-band { display: flex; flex-direction: column; gap: 28px; }
.gallery-band .photo--campus { aspect-ratio: auto; }
.gallery-band .photo--campus img { height: auto; }
.moments { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.moment { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.moment:nth-child(3) { transform: rotate(1.5deg); }
.moment--tilt { transform: rotate(1deg) translateY(10px); }
.moment img { width: 190px; height: 230px; object-fit: cover; }
.moment figcaption { text-align: center; margin-top: 10px; font-family: var(--serif); color: var(--navy); font-weight: 600; }
.moment.reveal.is-in { opacity: 1; }
.crest-card { margin: 0; justify-self: center; width: min(320px, 80%); }
.crest-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px rgba(242, 207, 114, 0.25), var(--shadow); }
.insta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--paper); padding: 32px; border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.insta h2 { margin-bottom: 6px; }
.insta .lead { margin: 0; }

/* Uploaded photos: a responsive grid (2 columns on phones) and a lightbox. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-grid__item { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #e9e6df; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-grid__item:hover img { transform: scale(1.04); }
.photo-grid__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 0.85rem; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
.photo-grid__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.photo--uploaded { aspect-ratio: auto; }
.photo--uploaded img { height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 28, 0.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #dde3f0; font-size: 0.95rem; text-align: center; }
.lightbox__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; font-size: 2.2rem; width: 48px; height: 64px; cursor: pointer; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

/* Tablet and phone */
@media (max-width: 1080px) {
  .nav__group { gap: 24px; }
  .nav { gap: 28px; }
}
@media (max-width: 980px) {
  .split, .app-promo, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topbar__school { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { justify-content: space-between; padding: 10px 0; }
  .header .brand--mobile { display: flex; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--night); display: none; grid-template-columns: 1fr; gap: 0; padding: 8px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .nav__group { flex-direction: column; gap: 0; }
  .nav__crest { display: none; }
  .nav a:not(.btn):not(.nav__crest) { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav a[aria-current="page"] { color: var(--gold); }
  .nav__login { display: inline-flex; margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__links a[href^="mailto"] { display: none; }
  .topbar__links { gap: 16px; }
  .brand__text strong { font-size: 1rem; }
  .hero { min-height: 78vh; }
  .hero__inner { padding: 72px 0 96px; }
  .hero h1 { font-size: 2.2rem; }
  .hero__kicker { letter-spacing: 0.22em; }
  .section { padding: 64px 0; }
  .title-center { margin-bottom: 36px; }
  .tiles { gap: 14px; }
  .tile__body { padding: 14px 14px 18px; }
  .tile h3 { font-size: 0.95rem; margin-bottom: 10px; }
  .stats__grid { padding: 64px 0; }
  .stat { padding: 0 8px; }
  .stat svg { width: 42px; height: 42px; }
  .ticks--grid { grid-template-columns: 1fr; }
  .steps, .form__row, .footer__grid, .gallery { grid-template-columns: 1fr; }
  .gallery .photo:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .form, .quote { padding: 28px 22px; }
  .map { height: 300px; }
  .moments { gap: 18px; }
  .moment img { width: 150px; height: 182px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lightbox { padding: 48px 8px; }
  .lightbox__nav { width: 40px; height: 52px; font-size: 1.8rem; background: rgba(255, 255, 255, 0.18); }
  .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  .footer__bottom { padding-bottom: 76px; }
  .cta-band__actions .btn { flex: 1; }
  .section__head { margin-bottom: 28px; }
}

/* Group page (the domain's front page): one card per school over a pale
   campus photo, like a group-of-schools landing page. */
.group__main { position: relative; min-height: 100vh; overflow: hidden; background: #f4f3ef; }
.group__bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(242, 207, 114, 0.25), transparent 55%), linear-gradient(180deg, #fbfaf6, #efece3); }
.group__inner { position: relative; padding: 72px 0 80px; }
.group__head { text-align: center; margin-bottom: 56px; }
.group__head h1 { color: var(--navy); font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: 0.04em; margin: 0; }
.group__head p { margin: 4px 0 0; font-family: var(--serif); color: var(--navy-2); text-transform: uppercase; letter-spacing: 0.32em; font-size: clamp(1rem, 2.6vw, 1.9rem); }
.group__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 40px; }
.school-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: rgba(255, 255, 255, 0.92); padding: 36px 32px 34px; border-top: 3px solid var(--gold); box-shadow: var(--shadow); transition: transform 0.25s; }
.school-card:hover { transform: translateY(-4px); }
.school-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px rgba(242, 207, 114, 0.3); margin-bottom: 22px; }
.school-card__estd { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.school-card h2 { font-size: 1.5rem; text-transform: none; letter-spacing: 0; margin-bottom: 10px; }
.school-card__type { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.88rem; color: var(--navy-2); margin-bottom: 10px; }
.school-card__addr { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.school-card__note { color: var(--gold-deep); font-size: 0.9rem; font-weight: 500; flex: 1; margin-bottom: 22px; }
.btn--soon { border-color: var(--line); color: var(--muted); cursor: default; }
@media (max-width: 760px) {
  .group__cards { grid-template-columns: 1fr; gap: 24px; }
  .group__inner { padding: 48px 0 56px; }
  .group__head { margin-bottom: 36px; }
}

/* Shraddha Bal Mandir: deep brown and gold from its crest. */
.theme-sbm {
  --night: #2a2214;
  --navy: #3b2f19;
  --navy-2: #4b3c20;
  --navy-3: #5e4b29;
  --gold: #dcb45c;
  --gold-deep: #8a6618;
  --grey: #f6f2e8;
}
.hero__logo { width: 140px; height: 140px; margin: 0 auto 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(242, 207, 114, 0.35), 0 20px 40px -16px rgba(0, 0, 0, 0.6); }
.theme-sbm .nav__crest img { object-fit: cover; }
@media (max-width: 640px) { .hero__logo { width: 100px; height: 100px; } }
