@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0f2044;
  --navy-dark: #091530;
  --blue: #1a6fc4;
  --blue-light: #2e87e0;
  --blue-pale: #f0f4f8;
  --text: #1a2340;
  --text-muted: #4a5568;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ── Header ── */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo span {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.header-contact {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.header-contact:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 21, 48, 0.82) 0%,
    rgba(15, 32, 68, 0.70) 60%,
    rgba(26, 111, 196, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 680px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  font-weight: 300;
}

/* ── Section base ── */

.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ── Mission ── */

.mission {
  background: var(--blue-pale);
  text-align: center;
}

.mission .section-inner {
  max-width: 760px;
}

.mission-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mission-divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* ── What We Do / Operations ── */

.operations {
  background: var(--white);
}

.operations-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── The MaST Schools ── */

.schools {
  background: var(--blue-pale);
}

.schools-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.schools-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.schools-heading-text .section-title {
  margin-bottom: 0;
}

.schools-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  margin-top: 16px;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.school-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.school-card:hover {
  box-shadow: 0 8px 24px rgba(15,32,68,0.1);
  transform: translateY(-3px);
}

.school-image {
  height: 170px;
  background: var(--blue-pale);
}

.school-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.school-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 24px 6px;
}

.school-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 24px 14px;
}

.school-blurb {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 24px 20px;
}

.school-link {
  margin-top: auto;
  align-self: center;
  padding-bottom: 28px;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.school-link:hover {
  color: var(--blue-light);
}

/* ── At a Glance ── */

.stats {
  background: var(--navy);
  padding-top: 56px;
  padding-bottom: 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-light);
}

/* ── Governance ── */

.governance {
  background: var(--white);
  text-align: center;
}

.governance .section-inner {
  max-width: 760px;
}

.governance-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Board ── */

.board {
  background: var(--blue-pale);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.board-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.board-card:hover {
  box-shadow: 0 8px 24px rgba(15,32,68,0.1);
  transform: translateY(-3px);
}

.board-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.board-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.board-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.board-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Contact ── */

.contact {
  background: var(--navy);
  text-align: center;
}

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

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

.contact-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 32px;
}

.contact-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.contact-btn:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* ── Footer ── */

.site-footer {
  background: var(--navy-dark);
  padding: 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-logo:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-logo {
    font-size: 0.95rem;
  }

  .header-contact {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .hero-content {
    padding: 60px 16px;
  }

  .section {
    padding: 56px 16px;
  }

  .board-grid,
  .schools-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
