/* ============================================================
   GATEWAY SCHOOL ENUGU — Main Stylesheet
   Site:    gateway4learning.com.ng
   Built by: Comvara (comvara.com.ng)
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700&display=swap');


/* ════════════════════════════════════════════════════════════
   1. CUSTOM PROPERTIES
   ════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand colours ── */
  --navy:        #003087;
  --navy-dark:   #001F5A;
  --navy-light:  #0A47B0;
  --gold:        #FFB800;
  --gold-dark:   #CC9400;
  --gold-light:  #FFD55A;
  --light-blue:  #C8DFF5;

  /* ── Neutral palette ── */
  --white:       #FFFFFF;
  --off-white:   #F5F7FC;
  --surface:     #EEF2FA;
  --text-dark:   #0D1B3E;
  --text-mid:    #3A4A70;
  --text-light:  #6B7A9A;
  --border:      #D6DFEF;

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-label:   'Montserrat', Arial, sans-serif;

  /* ── Type scale ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* ── Spacing ── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0,30,87,0.08), 0 1px 2px rgba(0,30,87,0.04);
  --shadow-md:   0 4px 16px rgba(0,30,87,0.10), 0 2px 6px rgba(0,30,87,0.06);
  --shadow-lg:   0 10px 40px rgba(0,30,87,0.14);
  --shadow-gold: 0 4px 20px rgba(255,184,0,0.28);

  /* ── Motion ── */
  --transition:      0.25s ease;
  --transition-slow: 0.45s ease;

  /* ── Layout ── */
  --max-width:     1200px;
  --header-height: 72px;
}


/* ════════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text-dark);
}


/* ════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: var(--sp-3);
}

.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.75;
}

.section-subtitle--light { color: var(--light-blue); }

/* Gold underline accent on headings — the signature detail */
.title-accent {
  position: relative;
  display: inline-block;
}

.title-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

.text-center .title-accent::after {
  left: 50%;
  transform: translateX(-50%);
}


/* ════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section        { padding: var(--sp-16) 0; }
.section--sm    { padding: var(--sp-10) 0; }
.section--lg    { padding: var(--sp-24) 0; }

.section--navy      { background-color: var(--navy); }
.section--dark      { background-color: var(--navy-dark); }
.section--off-white { background-color: var(--off-white); }
.section--surface   { background-color: var(--surface); }

.grid    { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex          { display: flex; }
.flex--center  { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap     { gap: var(--sp-4); }

.text-center { text-align: center; }

.section-intro { margin-bottom: var(--sp-12); }
.section-intro.text-center .section-subtitle { margin: 0 auto; }


/* ════════════════════════════════════════════════════════════
   5. SITE HEADER & NAVIGATION
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo-text__tagline {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

/* ── Primary nav ── */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.primary-nav a {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--light-blue);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--white);
  background-color: rgba(255,255,255,0.08);
}

/* ── Dropdown ── */
.nav-item { position: relative; }

.nav-item > a .arrow {
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 2px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-mid);
  border-radius: 0;
  background-color: transparent;
  transition: color var(--transition), background-color var(--transition), padding-left var(--transition);
}

.nav-dropdown a:hover {
  color: var(--navy);
  background-color: var(--off-white);
  padding-left: var(--sp-6);
}

.nav-dropdown li:not(:last-child) a {
  border-bottom: 1px solid var(--border);
}

/* ── Results CTA pill ── */
.nav-cta {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy-dark);
  background-color: var(--gold);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  margin-left: var(--sp-2);
  transition: background-color var(--transition), transform var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-dark);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: var(--sp-6) var(--sp-5) var(--sp-12);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--light-blue);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--white); }

.mobile-nav-sub { padding-left: var(--sp-4); }

.mobile-nav-sub a {
  font-size: var(--text-sm);
  color: rgba(200,223,245,0.65);
  padding: var(--sp-3) 0;
}

.mobile-nav-sub a:hover { color: var(--white); }

.mobile-nav__cta {
  display: inline-block;
  margin-top: var(--sp-8);
  background-color: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius-full);
  text-align: center;
  width: 100%;
}

.mobile-nav__cta:hover { background-color: var(--gold-dark); }


