:root {
  --navy: #082b63;
  --navy-deep: #061f48;
  --blue: #0f3f7f;
  --red: #e31d2d;
  --red-dark: #bd1422;
  --gold: #f6bf3d;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --paper: #ffffff;
  --soft: #f4f6f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #dfe5ee;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(8, 43, 99, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px 38px;
  background: var(--navy);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
}

.brand-logo img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 23px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a:hover,
.site-nav a.active {
  color: #ff6b78;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-cta,
.btn.primary {
  background: var(--red);
  color: #fff;
}

.header-cta {
  padding: 0 20px;
}

.btn {
  padding: 0 22px;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.btn.primary:hover,
.header-cta:hover {
  background: var(--red-dark);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.btn.white {
  min-width: 136px;
  background: #fff;
  color: var(--red);
}

.btn.compact {
  min-height: 38px;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 470px;
  background: var(--navy);
}

.hero img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 28, 66, 0.92) 0%, rgba(5, 28, 66, 0.68) 40%, rgba(5, 28, 66, 0.04) 76%),
    linear-gradient(0deg, rgba(8, 43, 99, 0.16), rgba(8, 43, 99, 0.16));
}

.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 520px);
  padding: 54px 44px;
  color: #fff;
}

.rule {
  width: 76px;
  height: 3px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-content > p:first-of-type {
  margin: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  font-weight: 800;
}

.hero h1 {
  max-width: 420px;
  margin: 5px 0 10px;
  text-transform: uppercase;
  font-size: clamp(56px, 8vw, 90px);
  line-height: 0.88;
  font-weight: 900;
}

.hero-line {
  width: 78px;
  height: 5px;
  background: var(--red);
}

.hero-text {
  max-width: 415px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-pad {
  padding: 58px 44px;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(8, 43, 99, 0.14);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 43, 99, 0.02), rgba(8, 43, 99, 0.16));
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: 24% center;
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 31px;
  height: 2px;
  background: #e77b86;
}

.script {
  display: block;
  text-transform: none;
  font-size: 18px;
  font-weight: 800;
}

.script::before,
.script::after {
  display: none;
}

.about h2,
.section-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  text-transform: uppercase;
  font-size: clamp(31px, 5vw, 43px);
  line-height: 1.02;
  font-weight: 900;
}

.about-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.leadership {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 43, 99, 0.04), rgba(227, 29, 45, 0.035)),
    #fff;
  border-top: 1px solid #eef1f5;
}

.leadership-copy h2 {
  margin: 4px 0 0;
  color: var(--navy);
  text-transform: uppercase;
  font-size: clamp(31px, 5vw, 43px);
  line-height: 1.02;
  font-weight: 900;
}

.leadership-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.leadership-portrait {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 36px rgba(8, 43, 99, 0.18);
}

.leadership-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 43, 99, 0), rgba(8, 43, 99, 0.16));
  pointer-events: none;
}

.leadership-portrait img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 25px;
  margin: 23px 0;
  color: #3c4656;
  font-size: 14px;
  font-weight: 700;
}

.feature-list span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
}

.facilities {
  background: var(--soft);
}

.levels {
  background: #fff;
  border-top: 1px solid #eef1f5;
}

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

.section-heading.light h2 {
  color: #fff;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.facility-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(8, 43, 99, 0.12);
}

.facility-card::before {
  content: "";
  position: absolute;
  inset: 0 0 42px;
  background:
    linear-gradient(180deg, rgba(8, 43, 99, 0.02), rgba(8, 43, 99, 0.18)),
    var(--facility-bg);
  background-size: cover;
  background-position: var(--facility-position, center);
  filter: saturate(1.1) contrast(1.05) brightness(1.04);
}

.facility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 43, 99, 0.1));
}

.facility-card span {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.classroom {
  --facility-bg: url("assets/school environs/classroom1.jpg");
  --facility-position: center 58%;
}

.assembly {
  --facility-bg: url("assets/school environs/kids_praying.jpg");
  --facility-position: center 42%;
}

.courtyard {
  --facility-bg: url("assets/school environs/fhs_environs.jpg");
  --facility-position: 34% center;
}

.playground {
  --facility-bg: url("assets/school environs/playground.jpg");
  --facility-position: center 52%;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.level-grid article {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 0 24px 28px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(227, 29, 45, 0.08), rgba(255, 255, 255, 0) 42%),
    #fff;
  box-shadow: 0 14px 28px rgba(8, 43, 99, 0.08);
}

.level-media {
  position: relative;
  height: 180px;
  margin: 0 -24px 24px;
  overflow: hidden;
  background: var(--navy);
}

.level-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 43, 99, 0), rgba(8, 43, 99, 0.18));
}

.level-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05) brightness(1.04);
}

.level-grid article:nth-child(1) .level-media img {
  object-position: center 46%;
}

.level-grid article:nth-child(2) .level-media img {
  object-position: center 54%;
}

.level-grid article:nth-child(3) .level-media img {
  object-position: center 44%;
}

.level-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.level-grid h3 {
  margin: 22px 0 8px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
}

.level-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.academics {
  background: var(--navy);
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.values-grid article {
  min-height: 174px;
  padding: 26px 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 18px 40px rgba(3, 15, 35, 0.18);
}

.mini-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #edf3fb;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.values-grid h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.values-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.admission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 44px;
  background: var(--red);
  color: #fff;
}

.admission h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  font-weight: 900;
}

.admission p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.site-footer {
  padding: 46px 44px 20px;
  background: var(--navy-deep);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.1fr;
  gap: 54px;
}

.footer-brand .brand-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.site-footer p,
.site-footer a:not(.brand) {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.footer-grid > div:first-child p {
  max-width: 290px;
  margin-top: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.socials {
  display: flex;
  gap: 12px;
  font-weight: 800;
}

@media (max-width: 850px) {
  .site-shell {
    width: 100%;
  }

  .site-header {
    grid-template-columns: auto auto auto;
    padding: 13px 20px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--navy);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero,
  .hero img {
    min-height: 560px;
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 28, 66, 0.92), rgba(5, 28, 66, 0.56));
  }

  .hero-content {
    justify-content: flex-end;
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  .section-pad,
  .admission,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .about,
  .leadership,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid,
  .level-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admission {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .header-cta {
    display: none;
  }

  .about h2,
  .section-heading h2 {
    font-size: 30px;
  }

  .feature-list,
  .facility-grid,
  .level-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .facility-card {
    min-height: 205px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
