/* ==========================================================================
   École Malaïka St Dominic Savio — site styles
   Colours are taken from the school crest: royal blue, gold, sunrise orange.
   Type: Lora (headings) + Poppins (text), both self-hosted in /fonts.
   ========================================================================== */

@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-var.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-italic-var.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #141B4D;
  --navy-2: #1E2866;
  --blue: #34449B;
  --blue-50: #EEF0FA;
  --blue-100: #DCE1F4;
  --gold: #F2A900;
  --gold-2: #FFBE2E;
  --gold-50: #FFF5DA;
  --gold-ink: #8A5300;
  --orange: #E8842A;
  --wa: #25D366;

  --cream: #FFFAF2;
  --sand: #F8EFDF;
  --white: #FFFFFF;

  --ink: #1B1E3A;
  --ink-2: #41465F;
  --muted: #5F6480;
  --line: #EADFCB;
  --line-2: #E3E6F2;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);

  --r-xl: 32px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 24px 48px -24px rgba(20, 27, 77, .30);
  --shadow-sm: 0 10px 26px -14px rgba(20, 27, 77, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--cream); color: var(--ink-2);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 26px; }

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
.h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); letter-spacing: -.012em; }
.h1 { font-size: clamp(36px, 5.1vw, 68px); line-height: 1.08; text-wrap: balance; }
.h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.14; text-wrap: balance; }
.h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; }
.h4 { font-size: 19px; line-height: 1.35; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; color: var(--ink-2); }
.small { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.center { text-align: center; }
.measure { max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); flex: none; }
.eyebrow--light { color: var(--gold-2); }

.hl {
  color: var(--blue);
  background-image: linear-gradient(transparent 70%, rgba(242, 169, 0, .42) 70%, rgba(242, 169, 0, .42) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 480px) { .hl { white-space: nowrap; } }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > * + * { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-size: 15.5px; font-weight: 500; line-height: 1.25; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 22px -12px rgba(242, 169, 0, .9); }
.btn--gold:hover { background: var(--gold-2); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--gold); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--wa { background: var(--wa); color: #0B2E17; }
.btn--wa:hover { background: #3BE07A; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--blue); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Top bar + header
   -------------------------------------------------------------------------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .88); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__info { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
a.topbar__item:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang button {
  border: 0; background: transparent; padding: 4px 8px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: inherit; opacity: .7;
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; background: rgba(255, 255, 255, .14); }
.lang__sep { opacity: .4; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -22px rgba(20, 27, 77, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: auto; }
.brand__name { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--navy); white-space: nowrap; }
.brand__sub { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue); }
.nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { min-height: 46px; padding: 10px 22px; font-size: 15px; }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line-2); background: #fff; color: var(--navy);
  align-items: center; justify-content: center;
}
.burger svg { width: 24px; height: 24px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--navy); color: #fff;
  padding: 110px var(--gutter) 36px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(26px, 7vw, 34px); font-weight: 600; line-height: 1.2;
  color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold-2); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 12px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu .lang { justify-content: center; margin-top: 6px; font-size: 14px; }
.mobile-menu .lang button { font-size: 14px; padding: 8px 14px; }
body.menu-open { overflow: hidden; }
body.menu-open .wa-float { display: none; }