/* ════════════════════════════════════════════════════════════
   6. HERO CAROUSEL
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 540px;
  max-height: 820px;
  overflow: hidden;
  margin-top: var(--header-height);
}

/* ── Slides ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

/*
  Slide background images — replace the url() paths with your actual photos.
  The linear-gradient overlay sits on top to ensure text readability.
  Images should be placed in the /images/ folder of your site.
*/
.hero-slide--1 {
  background-image:
    linear-gradient(135deg, rgba(0,20,70,0.88) 0%, rgba(0,48,135,0.68) 100%),
    url('../images/slide-1.jpg');   /* REPLACE: school entrance / main gate */
  background-color: var(--navy-dark);
}

.hero-slide--2 {
  background-image:
    linear-gradient(135deg, rgba(0,20,70,0.82) 0%, rgba(0,80,40,0.62) 100%),
    url('../images/slide-2.jpg');   /* REPLACE: nursery/primary school scene */
  background-color: #002040;
}

.hero-slide--3 {
  background-image:
    linear-gradient(135deg, rgba(0,20,70,0.82) 0%, rgba(50,10,0,0.62) 100%),
    url('../images/slide-3.jpg');   /* REPLACE: secondary students in class */
  background-color: #1A0020;
}

.hero-slide--4 {
  background-image:
    linear-gradient(135deg, rgba(0,10,50,0.90) 0%, rgba(120,70,0,0.72) 100%),
    url('../images/slide-4.jpg');   /* REPLACE: graduation / results / assembly */
  background-color: #1A1000;
}

/* ── Slide content ── */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background-color: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--sp-5);
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--light-blue);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Diagonal white divider at bottom of hero ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 10%, 100% 100%);
  z-index: 4;
  pointer-events: none;
}

/* ── Navigation dots ── */
.hero-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  padding: 0;
}

.hero-dot.is-active {
  background-color: var(--gold);
  transform: scale(1.5);
}

/* ── Prev / next arrows ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  line-height: 1;
}

.hero-arrow:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.hero-arrow--prev { left: var(--sp-5); }
.hero-arrow--next { right: var(--sp-5); }


/* ════════════════════════════════════════════════════════════
   7. QUICK STATS BAR
   ════════════════════════════════════════════════════════════ */
.stats-bar {
  background-color: var(--navy);
  padding: var(--sp-8) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: var(--sp-5) var(--sp-4);
  border-right: 1px solid rgba(255,255,255,0.10);
}

.stat-item:last-child { border-right: none; }

.stat-item__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-top: var(--sp-2);
  display: block;
}


/* ════════════════════════════════════════════════════════════
   8. BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

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

.btn--primary {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.10);
  border-color: var(--white);
}

.btn--navy {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--navy:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-8);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-4);
}

/* Extra prominent results button */
.btn--results {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-10);
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.05em;
}

.btn--results:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 6px 32px rgba(255,184,0,0.42);
}


/* ════════════════════════════════════════════════════════════
   9. WELCOME / ABOUT PREVIEW
   ════════════════════════════════════════════════════════════ */
.welcome-section { padding: var(--sp-20) 0; }

.welcome-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.welcome-section__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.welcome-section__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.welcome-section__img-placeholder {
  width: 100%;
  height: 460px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Gold badge overlaid on image */
.welcome-badge {
  position: absolute;
  bottom: var(--sp-6);
  right: calc(var(--sp-6) * -1);
  background: var(--gold);
  color: var(--navy-dark);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.welcome-badge__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.welcome-badge__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  max-width: 80px;
}

.welcome-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.welcome-section__body {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: var(--text-base);
}

/* Value pillars */
.value-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.value-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.value-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item__content h4 {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-1);
  color: var(--text-dark);
}

.value-item__content p {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════
   10. SCHOOL FEATURE CARDS (Homepage)
   ════════════════════════════════════════════════════════════ */
.school-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition-slow);
}

.school-card:hover { transform: translateY(-6px); }

.school-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s ease;
}

.school-card:hover .school-card__bg { transform: scale(1.05); }

.school-card--primary .school-card__bg {
  background-image:
    linear-gradient(to top, rgba(0,20,60,0.94) 0%, rgba(0,20,60,0.25) 65%),
    url('../images/nursery-primary.jpg');  /* REPLACE */
  background-color: var(--navy);
}

