/* =================================================================
   SIMBA INTERNATIONAL SCHOOL — Homepage styles
   Brand colours from the school crest: deep royal navy + metallic
   gold/bronze, on warm cream.
   ================================================================= */

/* ----------------------------- Tokens ---------------------------- */
:root {
  --navy:        #10164A;
  --navy-2:      #1A2360;
  --navy-3:      #283185;
  --navy-deep:   #0A0E33;

  --gold:        #C6A24E;
  --gold-bright: #E4C77E;
  --gold-deep:   #7E5F30;   /* WCAG-AA on cream for eyebrow / tag text */
  --bronze:      #7A5E2E;   /* AA on cream for small uppercase labels */

  --cream:       #FAF7F0;
  --cream-2:     #F2ECDF;
  --ink:         #1B1E2C;
  --muted:       #5B6070;
  --line:        #E4DDCC;
  --white:       #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(16, 22, 74, .06);
  --shadow-md: 0 10px 30px rgba(16, 22, 74, .10);
  --shadow-lg: 0 24px 60px rgba(16, 22, 74, .18);
  --shadow-xl: 0 40px 90px rgba(16, 22, 74, .28);
  --radius:    16px;
  --radius-sm: 10px;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Accessible focus + skip link */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------- Utilities --------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--alt { background: var(--cream-2); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-bright); }

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.01em;
}
.section__title--light { color: var(--white); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section__intro--light { color: rgba(255, 255, 255, .8); }

.link-arrow {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s, transform .2s;
}
.link-arrow:hover { color: var(--gold-deep); transform: translateX(4px); }

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(198, 162, 78, .35);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(228, 199, 126, .55);
}
.btn--outline { border: 2px solid var(--gold); color: var(--gold-bright); }
.btn--outline:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { border: 2px solid rgba(255, 255, 255, .4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* On light sections, outline needs dark ink */
.section:not(.results):not(.cta) .btn--outline { color: var(--navy); }
.section:not(.results):not(.cta) .btn--outline:hover { color: var(--navy-deep); }

/* =================================================================
   TOP BAR
   ================================================================= */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 9px; }
.topbar__item { color: inherit; transition: color .2s; }
.topbar__item:hover { color: var(--gold-bright); }
.topbar__sep { color: rgba(255, 255, 255, .25); }
.topbar__classroom { margin-left: auto; color: var(--gold-bright); font-weight: 600; }
.ico { color: var(--gold); }

/* =================================================================
   HEADER
   ================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, .97); }
.header .container { max-width: 1360px; }
.header__inner { display: flex; align-items: center; gap: 16px; min-height: 78px; padding-block: 10px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__seal { width: 50px; height: 50px; object-fit: contain; transition: transform .3s var(--ease); }
.brand:hover .brand__seal { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: -.01em; }
.brand__tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 11px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  border-radius: 8px; white-space: nowrap;
  transition: color .2s;
}
.nav__link::after {              /* sliding underline */
  content: "";
  position: absolute; left: 11px; right: 11px; bottom: 4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); font-weight: 700; }
.nav__link.is-active::after { transform: scaleX(1); }
.caret { font-size: .6rem; opacity: .7; }

.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__dropdown li a {
  display: block; padding: 9px 12px; font-size: .9rem; border-radius: 7px;
  color: var(--muted); transition: background .15s, color .15s, padding-left .15s;
}
.nav__dropdown li a:hover { background: var(--cream-2); color: var(--navy); padding-left: 16px; }

