/* =====================================================================
   RHENA SCHOOLS — SITE STYLES
   Palette is drawn from the school crest: royal blue, gold and navy.
   ===================================================================== */

:root {
  --navy-deep: #061a40;
  --navy: #0a2a66;
  --blue: #1553b6;
  --blue-light: #2f73d9;
  --blue-soft: #eef3fc;
  --gold: #f5b50a;
  --gold-light: #ffd24d;
  --gold-text: #9a6b00;
  --ink: #12203d;
  --muted: #586278;
  --line: #e2e8f2;
  --paper: #ffffff;
  --ivory: #f6f8fc;

  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --shadow: 0 6px 24px rgba(10, 42, 102, 0.1);
  --shadow-lg: 0 18px 50px rgba(10, 42, 102, 0.18);
  --header-h: 76px;
}

/* ===================== RESET / BASE ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow-light {
  color: var(--gold-light);
}
.section-title,
.about-text h2,
.headmistress-text h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.2;
  color: var(--navy-deep);
  font-weight: 700;
}
.section-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 1.04rem;
}
.seal-divider {
  display: flex;
  justify-content: center;
  margin: 18px auto 20px;
}
.seal-divider span {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(245, 181, 10, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 181, 10, 0.5);
}
.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-deep);
}

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--navy-deep);
  color: #d5deef;
  font-size: 0.8rem;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  white-space: nowrap;
}
.topbar-item i {
  color: var(--gold);
}
.topbar-badge {
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
a.topbar-item:hover {
  color: #fff;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(10, 42, 102, 0.12);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--navy-deep);
}
.brand-text small {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.caret {
  font-size: 0.62rem;
  transition: transform 0.2s ease;
}
.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.dropdown a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--blue-soft);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media {
  position: relative;
  padding: 0 0 28px 28px;
}
.about-media::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 28px;
  bottom: 28px;
  border: 3px solid var(--gold);
  border-radius: 24px;
}
.about-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 181, 10, 0.45);
}
.float-card i {
  font-size: 1.5rem;
  color: var(--gold);
}
.float-card span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9c5df;
}
.float-card strong {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--gold-light);
}
.about-text h2 {
  margin-bottom: 20px;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
  font-size: 0.97rem;
}
.about-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 50%;
}

/* ===================== DIRECTRESS ===================== */
.headmistress {
  background: var(--blue-soft);
}
.headmistress-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: center;
}
.headmistress-photo {
  display: flex;
  justify-content: center;
}
.headmistress-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow:
    0 0 0 4px var(--gold),
    var(--shadow-lg);
}
.headmistress-text h2 {
  margin-bottom: 24px;
}
.headmistress-text blockquote {
  position: relative;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.7;
  color: var(--navy);
  padding-left: 26px;
  border-left: 4px solid var(--gold);
}
.headmistress-name {
  margin-top: 26px;
  padding-left: 30px;
}
.headmistress-name strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  color: var(--navy-deep);
}
.headmistress-name span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ===================== ACADEMICS ===================== */
.academics {
  background: #fff;
}
.academics.section {
  padding-top: 0;
}
.section-banner {
  position: relative;
  overflow: hidden;
  padding: 88px 0 160px;
  background: var(--navy-deep);
}
.section-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 64, 0.86) 0%,
    rgba(10, 42, 102, 0.78) 100%
  );
}
.section-banner .container {
  position: relative;
  z-index: 1;
}
.section-banner .section-head {
  margin-bottom: 0;
}
.section-banner .section-title {
  color: #fff;
}
.section-banner .section-sub {
  color: #d3dcef;
}
.academics .academic-cards {
  position: relative;
  z-index: 2;
  margin-top: -100px;
}
.academic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.academic-card {
  position: relative;
  padding: 40px 32px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.academic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.academic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.academic-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(21, 83, 182, 0.3);
}
.age-range {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: #fff6dc;
  border-radius: 999px;
}
.academic-card h3 {
  margin: 12px 0 10px;
  font-family: var(--ff-head);
  font-size: 1.6rem;
  color: var(--navy-deep);
}
.academic-card > p {
  color: var(--muted);
  font-size: 0.95rem;
}
.academic-card ul {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.academic-card li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
}
.academic-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.74rem;
  color: var(--blue);
}

