/* ==========================================================================
   National Public School — Stylesheet
   Palette: Azure Blue + White, with slate-blue neutrals
   Type: Fraunces (display/serif) + Public Sans (body/UI)
   ========================================================================== */

:root {
  /* Color tokens */
  --azure-900: #0e2a4a;
  --azure-800: #12386a;
  --azure-700: #1b4f91;
  --azure-600: #2464b4;
  --azure-500: #2e7dd1;
  --azure-200: #cfe2f7;
  --azure-100: #eaf2fb;
  --azure-50:  #f5f9fd;
  --slate-700: #33404f;
  --slate-600: #57647a;
  --slate-400: #8896a8;
  --slate-200: #dce3ec;
  --ink: #14202e;
  --white: #ffffff;
  --gold: #c99a3b; /* used sparingly: star ratings only */
  --on-dark-muted: #c9daf3; /* one consistent shade for secondary text on any dark-blue surface */
  --danger: #c23a3a; /* form validation errors */

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  /* Spacing / layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-height: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

/* Accessible focus ring — visible on keyboard nav, silent on mouse click */
:focus-visible {
  outline: 2.5px solid var(--azure-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--azure-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--azure-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { color: var(--slate-700); margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--azure-600);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.section-head p { font-size: 1.08rem; }

.bg-tint { background: var(--azure-50); }
.bg-deep { background: var(--azure-900); color: var(--white); }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep p { color: var(--white); }
.bg-deep p { color: var(--on-dark-muted); }

/* Reveal-on-scroll: applied to section headers and key blocks only */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azure-700); color: var(--white); }
.btn-primary:hover { background: var(--azure-600); }
.btn-outline { background: transparent; color: var(--azure-900); border-color: var(--azure-900); }
.btn-outline:hover { background: var(--azure-900); color: var(--white); }
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--azure-900); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(14, 42, 74, 0.4); }

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--azure-900);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--azure-600);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--azure-600);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--azure-800); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--azure-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta .btn-outline { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--azure-50) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-motif {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 620px;
  max-width: 60vw;
  color: var(--azure-200);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* One orchestrated entrance for the hero, triggered on load (not on scroll) */
.load-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero.is-loaded .load-item { opacity: 1; transform: translateY(0); }
.hero.is-loaded .hero-eyebrow.load-item { transition-delay: 0s; }
.hero.is-loaded h1.load-item { transition-delay: 0.08s; }
.hero.is-loaded .hero-lede.load-item { transition-delay: 0.16s; }
.hero.is-loaded .hero-actions.load-item { transition-delay: 0.24s; }
.hero.is-loaded .hero-media.load-item { transition-delay: 0.2s; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azure-700);
  background: var(--azure-100);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.12rem; max-width: 46ch; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media {
  position: relative;
}
.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .plaque {
  position: absolute;
  left: -24px;
  bottom: -28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 18px 40px -18px rgba(14, 42, 74, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
}
.plaque strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--azure-800);
  display: block;
  line-height: 1;
}
.plaque span { font-size: 0.82rem; color: var(--slate-600); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .plaque { left: 16px; bottom: -20px; }
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats-band {
  background: var(--azure-800);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--on-dark-muted); font-size: 0.92rem; font-weight: 600; }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

/* ==========================================================================
   Cards: feature / why-choose-us
   ========================================================================== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card:hover { border-color: var(--azure-500); transform: translateY(-4px); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--azure-100);
  color: var(--azure-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.98rem; }

/* Two-column media+text block, alternating */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-block.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 5/4;
  object-fit: cover;
}
.split-block + .split-block { margin-top: 88px; }

@media (max-width: 900px) {
  .split-block, .split-block.reverse .split-media { grid-template-columns: 1fr; order: initial; }
  .split-block { grid-template-columns: 1fr; }
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--slate-700);
}
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--azure-600); }

/* ==========================================================================
   Leadership
   ========================================================================== */

.leader-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
}
.avatar-ring {
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--azure-600), var(--azure-900));
  border: 4px solid var(--azure-100);
}
.leader-card h3 { margin-bottom: 2px; }
.leader-role { color: var(--azure-600); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; display: block; }
.leader-card p { font-size: 0.95rem; }

/* ==========================================================================
   Testimonials / carousel
   ========================================================================== */

