/* ==========================================================================
   Jagat Jyoti Public Sr. Sec. School — "Forest & Ivory"
   A single, deliberate design system. Built mobile-first.
   Palette : deep evergreen + warm ivory, muted brass as a whisper accent.
   Type    : Marcellus (display serif) + Inter (body sans).
   ========================================================================== */

:root {
  /* Evergreen */
  --ever-900: #0b2119;
  --ever-800: #12352a;   /* primary */
  --ever-700: #1c4838;
  --ever-600: #2a5e49;
  /* Brass / champagne — used sparingly */
  --brass-700: #7d5f33;  /* accent text on ivory */
  --brass-600: #9a7b47;
  --brass-500: #a9885a;
  --champagne: #d8c39c;  /* accent on dark */
  /* Ink & neutrals */
  --ink: #26332d;        /* near-black, headings on light */
  --body: #45524b;       /* body copy */
  --muted: #5b675f;      /* secondary (AA contrast on ivory) */
  --line: #e6e0d3;       /* hairline on ivory */
  --line-2: #d8d0be;
  /* Surfaces */
  --ivory: #fbf8f1;      /* page background */
  --ivory-2: #f3eee1;    /* alternating band */
  --white: #ffffff;      /* cards / panels */
  /* Effects */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 2px 10px rgba(18, 53, 42, .05);
  --shadow: 0 18px 44px -18px rgba(18, 53, 42, .22);
  --shadow-lg: 0 40px 80px -24px rgba(11, 33, 25, .35);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1400px;
  --maxw-wide: 1800px;
  --gutter: clamp(20px, 5vw, 96px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
::selection { background: var(--ever-800); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; border-radius: 3px; }
[id] { scroll-margin-top: 110px; }  /* keep anchor targets clear of the sticky header */

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--body); }
.balance { text-wrap: balance; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Frame elements (header, hero, stats, footer) run wider so the logo and hero sit toward the edges */
.header .container, .hero .container, .stats .container, .footer .container { max-width: var(--maxw-wide); }
.section { padding-block: clamp(64px, 10vw, 130px); }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.band-ivory { background: var(--ivory-2); }
.band-ever { background: var(--ever-800); color: var(--ivory); }
.band-ever h1, .band-ever h2, .band-ever h3 { color: var(--ivory); }

/* Section heading block */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass-500); }
.band-ever .eyebrow { color: var(--champagne); }
.band-ever .eyebrow::before { background: var(--champagne); }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.band-ever .section-head p { color: rgba(251, 248, 241, .72); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 15px 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: var(--btn-pad); border-radius: 12px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.arw { width: 18px; height: 18px; flex: none; }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--ever-800); color: var(--ivory); }
.btn--primary:hover { background: var(--ever-900); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(18, 53, 42, .5); }
.btn--ivory { background: var(--ivory); color: var(--ever-800); box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); }
.btn--ivory:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); }
.btn--outline { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ever-800); background: var(--ever-800); color: var(--ivory); }
.btn--ghost { border: 1px solid rgba(251,248,241,.4); color: var(--ivory); }
.btn--ghost:hover { background: rgba(251,248,241,.1); border-color: rgba(251,248,241,.75); }
.btn--block { width: 100%; }

