/* ==========================================================================
   Regina Mundi International School — Design System
   Editorial / premium educational aesthetic.
   Serif: Newsreader (display, headings, motto)
   Sans:  Manrope (body, nav, buttons, forms, captions, metadata)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------------- */
/* Tokens                                                                   */
/* ---------------------------------------------------------------------- */
:root{
  /* Palette — derived from the school crest (two crest blues), an ivory
     ground, and a restrained warm gold used only for small accents. */
  --ivory:          #FAF6EC;
  --ivory-deep:      #F1E9D8;
  --ivory-line:      #E4DAC4;
  --paper:          #FFFFFE;

  --navy:            #0F2B3D;   /* primary type / dark sections */
  --navy-soft:       #1C3C50;
  --ink-muted:       #57697A;   /* secondary text, blue-grey neutral */
  --ink-faint:       #8C9AA6;

  --regina-blue:     #0B6FA0;   /* primary accent — from crest inner blue */
  --regina-blue-dark:#075779;
  --sky-blue:        #3FA9DA;   /* secondary accent — crest outer blue */
  --sky-blue-soft:   #DCEEF7;

  --gold:            #C79A45;   /* restrained accent, used sparingly */
  --gold-soft:       #EFE1C2;

  --success:         #2E7D4F;
  --error:           #B3402A;

  --shadow-sm: 0 1px 2px rgba(15,43,61,0.06), 0 1px 1px rgba(15,43,61,0.04);
  --shadow-md: 0 8px 24px rgba(15,43,61,0.10);
  --shadow-lg: 0 24px 60px rgba(15,43,61,0.16);

  --serif: 'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --nav-h: 84px;
  --nav-h-scrolled: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: .25s;
  --dur-med: .55s;
  --dur-slow: .9s;
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                    */
/* ---------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video{ max-width: 100%; display: block; }
img{ height: auto; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button, input, select, textarea{ font-family: inherit; font-size: inherit; color: inherit; }
button{ cursor: pointer; background: none; border: none; }
h1,h2,h3,h4,h5,h6{ margin: 0; font-family: var(--serif); font-weight: 500; text-wrap: balance; }
p{ margin: 0; }
address{ font-style: normal; }
svg{ display: block; }
[id]{ scroll-margin-top: 100px; }

/* Focus visibility */
:focus{ outline: none; }
:focus-visible{
  outline: 2.5px solid var(--regina-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible{ outline-offset: 4px; }

::selection{ background: var(--sky-blue-soft); color: var(--navy); }

/* ---------------------------------------------------------------------- */
/* Type scale                                                               */
/* ---------------------------------------------------------------------- */
.eyebrow{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--regina-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark{ color: var(--sky-blue); }

.display-1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display-2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.display-3{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.16;
}
.lede{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 62ch;
}
.body-text{
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--navy-soft);
  max-width: 66ch;
}
.caption{
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.italic-note{ font-family: var(--serif); font-style: italic; color: var(--ink-muted); }

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                           */
/* ---------------------------------------------------------------------- */
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section{ padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-tight{ padding: clamp(40px, 6vw, 72px) 0; }
.section-dark{ background: var(--navy); color: var(--ivory); }
.section-tint{ background: var(--ivory-deep); }
.hairline{ height: 1px; background: var(--ivory-line); border: 0; margin: 0; }
.hairline.on-dark{ background: rgba(255,255,255,0.14); }

.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 28px); }
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-3{ grid-template-columns: 1fr; }
}

.life-section + .life-section{ border-top: 1px solid var(--ivory-line); }
.life-photo{ aspect-ratio: 4/5; }
.life-photo.wide{ aspect-ratio: 16/10; }
.icon-panel{
  background: var(--navy); color: var(--ivory); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px;
}
.icon-panel svg{ width: 34px; height: 34px; color: var(--sky-blue); }
.icon-panel h3{ font-family: var(--sans); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.icon-panel p{ color: rgba(255,255,255,0.72); font-size: 0.94rem; }
@media (max-width: 560px){
  .grid-4{ grid-template-columns: 1fr; }
}

.stack-sm > * + *{ margin-top: 12px; }
.stack-md > * + *{ margin-top: 22px; }
.stack-lg > * + *{ margin-top: 40px; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: fixed; top: -60px; left: 12px; z-index: 999;
  background: var(--navy); color: var(--ivory); padding: 12px 18px;
  border-radius: var(--radius-sm); transition: top var(--dur-fast) var(--ease);
  font-weight: 600; font-size: 0.9rem;
}
.skip-link:focus{ top: 12px; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  min-height: 48px;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--regina-blue);
  color: #fff;
  border: 1px solid var(--regina-blue);
}
.btn-primary:hover{ background: var(--regina-blue-dark); border-color: var(--regina-blue-dark); }
.btn-outline{
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover{ background: var(--navy); color: var(--ivory); }
.btn-outline.on-dark{ color: var(--ivory); border-color: rgba(255,255,255,0.55); }
.btn-outline.on-dark:hover{ background: var(--ivory); color: var(--navy); }
.btn-ghost{
  background: transparent; color: var(--regina-blue); padding: 15px 6px;
  border-bottom: 1px solid transparent;
}
.btn-ghost:hover{ border-bottom-color: var(--regina-blue); }
.btn-gold{
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold);
}
.btn-gold:hover{ background: #B78A34; border-color: #B78A34; }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: .55; cursor: not-allowed; }

.link-arrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em;
  color: var(--regina-blue);
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after{
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--regina-blue); transition: right var(--dur-med) var(--ease);
}
.link-arrow:hover::after{ right: 0; }
.link-arrow svg{ transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg{ transform: translateX(4px); }
.link-arrow.on-dark{ color: var(--sky-blue); }
.link-arrow.on-dark::after{ background: var(--sky-blue); }

/* ---------------------------------------------------------------------- */
/* Navigation                                                               */
/* ---------------------------------------------------------------------- */
.site-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  background: transparent;
}
.site-nav .wrap{
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
}
.site-nav.is-scrolled{
  height: var(--nav-h-scrolled);
  background: rgba(250,246,236,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--ivory-line);
}
.site-nav.theme-dark:not(.is-scrolled) .nav-link,
.site-nav.theme-dark:not(.is-scrolled) .brand-name{ color: #fff; }
.site-nav.theme-dark:not(.is-scrolled) .btn-outline{ color: #fff; border-color: rgba(255,255,255,0.6); }

.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img{
  height: 52px; width: 52px; object-fit: contain; transition: height var(--dur-fast) var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.28));
}
.site-nav.is-scrolled .brand img{ height: 44px; width: 44px; filter: drop-shadow(0 1px 3px rgba(15,43,61,0.18)); }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{
  font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-sub{ font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

.nav-links{ display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav-link{
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--navy); position: relative; padding: 6px 0;
}
.nav-link::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right var(--dur-fast) var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after{ right: 0; }
.nav-cta{ flex-shrink: 0; }
.nav-cta .btn{ padding: 13px 26px; }

.nav-actions{ display: flex; align-items: center; gap: 18px; }
.menu-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
}
.menu-toggle span{ width: 24px; height: 2px; background: var(--navy); transition: all var(--dur-fast) var(--ease); }
.site-nav.theme-dark:not(.is-scrolled) .menu-toggle span{ background: #fff; }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy);
  display: flex; flex-direction: column;
  padding: 28px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open{ transform: translateY(0); visibility: visible; }
.mobile-menu-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-menu-head img{ height: 40px; width: 40px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.mobile-close{ width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mobile-menu-links{ display: flex; flex-direction: column; margin-top: 20px; }
.mobile-menu-links a{
  font-family: var(--serif); font-size: 2rem; color: var(--ivory); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu-foot{ margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.mobile-menu-foot .btn{ width: 100%; }
.mobile-contact{ color: var(--sky-blue); font-weight: 700; letter-spacing: 0.04em; font-size: 1rem; }

body.menu-open{ overflow: hidden; }

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-cta{ display: none; }
  .menu-toggle{ display: flex; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media{
  position: absolute; inset: 0; overflow: hidden;
}
.hero-media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.hero.is-loaded .hero-media img{ transform: scale(1); }
.hero-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,43,61,0.20) 0%, rgba(15,43,61,0.18) 40%, rgba(15,43,61,0.78) 100%);
}
.hero-parallax{ will-change: transform; }
.hero-content{
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
}
.hero-crest{ height: 74px; width: 74px; object-fit: contain; margin-bottom: 26px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35)); }
.hero-kicker{
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--sky-blue); margin-bottom: 18px; display: block;
}
.hero-title{
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-motto{
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--sky-blue);
  margin-top: 20px;
}
.hero-levels{
  font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.86); margin-top: 14px;
}
.hero-actions{
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px;
}
.hero-scroll-cue{
  position: absolute; bottom: 28px; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-scroll-cue .line{ width: 1px; height: 44px; background: rgba(255,255,255,0.4); overflow: hidden; position: relative; }
.hero-scroll-cue .line::after{
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: #fff; animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue{ 0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; } }
@media (prefers-reduced-motion: reduce){
  .hero-scroll-cue .line::after{ animation: none; top: 40%; }
  .hero-media img{ transition: none; transform: none !important; }
}
@media (max-width: 640px){
  .hero{ min-height: 88vh; align-items: flex-end; }
  .hero-scroll-cue{ display: none; }
}

/* Small page hero (interior pages) */
.page-hero{
  position: relative; color: #fff; min-height: 58vh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero-media img{ object-position: center 40%; }
.page-hero-content{ position: relative; z-index: 2; padding: 0 var(--gutter) 64px; width: 100%; }
.page-hero-eyebrow{ font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--sky-blue); }
.page-hero-title{ font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); margin-top: 14px; line-height: 1.02; }
.page-hero-sub{ margin-top: 16px; font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 56ch; }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll                                                         */
/* ---------------------------------------------------------------------- */
[data-reveal]{
  opacity: 1;
  transform: none;
}
html.js [data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js [data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}
html.js [data-reveal="scale"]{ transform: scale(1.045); }
html.js [data-reveal="scale"].in-view{ transform: scale(1); }
[data-reveal-group] [data-reveal]:nth-child(1){ transition-delay: 0s; }
[data-reveal-group] [data-reveal]:nth-child(2){ transition-delay: .12s; }
[data-reveal-group] [data-reveal]:nth-child(3){ transition-delay: .24s; }
[data-reveal-group] [data-reveal]:nth-child(4){ transition-delay: .36s; }
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal], html.js [data-reveal="scale"]{
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Section headers                                                          */
/* ---------------------------------------------------------------------- */
.section-head{ max-width: 780px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow{ margin-bottom: 18px; }
.section-head h2{ margin-bottom: 0; }
.section-head-row{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Journey (Crèche → Primary)                                               */
/* ---------------------------------------------------------------------- */
.journey{
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  margin-top: 56px;
}
.journey-media{
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
}
.journey-media img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .7s var(--ease);
}
.journey-media img.is-active{ opacity: 1; }
.journey-list{ display: flex; flex-direction: column; }
.journey-item{
  padding: 26px 0; border-top: 1px solid var(--ivory-line); cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  transition: padding var(--dur-fast) var(--ease);
}
.journey-list .journey-item:last-child{ border-bottom: 1px solid var(--ivory-line); }
.journey-item-name{
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--ink-faint);
  transition: color var(--dur-fast) var(--ease);
}
.journey-item-num{ font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.08em; font-weight: 700; }
.journey-item.is-active{ padding: 32px 0; }
.journey-item.is-active .journey-item-name{ color: var(--regina-blue); }
.journey-item.is-active .journey-item-num{ color: var(--gold); }
@media (max-width: 860px){
  .journey{ grid-template-columns: 1fr; }
  .journey-media{ aspect-ratio: 16/10; order: -1; }
}

/* ---------------------------------------------------------------------- */
/* What we offer                                                           */
/* ---------------------------------------------------------------------- */
.offer-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ivory-line);
  margin-top: 56px;
}
.offer-item{
  padding: 40px 28px 40px 0;
  border-bottom: 1px solid var(--ivory-line);
  border-right: 1px solid var(--ivory-line);
  transition: background var(--dur-fast) var(--ease);
  position: relative;
}
.offer-item:nth-child(4n){ border-right: none; }
.offer-item:hover{ background: rgba(11,111,160,0.045); }
.offer-icon{ width: 40px; height: 40px; color: var(--regina-blue); margin-bottom: 26px; }
.offer-item h3{
  font-family: var(--sans); font-weight: 800; font-size: 0.98rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 10px;
}
.offer-item p{ color: var(--ink-muted); font-size: 0.94rem; line-height: 1.6; }
@media (max-width: 980px){
  .offer-grid{ grid-template-columns: repeat(2, 1fr); }
  .offer-item{ padding: 34px 24px; border-right: 1px solid var(--ivory-line) !important; }
  .offer-item:nth-child(2n){ border-right: none !important; }
}
@media (max-width: 560px){
  .offer-grid{ grid-template-columns: 1fr; }
  .offer-item{ border-right: none !important; }
}

/* ---------------------------------------------------------------------- */
/* Immersive scroll story (Life at Regina Mundi)                            */
/* ---------------------------------------------------------------------- */
.story{ background: var(--navy); color: var(--ivory); }
.story-panel{
  position: relative; height: 86vh; min-height: 480px; max-height: 780px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.story-panel + .story-panel{ margin-top: 4px; }
.story-panel img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
}
html.js .story-panel img{ transform: scale(1.18); }
html.js .story-panel.in-view img{ transform: scale(1); }
.story-panel::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,43,61,0.05) 30%, rgba(15,43,61,0.82) 100%);
}
.story-caption{ position: relative; z-index: 2; padding: 34px var(--gutter); }
.story-caption .eyebrow{ color: var(--sky-blue); }
.story-caption h3{
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-top: 10px; color: #fff;
}
@media (prefers-reduced-motion: reduce){
  .story-panel img, html.js .story-panel img{ transform: none !important; transition: none !important; }
}
@media (max-width: 640px){
  .story-panel{ height: 62vh; min-height: 380px; }
}