.header__cta { margin-left: 8px; padding: 10px 18px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; margin-inline: auto; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   MOBILE MENU
   ================================================================= */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 200;
  height: 100dvh; width: min(360px, 86vw);
  background: var(--navy); color: var(--white);
  padding: 88px 24px 32px; overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link, .mobile-menu__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 4px;
  font-size: 1.05rem; font-weight: 500; color: var(--white);
  text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mobile-menu__toggle .caret { transition: transform .3s; }
.mobile-menu__toggle.is-open .caret { transform: rotate(180deg); }
.mobile-menu__sub { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.mobile-menu__group.is-open .mobile-menu__sub { max-height: 420px; }
.mobile-menu__sub a { display: block; padding: 11px 4px 11px 18px; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.mobile-menu__sub a:hover { color: var(--gold-bright); }
.mobile-menu__cta { margin-top: 22px; width: 100%; }

.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 14, 51, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  color: var(--white);
  padding-block: clamp(72px, 11vw, 130px) clamp(56px, 7vw, 84px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -8% 0 0 0;   /* extra top for parallax travel */
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 14, 51, .95) 0%, rgba(10, 14, 51, .82) 38%, rgba(16, 22, 74, .55) 100%),
    linear-gradient(160deg, rgba(10, 14, 51, .35), rgba(16, 22, 74, .35)),
    url("../images/hero-grounds.jpg") center 30%/cover no-repeat;
  will-change: transform;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 58%, rgba(0, 0, 0, .38)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 22px);
}
/* Animated soft accent behind the title */
.hero__accent {
  position: absolute; z-index: -1;
  top: 8%; left: 4%;
  width: min(520px, 60%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(228, 199, 126, .28), transparent 65%);
  filter: blur(20px);
  animation: heroGlow 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
  50%      { transform: translate(40px, 26px) scale(1.12); opacity: 1; }
}

.hero__inner { position: relative; }
.hero__content { max-width: 760px; }
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, .88);
  max-width: 620px; margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entry animation (staggered via --d) */
.hero__fade { opacity: 0; transform: translateY(26px); animation: heroFade .8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }

/* Hero stats */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(48px, 7vw, 80px);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(255, 255, 255, .03); padding: 26px 20px; text-align: center; transition: background .25s; }
.stat:hover { background: rgba(255, 255, 255, .08); }
.stat__num { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--gold-bright); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .72); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .7); z-index: 2;
  animation: floatY 2.4s ease-in-out infinite;
}
.hero__scroll-text { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; }
.hero__scroll-mouse { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.hero__scroll-mouse span { width: 3px; height: 7px; border-radius: 2px; background: var(--gold-bright); animation: scrollDot 2s ease-in-out infinite; }
.hero__scroll:hover { color: var(--gold-bright); }
@keyframes floatY { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(7px); } }

/* =================================================================
   WELCOME FROM HEAD
   ================================================================= */
.welcome__grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.welcome__portrait { text-align: center; }
.portrait {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08);
}
.portrait__watermark { position: absolute; width: 78%; opacity: .12; filter: grayscale(.2); }
.portrait__initials { position: relative; font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 9vw, 5rem); color: var(--gold-bright); letter-spacing: .04em; }
.welcome__person { margin-top: 18px; }
.welcome__name { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.welcome__role { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-top: 4px; }
.welcome__quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; color: var(--navy); margin-bottom: 22px; padding-left: 22px; border-left: 4px solid var(--gold); }
.welcome__body p { color: var(--muted); margin-bottom: 16px; }

/* =================================================================
   ABOUT / TRADITION — premium split layout
   ================================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; padding: 14px; }
.about__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 4 / 3;
}
.about__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(10, 14, 51, .3)); pointer-events: none; }
.about__photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Decorative shapes */
.about__shape { position: absolute; z-index: -1; pointer-events: none; }
.about__shape--ring { top: -18px; right: -10px; width: 130px; height: 130px; border: 2px solid var(--gold); border-radius: 50%; opacity: .5; }
.about__shape--dots {
  bottom: -16px; left: -16px; width: 130px; height: 130px; opacity: .5;
  background-image: radial-gradient(var(--gold-deep) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}
/* Floating experience badges */
.about__badge {
  position: absolute; background: var(--white);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
}
.about__badge--crest { top: 28px; left: -10px; padding: 10px 16px 10px 10px; }
.about__badge--crest img { width: 42px; height: 42px; }
.about__badge--crest span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1; color: var(--navy); }
.about__badge--stat { bottom: 26px; right: -8px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; }
.about__badge--stat strong { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); line-height: 1; }
.about__badge--stat span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }

.about__text p { color: var(--muted); margin-top: 6px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: .9rem; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pill-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold); }

/* =================================================================
   LIFE AT SIMBA — image cards
   ================================================================= */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }

