/* Eximius High School — one-page site
   Brand colours taken from the school badge */
:root {
  --blue: #2f4ea2;
  --blue-deep: #1d3375;
  --blue-ink: #14234f;
  --orange: #faa41a;
  --orange-deep: #e08a00;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #1f2433;
  --muted: #5d6475;
  --line: #e7e3da;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(20, 35, 79, 0.35);
  --max: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--blue-ink); margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--blue-ink); box-shadow: 0 10px 24px -10px rgba(250,164,26,.8); }
.btn-primary:hover { background: #ffb53d; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue-ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 6px 24px -12px rgba(20,35,79,.3); padding: 10px 0; backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; transition: width .3s, height .3s; }
.scrolled .brand img { width: 44px; height: 44px; }
.brand-text { font-family: var(--font-head); line-height: 1.05; color: #fff; transition: color .3s; }
.brand-text strong { display: block; font-size: 1.12rem; letter-spacing: .02em; }
.brand-text span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.scrolled .brand-text { color: var(--blue-ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .94rem; text-decoration: none;
  color: #fff; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.scrolled .nav-links a { color: var(--ink); }
.scrolled .nav-links a:hover, .scrolled .nav-links a.active { color: var(--blue); background: rgba(47,78,162,.07); }
.nav-links .btn { padding: 10px 20px; margin-left: 8px; }
.nav-links a.btn-primary, .scrolled .nav-links a.btn-primary { color: var(--blue-ink); background: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.scrolled .menu-toggle span { background: var(--blue-ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 22s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,35,79,.92) 0%, rgba(29,51,117,.75) 42%, rgba(29,51,117,.15) 100%);
}
.hero-content { padding: 140px 0 160px; max-width: 700px; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); opacity: .92; max-width: 34ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.motto-badge {
  position: absolute; right: max(20px, calc((100vw - var(--max)) / 2)); bottom: 150px;
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 2px solid rgba(250,164,26,.8);
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-head);
  animation: float 6s ease-in-out infinite;
}
.motto-badge small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.motto-badge strong { font-size: 2.4rem; color: var(--orange); line-height: 1; }
.motto-badge span { font-size: .85rem; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: auto; z-index: 1; }

/* Quick facts */
.facts { position: relative; z-index: 2; margin-top: -70px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.fact { padding: 26px 24px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(47,78,162,.08); color: var(--blue); display: grid; place-items: center; flex: none; }
.fact-icon svg { width: 24px; height: 24px; }
.fact strong { display: block; font-family: var(--font-head); color: var(--blue-ink); font-size: 1.02rem; line-height: 1.25; }
.fact span { font-size: .85rem; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 88%; }
.about-media .inset {
  position: absolute; right: 0; bottom: -40px; width: 52%;
  border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover;
}
.about-media .year-tag {
  position: absolute; top: 28px; left: -14px; background: var(--orange); color: var(--blue-ink);
  font-family: var(--font-head); font-weight: 700; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  line-height: 1.1;
}
.about-media .year-tag small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.about-media .year-tag b { font-size: 1.8rem; }
.vm-grid { display: grid; gap: 16px; margin: 28px 0; }
.vm-card { background: var(--paper); border-radius: 14px; padding: 22px 24px; border-left: 4px solid var(--orange); box-shadow: 0 8px 24px -16px rgba(20,35,79,.3); }
.vm-card.mission { border-left-color: var(--blue); }
.vm-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 6px; }
.vm-card p { margin: 0; color: var(--ink); }
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.values li {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; background: rgba(47,78,162,.08); color: var(--blue-deep);
}

/* Academics */
.academics { background: var(--paper); }
.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 72px; }
.subject-group { background: var(--cream); border-radius: var(--radius); padding: 26px; transition: transform .3s, box-shadow .3s; }
.subject-group:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.subject-group .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.subject-group:nth-child(2) .icon { background: var(--orange); color: var(--blue-ink); }
.subject-group:nth-child(3) .icon { background: var(--blue-deep); }
.subject-group:nth-child(4) .icon { background: var(--orange-deep); }
.subject-group .icon svg { width: 26px; height: 26px; }
.subject-group ul { list-style: none; padding: 0; margin: 0; }
.subject-group li { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.subject-group li:last-child { border-bottom: 0; }

.facilities-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.facilities-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; color: #fff; isolation: isolate; }
.facility img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.facility:hover img { transform: scale(1.07); }
.facility::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,35,79,0) 40%, rgba(20,35,79,.88) 100%); }
.facility .label { position: absolute; left: 22px; right: 22px; bottom: 18px; }
.facility h4 { color: #fff; font-size: 1.15rem; margin: 0 0 2px; }
.facility p { margin: 0; font-size: .9rem; opacity: .9; }
.facility.wide { grid-column: span 2; aspect-ratio: auto; }

/* Admissions */
.admissions { background: var(--blue); color: #fff; overflow: hidden; }
.admissions::before, .admissions::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.admissions::before { width: 520px; height: 520px; border: 60px solid rgba(250,164,26,.16); right: -180px; top: -200px; }
.admissions::after { width: 340px; height: 340px; background: rgba(255,255,255,.05); left: -120px; bottom: -160px; }
.admissions h2, .admissions h3 { color: #fff; }
.admissions .lead { color: rgba(255,255,255,.82); }
.admissions .eyebrow { color: var(--orange); }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; position: relative; z-index: 1; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 22px 22px 84px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--blue-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}
.steps h4 { color: #fff; margin: 0 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: rgba(255,255,255,.8); font-size: .96rem; }
.steps p a {
  color: #fff; font-weight: 600; white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid var(--orange); transition: color .2s;
}
.steps p a:hover, .steps p a:focus-visible { color: var(--orange); }
.adm-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.adm-card h3 { color: var(--blue-ink); }
.adm-card ul { padding-left: 1.1em; color: var(--muted); }
.adm-card .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.adm-card .note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin: 22px 0 0; }

/* Student life */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.life-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(20,35,79,.35); transition: transform .3s; }
.life-card:hover { transform: translateY(-6px); }
.life-card img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.life-card .body { padding: 24px 26px 28px; }
.life-card .tag { font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.life-card h3 { margin: 6px 0 8px; }
.life-card p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery-section { background: var(--paper); }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; break-inside: avoid; background: none; position: relative;
}
.gallery img { width: 100%; transition: transform .6s ease, filter .3s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,20,45,.94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-height: 86vh; max-width: min(1200px, 92vw); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox .lb-btn:hover { background: var(--orange); color: var(--blue-ink); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--blue-ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span, .contact-list a { color: var(--muted); }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); color: #fff; isolation: isolate; display: flex; align-items: flex-end; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.map-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,35,79,.05) 30%, rgba(20,35,79,.9)); }
.map-card .inner { padding: 30px; }
.map-card h3 { color: #fff; font-size: 1.5rem; }
.map-card p { opacity: .9; }

/* Footer */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; display: block; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .motto-badge { animation: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .motto-badge { display: none; }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 96px 24px 24px; gap: 4px; box-shadow: -20px 0 40px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a, .scrolled .nav-links a { color: var(--ink); padding: 12px 14px; font-size: 1.05rem; }
  .nav-links .btn { margin: 12px 0 0; justify-content: center; }
  .menu-toggle.open span { background: var(--blue-ink); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle { position: relative; z-index: 2; }
  .about-grid, .adm-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-bottom: 40px; }
  .facilities, .life-grid { grid-template-columns: 1fr 1fr; }
  .facility.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .facts { margin-top: -50px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .fact:last-child { border-bottom: 0; }
  .subjects, .facilities, .life-grid { grid-template-columns: 1fr; }
  .facility.wide { grid-column: auto; aspect-ratio: 4/3; }
  .hero-content { padding: 120px 0 130px; }
  .brand-text strong { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery button { margin-bottom: 10px; border-radius: 10px; }
}