/* ---------------------------------------------------------------------- */
/* Facilities                                                               */
/* ---------------------------------------------------------------------- */
.facility-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 56px; }
.facility-card{ position: relative; aspect-ratio: 3/4; overflow: hidden; }
.facility-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.facility-card:hover img{ transform: scale(1.06); }
.facility-card::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,61,0) 50%, rgba(15,43,61,0.85) 100%); }
.facility-label{ position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; }
.facility-label .eyebrow{ color: var(--sky-blue); margin-bottom: 8px; }
.facility-label span.name{ font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 780px){
  .facility-grid{ grid-template-columns: 1fr; }
  .facility-card{ aspect-ratio: 16/10; }
}

/* ---------------------------------------------------------------------- */
/* Admissions CTA band                                                      */
/* ---------------------------------------------------------------------- */
.cta-band{
  background: var(--regina-blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: '';
  position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}
.cta-band .eyebrow{ color: var(--sky-blue-soft); }
.cta-band .eyebrow::before{ background: #fff; }
.cta-phone{ font-family: var(--serif); font-size: 1.4rem; }
.cta-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.cta-levels{ display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.cta-levels span{ font-size: 0.86rem; letter-spacing: 0.04em; font-weight: 700; }
.cta-levels span:not(:last-child)::after{ content: '·'; margin-left: 22px; color: rgba(255,255,255,0.5); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,0.78); padding: 72px 0 30px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img{ height: 54px; width: 54px; object-fit: contain; flex-shrink: 0; }
.footer-brand-name{ font-family: var(--serif); color: #fff; font-size: 1.2rem; }
.footer-brand-motto{ font-family: var(--serif); font-style: italic; color: var(--sky-blue); margin-top: 6px; font-size: 0.95rem; }
.footer-brand-levels{ font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 10px; }
.footer-col h4{ font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; font-weight: 700; }
.footer-col ul li{ margin-bottom: 12px; }
.footer-col a:hover{ color: var(--sky-blue); }
.footer-col address p{ margin-bottom: 8px; font-size: 0.95rem; }
.footer-social{ display: flex; gap: 12px; margin-top: 18px; }
.footer-social a{
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.footer-social a:hover{ background: var(--sky-blue); border-color: var(--sky-blue); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------------------------------------------------------------- */
/* Mobile quick-action bar                                                  */
/* ---------------------------------------------------------------------- */
.quick-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--ivory-line);
  box-shadow: 0 -6px 24px rgba(15,43,61,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.quick-bar-inner{ display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.quick-bar a{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 4px 9px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--navy); border-right: 1px solid var(--ivory-line);
}
.quick-bar a:last-child{ border-right: none; background: var(--regina-blue); color: #fff; }
.quick-bar svg{ width: 20px; height: 20px; }
@media (max-width: 720px){
  .quick-bar{ display: block; }
  body{ padding-bottom: 64px; }
}

/* ---------------------------------------------------------------------- */
/* At a glance / fact chips                                                 */
/* ---------------------------------------------------------------------- */
.fact-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ivory-line); margin-top: 48px; border: 1px solid var(--ivory-line); }
.fact-item{ background: var(--paper); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.fact-item .fact-icon{ width: 30px; height: 30px; color: var(--regina-blue); }
.fact-item span{ font-family: var(--sans); font-weight: 700; font-size: 0.98rem; color: var(--navy); }
@media (max-width: 780px){ .fact-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .fact-grid{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Photo blocks / editorial imagery utilities                              */
/* ---------------------------------------------------------------------- */
.photo{ border-radius: var(--radius-md); overflow: hidden; }
.photo img{ width: 100%; height: 100%; object-fit: cover; }
.photo-frame{ box-shadow: var(--shadow-lg); }
.full-bleed{ width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.figure-cap{ margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-card{ background: var(--paper); border: 1px solid var(--ivory-line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-md); }
.form-section + .form-section{ margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--ivory-line); }
.form-section-title{ display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.form-section-title .num{
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--ivory);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.form-section-title h3{ font-family: var(--sans); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy); }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px){ .field-row{ grid-template-columns: 1fr; } }
.field{ display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.field:first-child{ margin-top: 0; }
.field-row .field{ margin-top: 0; }
.field label{ font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.field label .opt{ font-weight: 500; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.field .req{ color: var(--regina-blue); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=date],
.field select, .field textarea{
  border: 1px solid var(--ivory-line); background: var(--ivory); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 0.98rem; color: var(--navy); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--regina-blue); background: var(--paper); }
.field textarea{ resize: vertical; min-height: 110px; font-family: inherit; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230F2B3D' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field-error{ font-size: 0.8rem; color: var(--error); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--error); background: #FBF0EE; }
.field.has-error .field-error{ display: block; }

.radio-group{ display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill{ position: relative; }
.radio-pill input{ position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span{
  display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid var(--ivory-line);
  border-radius: 30px; font-size: 0.88rem; font-weight: 600; color: var(--navy-soft); background: var(--ivory);
  transition: all var(--dur-fast) var(--ease);
}
.radio-pill input:checked + span{ background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-pill input:focus-visible + span{ outline: 2.5px solid var(--regina-blue); outline-offset: 2px; }

.checkbox-row{ display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; }
.checkbox-row input{ margin-top: 4px; width: 18px; height: 18px; accent-color: var(--regina-blue); flex-shrink: 0; }
.checkbox-row label{ font-size: 0.9rem; color: var(--ink-muted); line-height: 1.55; }

.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot{ display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.form-note{ font-size: 0.82rem; color: var(--ink-faint); max-width: 40ch; }

.form-success{ text-align: center; padding: 40px 10px; }
.form-success .check{
  width: 68px; height: 68px; border-radius: 50%; background: var(--sky-blue-soft); color: var(--regina-blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
}
.form-success h3{ font-family: var(--serif); font-size: 1.7rem; margin-bottom: 14px; }
.form-success p{ color: var(--ink-muted); max-width: 48ch; margin: 0 auto; }

.banner-note{
  display: flex; gap: 14px; background: var(--sky-blue-soft); border: 1px solid #BFE0F0; border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 0.92rem; color: var(--navy-soft); margin-bottom: 36px;
}
.banner-note svg{ flex-shrink: 0; width: 22px; height: 22px; color: var(--regina-blue); margin-top: 1px; }

/* ---------------------------------------------------------------------- */
/* Highlights grid + lightbox                                              */
/* ---------------------------------------------------------------------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 46px; }
.filter-chip{
  padding: 10px 20px; border: 1px solid var(--ivory-line); border-radius: 30px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--navy-soft);
  background: var(--paper); transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover{ border-color: var(--regina-blue); }
.filter-chip.is-active{ background: var(--navy); color: #fff; border-color: var(--navy); }

.masonry{ columns: 3 300px; column-gap: 22px; }
.masonry-item{ break-inside: avoid; margin-bottom: 22px; cursor: pointer; }
.masonry-card{ position: relative; overflow: hidden; border-radius: var(--radius-md); }
.masonry-card img{ width: 100%; display: block; transition: transform .7s var(--ease); }
.masonry-item:hover .masonry-card img{ transform: scale(1.045); }
.masonry-overlay{
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,61,0) 45%, rgba(15,43,61,0.86) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.masonry-item:hover .masonry-overlay, .masonry-item:focus-within .masonry-overlay{ opacity: 1; }
.masonry-overlay .cat{ font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-blue); font-weight: 700; }
.masonry-overlay h3{ font-family: var(--serif); font-size: 1.15rem; margin-top: 6px; }
.masonry-item.is-hidden{ display: none; }
.play-badge{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(15,43,61,0.72);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.masonry-item:hover .play-badge{ background: var(--regina-blue); transform: translate(-50%, -50%) scale(1.08); }
.play-badge svg{ margin-left: 4px; }
@media (max-width: 900px){ .masonry{ columns: 2 240px; } }
@media (max-width: 560px){ .masonry{ columns: 1; } }

.lightbox{
  position: fixed; inset: 0; z-index: 400; background: rgba(15,43,61,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease);
  padding: 24px;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox-inner{ max-width: 1100px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.lightbox-stage{ position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img{ max-height: 72vh; max-width: 100%; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox-stage video{ max-height: 72vh; max-width: 100%; border-radius: 6px; box-shadow: var(--shadow-lg); background: #000; }
.lightbox-meta{ color: #fff; text-align: center; max-width: 60ch; }
.lightbox-meta .cat{ color: var(--sky-blue); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.lightbox-meta h3{ font-family: var(--serif); font-size: 1.5rem; margin-top: 8px; color: #fff; }
.lightbox-meta p{ color: rgba(255,255,255,0.72); margin-top: 8px; font-size: 0.94rem; }
.lightbox-close{ position: absolute; top: 22px; right: 22px; color: #fff; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.lightbox-nav{ position: absolute; top: 50%; transform: translateY(-50%); color: #fff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: 0.8; }
.lightbox-nav:hover{ opacity: 1; }
.lightbox-prev{ left: -4px; }
.lightbox-next{ right: -4px; }
@media (max-width: 720px){
  .lightbox-nav{ display: none; }
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                            */
/* ---------------------------------------------------------------------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 940px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-detail-row{ display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--ivory-line); }
.contact-detail-row:last-of-type{ border-bottom: 1px solid var(--ivory-line); }
.contact-detail-row svg{ width: 24px; height: 24px; color: var(--regina-blue); flex-shrink: 0; margin-top: 2px; }
.contact-detail-row h4{ font-family: var(--sans); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.contact-detail-row a, .contact-detail-row p{ font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.map-embed{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--ivory-line); }
.map-embed iframe{ width: 100%; height: 420px; border: 0; display: block; }

/* ---------------------------------------------------------------------- */
/* Utility text alignment / colors                                         */
/* ---------------------------------------------------------------------- */
.on-dark{ color: #fff; }
.text-muted{ color: var(--ink-muted); }
.mt-0{ margin-top: 0 !important; }
