/* =========================================================
   Noah's Ark Academy — styles
   Palette taken from the school itself: navy blazers,
   gold prefect blazers, ark-green lettering, and the
   rainbow over the ark. Light and dark themes.
   ========================================================= */
:root {
  /* brand */
  --navy: #1E2A5E;
  --navy-deep: #141C42;
  --gold: #F2B51D;
  --gold-hi: #FFC83D;
  --green: #2E9E44;
  --wa: #25D366;
  --r1: #E53935; --r2: #FB8C00; --r3: #FDD835; --r4: #43A047;
  --r5: #1E88E5; --r6: #3949AB; --r7: #8E24AA;

  /* theme tokens (light) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #EEF5FC;
  --surface-warm: #FFF6DE;
  --chip: #FFF0C7;
  --text: #1B2340;
  --muted: #56607E;
  --heading: #1E2A5E;
  --line: #DCE3EF;
  --band: #1E2A5E;
  --band-deep: #141C42;
  --band-text: #CBD3EE;
  --header-bg: rgba(255,255,255,.82);
  --shadow: 0 18px 40px -22px rgba(20,28,66,.35);
  --shadow-lg: 0 30px 60px -28px rgba(20,28,66,.5);

  --display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

:root[data-theme="dark"] {
  --bg: #0E1430;
  --surface: #161E45;
  --surface-alt: #121A3C;
  --surface-warm: #151C40;
  --chip: rgba(242,181,29,.14);
  --text: #E4E8F6;
  --muted: #A6AFCF;
  --heading: #FFFFFF;
  --line: #28325E;
  --green: #5ACB6E;
  --band: #0A0F26;
  --band-deep: #080C1F;
  --band-text: #AEB7D8;
  --header-bg: rgba(14,20,48,.82);
  --shadow: 0 18px 40px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 60px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: var(--heading); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--heading); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.lead { font-size: 1.25rem; color: var(--muted); }
.i { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .4em; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(242,181,29,.9); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-navy { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-navy { background: var(--gold); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-wa { background: var(--wa); color: #06341A; }
.btn-wa:hover { background: #3BE07A; }
.btn-sm { padding: .55rem 1.2rem; font-size: 1rem; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Rainbow signature ---------- */
.rainbow {
  height: 10px;
  background: linear-gradient(90deg,
    var(--r1) 0 14.28%, var(--r2) 0 28.56%, var(--r3) 0 42.84%,
    var(--r4) 0 57.12%, var(--r5) 0 71.4%, var(--r6) 0 85.68%, var(--r7) 0);
}

/* ---------- Announcement ---------- */
.announce { background: var(--gold); color: var(--navy-deep); font-family: var(--display); font-size: .98rem; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; padding-top: calc(.5rem + env(safe-area-inset-top, 0px)); }
.announce p { margin: 0; }
.announce a { color: var(--navy-deep); font-weight: 600; }
.announce-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy-deep); padding: 0 .3rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(20,28,66,.45); }
.topbar { background: var(--band); color: var(--band-text); font-size: .9rem; overflow: hidden; max-height: 48px; transition: max-height .3s var(--ease); }
.site-header.scrolled .topbar { max-height: 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar-contact a { color: #fff; text-decoration: none; margin-right: 1.4rem; }
.topbar-contact a:hover { color: var(--gold); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; transition: padding .3s; }
.site-header.scrolled .nav { padding: .35rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; transition: width .3s, height .3s; background: #fff; }
.site-header.scrolled .brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.3rem; color: var(--green); font-weight: 700; }
.brand-text small { font-family: var(--display); color: var(--muted); font-size: .85rem; }

.nav-right { display: flex; align-items: center; gap: .6rem; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.35rem; margin: 0 .6rem 0 0; padding: 0; }
.nav-menu a:not(.btn) {
  font-family: var(--display); font-weight: 500; text-decoration: none; color: var(--text);
  padding: .3rem 0; position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--heading); }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1/1; transition: transform .4s var(--ease), opacity .3s; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 3px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Social icons ---------- */
.socials { display: inline-flex; gap: .45rem; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; border-radius: 50%; text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; }
.socials svg { width: 55%; height: 55%; }
.socials-sm a { width: 30px; height: 30px; color: #fff; background: rgba(255,255,255,.1); }
.socials-sm a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.socials-lg { margin-top: 1.75rem; gap: .6rem; }
.socials-lg a { width: 48px; height: 48px; color: #fff; }
.socials-lg a:hover { transform: translateY(-3px) scale(1.05); }
.socials-lg [data-social="facebook"] { background: #1877F2; }
.socials-lg [data-social="instagram"] { background: radial-gradient(circle at 30% 110%, #FFD600, #FF7A00 30%, #D300C5 65%, #7638FA); }
.socials-lg [data-social="tiktok"] { background: #111; box-shadow: inset -2px -2px 0 #25F4EE, inset 2px 2px 0 #FE2C55; }
.socials-lg [data-social="youtube"] { background: #FF0000; }
.socials-lg [data-social="x"] { background: #000; border: 1px solid #333; }
.socials-lg [data-social="linkedin"] { background: #0A66C2; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 800px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: zoom 14s ease-out both; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(20,28,66,.75) 0%, rgba(20,28,66,.2) 60%),
  linear-gradient(180deg, rgba(20,28,66,0) 30%, rgba(20,28,66,.9) 100%); }
.hero-content { position: relative; padding: 4rem 0 3.5rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 500;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .95rem; border-radius: 999px; margin-bottom: 1.2rem; animation: rise .9s var(--ease) both;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); animation: rise .9s .1s var(--ease) both;
}
.hero-text { font-size: 1.25rem; max-width: 46ch; color: #E9EDFA; animation: rise .9s .2s var(--ease) both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; animation: rise .9s .3s var(--ease) both; }
.hero .rainbow { position: absolute; bottom: 0; left: 0; right: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Facts ---------- */
.facts { background: var(--band); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 2rem 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-i { width: 34px; height: 34px; color: var(--gold); margin-bottom: .7rem; }
.fact h3 { color: #fff; font-size: 1.2rem; }
.fact p { margin: 0; color: var(--band-text); font-size: .98rem; line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(4rem, 8vw, 6rem); }
.split-rev { grid-template-columns: 1fr 1.05fr; }
.split-text { max-width: 60ch; }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.split-media figcaption { font-family: var(--display); color: var(--muted); margin-top: .8rem; font-size: .95rem; }

.stacked { position: relative; padding-bottom: 18%; }
.stacked .inset {
  position: absolute; width: 56%; right: -4%; bottom: 0;
  border: 8px solid var(--bg); border-radius: 22px; box-shadow: var(--shadow-lg);
}

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ---------- Welcome / leadership ---------- */
.welcome { background: var(--surface-alt); }
.tabs { display: inline-flex; gap: .35rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 2rem; }
.tab {
  border: 0; background: none; cursor: pointer; padding: .6rem 1.3rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: background .25s, color .25s;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--gold); color: var(--navy-deep); }
.leader { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; animation: fadeIn .45s var(--ease); }
.leader[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.leader-media {
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.leader-media img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.leader-media:hover img { transform: scale(1.02); }
.leader-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .1rem; }
.role { display: inline-block; font-family: var(--display); font-weight: 600; background: var(--gold); color: var(--navy-deep); padding: .15rem .8rem; border-radius: 999px; font-size: .95rem; }
.leader-text blockquote { margin: 1.3rem 0 0; padding-left: 1.3rem; border-left: 4px solid var(--green); font-style: italic; }
.leader-text blockquote p { color: var(--text); }
.signoff { font-family: var(--display); font-weight: 600; color: var(--green); font-size: 1.2rem; }

/* ---------- Vision ---------- */
.vision { background: var(--band-deep); color: #fff; position: relative; overflow: hidden; }
.vision::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -420px; top: -620px; border-radius: 50%;
  background: radial-gradient(circle,
    transparent 58%, rgba(142,36,170,.16) 58% 60%, rgba(57,73,171,.16) 60% 62%, rgba(30,136,229,.16) 62% 64%,
    rgba(67,160,71,.16) 64% 66%, rgba(253,216,53,.16) 66% 68%, rgba(251,140,0,.16) 68% 70%, rgba(229,57,53,.16) 70% 72%, transparent 72%);
  pointer-events: none;
}
.vision h2, .vision h3 { color: #fff; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); position: relative; }
.vm h2 { color: var(--gold); font-size: 1.5rem; }
.vm-statement { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.45; font-style: italic; color: #F3F5FC; }
.values-title { margin-top: 4.5rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.values li { padding: 1.75rem 1.75rem 1.75rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.values li:nth-child(3n+2), .values li:nth-child(3n) { padding-left: 1.75rem; border-left: 1px solid rgba(255,255,255,.16); }
.values h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.values li:nth-child(1) h3 { color: #FF8A80; }
.values li:nth-child(2) h3 { color: #FFB74D; }
.values li:nth-child(3) h3 { color: #FFE066; }
.values li:nth-child(4) h3 { color: #81D98A; }
.values li:nth-child(5) h3 { color: #74B9FF; }
.values li:nth-child(6) h3 { color: #D39BE8; }
.values p { color: var(--band-text); margin: 0; }
.motto { margin: 4rem 0 0; display: flex; align-items: center; gap: 1.5rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.5rem 2rem; position: relative; }
.motto img { border-radius: 50%; flex: none; background: #fff; }
.motto p { margin: 0; font-size: 1.2rem; }
.motto em { color: var(--gold); font-style: normal; font-family: var(--display); font-weight: 600; }

/* ---------- Learning journey ---------- */
.learning { background: var(--surface-alt); }
.journey { list-style: none; counter-reset: stage; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.journey::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--r1), var(--r3), var(--r4), var(--r5)); }
.journey li { counter-increment: stage; position: relative; padding-top: 5rem; }
.journey li::before {
  content: counter(stage); position: absolute; top: 0; left: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  display: grid; place-items: center; border: 5px solid var(--surface-alt);
}
.journey .stage { font-family: var(--display); color: var(--green); font-weight: 600; margin-top: -.3rem; }
.subjects { margin-top: 3.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { font-family: var(--display); font-weight: 500; background: var(--chip); color: var(--heading); padding: .45rem 1rem; border-radius: 999px; }

/* ---------- Facilities ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.fac { grid-column: span 2; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.fac:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fac-wide { grid-column: span 3; }
.fac img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.fac-body { padding: 1.5rem 1.75rem 1.75rem; }
.fac-body p { margin: 0; color: var(--muted); }

/* ---------- People ---------- */
.people { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-warm) 100%); }

/* ---------- Life / trip ---------- */
.trip { display: grid; grid-template-columns: .8fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.trip figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.trip-tall { grid-row: span 2; }
.trip img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.trip figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(20,28,66,.8); backdrop-filter: blur(6px); color: #fff; font-family: var(--display); padding: .35rem .9rem; border-radius: 999px; font-size: .95rem; }
.activities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; }
.activities h3 { position: relative; padding-top: 1rem; }
.activities h3::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 5px; border-radius: 3px; background: var(--gold); }
.activities div:nth-child(2) h3::before { background: var(--green); }
.activities div:nth-child(3) h3::before { background: var(--r5); }
.activities div:nth-child(4) h3::before { background: var(--r1); }
.activities p { color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-sec { background: var(--band); }
.gallery-sec h2 { color: #fff; }
.gallery-sec .section-head p { color: var(--band-text); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-family: var(--display); font-weight: 500; padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.filter:hover { background: rgba(255,255,255,.1); }
.filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: .9rem; }
.g-item { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--band-deep); animation: fadeIn .4s var(--ease); }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-big { grid-column: span 2; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,31,.95); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1200px; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; font-family: var(--display); margin-top: 1rem; font-size: 1.1rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--navy-deep); }
.lb-close { top: calc(1.25rem + env(safe-area-inset-top, 0px)); right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---------- Admissions ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.steps li::before { content: "Step " counter(step); display: inline-block; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--navy-deep); background: var(--gold); padding: .2rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.steps p { margin: 0; color: var(--muted); }
.admit-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.docs, .grade-finder { padding: 2rem; border-radius: var(--radius-lg); }
.docs { border: 2px dashed var(--line); }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { margin-bottom: .35rem; }
.checklist label { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; padding: .35rem .5rem; border-radius: 8px; transition: background .2s; }
.checklist label:hover { background: var(--surface-alt); }
.checklist input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; accent-color: var(--green); flex: none; }
.checklist input:checked + * , .checklist label:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.check-status { font-family: var(--display); color: var(--green); margin: 0; }
.grade-finder { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .grade-finder { background: var(--surface); border: 1px solid var(--line); }
.grade-finder h3 { color: #fff; }
.grade-finder p { color: var(--band-text); }
.grade-finder label { display: block; font-family: var(--display); margin-bottom: .35rem; }
.grade-finder input { width: 100%; font: inherit; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 2px solid transparent; background: #fff; color: #1B2340; }
.grade-finder input:focus { outline: none; border-color: var(--gold); }
.grade-result { font-family: var(--display); font-size: 1.25rem; color: var(--gold) !important; margin: 1rem 0 .4rem; min-height: 1.6em; }
.small-note { font-size: .88rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface-alt); }
details { background: var(--surface); border-radius: var(--radius-md); margin-bottom: .75rem; border: 1px solid var(--line); transition: box-shadow .2s; }
details[open] { box-shadow: var(--shadow); }
summary { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--heading); padding: 1.1rem 3rem 1.1rem 1.4rem; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--green); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.open-status { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 500; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: .35rem 1rem; margin: 0; }
.open-status.closed .dot { background: var(--r2); animation: none; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.c-label { font-family: var(--display); font-weight: 600; color: var(--green); }
.c-val { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.contact-list a, .contact-list .linkish { word-break: break-word; color: var(--heading); }
.copy { font-family: var(--display); font-size: .8rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .1rem .65rem; cursor: pointer; }
.copy:hover { border-color: var(--green); color: var(--green); }

.enquiry { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .enquiry { background: var(--surface); border: 1px solid var(--line); }
.enquiry h3 { color: #fff; font-size: 1.6rem; }
.enquiry label { display: block; font-family: var(--display); font-weight: 500; margin: 1rem 0 .35rem; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 2px solid transparent; background: #fff; color: #1B2340; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--gold); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.form-actions .btn { padding: .85rem 1rem; white-space: nowrap; }
.form-note { font-size: .9rem; color: var(--band-text); margin: .8rem 0 0; text-align: center; }
.form-error { color: #FFD7D2; background: rgba(229,57,53,.25); padding: .6rem .9rem; border-radius: var(--radius-sm); margin: 1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band-deep); color: var(--band-text); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { border-radius: 50%; background: #fff; flex: none; }
.footer-brand strong { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.site-footer h4 { color: var(--gold); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a, .site-footer .linkish { color: var(--band-text); text-decoration: none; word-break: break-word; }
.site-footer a:hover, .site-footer .linkish:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0 1.5rem; margin: 0 auto; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; }
.copyright p { margin: 0; }
.credit strong { color: var(--gold); font-family: var(--display); font-weight: 600; }
.credit a { margin-left: .3rem; }
@media (max-width: 600px) { .copyright { padding-bottom: 5.5rem; } }

/* ---------- WhatsApp widget ---------- */
.wa { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.wa-fab {
  display: inline-flex; align-items: center; gap: .6rem; border: 0; cursor: pointer;
  background: var(--wa); color: #fff; height: 60px; padding: 0 1.25rem 0 1rem; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  transition: transform .2s var(--ease), background .2s; position: relative;
}
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ping 2.4s 1.5s 3; }
.wa-fab:hover { transform: translateY(-2px); background: #1EBE5A; }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab[aria-expanded="true"] .wa-label { display: none; }
.wa-fab[aria-expanded="true"] { padding: 0; width: 60px; justify-content: center; }
.wa-panel {
  width: min(360px, calc(100vw - 2.5rem)); background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); border: 1px solid var(--line);
  transform-origin: bottom right; animation: pop .3s var(--ease);
}
.wa-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: .75rem; background: #075E54; color: #fff; padding: 1rem 1.1rem; }
.wa-head img { border-radius: 50%; background: #fff; }
.wa-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.wa-sub { margin: 0; font-size: .85rem; opacity: .85; line-height: 1.3; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.wa-body { padding: 1rem 1.1rem; background: #ECE5DD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23d6cec4'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .wa-body { background-color: #0B141A; background-image: none; }
.wa-bubble { background: #fff; color: #1B2340; border-radius: 0 14px 14px 14px; padding: .7rem .9rem .5rem; font-size: .98rem; line-height: 1.5; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 92%; }
:root[data-theme="dark"] .wa-bubble { background: #202C33; color: #E9EDEF; }
.wa-bubble p { margin: 0; }
.wa-time { display: block; text-align: right; font-size: .75rem; opacity: .6; }
.wa-pick { font-family: var(--display); font-size: .9rem; color: #4A5568; margin: .9rem 0 .5rem; }
:root[data-theme="dark"] .wa-pick { color: #AEBAC1; }
.wa-topics { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.wa-topics button { border: 1px solid #25D366; background: #fff; color: #075E54; font-family: var(--display); font-weight: 500; font-size: .88rem; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.wa-topics button[aria-pressed="true"] { background: #25D366; color: #fff; }
:root[data-theme="dark"] .wa-topics button { background: transparent; color: #7EE2A8; }
:root[data-theme="dark"] .wa-topics button[aria-pressed="true"] { background: #25D366; color: #06341A; }
.wa-body textarea { width: 100%; font: inherit; font-size: .95rem; line-height: 1.45; border: 1px solid #d5dbe3; border-radius: 12px; padding: .7rem .8rem; resize: vertical; background: #fff; color: #1B2340; }
:root[data-theme="dark"] .wa-body textarea { background: #2A3942; border-color: #2A3942; color: #E9EDEF; }
.wa-send { display: flex; align-items: center; justify-content: center; gap: .55rem; background: var(--wa); color: #06341A; text-decoration: none; font-family: var(--display); font-weight: 600; padding: 1rem; font-size: 1.05rem; }
.wa-send:hover { background: #3BE07A; }
.wa-send svg { width: 22px; height: 22px; }

/* ---------- Back to top & toast ---------- */
.to-top {
  position: fixed; left: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
.toast {
  position: fixed; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy-deep); color: #fff; font-family: var(--display); padding: .7rem 1.3rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-menu { gap: 1rem; }
  .nav-menu li:nth-child(7) { display: none; }
}
@media (max-width: 1024px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .activities { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leader { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .nav-menu {
    position: absolute; left: -1.25rem; right: -1.25rem; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 20px 30px -18px rgba(20,28,66,.4);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-menu.open { display: flex; animation: fadeIn .25s var(--ease); }
  .nav-menu li, .nav-menu li:nth-child(7) { display: block; border-bottom: 1px solid var(--line); }
  .nav-menu li.nav-cta { border: 0; padding-top: 1rem; }
  .nav-menu a:not(.btn) { display: block; padding: .85rem 0; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { display: flex; }

  .split, .split-rev, .vm-grid, .contact-grid, .admit-row { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 2; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li, .values li:nth-child(3n+2), .values li:nth-child(3n) { padding: 1.5rem 1.25rem 1.5rem 0; border-left: 0; }
  .values li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.16); }
  .journey { grid-template-columns: 1fr; gap: 2.5rem; }
  .journey::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--r1), var(--r3), var(--r4), var(--r5)); }
  .journey li { padding-top: 0; padding-left: 5.25rem; min-height: 60px; }
  .fac-grid { grid-template-columns: 1fr; }
  .fac, .fac-wide { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .trip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .trip-tall { grid-row: auto; grid-column: span 2; }
  .trip-tall img { aspect-ratio: 4/3; object-position: center 30%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar-contact a:last-child { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.1rem; }
  .facts-grid, .steps, .activities, .values { grid-template-columns: 1fr; }
  .fact { border-top: 1px solid rgba(255,255,255,.12) !important; padding: 1.4rem 0; }
  .fact:first-child { border-top: 0 !important; }
  .values li, .values li:nth-child(even) { padding: 1.4rem 0; border-left: 0; }
  .trip { grid-template-columns: 1fr; }
  .trip-tall { grid-column: auto; }
  .motto { flex-direction: column; text-align: center; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stacked .inset { right: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form-actions { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: .6rem .5rem; }
  .wa-fab .wa-label { display: none; }
  .wa-fab { width: 58px; height: 58px; padding: 0; justify-content: center; }
  .lb-prev, .lb-next { top: auto !important; bottom: 1.5rem; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .announce, .wa, .to-top, .progress, .lightbox, .enquiry, .filters { display: none !important; }
  .hero { min-height: 0; color: #000; }
}

a.copy { text-decoration: none; }
@media (max-width: 1100px) { .topbar-addr { display: none; } }
