:root {
  --ink: #14213a;
  --muted: #61708a;
  --green: #166b55;
  --green-2: #0d4d41;
  --gold: #c5962e;
  --blue: #245c9d;
  --red: #b45a4a;
  --sky: #eaf6fb;
  --paper: #ffffff;
  --line: #dfe7ef;
  --soft: #f6f8f3;
  --shadow: 0 18px 60px rgba(20, 33, 58, 0.12);
}

* {
  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);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.7rem);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
}

h3 {
  margin: 14px 0 10px;
  font-size: 1.3rem;
  line-height: 1.22;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--green);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 239, 0.86);
  backdrop-filter: blur(14px);
  transition: padding 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 9px;
  box-shadow: 0 12px 32px rgba(20, 33, 58, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(22, 107, 85, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 28px);
  color: #30405a;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(720px, 82vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0f1f31;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transform: scale(1.02);
  animation: slow-pan 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 34, 0.91) 0%, rgba(7, 20, 34, 0.72) 39%, rgba(7, 20, 34, 0.12) 78%),
    linear-gradient(0deg, rgba(7, 20, 34, 0.42), rgba(7, 20, 34, 0.04));
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 80px);
  padding-block: 52px 64px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
  color: rgba(255, 255, 255, 0.9);
}

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

.button,
.enquiry-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.enquiry-form button:hover {
  transform: translateY(-2px);
}

.button.primary,
.enquiry-form button {
  color: white;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(22, 107, 85, 0.24);
}

.button.primary:hover,
.enquiry-form button:hover {
  background: var(--green-2);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-metrics div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.75rem;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  background: var(--soft);
}

.intro-copy p {
  max-width: 780px;
  margin: 0;
  color: #41506a;
  font-size: 1.18rem;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-facts span {
  padding: 9px 12px;
  color: var(--green-2);
  font-weight: 800;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.programme-card,
.learning-item,
.enquiry-form,
.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(20, 33, 58, 0.06);
}

.programme-card {
  min-height: 340px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.programme-card span {
  color: var(--green);
  font-weight: 900;
}

.programme-card p,
.learning-item p,
.campus-copy p,
.value-list p,
.steps p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.programme-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.programme-card li {
  position: relative;
  padding-left: 18px;
  color: #41506a;
  font-weight: 700;
}

.programme-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.learning {
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.learning-item {
  min-height: 250px;
  padding: 24px;
}

.icon-dot {
  display: block;
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.36);
}

.icon-dot.gold {
  background: var(--gold);
}

.icon-dot.blue {
  background: var(--blue);
}

.icon-dot.red {
  background: var(--red);
}

.campus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  color: white;
  background:
    linear-gradient(120deg, rgba(20, 33, 58, 0.94), rgba(22, 107, 85, 0.88)),
    url("/assets/ehizogie-hero.jpg") center / cover;
}

.campus-copy p {
  max-width: 640px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.campus-panel {
  display: grid;
  gap: 12px;
}

.campus-panel div {
  display: grid;
  gap: 4px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

.campus-panel strong {
  font-size: 1.12rem;
}

.campus-panel span {
  color: var(--muted);
}

.admissions {
  background: #fff;
}

.admission-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  font-weight: 900;
  background: var(--ink);
  border-radius: 50%;
}

.enquiry-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #f9fbfd;
}

.enquiry-form label {
  display: grid;
  gap: 6px;
  color: #31425a;
  font-weight: 700;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 107, 85, 0.13);
}

.enquiry-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  padding-top: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 80px);
  background: var(--ink);
  color: white;
}

.contact-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-grid a,
.contact-grid p {
  margin: 0;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 14px 36px rgba(20, 33, 58, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #43516a;
  background: white;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes slow-pan {
  from {
    transform: scale(1.02) translateX(0);
  }

  to {
    transform: scale(1.07) translateX(-1.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 77px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: 6px;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    background: var(--soft);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 740px;
  }

  .hero-content {
    padding-block: 76px 96px;
  }

  .intro,
  .campus,
  .admission-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div {
    padding: 10px;
  }

  .hero-metrics strong {
    font-size: 1.35rem;
  }

  .hero-metrics span {
    font-size: 0.76rem;
  }

  .button {
    width: 100%;
  }

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

  .steps div {
    grid-template-columns: 1fr;
  }
}
