:root {
  --green-950: #003b24;
  --green-900: #004b2f;
  --green-800: #075f3d;
  --green-100: #eaf5ef;
  --gold: #d59618;
  --gold-2: #f0b333;
  --cream: #fff9ef;
  --ink: #17211d;
  --muted: #5f6f68;
  --line: #e5ddd0;
  --paper: #ffffff;
  --shadow: 0 22px 55px rgba(0, 59, 36, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2 {
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
}

p {
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  min-height: 42px;
  padding: 8px clamp(18px, 6vw, 88px);
  color: #fff;
  background: var(--green-950);
  font-size: 0.88rem;
  font-weight: 700;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar .social-mini {
  gap: 13px;
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  min-height: 104px;
  padding: 12px clamp(18px, 6vw, 88px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 59, 36, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 78px minmax(170px, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 310px;
}

.brand-mark {
  width: 78px;
  height: 78px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-text b {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 2px solid rgba(213, 150, 24, 0.55);
  color: var(--green-950);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.25vw, 22px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #101c18;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  margin: auto;
  background: var(--gold);
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle,
.nav-button {
  display: none;
}

.btn,
.header-action,
button {
  border: 0;
  font: inherit;
}

.btn,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-action,
.btn.gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-2), #bd7608);
  box-shadow: 0 14px 28px rgba(189, 118, 8, 0.24);
}

.btn.green {
  color: #fff;
  background: var(--green-950);
  box-shadow: 0 16px 34px rgba(0, 59, 36, 0.22);
}

.btn.outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.btn.light-outline {
  color: var(--green-950);
  border: 1px solid var(--gold);
  background: #fff;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 59, 36, 0.96) 0%, rgba(0, 59, 36, 0.86) 43%, rgba(0, 59, 36, 0.2) 72%),
    url("assets/hero-pupils.png") center right / cover;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -126px;
  width: min(760px, 78vw);
  height: 270px;
  border-top: 22px solid #fff;
  border-radius: 100% 0 0 0;
  background: linear-gradient(135deg, var(--gold-2), #b97208);
  content: "";
  transform: rotate(-7deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 640px;
  padding: 84px clamp(20px, 6.5vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.ruled::after {
  width: 72px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
}

.hero h2 {
  margin-bottom: 20px;
  color: var(--gold-2);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.06rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px clamp(20px, 6vw, 90px) 30px;
  background: #fff;
}

.value-strip article {
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.value-strip article:last-child {
  border-right: 0;
}

.round-icon,
.card-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #14805a, var(--green-950));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 59, 36, 0.18);
}

.round-icon svg,
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.round-icon svg {
  color: #fff;
}

.card-icon svg {
  color: var(--gold);
}

.value-strip h3,
.card-grid h3 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 1.02rem;
}

.value-strip p,
.card-grid p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.split-section,
.program-band,
.gallery-section,
.contact-layout,
.story-band,
.requirements {
  padding: 76px clamp(20px, 6.5vw, 92px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.12fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.section-text {
  max-width: 650px;
}

.section-text h2,
.section-heading h2,
.admission-cta h2 {
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 4.2vw, 3.1rem);
}

.image-card {
  position: relative;
}

.image-card img,
.feature-photo,
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-card img {
  aspect-ratio: 1.55 / 1;
}

.badge-card {
  position: absolute;
  right: -24px;
  bottom: -24px;
  display: grid;
  place-items: center;
  width: 132px;
  min-height: 148px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--gold-2);
  text-align: center;
  background: var(--green-950);
  box-shadow: var(--shadow);
}

.badge-card span {
  font-size: 2.2rem;
  line-height: 1;
}

.badge-card strong {
  line-height: 1.2;
  text-transform: uppercase;
}

.why-section {
  padding: 36px clamp(20px, 6.5vw, 92px) 76px;
  background: #fff;
}

.center {
  text-align: center;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.card-grid {
  display: grid;
  gap: 28px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid article,
.contact-card,
.contact-form,
.timeline li,
.notice-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 59, 36, 0.08);
}

.card-grid article {
  text-align: center;
}

.card-icon {
  margin-left: auto;
  margin-right: auto;
  color: var(--gold);
  background: #fff;
  border: 2px solid rgba(213, 150, 24, 0.35);
  box-shadow: none;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 28px clamp(20px, 6.5vw, 92px);
  color: #fff;
  background:
    linear-gradient(rgba(0, 59, 36, 0.92), rgba(0, 59, 36, 0.92)),
    url("assets/hero-pupils.png") center / cover;
}

.stats-band article {
  padding: 16px 26px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.stats-band article:last-child {
  border-right: 0;
}

.stats-band span {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.stats-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.admission-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 30px;
  align-items: center;
  padding: 42px clamp(20px, 7vw, 104px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 28%, rgba(213, 150, 24, 0.16), transparent 25%),
    var(--cream);
}

.admission-cta img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  object-position: center top;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.75fr auto;
  gap: 32px;
  align-items: start;
  padding: 42px clamp(20px, 6.5vw, 92px) 20px;
  color: #fff;
  background: var(--green-950);
}

.footer-brand {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 330px;
}

.footer-brand .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.footer-brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.site-footer h2 {
  margin: 0 0 13px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.site-footer nav a {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--green-950);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 142px;
  min-height: 112px;
  padding: 14px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-2);
  text-align: center;
  line-height: 1.18;
  text-transform: uppercase;
}

.footer-seal b {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 0.8;
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
}

.page-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 110px clamp(20px, 6.5vw, 92px) 66px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 59, 36, 0.93), rgba(0, 59, 36, 0.52)),
    var(--page-image) center / cover;
}

.page-hero h1 {
  max-width: 930px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 710px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.1rem;
  font-weight: 700;
}

.about-hero {
  --page-image: url("assets/school-building.png");
}

.academics-hero {
  --page-image: url("assets/hero-pupils.png");
}

.admissions-hero {
  --page-image: url("assets/hero-pupils.png");
}

.facilities-hero {
  --page-image: url("assets/school-building.png");
}

.gallery-hero {
  --page-image: url("assets/admission-pupils.png");
}

.contact-hero {
  --page-image: url("assets/school-building.png");
}

.story-band,
.program-band.light,
.requirements {
  background: var(--cream);
}

.program-band.green {
  color: #fff;
  background: var(--green-950);
}

.program-band.green h2,
.program-band.green h3,
.program-band.green p {
  color: #fff;
}

.program-band.green .card-grid article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.feature-photo {
  aspect-ratio: 1.34 / 1;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-950);
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
}

.gallery-grid figcaption {
  padding-top: 10px;
  color: var(--green-950);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
  background: var(--cream);
}

.contact-card a {
  color: var(--green-900);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #d7cdbc;
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 3px solid rgba(213, 150, 24, 0.24);
  border-color: var(--gold);
}

.map-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 26px;
  color: var(--green-950);
  text-align: center;
  background:
    linear-gradient(rgba(255, 249, 239, 0.86), rgba(255, 249, 239, 0.86)),
    repeating-linear-gradient(45deg, rgba(0, 59, 36, 0.12) 0 2px, transparent 2px 18px);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 92px;
  }

  .header-action {
    display: none;
  }

  .nav-button {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
  }

  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-950);
    content: "";
  }

  .nav-button span::before {
    transform: translateY(-8px);
  }

  .nav-button span::after {
    transform: translateY(6px);
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
  }

  .main-nav a::after {
    right: auto;
    margin: 0;
  }

  .value-strip,
  .card-grid.four,
  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-strip article:nth-child(2),
  .stats-band article:nth-child(2) {
    border-right: 0;
  }

  .split-section,
  .admission-cta,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .badge-card {
    right: 18px;
  }

  .card-grid.three,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .topbar .social-mini {
    display: none;
  }

  .site-header {
    min-height: 82px;
    padding: 9px 16px;
  }

  .brand {
    grid-template-columns: 56px 1fr;
    min-width: 0;
    width: min(250px, 76vw);
    gap: 9px;
  }

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

  .brand-text strong {
    font-size: 0.82rem;
  }

  .brand-text b {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .hero-content {
    padding: 70px 18px 88px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .hero h2 {
    font-size: clamp(1.28rem, 7vw, 1.8rem);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero::after {
    height: 160px;
    bottom: -96px;
  }

  .value-strip,
  .card-grid.four,
  .card-grid.three,
  .stats-band,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .value-strip {
    padding: 26px 18px;
  }

  .value-strip article {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip article:last-child {
    border-bottom: 0;
  }

  .split-section,
  .program-band,
  .gallery-section,
  .contact-layout,
  .story-band,
  .requirements {
    padding: 56px 18px;
  }

  .why-section {
    padding: 30px 18px 56px;
  }

  .section-text h2,
  .section-heading h2,
  .admission-cta h2 {
    font-size: clamp(1.95rem, 10vw, 2.7rem);
  }

  .badge-card {
    position: static;
    width: 100%;
    min-height: auto;
    margin-top: 14px;
  }

  .stats-band article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .stats-band article:last-child {
    border-bottom: 0;
  }

  .admission-cta {
    padding: 50px 18px 0;
  }

  .page-hero {
    min-height: 350px;
    padding: 84px 18px 50px;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .timeline li {
    grid-template-columns: 42px 1fr;
    padding: 22px;
  }

  .timeline span {
    width: 42px;
    height: 42px;
  }
}