.school-card--secondary .school-card__bg {
  background-image:
    linear-gradient(to top, rgba(0,10,40,0.94) 0%, rgba(0,10,40,0.25) 65%),
    url('../images/secondary.jpg');        /* REPLACE */
  background-color: var(--navy-dark);
}

.school-card__body {
  position: relative;
  z-index: 2;
  padding: var(--sp-8) var(--sp-7);
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.school-card__badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.school-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.school-card__text {
  color: var(--light-blue);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.school-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  transition: gap var(--transition);
}

.school-card__link::after { content: '→'; }
.school-card__link:hover  { gap: var(--sp-4); }


/* ════════════════════════════════════════════════════════════
   11. GENERAL CONTENT CARDS
   ════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card__body { padding: var(--sp-6); }

.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.card__text {
  color: var(--text-mid);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}


/* ════════════════════════════════════════════════════════════
   12. RESULTS BANNER (Homepage)
   ════════════════════════════════════════════════════════════ */
.results-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circle behind text */
.results-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -4%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255,184,0,0.05);
  pointer-events: none;
}

.results-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.results-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.results-banner__text {
  color: var(--light-blue);
  font-size: var(--text-base);
  max-width: 520px;
  line-height: 1.7;
}


/* ════════════════════════════════════════════════════════════
   13. GALLERY
   ════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.55s ease;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder {
  transform: scale(1.07);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,20,60,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-overlay-icon {
  font-size: 1.75rem;
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,8,36,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-size: var(--text-2xl);
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox__close:hover { opacity: 1; }


/* ════════════════════════════════════════════════════════════
   14. CONTACT & FORM
   ════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-10);
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

.contact-info__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-light);
  display: block;
  margin-bottom: var(--sp-1);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
}

.contact-info__value a {
  color: var(--navy);
  transition: color var(--transition);
}

.contact-info__value a:hover { color: var(--gold-dark); }

/* Enquiry form */
.enquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
  color: var(--text-dark);
}

.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mid);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-dark);
  background-color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.10);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  display: block;
  border: none;
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--white);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.45);
  z-index: 500;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,0.58);
}


/* ════════════════════════════════════════════════════════════
   15. SITE FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--light-blue);
  padding-top: var(--sp-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--sp-4);
}

.footer-brand__desc {
  font-size: var(--text-sm);
  line-height: 1.85;
  color: rgba(200,223,245,0.65);
  margin-bottom: var(--sp-5);
  max-width: 260px;
}

.footer-brand__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: var(--text-base);
}

.footer-col__heading {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(200,223,245,0.65);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: var(--sp-2);
}

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(200,223,245,0.65);
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(200,223,245,0.65);
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(200,223,245,0.42);
}

.footer-bottom__credit {
  font-size: var(--text-xs);
  color: rgba(200,223,245,0.42);
}

.footer-bottom__credit a {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-bottom__credit a:hover { color: var(--gold-light); }


/* ════════════════════════════════════════════════════════════
   16. INTERIOR PAGE HERO
   ════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: var(--sp-20) 0 var(--sp-16);
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Diagonal white cut at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 15%, 100% 100%);
  pointer-events: none;
}

.page-hero--surface::after  { background: var(--off-white); }
.page-hero--off-white::after { background: var(--off-white); }

.page-hero__eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--light-blue);
  max-width: 600px;
  line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
  color: rgba(200,223,245,0.55);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(200,223,245,0.55);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb__sep { opacity: 0.4; font-size: 0.65em; }


/* ════════════════════════════════════════════════════════════
   17. ACADEMICS / PROGRAM CARDS
   ════════════════════════════════════════════════════════════ */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.program-card__level {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gold-dark);
  margin-bottom: var(--sp-2);
}

.program-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.program-card__desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.program-card__ages {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--off-white);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy);
}


/* ════════════════════════════════════════════════════════════
   18. ADMISSIONS STEPS
   ════════════════════════════════════════════════════════════ */
.admission-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.admission-step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  position: relative;
}

/* Vertical connector line */
.admission-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  width: 2px;
  height: calc(100% + var(--sp-6) - 4px);
  background: linear-gradient(to bottom, rgba(255,184,0,0.5), transparent);
}

