
:root {
  --navy: #10345c;
  --navy-dark: #092541;
  --teal: #078f87;
  --teal-light: #12b2a7;
  --sky: #eaf5fc;
  --mint: #d9f5ef;
  --white: #ffffff;
  --text: #23415d;
  --muted: #688298;
  --border: #dce9f3;
  --shadow: 0 15px 45px rgba(15,52,92,.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #f7fbfe;
  overflow-x: hidden;
}

a { text-decoration: none; }

button { font-family: inherit; }

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* TOP BAR */

.topbar {
  background: var(--navy-dark);
  color: #c9e7f0;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
}

.topbar-content {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* HEADER WITH TWO LOGOS */

.school-header {
  position: relative;
  background: linear-gradient(
    120deg, #164873, #10345c, #092541
  );
  overflow: hidden;
}

.school-header::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 70px solid rgba(16,190,178,.07);
  border-radius: 50%;
  top: -230px;
  right: -100px;
  pointer-events: none;
}

.school-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 22px;
  padding: 29px 0;
  min-height: 188px;
}

.logo-frame {
  width: 112px;
  height: 112px;
  background: white;
  border: 4px solid #8fdfdf;
  border-radius: 50%;
  padding: 6px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
  animation: logoFloat 5s ease-in-out infinite;
}

.logo-frame:last-child {
  animation-delay: -2.5s;
}

.school-logo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-frame.has-logo .school-logo {
  display: block;
}

.logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg,#10345c,#078f87);
  color: white;
  font: 900 52px "Outfit",sans-serif;
}

.logo-frame.has-logo .logo-fallback {
  display: none;
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.school-identity {
  color: white;
  text-align: center;
}

.school-pretitle {
  color: #b6deec;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 9px;
}

.school-identity h1 {
  font: 900 clamp(29px,4vw,49px)/1.08
        "Outfit",sans-serif;
  letter-spacing: 1px;
}

.school-identity h1 span {
  display: block;
  color: #8ee5df;
}

.school-code {
  margin-top: 13px;
  color: #d5e8f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.school-tagline {
  margin-top: 12px;
  color: #a3eee5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* NAVIGATION */

.navbar {
  position: relative;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 7px 25px rgba(10,42,76,.07);
}

.nav-inner {
  min-height: 69px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  display: block;
  padding: 14px 20px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: .25s ease;
}

.nav-links a:hover {
  background: var(--mint);
  color: var(--teal);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: white;
  background: var(--teal);
  box-shadow: 0 7px 20px rgba(7,143,135,.22);
}

.mobile-title,
.menu-toggle { display: none; }

/* HERO SECTION */

.hero {
  min-height: 730px;
  padding: 100px 0 105px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(circle at 10% 20%,
      rgba(8,159,149,.11),transparent 35%),
    radial-gradient(circle at 90% 75%,
      rgba(16,52,92,.10),transparent 35%),
    linear-gradient(135deg,#fafcff,#e8f4fb);
}

.floating-circle {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: circleMove 10s ease-in-out infinite;
}

.circle-one {
  width: 400px;
  height: 400px;
  border: 85px solid rgba(8,159,149,.055);
  top: -180px;
  right: -160px;
}

.circle-two {
  width: 330px;
  height: 330px;
  border: 65px solid rgba(16,52,92,.055);
  bottom: -150px;
  left: -135px;
  animation-delay: -4s;
}

.circle-three {
  width: 90px;
  height: 90px;
  background: rgba(10,170,160,.06);
  top: 58%;
  right: 9%;
  animation-delay: -6s;
}

@keyframes circleMove {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 21px;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(7,143,135,.13);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 10px rgba(7,143,135,0); }
}

.eyebrow {
  margin-top: 32px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero-heading {
  font: 900 clamp(36px,5.8vw,70px)/1.12
        "Outfit",sans-serif;
  color: var(--navy);
  margin-top: 18px;
  letter-spacing: -1.3px;
  max-width: 1000px;
}

.hero-heading span {
  display: block;
  background: linear-gradient(90deg,#057e79,#11b8ae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-school-name {
  margin-top: 23px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-line {
  width: 85px;
  height: 5px;
  background: var(--teal);
  border-radius: 10px;
  margin: 29px 0;
}

.section-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.motto-block blockquote {
  max-width: 760px;
  margin-top: 14px;
  color: var(--navy);
  font: italic 600 clamp(23px,3vw,34px)/1.5
        "Outfit",sans-serif;
}

.future-text {
  margin-top: 21px;
  color: #08776f;
  background: var(--mint);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-description {
  max-width: 690px;
  margin-top: 28px;
  color: #607b91;
  line-height: 1.9;
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 33px;
}

.btn {
  min-height: 55px;
  padding: 16px 27px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  transition: .3s ease;
}

.btn span { font-size: 20px; }

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 25px rgba(16,52,92,.18);
}

.btn-outline {
  background: white;
  color: var(--navy);
  border: 1px solid #bed6e4;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16,52,92,.16);
}

/* SECTION HEADINGS */

.stats-heading,
.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.stats-heading h2,
.section-heading h2 {
  color: var(--navy);
  font: 800 clamp(29px,4vw,43px) "Outfit",sans-serif;
  margin: 13px 0;
}

.stats-heading > p:last-child,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* STATISTICS */

.statistics-section {
  padding: 90px 0 100px;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(150deg,#fff,#f3fafc);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 42px 22px;
  box-shadow: var(--shadow);
  transition: .35s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: .35s ease;
}

.stat-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(16,52,92,.13);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  margin: 0 auto 20px;
  width: 73px;
  height: 73px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--teal);
  background: var(--mint);
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-number {
  color: var(--navy);
  font: 900 55px "Outfit",sans-serif;
  font-variant-numeric: tabular-nums;
}

.stat-card h3 {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--navy);
}

.stat-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

/* VALUES */

.values-section {
  padding: 100px 0;
  background: #eef7fc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 23px;
}

.value-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 23px;
  padding: 37px 30px;
  box-shadow: var(--shadow);
  transition: .35s ease;
}

.value-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(16,52,92,.14);
}

.value-symbol {
  position: absolute;
  top: -12px;
  right: 15px;
  font-size: 100px;
  color: rgba(7,143,135,.07);
  pointer-events: none;
}

.value-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  border-radius: 14px;
  font-weight: 900;
  margin-bottom: 30px;
}

.value-card h3 {
  font: 800 27px "Outfit",sans-serif;
  color: var(--navy);
}

.value-card p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: #5a7389;
}