.testimonial-wrap { position: relative; }
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.t-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.t-quote { color: var(--slate-700); font-size: 0.98rem; margin-bottom: 20px; }
.t-person { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--azure-100); color: var(--azure-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.t-role { font-size: 0.82rem; color: var(--slate-600); }

.carousel-controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 32px;
}
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--azure-800);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel-btn:hover { background: var(--azure-800); color: var(--white); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--slate-200); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: var(--azure-700); width: 22px; border-radius: 5px; transition: width 0.25s var(--ease); }

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 100%; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--azure-500); }
.filter-btn.active { background: var(--azure-800); border-color: var(--azure-800); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(14,42,74,0.85));
  color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14, 20, 30, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none; color: var(--white);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; color: var(--on-dark-muted); font-size: 0.92rem;
}

/* ==========================================================================
   Map / location
   ========================================================================== */

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-info {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 24px 28px;
  background: var(--azure-50);
}
.map-info .item { display: flex; gap: 12px; align-items: flex-start; }
.map-info svg { color: var(--azure-700); flex-shrink: 0; margin-top: 2px; }
.map-info h4 { margin: 0 0 2px; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); }
.map-info p { margin: 0; font-size: 0.9rem; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--azure-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: var(--on-dark-muted); }
.info-row { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.info-row:first-of-type { border-top: none; margin-top: 8px; }
.info-row svg { color: var(--azure-200); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { margin: 0 0 2px; font-size: 0.95rem; color: var(--white); }
.info-row p { margin: 0; font-size: 0.9rem; color: var(--on-dark-muted); }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.social-row a:hover { background: rgba(255,255,255,0.15); }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--slate-700); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure-600);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--slate-600); margin-top: 12px; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: var(--azure-100); color: var(--azure-800);
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; margin-bottom: 20px;
}
.form-success.is-visible { display: flex; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--azure-700);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin: 0 28px;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }
.cta-band p { color: var(--on-dark-muted); margin-top: 6px; }
.cta-band .btn-primary { background: var(--white); color: var(--azure-800); }
.cta-band .btn-primary:hover { background: var(--azure-50); }

@media (max-width: 720px) {
  .cta-band { padding: 40px 28px; margin: 0 16px; flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  padding: 62px 0 54px;
  background: var(--azure-50);
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.88rem; color: var(--azure-600); font-weight: 600; margin-bottom: 10px;
}
.page-hero p { max-width: 60ch; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--azure-900); color: var(--on-dark-muted); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: var(--on-dark-muted); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}

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

/* ==========================================================================
   Floating WhatsApp + Back to top
   ========================================================================== */

.float-whatsapp {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.55);
  z-index: 200;
  transition: transform 0.2s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; color: var(--white); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 92px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--azure-900);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 560px) {
  .float-whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 78px; width: 40px; height: 40px; }
}

/* ==========================================================================
   Trust bar (accreditations / affiliations)
   ========================================================================== */

.trust-bar {
  padding: 36px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
  flex-shrink: 0;
}
.trust-marks {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--slate-600);
}
.trust-mark svg { color: var(--azure-500); flex-shrink: 0; }

/* ==========================================================================
   Admissions timeline (genuinely sequential — numbering earns its place)
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--slate-200);
}
.timeline-step {
  position: relative;
  padding: 0 18px;
  text-align: center;
}
.timeline-num {
  width: 46px; height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--azure-600);
  color: var(--azure-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-step p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .timeline-step { text-align: left; padding-left: 64px; }
  .timeline-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ==========================================================================
   Pull quote (principal's message, etc.)
   ========================================================================== */

.pull-quote {
  position: relative;
  padding-left: 6px;
}
.pull-quote .quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  color: var(--azure-200);
  line-height: 0.6;
  display: block;
  margin-bottom: 4px;
}
.pull-quote h2 {
  font-style: italic;
  font-weight: 500;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.faq-question .chevron {
  flex-shrink: 0;
  color: var(--azure-600);
  transition: transform 0.25s var(--ease);
}
.faq-item.is-open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer p { padding: 0 4px 22px; margin: 0; font-size: 0.96rem; }

/* ==========================================================================
   Alumni / achievements strip
   ========================================================================== */

.achieve-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.achieve-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--azure-600);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.achieve-card .achieve-icon { color: var(--azure-600); margin-bottom: 14px; }
.achieve-card h4 { font-family: var(--font-body); font-size: 1rem; color: var(--ink); margin: 0 0 6px; }
.achieve-card p { font-size: 0.9rem; margin: 0; }