/* Text link with underline sweep */
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--brass-700); white-space: nowrap; }
.tlink .arw { transition: transform .3s var(--ease); }
.tlink:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 100; background: var(--ever-800); color: var(--ivory); transition: box-shadow .3s ease; }
.header.scrolled { box-shadow: 0 10px 30px -12px rgba(11,33,25,.6); }
.topbar { background: var(--ever-900); font-size: .8rem; overflow: hidden; transition: max-height .35s var(--ease), opacity .3s ease; max-height: 44px; }
.header.scrolled .topbar { max-height: 0; opacity: 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar .contact-row { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: rgba(251,248,241,.75); transition: color .2s; }
.topbar a:hover { color: var(--champagne); }
.topbar svg { width: 14px; height: 14px; }
.topbar .socials { display: flex; gap: 14px; }
.topbar .socials a svg { width: 15px; height: 15px; }

.navbar { display: flex; align-items: center; gap: 20px; padding-block: 14px; transition: padding .3s ease; }
.header.scrolled .navbar { padding-block: 9px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand > span { display: flex; flex-direction: column; }
.brand img { width: 50px; height: 50px; border-radius: 50%; transition: width .3s ease, height .3s ease; }
.header.scrolled .brand img { width: 42px; height: 42px; }
.brand .b-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1; color: var(--ivory); letter-spacing: 0.16em; }
.brand .b-sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--champagne); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 15px; font-size: .92rem; color: rgba(251,248,241,.82); border-radius: 6px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ivory); background: rgba(251,248,241,.07); }
.nav a.active { color: var(--champagne); }
.nav a.nav-cta { color: var(--ever-800); margin-left: 8px; }
.nav a.nav-cta:hover { color: var(--ever-900); background: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ivory); border-radius: 2px; position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ivory); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11,33,25,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; z-index: 98; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero { position: relative; color: var(--ivory); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-media .slide.active { opacity: 1; animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1.16); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(97deg, rgba(11,33,25,.94) 0%, rgba(11,33,25,.82) 40%, rgba(11,33,25,.42) 100%); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(48px, 8vh, 88px); }
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: var(--champagne); }
.hero .eyebrow::before { background: var(--champagne); }
.hero h1 { color: var(--ivory); margin-bottom: 22px; }
.hero h1 .accent { color: var(--champagne); }
.hero .lead { color: rgba(251,248,241,.85); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-assure { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }
.hero-assure span { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: rgba(251,248,241,.82); }
.hero-assure svg { width: 18px; height: 18px; color: var(--champagne); flex: none; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { background: var(--ever-900); color: var(--ivory); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: clamp(28px, 3.4vw, 42px); }
/* Short laptop screens: keep the stats strip visible on first load */
@media (min-width: 1024px) and (max-height: 860px) {
  .hero h1 { font-size: clamp(2.4rem, 7.4vh, 3.6rem); margin-bottom: 16px; }
  .hero .container { padding-block: 5vh; }
  .hero .lead { margin-bottom: 24px; }
  .hero-assure { margin-top: 22px; }
  .stats .container { padding-block: 24px; }
  .stat .v { font-size: 2.4rem; }
}
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 12%; height: 76%; width: 1px; background: rgba(251,248,241,.14); }
.stat .v { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.1rem); color: var(--champagne); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat .l { font-size: .82rem; letter-spacing: .06em; color: rgba(251,248,241,.62); margin-top: 10px; }

/* ==========================================================================
   SPLIT (image + prose)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: clamp(320px, 46vw, 520px); object-fit: cover; border-radius: var(--radius); }
.split-badge {
  position: absolute; bottom: -20px; left: 20px; background: var(--ivory); color: var(--ever-800);
  padding: 16px 26px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.split-badge b { font-family: var(--display); font-size: 2rem; line-height: 1; display: block; color: var(--ever-800); }
.split-badge span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-700); }
.split-body h2 { margin-bottom: 20px; }
.split-body p + p { margin-top: 16px; }
.feature-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.feature-list svg { width: 20px; height: 20px; color: var(--brass-600); flex: none; margin-top: 4px; }

/* ==========================================================================
   PILLARS (why choose us) — editorial, not identical cards
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.pillar { padding: 38px 30px; border-right: 1px solid var(--line); transition: background .3s ease; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ivory-2); }
.pillar .ic { width: 46px; height: 46px; color: var(--ever-700); margin-bottom: 20px; }
.pillar .ic svg { width: 100%; height: 100%; stroke-width: 1.3; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: .94rem; color: var(--muted); }

/* ==========================================================================
   FACILITIES
   ========================================================================== */
.facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.facility { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; color: var(--ink); transition: transform .25s var(--ease), border-color .25s; }
.facility:hover { transform: translateY(-3px); border-color: var(--brass-500); }
.facility svg { width: 18px; height: 18px; color: var(--brass-600); flex: none; }

/* ==========================================================================
   GALLERY (mosaic + lightbox)
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery .g { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; }
.gallery .g:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery .g:hover img { transform: scale(1.06); }
.gallery .g figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(11,33,25,.85)); opacity: 0; transition: opacity .3s; }
.gallery .g:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,17,13,.94); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.6rem; display: grid; place-items: center; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   LEADERSHIP
   ========================================================================== */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.leader { text-align: center; }
.leader .ph { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; overflow: hidden; background: var(--ever-800); color: var(--champagne); font-family: var(--display); font-size: 2rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.leader:hover .ph { transform: translateY(-4px); }
.leader .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader .role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-700); }
.leader h3 { margin: 6px 0 10px; }
.leader p { font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   SCHOLARSHIPS
   ========================================================================== */
.schols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.schol { display: flex; gap: 18px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s; }
.schol:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.schol .ic { width: 42px; height: 42px; flex: none; color: var(--brass-600); }
.schol .ic svg { width: 100%; height: 100%; stroke-width: 1.4; }
.schol h3 { font-size: 1.05rem; margin-bottom: 6px; }
.schol p { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   BOOK LIST
   ========================================================================== */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.book { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass-500); }
.book .bi { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--ever-800); color: var(--champagne); display: grid; place-items: center; }
.book .bi svg { width: 22px; height: 22px; }
.book .bt { flex: 1; min-width: 0; }
.book .bt b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--ink); }
.book .bt span { display: block; font-size: .78rem; color: var(--muted); }
.book .dl { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brass-700); display: inline-flex; align-items: center; gap: 6px; }
.book .dl svg { width: 16px; height: 16px; }