/* ===================== WHY RHENA ===================== */
.why {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}
.why-bg {
  position: absolute;
  inset: 0;
}
.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.why-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(47, 115, 217, 0.4),
      transparent 55%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(245, 181, 10, 0.16),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(6, 26, 64, 0.93) 0%,
      rgba(8, 36, 88, 0.88) 50%,
      rgba(6, 26, 64, 0.94) 100%
    );
}
.why > .container {
  position: relative;
  z-index: 1;
}
.why .section-title {
  color: #fff;
}
.why .section-sub {
  color: #b9c5df;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 34px 26px;
  text-align: center;
  background: rgba(6, 26, 64, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  background: rgba(10, 42, 102, 0.7);
  border-color: rgba(245, 181, 10, 0.55);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(245, 181, 10, 0.3);
}
.why-card h4 {
  margin-bottom: 10px;
  font-family: var(--ff-head);
  font-size: 1.2rem;
}
.why-card p {
  font-size: 0.9rem;
  color: #d3dcef;
}

/* ===================== GALLERY ===================== */
.gallery {
  background: var(--ivory);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #dfe6f3;
  box-shadow: var(--shadow);
}
.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(6, 26, 64, 0.82),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item .overlay::after {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 50%;
}
.gallery-item:hover .overlay,
.gallery-item:focus-visible .overlay {
  opacity: 1;
}
.gallery-item .overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (hover: none) {
  .gallery-item .overlay {
    opacity: 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(4, 12, 30, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: min(1000px, 84vw);
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #d5deef;
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-deep);
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  padding: 0 0 4px;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  background: #fff;
}
.testi-slider {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--blue-soft);
  border: 1px solid #d9e4f7;
  border-radius: 24px;
}
.testi-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testi-slide {
  flex: 0 0 100%;
  padding: 48px 56px 40px;
  text-align: center;
}
.quote-mark {
  display: block;
  height: 54px;
  font-family: var(--ff-head);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold);
}
.quote {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: var(--navy);
}
.testi-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.testi-person .name {
  font-weight: 600;
  color: var(--navy-deep);
}
.testi-person .role {
  font-size: 0.82rem;
  color: var(--muted);
}
.testi-controls {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding-bottom: 22px;
}
.testi-dot {
  width: 28px;
  height: 28px;
  padding: 9px;
  background: #c3d3ee;
  background-clip: content-box;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}
.testi-dot.active {
  width: 48px;
  background: var(--blue);
  background-clip: content-box;
}