@media (max-width: 900px) {
  .achieve-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .achieve-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   News / announcements
   ========================================================================== */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--azure-500); }
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azure-700);
  background: var(--azure-100);
  padding: 5px 12px;
  border-radius: 100px;
  margin: 22px 22px 14px;
}
.news-card h3 { padding: 0 22px; font-size: 1.12rem; margin-bottom: 8px; }
.news-card p { padding: 0 22px; font-size: 0.92rem; }
.news-card .news-link {
  display: block;
  padding: 16px 22px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--azure-700);
}

/* ==========================================================================
   Fees & admission criteria
   ========================================================================== */

.fees-table-wrap {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fees-table { width: 100%; border-collapse: collapse; }
.fees-table th, .fees-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.95rem;
}
.fees-table thead th {
  background: var(--azure-800);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
}
.fees-table tbody tr:nth-child(even) { background: var(--azure-50); }
.fees-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.fees-table tbody td { color: var(--slate-700); }
.fees-note {
  padding: 18px 22px;
  background: var(--azure-50);
  font-size: 0.86rem;
  color: var(--slate-600);
  border-top: 1px solid var(--slate-200);
}
@media (max-width: 560px) {
  .fees-table { font-size: 0.85rem; }
  .fees-table th, .fees-table td { padding: 12px 14px; }
}

.criteria-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 720px) { .criteria-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Virtual tour video
   ========================================================================== */

.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.video-block img { width: 100%; height: 100%; object-fit: cover; }
.video-block::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,74,0.1), rgba(14,42,74,0.55));
}
.video-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; z-index: 1; color: var(--white);
}
.video-play-btn {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--azure-800);
  transition: transform 0.2s var(--ease);
}
.video-block:hover .video-play-btn { transform: scale(1.08); }
.video-play span { font-weight: 700; font-size: 0.98rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14,20,30,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
}
.video-modal.is-open { display: flex; }
.video-modal-inner {
  background: var(--azure-900);
  color: var(--white);
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
  position: relative;
}
.video-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.video-modal-inner h3 { color: var(--white); }
.video-modal-inner p { color: var(--on-dark-muted); }

/* ==========================================================================
   Sticky mobile "Apply Now" bar
   ========================================================================== */

.mobile-apply-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -16px rgba(14,42,74,0.35);
}
@media (max-width: 720px) {
  .mobile-apply-bar { display: block; }
  body { padding-bottom: 74px; }
  .float-whatsapp { bottom: 90px; }
  .back-to-top { bottom: 158px; }
}

/* ==========================================================================
   Cookie consent notice
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--azure-900);
  color: var(--on-dark-muted);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 500;
  box-shadow: 0 20px 44px -16px rgba(14,42,74,0.55);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: var(--on-dark-muted); flex: 1 1 280px; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 86px; }
}

/* ==========================================================================
   Form field errors
   ========================================================================== */

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}
.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}
.field.has-error .field-error { display: block; }

/* ==========================================================================
   404 / empty state
   ========================================================================== */

.empty-state {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.empty-state .hero-motif { top: 6%; right: -10%; opacity: 0.5; }
.empty-state-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--azure-200);
  line-height: 1;
  margin-bottom: 8px;
}
.empty-state p { max-width: 46ch; margin: 0 auto 32px; font-size: 1.05rem; }
.empty-state .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.85rem; color: var(--slate-600); }


/* ==========================================================================
   Premium refinement layer
   ========================================================================== */

:root {
  --surface-soft: #f7f9fc;
  --surface-warm: #fbfaf7;
  --shadow-soft: 0 12px 35px rgba(14, 42, 74, 0.08);
  --shadow-hover: 0 20px 45px rgba(14, 42, 74, 0.13);
  --radius-xl: 28px;
}

::selection {
  background: var(--azure-200);
  color: var(--azure-900);
}

body {
  overflow-x: hidden;
}

.site-header {
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(14, 42, 74, 0.10);
}

.brand:hover .brand-mark {
  transform: rotate(-2deg) scale(1.03);
}

.brand-mark {
  transition: transform 0.25s var(--ease);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.btn {
  box-shadow: 0 4px 14px rgba(14, 42, 74, 0.05);
}

.btn-primary {
  box-shadow: 0 8px 20px rgba(27, 79, 145, 0.20);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 79, 145, 0.25);
}