/* ==========================================================================
   QUOTE / TESTIMONIAL
   ========================================================================== */
.quote { max-width: 760px; margin-inline: auto; text-align: center; position: relative; }
.quote .mark { font-family: var(--display); font-size: 5rem; line-height: .6; color: var(--brass-500); opacity: .4; }
.quote p { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink); line-height: 1.4; margin: 10px 0 22px; }
.band-ever .quote p { color: var(--ivory); }
.quote .stars { color: var(--brass-500); letter-spacing: 3px; margin-bottom: 14px; }
.quote .who { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.band-ever .quote .who { color: var(--champagne); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--ivory); font: inherit; color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ever-700); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--ever-800); color: var(--champagne); display: grid; place-items: center; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.info-item a, .info-item span { color: var(--muted); }
.info-item a:hover { color: var(--brass-700); }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta { background: var(--ever-800); color: var(--ivory); position: relative; overflow: hidden; }
.cta::before { content: none; }
.cta .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 76px); }
.cta h2 { color: var(--ivory); }
.cta p { color: rgba(251,248,241,.72); margin-top: 8px; }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero { background: var(--ever-800); color: var(--ivory); position: relative; overflow: hidden; }
.page-hero::before { content: none; }
.page-hero .container { position: relative; text-align: center; padding-block: clamp(56px, 9vw, 100px); }
.page-hero h1 { color: var(--ivory); }
.page-hero p { color: rgba(251,248,241,.78); max-width: 560px; margin: 14px auto 0; }
.crumbs { margin-top: 18px; font-size: .8rem; letter-spacing: .04em; color: rgba(251,248,241,.55); }
.crumbs a:hover { color: var(--champagne); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ever-900); color: rgba(251,248,241,.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 7vw, 72px); }
.footer .brand .b-name { color: var(--ivory); }
.footer-about p { font-size: .9rem; margin: 16px 0 20px; max-width: 300px; }
.footer h4 { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; margin-bottom: 11px; color: rgba(251,248,241,.7); transition: color .2s; }
.footer-col a:hover { color: var(--champagne); }
.footer-col .row { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .row svg { width: 15px; height: 15px; color: var(--champagne); flex: none; margin-top: 4px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(251,248,241,.08); display: grid; place-items: center; transition: background .2s, color .2s; }
.foot-social a:hover { background: var(--champagne); color: var(--ever-900); }
.foot-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(251,248,241,.1); padding-block: 20px; text-align: center; font-size: .8rem; color: rgba(251,248,241,.5); }

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .25s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; color: #fff; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.6s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

/* ==========================================================================
   MOTION — scroll reveal + progress bar
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--brass-500), var(--champagne)); transition: width .1s linear; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-media .slide.active { animation: none !important; }
  .wa::before { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .nav { position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--ever-800);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 100px 26px 34px;
    transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); z-index: 99; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 15px 16px; font-size: 1.05rem; border-radius: 8px; }
  .nav a.active { background: rgba(251,248,241,.08); }
  .nav .nav-cta { margin: 16px 0 0; }
  .nav-toggle { display: flex; z-index: 101; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--line); }
  .leaders { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .split-media img { height: clamp(280px, 60vw, 420px); }
  .cta .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar .contact-row .email { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stat:nth-child(2)::before { display: none; }
  .schols { grid-template-columns: 1fr; }
  .books { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .g:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .brand .b-sub { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .leaders { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; }
}