.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.card:hover .card__img { transform: scale(1.07); }
.card__media::after {       /* navy gradient that deepens on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 51, .55), transparent 55%);
  opacity: .55; transition: opacity .35s;
}
.card:hover .card__media::after { opacity: .9; }

.card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px 22px 24px; }
.card__tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); margin-bottom: 10px; }
.card__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.card__more { margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--navy); transition: color .2s, letter-spacing .2s; }
.card:hover .card__more { color: var(--gold-deep); letter-spacing: .02em; }

.card--accent { background: linear-gradient(160deg, var(--navy-2), var(--navy)); border-color: transparent; justify-content: center; }
.card--accent .card__body { padding: 30px 24px; }
.card--accent .card__tag { color: var(--gold-bright); }
.card--accent .card__title { color: var(--white); }
.card--accent .card__text { color: rgba(255, 255, 255, .8); }
.card--accent .card__more { color: var(--gold-bright); }
.card__watermark { position: absolute; right: -28px; bottom: -28px; width: 150px; opacity: .12; pointer-events: none; }

/* =================================================================
   RESULTS — feature cards
   ================================================================= */
.results {
  position: relative;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--navy-2), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
}
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.result {
  position: relative; text-align: center; padding: 36px 20px 30px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.result:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.result__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; color: var(--gold-bright);
  background: rgba(228, 199, 126, .12); border: 1px solid rgba(228, 199, 126, .3);
  transition: transform .3s var(--ease), background .3s;
}
.result__icon svg { width: 26px; height: 26px; }
.result:hover .result__icon { transform: scale(1.08) rotate(-4deg); background: rgba(228, 199, 126, .2); }
.result__num { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--gold-bright); line-height: 1; }
.result__label { display: block; margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.result__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-deep); background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(198, 162, 78, .4);
}

/* =================================================================
   CTA — full-width background
   ================================================================= */
.cta { position: relative; color: var(--white); overflow: hidden; isolation: isolate; }
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(120deg, rgba(10, 14, 51, .94) 0%, rgba(16, 22, 74, .8) 55%, rgba(26, 35, 96, .72) 100%),
    url("../images/cta-community.jpg") center/cover no-repeat;
}
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 15%, rgba(198, 162, 78, .25), transparent 60%); }
.cta__inner { text-align: center; padding-block: clamp(64px, 10vw, 120px); position: relative; }
.cta__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: 14px; }
.cta__text { color: rgba(255, 255, 255, .88); font-size: 1.15rem; margin-bottom: 32px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: clamp(28px, 4vw, 50px); padding-block: clamp(48px, 7vw, 80px); }
.footer__seal { width: 60px; height: 60px; margin-bottom: 14px; }
.footer__name { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--white); }
.footer__since { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 4px 0 14px; }
.footer__about { font-size: .92rem; max-width: 360px; }
.footer__heading { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; margin-bottom: 18px; }
.footer__heading--news { margin-top: 26px; }
.footer__links li { margin-bottom: 11px; }
.footer__links a, .footer__links span { font-size: .92rem; }
.footer__links a { transition: color .2s, padding-left .2s; }
.footer__links a:hover { color: var(--gold-bright); padding-left: 4px; }
.footer__lbl { color: rgba(255, 255, 255, .5); }
.footer__addr { font-size: .92rem; margin-bottom: 16px; }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: var(--white); transition: background .2s, border-color .2s, transform .2s, color .2s; }
.footer__social svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }

/* Newsletter */
.newsletter { display: flex; gap: 8px; max-width: 340px; margin-top: 6px; }
.newsletter__input {
  flex: 1; min-width: 0;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: var(--white); font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter__input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .1); }
.newsletter__btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep); font-size: 1.2rem; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.newsletter__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(198, 162, 78, .45); }
.newsletter__note { font-size: .78rem; color: rgba(255, 255, 255, .5); margin-top: 10px; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer__partner { display: inline-flex; align-items: center; gap: 12px; }
.footer__partner-logo { height: 38px; width: auto; background: var(--white); border-radius: 6px; padding: 4px; flex-shrink: 0; }

/* =================================================================
   BACK TO TOP
   ================================================================= */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep); font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-bright); transform: translateY(-3px); }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__fade { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Laptop: collapse nav to hamburger */
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
}