.card-accent {
  position: absolute;
  left: 30px;
  bottom: 28px;
  width: 45px;
  height: 4px;
  border-radius: 5px;
  background: var(--teal);
}

.draft-notice {
  text-align: center;
  margin-top: 27px;
  font-size: 12px;
  color: var(--muted);
}

/* FORM ONE TO FOUR */

.forms-section {
  padding: 100px 0 115px;
  background: white;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 19px;
}

.form-card {
  position: relative;
  text-align: center;
  padding: 34px 14px;
  border-radius: 19px;
  background: linear-gradient(145deg,#10345c,#18547a);
  color: white;
  overflow: hidden;
  transition: .35s ease;
}

.form-card:nth-child(even) {
  background: linear-gradient(145deg,#087b78,#0eb1a7);
}

.form-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 20px 35px rgba(16,52,92,.18);
}

.form-circle {
  display: grid;
  place-items: center;
  width: 69px;
  height: 69px;
  margin: 0 auto 19px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  font: 800 28px "Outfit",sans-serif;
}

.form-card h3 {
  font: 800 19px "Outfit",sans-serif;
}

.form-card p {
  margin-top: 10px;
  font-size: 12px;
  color: #d9eff4;
  line-height: 1.6;
}

/* FOOTER */

.footer {
  background: var(--navy-dark);
  padding: 30px 0;
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  background: var(--teal);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 900 27px "Outfit",sans-serif;
}

.footer-brand strong {
  font-size: 13px;
}

.footer-brand p {
  color: #97e0d8;
  font-size: 12px;
  margin-top: 5px;
}

.footer-details {
  text-align: right;
  font-size: 12px;
  color: #c4d9e7;
  line-height: 2;
}

/* SCROLL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity .75s ease,
    transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 25px;
  width: 46px;
  height: 46px;
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 13px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: .25s ease;
  z-index: 100;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* TABLET */

@media (max-width: 980px) {
  .nav-inner {
    justify-content: space-between;
    min-height: 65px;
  }

  .mobile-title {
    display: block;
    font: 900 17px "Outfit",sans-serif;
    color: var(--navy);
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 18px 5%;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 15px 25px rgba(0,0,0,.10);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px;
  }

  .values-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .forms-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .topbar-content {
    justify-content: center;
    font-size: 9px;
  }

  .topbar-content span:not(:first-child) {
    display: none;
  }

  .school-header-inner {
    grid-template-columns: 56px 1fr 56px;
    gap: 8px;
    min-height: 145px;
  }

  .logo-frame {
    width: 55px;
    height: 55px;
    border-width: 2px;
    padding: 3px;
  }

  .logo-fallback {
    font-size: 25px;
  }

  .school-pretitle {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .school-identity h1 {
    font-size: clamp(17px,5vw,25px);
  }

  .school-code {
    font-size: 8px;
    line-height: 1.5;
  }

  .school-tagline {
    font-size: 9px;
    letter-spacing: .5px;
  }

  .hero {
    min-height: 670px;
    padding: 75px 0 90px;
  }

  .welcome-badge {
    font-size: 10px;
    padding: 11px 15px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .hero-heading {
    font-size: clamp(34px,9vw,48px);
  }

  .hero-school-name {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .motto-block blockquote {
    font-size: 24px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: min(100%,330px);
    justify-content: center;
  }

  .stats-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .forms-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .form-card {
    padding: 26px 9px;
  }

  .form-card h3 {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-details {
    text-align: center;
  }
}

@media (max-width: 360px) {
  .forms-grid {
    grid-template-columns: 1fr;
  }
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #14b8ae;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
