/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2e4a;
  --teal:   #2a7a8a;
  --gold:   #d4a53a;
  --cream:  #fdf9f4;
  --white:  #ffffff;
  --text:   #2c3e50;
  --muted:  #6b7c93;
  --light:  #eef4f7;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.3; }
h3 { font-size: 1.25rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}

/* ── Layout Helpers ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--light { background: var(--light); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--teal  { background: var(--teal); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .reverse-mobile  { order: -1; }
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 60px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.nav__logo-text span { color: var(--gold); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--teal); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav__links.open { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: #c4952a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,165,58,.35); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: #0f1e30; transform: translateY(-2px); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4060 55%, var(--teal) 100%);
  color: var(--white);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content { position: relative; max-width: 640px; }
.hero__eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p  { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 520px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* ── Photo placeholder ── */
.photo-placeholder {
  background: linear-gradient(135deg, #c8d8e8, #a0b8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }

.card__img { width: 100%; height: 220px; object-fit: cover; }

.card__img.photo-placeholder { height: 220px; border-radius: 0; }

.card__body { padding: 1.75rem; }
.card__body h3 { margin-bottom: .5rem; color: var(--navy); }
.card__body p  { color: var(--muted); }

/* ── Stat strip ── */
.stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat__number { font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stat__label  { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Icon boxes ── */
.icon-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.icon-box__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.icon-box h3 { color: var(--navy); margin-bottom: .5rem; }
.icon-box p  { color: var(--muted); font-size: .95rem; }

/* ── Section intro ── */
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-intro h2 { color: var(--navy); margin-bottom: .75rem; }
.section-intro p  { color: var(--muted); font-size: 1.05rem; }

.section--navy .section-intro h2 { color: var(--white); }
.section--navy .section-intro p  { color: rgba(255,255,255,.75); }

/* ── School programme blocks ── */
.programme-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  margin-bottom: 2rem;
}

.programme-block h3 { color: var(--navy); margin-bottom: .75rem; }
.programme-block p  { color: var(--muted); }

.tag {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--light);
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ── Testimonials ticker ── */
.ticker-wrap {
  background: var(--navy);
  padding: 1.5rem 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 5rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  color: var(--white);
}

.ticker-stars  { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.ticker-text   { font-size: .95rem; font-style: italic; white-space: nowrap; }
.ticker-school { font-size: .8rem; color: rgba(255,255,255,.6); white-space: nowrap; flex-shrink: 0; }

/* ── Testimonials full cards (reviews page) ── */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.review-card__stars { color: var(--gold); font-size: 1.1rem; margin-bottom: .75rem; }
.review-card__text  { color: var(--text); font-style: italic; margin-bottom: 1.25rem; line-height: 1.8; }
.review-card__name  { font-weight: 700; color: var(--navy); font-size: .9rem; }
.review-card__school{ font-size: .85rem; color: var(--muted); }

/* ── Contact form ── */
.form-group { margin-bottom: 1.5rem; }

label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

input, textarea, select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid #e0e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s;
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
}

textarea { resize: vertical; min-height: 140px; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1e4060);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.page-hero p { color: rgba(255,255,255,.8); max-width: 580px; margin: 1rem auto 0; font-size: 1.1rem; }

/* ── Partner banner ── */
.partner-banner {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.partner-banner__logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.partner-banner p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

.partner-banner a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* ── Footer ── */
.footer {
  background: #0f1e30;
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer__brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .5rem; }
.footer__brand h3 span { color: var(--gold); }
.footer__brand p  { font-size: .9rem; line-height: 1.7; max-width: 280px; }

.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: .95rem; }

.footer__links { list-style: none; }
.footer__links li { margin-bottom: .6rem; }
.footer__links a { font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

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

/* ── Divider ── */
.divider {
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.divider--center { margin: 1rem auto 1.5rem; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.color-gold  { color: var(--gold); }
.color-navy  { color: var(--navy); }
.color-white { color: var(--white); }