/* ===================== CTA STRIP ===================== */
.cta-strip {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background: var(--navy);
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
}
.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 26, 64, 0.95) 0%,
    rgba(10, 42, 102, 0.86) 48%,
    rgba(21, 83, 182, 0.68) 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-strip h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 8px;
}
.cta-strip p {
  color: #d5e1f7;
  max-width: 560px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

/* ===================== MAP / LOCATION ===================== */
.map-section {
  background: var(--ivory);
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 28px;
  align-items: stretch;
}
.map-cards {
  display: grid;
  gap: 16px;
  align-content: start;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.info-card > i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 14px;
}
.info-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 2px;
}
.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.info-card a {
  display: inline-block;
  padding: 4px 0;
}
.info-card a:hover {
  color: var(--blue);
}
.map-frame {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  color: #b9c5df;
  background: var(--navy-deep);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.3fr 1.3fr;
  gap: 48px;
}
.site-footer .brand-text {
  color: #fff;
}
.site-footer .brand-text small {
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 0.74rem;
}
.logo-on-dark {
  height: 56px;
  padding: 5px;
  background: #fff;
  border-radius: 14px;
}
.footer-brand > p {
  margin: 20px 0;
  max-width: 340px;
  font-size: 0.92rem;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.socials a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
}
.footer-col h5 {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a,
.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer-col a {
  display: inline-block;
  padding: 3px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-note {
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.subscribe-form {
  display: flex;
  gap: 8px;
}
.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
.subscribe-form input::placeholder {
  color: #8b99b8;
}
.subscribe-form button {
  padding: 11px 18px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-deep);
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.subscribe-form button:hover {
  background: var(--gold-light);
}
.form-note {
  margin-top: 10px;
  font-size: 0.82rem;
  min-height: 1.2em;
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-values {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-light);
}

/* ===================== SCROLL REVEAL ===================== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.js .academic-card.reveal.visible:hover,
.js .why-card.reveal.visible:hover {
  transform: translateY(-6px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .about-grid {
    gap: 56px;
  }
  .headmistress-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
  .headmistress-photo img {
    width: 250px;
    height: 250px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .academic-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .map-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }
  .hamburger {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link::after {
    display: none;
  }
  .has-dropdown .nav-link {
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
  }
  .has-dropdown.open .caret {
    transform: rotate(180deg);
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
  }
  .header-cta .btn {
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  .about-grid,
  .headmistress-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .float-card {
    right: 0;
  }
  .headmistress-text {
    text-align: center;
  }
  .headmistress-text blockquote {
    padding-left: 0;
    border-left: 0;
    padding-top: 20px;
    border-top: 4px solid var(--gold);
  }
  .headmistress-name {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .topbar-inner {
    justify-content: center;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .logo-mark {
    height: 44px;
  }
  .header-cta .btn {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    gap: 10px;
  }
  .testi-slide {
    padding: 36px 24px 28px;
  }
  .lightbox {
    gap: 6px;
    padding: 12px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-close {
    top: -14px;
    right: -6px;
  }
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===================== SMALL PHONES (iPhone 6/7/8 = 375px, 5/SE = 320px) ===================== */
@media (max-width: 600px) {
  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }
  .lightbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 14px 24px;
    padding: 16px 12px;
  }
  .lightbox-content {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
  }
  .lightbox-content img {
    max-height: 66vh;
  }
  .lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
  .lightbox-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .lightbox-nav {
    width: 48px;
    height: 48px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .section-banner {
    padding: 56px 0 120px;
  }
  .academics .academic-cards {
    margin-top: -80px;
  }
  .container,
  .nav-wrap,
  .hero-inner,
  .cta-inner,
  .footer-grid,
  .footer-bottom,
  .topbar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section {
    padding: 56px 0;
  }
  .academics.section {
    padding-top: 0;
  }
  .section-title,
  .about-text h2,
  .headmistress-text h2 {
    font-size: 1.75rem;
  }
  .about-media {
    padding: 0 0 26px 14px;
  }
  .about-media::before {
    top: 14px;
    bottom: 40px;
    right: 14px;
    border-radius: 20px;
  }
  .float-card {
    right: 0;
    padding: 14px 16px;
    gap: 10px;
  }
  .float-card strong {
    font-size: 0.98rem;
  }
  .headmistress-photo img {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }
  .academic-card {
    padding: 34px 22px 28px;
  }
  .why-card {
    padding: 28px 22px;
  }
  .gallery-grid {
    gap: 8px;
  }
  .gallery-item .overlay {
    padding: 10px;
  }
  .gallery-item .overlay span {
    font-size: 0.78rem;
  }
  .gallery-item .overlay::after {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .testi-slide {
    padding: 32px 20px 20px;
  }
  .quote-mark {
    height: 44px;
    font-size: 4.5rem;
  }
  .testi-person {
    gap: 12px;
  }
  .cta-strip {
    padding: 56px 0;
  }
  .info-card {
    padding: 18px;
    gap: 14px;
  }
  .footer-grid {
    padding-top: 48px;
    padding-bottom: 32px;
  }
}

@media (max-width: 360px) {
  .brand-text {
    font-size: 1rem;
  }
  .brand-text small {
    letter-spacing: 0.12em;
  }
  .logo-mark {
    height: 40px;
  }
  .brand {
    gap: 9px;
  }
  .topbar {
    font-size: 0.74rem;
  }
  .topbar-inner {
    justify-content: center;
  }
  .hero-actions .btn {
    padding: 12px 20px;
  }
  .float-card span {
    font-size: 0.62rem;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form button {
    padding: 12px 18px;
  }
}

/* Landscape phones: keep the menu and hero inside the short viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .main-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .lightbox-content img {
    max-height: 60vh;
  }
}

/* ===================== HERO STAGE ===================== */
.hero-stage {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 84px 0 132px;
  background:
    linear-gradient(
      105deg,
      rgba(6, 26, 64, 0.94) 0%,
      rgba(10, 42, 102, 0.82) 48%,
      rgba(21, 83, 182, 0.35) 100%
    ),
    url("assets/images/web/school-facade.jpg") center 38% / cover no-repeat;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    ellipse at 25% 40%,
    #000 10%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse at 25% 40%, #000 10%, transparent 72%);
}
.hero-watermark {
  position: absolute;
  right: -1vw;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(6.5rem, 21vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
  transform: translateY(var(--py, 0px));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.tiny-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 181, 10, 0.6);
  animation: livePulse 2.2s ease-out infinite;
}
.hero-stage h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 24px;
}
.heading-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hl-in {
  display: block;
  transform: translateY(112%);
  animation: lineIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.heading-line:nth-child(1) .hl-in {
  animation-delay: 0.1s;
}
.heading-line:nth-child(2) .hl-in {
  animation-delay: 0.25s;
}
.heading-line:nth-child(3) .hl-in {
  animation-delay: 0.4s;
}
.heading-line.accent {
  position: relative;
  width: fit-content;
  font-style: italic;
}
.heading-line.accent .hl-in {
  color: var(--gold-light);
}
.heading-line.accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.07em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 181, 10, 0));
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 0.9s 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-stage .hero-copy > p,
.hero-actions,
.hero-note {
  opacity: 0;
  animation: softIn 0.8s ease forwards;
}
.hero-stage .hero-copy > p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #dbe5f7;
  margin: 12px 0 32px;
  max-width: 540px;
  animation-delay: 0.65s;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  animation-delay: 0.8s;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.text-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}
.text-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}
.text-link:hover i {
  transform: translateX(4px);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 0.9rem;
  color: #dbe5f7;
  animation-delay: 0.95s;
}
.mini-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 50%;
}