/* --------------------------------------------------------------------------
   7. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(110px, 11vw, 150px);
  background:
    radial-gradient(900px 520px at 88% 8%, var(--gold-50) 0%, rgba(255, 245, 218, 0) 70%),
    radial-gradient(700px 480px at 0% 100%, var(--blue-50) 0%, rgba(238, 240, 250, 0) 70%),
    var(--cream);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 84px); align-items: center; }
.hero__copy > * + * { margin-top: 24px; }
.hero__copy .lead { max-width: 34em; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px 6px 6px; box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--navy);
}
.chip__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; flex: none; }
.chip__icon img { width: 18px; }

.hero__visual { position: relative; width: 100%; max-width: 500px; margin-left: auto; }
.hero__visual::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0;
  border: 2px solid var(--gold); border-radius: 260px 260px 28px 28px;
}
.arch {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 260px 260px 28px 28px; box-shadow: var(--shadow);
  background: var(--blue-100); aspect-ratio: 7 / 8;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__sun { position: absolute; z-index: 2; top: -34px; right: -26px; width: 128px; height: auto; pointer-events: none; }
.hero__badge {
  position: absolute; z-index: 3; left: -34px; bottom: 44px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 20px; padding: 14px 20px 14px 14px; box-shadow: var(--shadow);
  max-width: 290px;
}
.hero__badge img { width: 46px; flex: none; }
.hero__badge strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--navy); }
.hero__badge span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 3px; }

/* Facts card that overlaps the bottom of the hero */
.facts { position: relative; z-index: 5; margin-top: calc(-1 * clamp(62px, 7vw, 92px)); }
.facts__card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.fact { display: flex; align-items: flex-start; gap: 14px; padding: 26px 26px; }
.fact + .fact { border-left: 1px solid var(--line-2); }
.fact__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.fact__icon svg { width: 22px; height: 22px; }
.fact:nth-child(2) .fact__icon, .fact:nth-child(4) .fact__icon { background: var(--gold-50); color: var(--gold-ink); }
.fact__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 17.5px; line-height: 1.3; color: var(--navy); }
.fact__text { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------------------
   8. Media frames
   -------------------------------------------------------------------------- */
.frame { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--blue-100); box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-54 { aspect-ratio: 5 / 4; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-11 { aspect-ratio: 1 / 1; }

.with-inset { position: relative; }
.inset-portrait {
  position: absolute; right: -18px; bottom: -28px; z-index: 2;
  width: clamp(110px, 12vw, 150px); border-radius: 18px; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--shadow); background: #fff;
}
.inset-portrait img { width: 100%; aspect-ratio: 250 / 330; object-fit: cover; }

.caption { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.caption::before { content: ""; width: 14px; height: 2px; background: var(--gold); flex: none; transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body .link-arrow { margin-top: auto; align-self: flex-start; }

.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--blue-50); color: var(--blue);
}
.tag--gold { background: var(--gold-50); color: var(--gold-ink); }

.panel { background: #fff; border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.panel--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.panel--blue .h3 { color: #fff; }
.panel--blue p { color: rgba(255, 255, 255, .9); }
.panel--gold { background: var(--gold-50); border-color: #F6E3B0; }
.panel__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 255, 255, .16); color: #fff; }
.panel--gold .panel__icon, .panel .panel__icon--blue { background: var(--blue-50); color: var(--blue); }
.panel__icon svg { width: 26px; height: 26px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); font-weight: 500; color: var(--navy); font-size: 15px;
}
.pill svg { width: 16px; height: 16px; color: var(--gold-ink); }

/* Check list */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }

/* --------------------------------------------------------------------------
   10. School-life mosaic (home)
   -------------------------------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 21vw, 280px)); gap: clamp(12px, 1.6vw, 18px); }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-100); }
.mosaic__item:first-child { grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content;
  background: rgba(255, 255, 255, .95); color: var(--navy); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; font-weight: 500; line-height: 1.35;
}

/* --------------------------------------------------------------------------
   11. Motto band
   -------------------------------------------------------------------------- */
.motto-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.motto-band__rays { position: absolute; right: -120px; top: 50%; width: 560px; transform: translateY(-50%); opacity: .12; pointer-events: none; }
.motto-band__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.motto-band__crest { width: clamp(110px, 13vw, 170px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.motto-band__quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.15; color: #fff; }
.motto-band__meaning { margin-top: 14px; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255, 255, 255, .86); }
.motto-band__meaning strong { color: var(--gold-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   12. Visit / contact
   -------------------------------------------------------------------------- */
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
a.contact-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.contact-item__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue); }
.contact-item__icon--wa { background: #E3F9EB; color: #128C4A; }
.contact-item__icon--gold { background: var(--gold-50); color: var(--gold-ink); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item__value { display: block; font-weight: 500; color: var(--navy); font-size: 16.5px; line-height: 1.45; }

.map {
  position: relative; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--blue-50); border: 6px solid #fff;
}
.map--wide { aspect-ratio: 21 / 9; }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--navy); padding: 20px; }
.map__fallback svg { width: 36px; height: 36px; margin: 0 auto; color: var(--blue); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   13. Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(760px 420px at 100% 0%, var(--gold-50) 0%, rgba(255, 245, 218, 0) 70%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--cream) 100%);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.page-hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; text-align: center; }
.page-hero__grid--single .eyebrow, .page-hero__grid--single .crumbs { justify-content: center; }
.page-hero__copy > * + * { margin-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }
.page-hero .frame { border-radius: 200px 200px var(--r-xl) var(--r-xl); }

/* --------------------------------------------------------------------------
   14. Saint + crest (About)
   -------------------------------------------------------------------------- */