/* Tablet */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
  .welcome__grid { grid-template-columns: 1fr; }
  .welcome__portrait { max-width: 300px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* Use lighter background images on smaller screens */
@media (max-width: 768px) {
  .hero__bg { background-image:
    linear-gradient(90deg, rgba(10, 14, 51, .95) 0%, rgba(10, 14, 51, .82) 45%, rgba(16, 22, 74, .6) 100%),
    linear-gradient(160deg, rgba(10, 14, 51, .35), rgba(16, 22, 74, .35)),
    url("../images/hero-grounds-sm.jpg"); }
  .cta__bg { background-image:
    linear-gradient(120deg, rgba(10, 14, 51, .94) 0%, rgba(16, 22, 74, .82) 55%, rgba(26, 35, 96, .74) 100%),
    url("../images/cta-community-sm.jpg"); }
}

/* Hide topbar separators on smaller screens */
@media (max-width: 680px) {
  .topbar__sep { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__classroom { margin-left: 0; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contact { grid-column: auto; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand__seal { width: 42px; height: 42px; }
  .welcome__quote { padding-left: 16px; font-size: 1.35rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__partner { flex-direction: column; gap: 8px; text-align: center; }
  .about__badge--stat { right: 4px; }
  .about__badge--crest { left: 2px; }
  .hero__scroll { display: none; }   /* avoid crowding short mobile heroes */
}

/* Very small phones */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .results__grid { grid-template-columns: 1fr; }
  .topbar { font-size: .74rem; }
  .btn { padding: 12px 20px; font-size: .9rem; }
  .newsletter { max-width: 100%; }
}

/* =================================================================
   INTERNAL PAGES — shared templates
   ================================================================= */

/* Page transition — opacity only. A transform on <body> would make it the
   containing block for the fixed off-canvas mobile menu and create phantom
   horizontal overflow, so we deliberately avoid transforms here. */
body { animation: pageIn .45s var(--ease) both; }
body.is-leaving { opacity: 0; transition: opacity .25s var(--ease); }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Page hero ---- */
.page-hero {
  position: relative; color: var(--white); overflow: hidden; isolation: isolate;
  padding-block: clamp(104px, 14vw, 168px) clamp(48px, 7vw, 84px);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 130% at 80% 0%, var(--navy-2), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #161f57);
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 22px);
}
.page-hero__accent {
  position: absolute; z-index: -1; top: 0; right: 6%;
  width: min(440px, 55%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(228, 199, 126, .22), transparent 65%);
  filter: blur(18px); animation: heroGlow 9s ease-in-out infinite; pointer-events: none;
}
.page-hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em;
  max-width: 16ch;
}
.page-hero__lead { margin-top: 18px; max-width: 60ch; font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: rgba(255, 255, 255, .85); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .65); }
.breadcrumbs li + li::before { content: "›"; color: var(--gold); opacity: .8; }
.breadcrumbs a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs [aria-current] { color: var(--gold-bright); font-weight: 600; }

/* Breadcrumbs variant on light page heroes (unused by default) */

/* ---- Prose ---- */
.prose { max-width: 760px; }
.prose > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 16px; }
.prose > p:first-child { color: var(--ink); font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 500; line-height: 1.5; }

/* ---- Feature / hub cards ---- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 26px); margin-top: clamp(28px, 4vw, 44px);
}
.feature {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature__icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 14px; color: var(--gold-deep);
  background: rgba(198, 162, 78, .12); border: 1px solid rgba(198, 162, 78, .28);
  transition: transform .3s var(--ease);
}
.feature:hover .feature__icon { transform: scale(1.08) rotate(-4deg); }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: .96rem; flex-grow: 1; }
.feature__more { margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--navy); transition: color .2s, letter-spacing .2s; }
.feature--link:hover .feature__more { color: var(--gold-deep); letter-spacing: .02em; }

/* ---- Expansion note ---- */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream-2); border: 1px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 16px 20px; color: var(--bronze); font-size: .94rem; margin-top: 36px;
}
.note::before { content: "✦"; color: var(--gold-deep); }

/* ---- Split image + text ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 60%, rgba(10, 14, 51, .25)); }
.split__text p { color: var(--muted); margin-top: 6px; }

/* ---- Gallery grid ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-size: .82rem; font-weight: 600; color: var(--white);
  background: linear-gradient(to top, rgba(10, 14, 51, .8), transparent);
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); color: var(--gold-deep); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-bottom: 3px; }
.contact-item a, .contact-item span { color: var(--ink); }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--cream); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }

/* Internal-page responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