/* Hero scene: tilting photo frame */
.hero-scene {
  position: relative;
  touch-action: pan-y;
  justify-self: center;
  width: min(100%, 380px);
  padding: 20px 0 8px;
  perspective: 1100px;
}
.scene-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  opacity: 0;
  animation: sceneIn 1s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.scene-frame {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  aspect-ratio: 857 / 1000;
  border-radius: 34px;
  border: 5px solid var(--gold-light);
  background: var(--navy);
  box-shadow:
    0 30px 70px rgba(2, 10, 30, 0.55),
    0 0 0 10px rgba(255, 255, 255, 0.08);
}
.scene-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.frame-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 7s 2s ease-in-out infinite;
}
.chip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(2, 10, 30, 0.35);
  animation: bob 5.5s ease-in-out infinite;
  white-space: nowrap;
}
.chip i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
}
.chip strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}
.chip small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}
.chip-a {
  animation-delay: 0s;
}
.chip-b {
  animation-delay: -2s;
}
.chip-c {
  animation-delay: -3.5s;
}
.scene-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.orbit-one {
  width: 128%;
  animation: spin 60s linear infinite;
}
.orbit-two {
  width: 104%;
  border-color: rgba(245, 181, 10, 0.3);
  animation: spin 44s linear infinite reverse;
}
.scene-float {
  position: absolute;
  z-index: 2;
  color: var(--gold);
  font-size: 1.15rem;
  filter: drop-shadow(0 4px 8px rgba(2, 10, 30, 0.4));
  animation: float 6s ease-in-out infinite;
}
.float-a {
  top: 0;
  right: 10%;
  font-size: 1.5rem;
}
.float-b {
  top: 30%;
  left: -16%;
  color: var(--gold-light);
  animation-delay: -1.5s;
}
.float-c {
  bottom: 24%;
  right: -14%;
  animation-delay: -3s;
}
.float-d {
  bottom: 6%;
  right: 12%;
  font-size: 0.9rem;
  animation-delay: -4.5s;
}
.bell-trigger {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px auto 0;
  padding: 11px 22px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.bell-trigger i {
  color: var(--gold);
  transition: color 0.2s ease;
}
.bell-trigger:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.bell-trigger:hover i {
  color: var(--navy-deep);
}
.bell-trigger.ringing i {
  animation: bellRing 0.7s ease;
}
.spark-particle {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  color: var(--gold-light);
  font-size: 0.9rem;
  animation: burst 0.95s ease-out forwards;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollNudge 2s ease-in-out infinite;
}
.scroll-cue i {
  font-size: 0.7rem;
  color: var(--gold);
}

/* ===================== BRAND RIBBON ===================== */
.brand-ribbon {
  overflow: hidden;
  white-space: nowrap;
  color: var(--navy-deep);
  background: var(--gold);
  border-block: 1px solid rgba(6, 26, 64, 0.15);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbonMove 38s linear infinite;
}
.brand-ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
.ribbon-track > div {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 30px;
  padding: 14px 15px;
}
.ribbon-track span {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ribbon-track i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  padding: 56px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.trust-item i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
}
.trust-item strong {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* ===================== NEW SHARED PIECES ===================== */
h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
}
.section-banner h2 em,
.why h2 em {
  color: var(--gold-light);
}
.section-index {
  margin-right: 4px;
  color: var(--blue);
}
.eyebrow-light .section-index {
  color: #fff;
  opacity: 0.75;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
  box-shadow: 0 10px 24px rgba(21, 83, 182, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21, 83, 182, 0.5);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch > span {
  display: none;
}
.lang-switch button {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lang-switch button:hover {
  color: var(--blue);
}
.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
}

/* Programme cards: number + icon row */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-top .academic-icon {
  margin-bottom: 0;
}
.card-number {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(21, 83, 182, 0.16);
}

/* ===================== BRAND INTERLUDE ===================== */
.brand-interlude {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 115, 217, 0.4), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(245, 181, 10, 0.16), transparent 50%),
    var(--navy-deep);
}
.interlude-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 1.15;
}
.interlude-words b {
  margin-left: -0.28em;
  color: var(--gold);
}
.interlude-sub {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.interlude-star {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
  animation: float 7s ease-in-out infinite;
}
.star-1 {
  top: 18%;
  left: 8%;
  font-size: 1.6rem;
}
.star-2 {
  bottom: 16%;
  right: 9%;
  font-size: 1rem;
  animation-delay: -3s;
}

/* ===================== HOW TO ENROL ===================== */
.enrol {
  background: var(--ivory);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 17%;
  right: 17%;
  border-top: 2px dashed rgba(21, 83, 182, 0.32);
}
.step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}
.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold-text);
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
  border: 4px solid var(--ivory);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--gold),
    0 14px 30px rgba(21, 83, 182, 0.3);
  transition: transform 0.3s ease;
}
.step:hover .step-icon {
  transform: translateY(-4px) scale(1.05);
}
.step h3 {
  margin-bottom: 8px;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  color: var(--navy-deep);
}
.step p {
  max-width: 300px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--muted);
}
.enrol-actions {
  margin-top: 52px;
  text-align: center;
}