.dark-section { background: var(--navy); color: rgba(255, 255, 255, .9); }
.dark-section .h2, .dark-section .h3 { color: #fff; }
.dark-section .lead { color: rgba(255, 255, 255, .88); }
.saint-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.saint-frame { position: relative; max-width: 260px; margin-inline: auto; }
.saint-frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--gold); border-radius: 200px 200px 24px 24px; }
.saint-frame img { position: relative; width: 100%; aspect-ratio: 250 / 330; object-fit: cover; border-radius: 200px 200px 24px 24px; }
.timeline { display: grid; gap: 0; border-left: 2px solid rgba(255, 255, 255, .18); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); }
.timeline strong { display: block; color: var(--gold-2); font-weight: 500; font-size: 14px; letter-spacing: .04em; }
.timeline span { display: block; color: #fff; font-size: 16px; line-height: 1.5; }

.crest-figure { display: grid; place-items: center; padding: clamp(28px, 4vw, 48px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.crest-figure img { width: min(260px, 70%); }

/* P1–P6 steps */
.steps6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.steps6 li { text-align: center; padding: 14px 6px; border-radius: 14px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 15px; }
.steps6 li:last-child { background: var(--gold); color: var(--navy); }

/* Numbered steps (admissions) */
.step { position: relative; }
.step__num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold); color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 22px;
}

/* --------------------------------------------------------------------------
   15. Gallery + lightbox
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  min-height: 44px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--navy); font-weight: 500; font-size: 14.5px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.gallery { columns: 3 300px; column-gap: clamp(14px, 1.8vw, 22px); }
.gallery__item { break-inside: avoid; margin: 0 0 clamp(14px, 1.8vw, 22px); }
.gallery__item[hidden] { display: none; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--blue-100);
  border-radius: var(--r-lg); overflow: hidden; position: relative; text-align: left;
}
.gallery__btn img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__btn::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141B4D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity .25s;
}
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__cap { margin-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--navy); line-height: 1.45; }

.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 14, 40, .9); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; border-radius: 18px; background: var(--navy-2); }
.lightbox__cap { font-size: 15.5px; text-align: center; color: #fff; max-width: 60ch; }
.lightbox__bar { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.lightbox__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  display: grid; place-items: center;
}
.lightbox__btn:hover { background: var(--gold); }
.lightbox__btn svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   16. Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input::placeholder, .field textarea::placeholder { color: #8A8FA8; }
.form__note { font-size: 14px; color: var(--muted); }
.form__status { font-size: 15px; font-weight: 500; color: #128C4A; min-height: 1.5em; }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #fff;
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
.cta-band .h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-top: 12px; }
.cta-band__rays { position: absolute; left: -80px; bottom: -160px; width: 380px; opacity: .12; pointer-events: none; }
.cta-band > *:not(.cta-band__rays) { position: relative; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer-wave { display: block; width: 100%; height: clamp(30px, 4vw, 56px); color: var(--navy); margin-bottom: -1px; }
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .82); padding: clamp(28px, 4vw, 48px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 64px; flex: none; }
.footer-brand__name { display: block; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; color: #fff; }
.footer-brand__motto { display: block; font-family: var(--serif); font-style: italic; color: var(--gold-2); margin-top: 6px; font-size: 16px; }
.footer-brand p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; }
.footer-title { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links li { font-size: 15px; line-height: 1.5; }
.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: rgba(255, 255, 255, .7);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .7);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   19. Reveal on scroll — only when JavaScript is running (html.js), so the
   page is always fully visible without it.
   -------------------------------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .facts__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(2n) { border-left: 1px solid var(--line-2); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

@media (max-width: 980px) {
  .hero__grid, .page-hero__grid, .split, .split--wide-left, .saint-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { margin: 12px auto 0; max-width: 440px; }
  .page-hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(180px, 34vw, 260px); }
  .mosaic__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .with-inset { margin-right: 18px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .header-inner { min-height: 70px; }
  .header-actions .btn { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .map--wide { aspect-ratio: 4 / 3; }
  .motto-band__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .motto-band__crest { margin-inline: auto; }
  .steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .brand img { width: 36px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .14em; }
  .btn-row .btn { width: 100%; }
  .hero__visual::before { inset: 14px -12px -14px 12px; }
  .hero__badge { left: -6px; bottom: 22px; padding: 10px 14px 10px 10px; max-width: 240px; }
  .hero__badge img { width: 36px; }
  .hero__badge strong { font-size: 14.5px; }
  .hero__sun { width: 92px; top: -22px; right: -8px; }
  .facts__card { grid-template-columns: minmax(0, 1fr); }
  .fact:nth-child(2n) { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line-2); }
  .fact { padding: 20px 22px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
  .inset-portrait { right: -10px; bottom: -20px; }
  .with-inset { margin-right: 10px; }
  .page-hero .frame { border-radius: 160px 160px var(--r-lg) var(--r-lg); }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (max-width: 380px) {
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .mobile-menu, .wa-float, .footer-wave, .map, .filters { display: none !important; }
  body { background: #fff; }
  .site-footer { background: #fff; color: #000; }
}