.btn-outline:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: 620px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -220px;
  top: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,125,209,0.10), transparent 68%);
  pointer-events: none;
}

.hero-media .frame {
  box-shadow: var(--shadow-hover);
  border: 8px solid rgba(255,255,255,0.86);
}

.hero-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,42,74,0.08), transparent 45%, rgba(46,125,209,0.10));
  pointer-events: none;
}

.hero-media .plaque {
  box-shadow: 0 20px 50px rgba(14, 42, 74, 0.16);
}

.stats-band {
  position: relative;
  overflow: hidden;
}

.stats-band::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -180px;
  top: -220px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,0.025),
              0 0 0 140px rgba(255,255,255,0.018);
  pointer-events: none;
}

.feature-card,
.leader-card,
.testimonial-card {
  box-shadow: 0 4px 18px rgba(14, 42, 74, 0.035);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--azure-700), var(--azure-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--azure-200);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.split-media {
  position: relative;
}

.split-media::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -14px;
  bottom: -14px;
  border-radius: 18px;
  background: var(--azure-100);
  z-index: -1;
}

.split-media img {
  box-shadow: var(--shadow-soft);
}

.section-head h2 {
  letter-spacing: -0.02em;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 0 0 45px rgba(255,255,255,0.025),
              0 0 0 90px rgba(255,255,255,0.018);
  pointer-events: none;
}

.gallery-item {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  transition: transform 0.55s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.contact-info-card,
.contact-form-card {
  box-shadow: var(--shadow-soft);
}

.faq-item {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:has(.is-open) {
  box-shadow: var(--shadow-soft);
}

.site-footer {
  position: relative;
}

.footer-grid a {
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-grid a:hover {
  transform: translateX(2px);
}

.mobile-apply-bar {
  box-shadow: 0 -10px 30px rgba(14,42,74,0.12);
}

.back-to-top {
  box-shadow: 0 8px 22px rgba(14,42,74,0.18);
}

@media (max-width: 900px) {
  section {
    padding: 72px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding: 46px 0 76px;
  }

  .hero-media .frame {
    border-width: 5px;
  }

  .hero-media .plaque {
    max-width: calc(100% - 32px);
  }

  .nav-links {
    box-shadow: -16px 0 40px rgba(14,42,74,0.08);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-media .plaque {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -12px 12px 0;
    width: calc(100% - 24px);
  }

  .stats-grid {
    gap: 18px;
  }

  .stat-num {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .footer-grid a:hover {
    transform: none;
  }
}


.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azure-500), var(--azure-700));
  z-index: 1001;
  transition: width 0.08s linear;
  pointer-events: none;
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
}


/* Content update additions */
.hero-trust { margin-top: 24px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; color: var(--azure-800); }
.hero-trust strong { font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; }
.hero-trust span { font-family: "Fraunces", serif; font-size:1.2rem; }
.leadership-stack { display:grid; gap:20px; max-width:980px; margin:0 auto; }
.leadership-stack .testimonial-card { padding:34px; }
.uniform-table-wrap { overflow:auto; border:1px solid var(--border); border-radius:20px; background:#fff; }
.uniform-table { width:100%; border-collapse:collapse; min-width:760px; }
.uniform-table th,.uniform-table td { padding:18px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.uniform-table thead th { background:var(--azure-50); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.uniform-table tbody th { width:24%; font-weight:700; }
.rules-list { max-width:950px; margin:0 auto; padding-left:24px; }
.rules-list li { margin:0 0 16px; padding-left:8px; line-height:1.75; }
.map-placeholder { min-height:300px; border-radius:28px; background:linear-gradient(135deg,#edf4fb,#f7f9fc); border:1px solid var(--border); display:grid; place-items:center; text-align:center; box-shadow:var(--shadow-soft); }
.map-placeholder div { display:grid; gap:6px; }
.map-placeholder strong { font-family:"Fraunces",serif; font-size:2rem; color:var(--azure-900); }
.map-placeholder span { color:var(--text-muted); }
.contact-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.footer-contact { margin-top:18px; }
.footer-contact a { color:inherit; }
@media(max-width:700px){
  .uniform-table-wrap { border-radius:16px; }
  .leadership-stack .testimonial-card { padding:24px; }
  .map-placeholder { min-height:230px; }
}
