/* ==========================================================================
   Crestview Academy — site design system
   Maroon + gold heritage palette taken from the school crest.
   ========================================================================== */

:root {
  --maroon-900: #3d0d16;
  --maroon-800: #561321;
  --maroon-700: #6e1a2b;
  --maroon-600: #8a2236;
  --maroon-100: #f6e7ea;
  --gold-600: #b8860b;
  --gold-500: #d4a42a;
  --gold-300: #ecd08a;
  --gold-100: #faf1d9;
  --paper: #fbf8f3;
  --paper-2: #f3ede3;
  --ink: #1f1a17;
  --ink-2: #4a423c;
  --ink-3: #7a716a;
  --line: #e6ddd0;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(61, 13, 22, .06), 0 2px 8px rgba(61, 13, 22, .05);
  --shadow: 0 10px 30px -10px rgba(61, 13, 22, .25);
  --shadow-lg: 0 30px 60px -20px rgba(61, 13, 22, .35);
  --container: 1200px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon-700); text-decoration: none; }
a:hover { color: var(--maroon-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--paper2 { background: var(--paper-2); }
.section--maroon { background: var(--maroon-800); color: #f3e6e8; }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--maroon-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--maroon .eyebrow { color: var(--gold-300); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-head h2 em { font-style: italic; color: var(--maroon-700); font-weight: 500; }
.section--maroon .section-head h2 em { color: var(--gold-300); }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section--maroon .section-head p { color: #dcc6ca; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--maroon-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(110,26,43,.6); }
.btn--primary:hover { background: var(--maroon-600); color: #fff; }
.btn--gold { background: var(--gold-500); color: var(--maroon-900); box-shadow: 0 8px 20px -8px rgba(212,164,42,.7); }
.btn--gold:hover { background: var(--gold-300); color: var(--maroon-900); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--maroon-800); }
.btn--outline { border-color: var(--maroon-700); color: var(--maroon-700); }
.btn--outline:hover { background: var(--maroon-700); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--maroon-900); color: #e9d6d9; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #e9d6d9; }
.topbar a:hover { color: var(--gold-300); }
.topbar__info, .topbar__links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar i { color: var(--gold-500); margin-right: 6px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(61,13,22,.35); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--maroon-800); line-height: 1; }
.brand__tag { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--gold-600); text-transform: uppercase; margin-top: 5px; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 10px 14px; color: var(--ink-2); font-weight: 600; font-size: 15px; border-radius: 999px; position: relative; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--maroon-700); }
.nav__menu a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--maroon-800); font-size: 18px; }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__panel {
    position: fixed; inset: calc(var(--nav-h) + 0px) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px 24px 28px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .25s ease; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open .nav__panel { transform: none; opacity: 1; visibility: visible; }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__menu a { padding: 14px 8px; border-radius: 10px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__menu a.is-active::after { display: none; }
  .nav__cta { margin-top: 18px; flex-direction: column; align-items: stretch; }
}
@media (min-width: 1081px) { .nav__panel { display: flex; align-items: center; gap: 22px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h) - 42px); min-height: calc(100svh - var(--nav-h) - 42px); display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--maroon-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(40,8,14,.92) 0%, rgba(61,13,22,.78) 38%, rgba(61,13,22,.25) 75%, rgba(61,13,22,.1) 100%),
    linear-gradient(0deg, rgba(40,8,14,.6) 0%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding: 90px 0 140px; max-width: 680px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; margin-bottom: 28px; backdrop-filter: blur(6px); }
.hero__badge span { background: var(--gold-500); color: var(--maroon-900); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 82px); font-weight: 600; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 400; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: #f0e2e4; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { position: absolute; z-index: 3; bottom: 120px; left: 0; right: 0; }
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.35); padding: 0; transition: background .3s, width .3s; }
.hero__dot.is-active { background: var(--gold-500); width: 56px; }