/* ===================== FAQ ===================== */
.faq {
  background: #fff;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.faq-intro h2 {
  margin-bottom: 14px;
}
.faq-intro p {
  margin-bottom: 24px;
  color: var(--muted);
}
.faq-item {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(21, 83, 182, 0.4);
  box-shadow: var(--shadow);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--blue);
}
.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--blue-soft);
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-plus {
  background: var(--gold);
  transform: rotate(45deg);
}
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after {
  background: var(--navy-deep);
}
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  animation: faqIn 0.35s ease;
}

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 1.9rem;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: rippleOut 2.6s ease-out infinite;
}

/* ===================== KEYFRAMES ===================== */
@keyframes lineIn {
  to {
    transform: translateY(0);
  }
}
@keyframes drawLine {
  to {
    transform: scaleX(1);
  }
}
@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sceneIn {
  from {
    opacity: 0;
    translate: 0 40px;
    scale: 0.96;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateZ(50px);
  }
  50% {
    transform: translateY(-10px) translateZ(50px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes shine {
  0%,
  60% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
@keyframes ribbonMove {
  to {
    transform: translateX(-50%);
  }
}
@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 10px rgba(245, 181, 10, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 181, 10, 0);
  }
}
@keyframes scrollNudge {
  0%,
  100% {
    transform: scaleY(0.5);
    transform-origin: top;
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(18deg);
  }
  40% {
    transform: rotate(-16deg);
  }
  60% {
    transform: rotate(10deg);
  }
  80% {
    transform: rotate(-6deg);
  }
}
@keyframes burst {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.4) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(220deg);
  }
}
@keyframes rippleOut {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mid-size screens: keep the longer French header on one row */
@media (max-width: 1180px) and (min-width: 821px) {
  .nav-wrap {
    gap: 12px;
  }
  .nav-link {
    padding: 10px 8px;
    font-size: 0.86rem;
  }
  .nav-link::after {
    left: 8px;
    right: 8px;
  }
  .brand-text {
    font-size: 1.12rem;
  }
  .header-btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
  .header-cta {
    gap: 8px;
  }
}
@media (max-width: 880px) and (min-width: 821px) {
  .header-btn {
    display: none;
  }
}
@media (max-width: 960px) and (min-width: 821px) {
  .brand-text small {
    display: none;
  }
  .nav-link {
    padding: 10px 6px;
    font-size: 0.82rem;
  }
}

/* ===================== RESPONSIVE: NEW COMPONENTS ===================== */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 28px;
  }
  .faq-grid {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .hero-stage {
    padding: 64px 0 96px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-scene {
    width: min(100%, 360px);
  }
  .scroll-cue {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 440px;
    margin: 0 auto;
  }
  .steps::before {
    display: none;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-intro {
    position: static;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}
@media (max-width: 600px) {
  .topbar-tagline {
    display: none;
  }
  .lang-switch button {
    min-width: 32px;
    height: 28px;
  }
  .wa-float {
    width: 54px;
    height: 54px;
    font-size: 1.75rem;
  }
  .trust-strip {
    padding: 44px 16px;
  }
  .trust-item strong {
    font-size: 2.1rem;
  }
  .brand-interlude {
    padding: 68px 0;
  }
  .interlude-star {
    display: none;
  }
  .interlude-sub {
    letter-spacing: 0.16em;
  }
}
@media (max-width: 480px) {
  .hero-stage {
    padding: 48px 0 84px;
  }
  .hero-stage h1 {
    font-size: clamp(2.05rem, 9.6vw, 2.5rem);
  }
  .hero-stage .hero-copy > p {
    font-size: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-scene {
    width: min(86%, 320px);
  }
  .chip {
    padding: 8px 12px 8px 8px;
  }
  .chip i {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .chip strong {
    font-size: 0.8rem;
  }
  .chip small {
    font-size: 0.6rem;
  }
  .float-b {
    left: -18%;
  }
  .float-c {
    right: -16%;
  }
  .nav-wrap {
    gap: 10px;
  }
  .header-cta {
    gap: 8px;
  }
  .hamburger {
    width: 40px;
    height: 40px;
  }
  .step-icon {
    width: 76px;
    height: 76px;
  }
  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .faq-body {
    padding: 0 18px 18px;
  }
  .ribbon-track span {
    font-size: 0.92rem;
  }
}
@media (max-width: 400px) {
  .topbar-badge {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .lang-switch button {
    min-width: 28px;
    padding: 0 5px;
  }
  .hero-scene {
    width: min(80%, 280px);
  }
  .chip small {
    display: none;
  }
  .trust-item {
    font-size: 0.76rem;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero-stage {
    padding: 40px 0 70px;
  }
}

/* ===================== REDUCED MOTION ===================== */
/* Visitors who ask for less motion keep the soft one-time fades, but lose
   sliding, floating, spinning, scrolling and tilting movement. */
@keyframes fadeOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transform: none;
    transition: opacity 0.6s ease;
  }
  .hl-in {
    transform: none;
    opacity: 0;
    animation-name: fadeOnly;
  }
  .scene-card {
    animation-name: fadeOnly;
  }
  .hero-stage .hero-copy > p,
  .hero-actions,
  .hero-note {
    animation-name: fadeOnly;
  }
  .ribbon-track,
  .chip,
  .scene-float,
  .scene-orbit,
  .frame-shine,
  .tiny-dot,
  .scroll-line,
  .interlude-star,
  .wa-float::after,
  .bell-trigger.ringing i {
    animation: none !important;
  }
  .brand-ribbon {
    overflow-x: auto;
  }
}