.admission-step__number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.admission-step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.admission-step__text {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.75;
}


/* ════════════════════════════════════════════════════════════
   19. CHECK RESULTS PAGE
   ════════════════════════════════════════════════════════════ */
.results-embed-section {
  background: var(--off-white);
  padding: var(--sp-8) 0 var(--sp-16);
}

.results-iframe-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}

.results-iframe-wrap iframe {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
}

/* Shown when iframe is blocked */
.results-fallback {
  display: none;
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}

.results-fallback.is-visible { display: block; }

.results-fallback__icon {
  font-size: 4rem;
  margin-bottom: var(--sp-5);
}

.results-fallback__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.results-fallback__text {
  color: var(--text-mid);
  max-width: 460px;
  margin: 0 auto var(--sp-8);
  line-height: 1.75;
}


/* ════════════════════════════════════════════════════════════
   20. ANNOUNCEMENT BAR
   ════════════════════════════════════════════════════════════ */
.announcement-bar {
  background: var(--gold);
  color: var(--navy-dark);
  text-align: center;
  padding: var(--sp-2) var(--sp-5);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1001;
}

.site-header.has-announcement {
  top: 36px; /* height of announcement bar */
}


/* ════════════════════════════════════════════════════════════
   21. ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.75s ease both;
}

.animate-delay-1 { animation-delay: 0.10s; }
.animate-delay-2 { animation-delay: 0.22s; }
.animate-delay-3 { animation-delay: 0.36s; }
.animate-delay-4 { animation-delay: 0.52s; }

/* Scroll-reveal (JS adds .is-revealed) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide    { transition: none; }
  .reveal        { opacity: 1; transform: none; }
}


/* ════════════════════════════════════════════════════════════
   22. RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .welcome-section__grid { gap: var(--sp-8); }

  .hero-title { font-size: var(--text-4xl); }

  .welcome-badge {
    right: var(--sp-4);
    bottom: var(--sp-4);
  }
}

/* ── Tablet portrait (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Nav */
  .primary-nav { display: none; }
  .hamburger   { display: flex; }
  .mobile-nav  { display: block; }

  /* Hero */
  .hero {
    height: auto;
    min-height: 500px;
    max-height: none;
  }

  .hero-title    { font-size: var(--text-3xl); }
  .hero-subtitle { font-size: var(--text-base); }

  .hero-actions .btn {
    padding: var(--sp-3) var(--sp-5);
  }

  /* Stats */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.10);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Welcome */
  .welcome-section__grid { grid-template-columns: 1fr; }

  .welcome-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    border-radius: var(--radius-md);
  }

  /* Grids collapse to 1 col */
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: var(--sp-8); }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-2);
  }

  /* Results iframe shorter on tablet */
  .results-iframe-wrap iframe { height: 560px; }

  /* Typography */
  .section-title    { font-size: var(--text-2xl); }
  .page-hero__title { font-size: var(--text-3xl); }

  /* Results banner */
  .results-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Section spacing */
  .section    { padding: var(--sp-12) 0; }
  .section--lg { padding: var(--sp-16) 0; }
  .section--sm { padding: var(--sp-8) 0; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }

  .hero-title    { font-size: var(--text-2xl); }
  .hero-subtitle { font-size: var(--text-sm); }

  .hero-actions {
    flex-direction: column;
    gap: var(--sp-3);
  }

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

  /* Hide arrows on mobile — dots are enough */
  .hero-arrow  { display: none; }

  .logo-text__name { font-size: var(--text-sm); }

  .gallery-grid { grid-template-columns: 1fr; }

  .school-card  { min-height: 320px; }

  .results-iframe-wrap iframe { height: 480px; }

  .whatsapp-float {
    bottom: var(--sp-4);
    right: var(--sp-4);
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .enquiry-form { padding: var(--sp-5); }
}


/* ════════════════════════════════════════════════════════════
   23. PRINT
   ════════════════════════════════════════════════════════════ */
@media print {
  .site-header,
  .hamburger,
  .mobile-nav,
  .whatsapp-float,
  .hero-dots,
  .hero-arrow,
  .announcement-bar {
    display: none !important;
  }

  body { font-size: 12pt; color: #000; }

  a { color: #000; text-decoration: underline; }
}