/* Stats ribbon overlapping hero */
.stats { position: relative; z-index: 5; margin-top: -72px; }
.stats__grid { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); }
.stat { padding: 30px 28px; display: flex; gap: 16px; align-items: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; background: var(--maroon-100); color: var(--maroon-700); display: grid; place-items: center; font-size: 22px; }
.stat__num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--maroon-800); line-height: 1; }
.stat__label { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: 22px 18px; gap: 12px; } .stat__icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; } .stat__num { font-size: 26px; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.about__media { position: relative; padding: 0 40px 40px 0; }
.about__media .main { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__media .inset { position: absolute; right: 0; bottom: 0; width: 46%; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about__seal { position: absolute; left: -24px; top: 36px; width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); padding: 8px; }
.about__seal img { width: 100%; height: 100%; object-fit: contain; }
.about__body h2 { font-size: clamp(32px, 4vw, 48px); }
.about__body h2 em { color: var(--maroon-700); font-weight: 500; }
.about__body > p { color: var(--ink-2); font-size: 17.5px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
.vm__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vm__card h3 { font-size: 20px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.vm__card h3 i { color: var(--gold-600); font-size: 16px; }
.vm__card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.signature { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.signature__line { font-family: var(--font-display); font-style: italic; color: var(--maroon-700); font-size: 20px; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 50px; } .about__media { max-width: 520px; } }
@media (max-width: 560px) { .vm { grid-template-columns: 1fr; } .about__seal { width: 88px; height: 88px; left: -8px; } }

/* ---------- Pillars / why us ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--maroon-700), var(--gold-500)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--gold-100); color: var(--gold-600); margin-bottom: 22px; }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Academics ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dept { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 30px 26px; transition: background .3s, transform .3s; }
.dept:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.dept__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dept__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-500); color: var(--maroon-900); display: grid; place-items: center; font-size: 20px; }
.dept h3 { font-size: 22px; margin: 0; }
.dept ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dept li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #f1e3e5; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.level { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--maroon-900); border: 1px solid rgba(255,255,255,.08); }
.level__num { font-family: var(--font-display); font-size: 40px; color: var(--gold-500); line-height: 1; font-weight: 600; }
.level h4 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.level p { margin: 0; font-size: 15px; color: #d8c2c6; }
@media (max-width: 1000px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } .levels { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dept-grid { grid-template-columns: 1fr; } }

/* ---------- Tabs / filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; transition: all .2s; }
.chip:hover { border-color: var(--maroon-600); color: var(--maroon-700); }
.chip.is-active { background: var(--maroon-700); border-color: var(--maroon-700); color: #fff; }
.chip .count { display: inline-block; margin-left: 6px; font-size: 12px; opacity: .7; }

/* ---------- Library ---------- */
.lib-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--maroon-600); box-shadow: 0 0 0 4px var(--maroon-100); }
.search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.book:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book__cover { aspect-ratio: 3/3.4; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 20px 20px 30px; color: #fff; background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900)); overflow: hidden; }
.book__cover::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: var(--gold-500); opacity: .85; }
.book__cover::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.06); }
.book__cover--1 { background: linear-gradient(135deg, #6e1a2b, #3d0d16); }
.book__cover--2 { background: linear-gradient(135deg, #2f4858, #18262f); }
.book__cover--3 { background: linear-gradient(135deg, #8a5a14, #4d3108); }
.book__cover--4 { background: linear-gradient(135deg, #3c5a3a, #1f321e); }
.book__cover--5 { background: linear-gradient(135deg, #4a3a6b, #261c3a); }
.book__cat { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.book__title { font-family: var(--font-display); font-size: 20px; line-height: 1.2; font-weight: 600; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.book__crest { width: 30px; height: 30px; opacity: .9; }
.book__foot { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.book__foot span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); background: #fff; }
.empty i { font-size: 30px; color: var(--gold-500); margin-bottom: 12px; display: block; }
.skeleton { background: linear-gradient(90deg, #eee6da 25%, #f6f0e7 37%, #eee6da 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vcard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-align: left; padding: 0; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; color: inherit; }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vcard__thumb { position: relative; aspect-ratio: 16/9; background: var(--maroon-900); overflow: hidden; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vcard:hover .vcard__thumb img { transform: scale(1.06); }
.vcard__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(40,8,14,.55), rgba(40,8,14,.1)); }
.vcard__play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--maroon-700); display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 8px rgba(255,255,255,.2); transition: transform .25s; padding-left: 4px; }
.vcard:hover .vcard__play span { transform: scale(1.1); }
.vcard__body { padding: 16px 18px 18px; }
.vcard__body h4 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.vcard__body span { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 6, 9, .85); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; animation: fade .25s ease; }
.modal__box { width: min(1000px, 100%); position: relative; }
.modal__frame { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--maroon-800); font-size: 18px; }
.modal__title { color: #fff; margin-top: 14px; font-weight: 700; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event { display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.event:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.event__media { position: relative; }
.event__media img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.event__date { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; box-shadow: var(--shadow-sm); min-width: 62px; }
.event__date b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--maroon-700); line-height: 1; }
.event__date small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); }
.event__body { padding: 26px; display: flex; flex-direction: column; }
.event__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.event__meta i { color: var(--gold-600); margin-right: 5px; }
.event h3 { font-size: 22px; margin-bottom: 8px; }
.event p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.event .link-arrow { margin-top: auto; }
@media (max-width: 1000px) { .events { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .event { grid-template-columns: 1fr; } .event__media img { aspect-ratio: 16/9; min-height: 0; } }

/* ---------- Staff ---------- */
.staff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 22px 28px; text-align: center; transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.person__avatar { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 34px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--maroon-600), var(--maroon-900)); box-shadow: 0 0 0 5px var(--gold-100), 0 0 0 6px var(--gold-300); }
.person h3 { font-size: 20px; margin-bottom: 4px; }
.person p { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
@media (max-width: 1000px) { .staff { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .staff { grid-template-columns: 1fr 1fr; gap: 14px; } .person { padding: 26px 12px 22px; } .person__avatar { width: 72px; height: 72px; font-size: 26px; } .person h3 { font-size: 16px; } }

/* ---------- Gallery strip ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.mosaic a { position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: var(--line); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.07); }
.mosaic a::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; background: rgba(61,13,22,.45); opacity: 0; transition: opacity .3s; }
.mosaic a:hover::after { opacity: 1; }
@media (max-width: 800px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .mosaic a:nth-child(4) { grid-row: span 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 210; background: rgba(15,4,7,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cdb8bc; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .lightbox { padding: 60px 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Admissions ---------- */
.admit { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 34px 76px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold-500); color: var(--gold-300); display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 56px; bottom: 6px; width: 2px; background: rgba(212,164,42,.3); }
.steps h3 { font-size: 21px; margin-bottom: 4px; }
.steps p { margin: 0; color: #dcc6ca; font-size: 15.5px; }
.pay-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.pay-card h3 { color: var(--ink) !important; font-size: 26px; }
.pay-card > p { color: var(--ink-2); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.pay-method { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pay-method img { height: 34px; width: auto; object-fit: contain; }
.pay-method i { font-size: 26px; color: var(--maroon-700); height: 34px; display: grid; place-items: center; }
.pay-card .btn { width: 100%; }
.pay-card .btn + .btn { margin-top: 10px; }
.pay-note { font-size: 13.5px; color: var(--ink-3); margin: 16px 0 0; text-align: center; }
@media (max-width: 960px) { .admit { grid-template-columns: 1fr; gap: 50px; } }
@media (max-width: 420px) { .pay-card { padding: 26px 20px; } .pay-methods { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 70px 60px; color: #fff; background: var(--maroon-800); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/crestview1.jpg") center/cover; opacity: .18; mix-blend-mode: luminosity; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(212,164,42,.15); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.cta-band p { color: #ecd9dc; margin: 0; font-size: 17.5px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 48px 28px; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact__cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.ccard__icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--maroon-100); color: var(--maroon-700); display: grid; place-items: center; font-size: 18px; }
.ccard h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; font-weight: 800; }
.ccard p, .ccard a { margin: 0; font-weight: 600; color: var(--ink); font-size: 16px; display: block; overflow-wrap: anywhere; }
.ccard a:hover { color: var(--maroon-700); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 220px; margin-top: 14px; }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form h3 { font-size: 28px; }
.form > p { color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon-600); box-shadow: 0 0 0 4px var(--maroon-100); background: #fff; }
.form .btn { width: 100%; margin-top: 6px; }
.form__hint { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { padding: 26px 20px; } .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--maroon-900); color: #d7c1c5; padding: 90px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin-bottom: 22px; }
.footer a { color: #d7c1c5; }
.footer a:hover { color: var(--gold-300); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin: 20px 0 22px; font-size: 15px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .2s, color .2s; }
.socials a:hover { background: var(--gold-500); color: var(--maroon-900); }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact i { color: var(--gold-500); margin-top: 5px; width: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: 14px; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Floating buttons ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 25px -6px rgba(37,211,102,.6); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 94; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--maroon-700); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide img { transition: none; transform: none; }
  .fab-wa::before { animation: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--maroon-800); color: #fff; padding: 90px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/crestview1.jpg") center 30%/cover; opacity: .2; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 62px); margin-bottom: 10px; }
.page-hero p { color: #ecd9dc; font-size: 18px; max-width: 600px; margin: 0; }
.crumbs { font-size: 14px; color: var(--gold-300); margin-bottom: 18px; font-weight: 600; }
.crumbs a { color: #ecd9dc; }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-grid a { display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative; }
.gallery-grid img { width: 100%; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.04); }
