/* =========================
   BASE / RESET
========================= */

:root {
  --green: #0c5a3b;
  --dark-green: #063b29;
  --yellow: #f7c843;
  --lime: #cce34f;
  --cream: #f7f6ef;
  --white: #ffffff;
  --ink: #19352c;
  --muted: #5f786b;
  --line: #dce4dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}


/* =========================
   NAVIGATION
========================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 82px;
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.logo-circle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.logo-circle span {
  color: var(--lime);
  font-size: 11px;
}

.logo-text strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.logo-text small {
  display: block;
  margin-top: 5px;
  color: #5c7568;
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  position: relative;
  padding: 28px 0;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
}

.nav-button,
.primary-button,
.white-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-button {
  padding: 11px 16px;
}

.nav-button:hover,
.primary-button:hover {
  transform: translateY(-3px);
  background: var(--lime);
}

.menu-button {
  display: none;
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 48, 32, 0.93) 0%,
      rgba(4, 48, 32, 0.77) 42%,
      rgba(4, 48, 32, 0.16) 80%
    ),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=2000&q=85");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(3, 50, 33, 0.22),
    transparent 55%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.section-label {
  margin: 0 0 14px;
  color: #60786b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-label span {
  display: inline-block;
  width: 30px;
  height: 2px;
  margin-right: 9px;
  background: var(--yellow);
  vertical-align: middle;
}

.light-label {
  color: #e4f1d6;
}

.hero h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.08;
}

.hero h1 {
  max-width: 770px;
  font-size: clamp(50px, 6vw, 80px);
}

.hero h1 em,
h2 em {
  color: var(--lime);
  font-weight: 400;
}

.hero-description {
  max-width: 515px;
  margin: 25px 0 29px;
  color: #edf6ec;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 26px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

.secondary-button:hover {
  opacity: 0.72;
}

.hero-location {
  margin-top: 70px;
  color: #f1f6ef;
  font-size: 12px;
  font-weight: 600;
}

.hero-location span {
  color: var(--lime);
  font-size: 18px;
}


/* =========================
   INTRO STRIP
========================= */

.intro-strip {
  padding: 17px 0;
  background: var(--lime);
  text-align: center;
}

.intro-strip p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
}

.intro-strip span {
  margin: 0 18px;
  color: var(--green);
}


/* =========================
   ACADEMICS
========================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 46px;
}

.section-heading h2,
.center-heading h2,
.about-content h2,
.contact-content h2 {
  font-size: clamp(38px, 4vw, 54px);
}

.section-heading > p {
  max-width: 385px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.academic-card {
  position: relative;
  min-height: 275px;
  padding: 25px 22px;
  border: 1px solid #e9eee9;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academic-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 18px 35px rgba(12, 90, 59, 0.14);
}

.featured-card {
  background: var(--green);
  color: var(--white);
}

.yellow-card {
  background: var(--yellow);
}

.card-number {
  color: #90a498;
  font-size: 11px;
  font-weight: 700;
}

.featured-card .card-number {
  color: #b8d37f;
}

.card-icon {
  margin: 36px 0 23px;
  color: var(--green);
  font-size: 28px;
}

.featured-card .card-icon {
  color: var(--lime);
}

.academic-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
}

.academic-card p {
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.featured-card p {
  color: #d8eadc;
}

.academic-card a {
  font-size: 12px;
  font-weight: 700;
}

.academic-card a span {
  margin-left: 5px;
  font-size: 16px;
}


/* =========================
   ABOUT
========================= */

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(45px, 8vw, 112px);
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.image-message {
  position: absolute;
  right: -25px;
  bottom: -30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 185px;
  padding: 20px;
  background: var(--yellow);
  font-size: 16px;
  line-height: 1.25;
}

.image-message span {
  font-size: 24px;
}

.about-content > p:not(.section-label) {
  max-width: 470px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--yellow);
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   WHY CHOOSE US
========================= */

.why-us {
  background: #f0f4eb;
}

.center-heading {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}

.center-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.strength-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  background: #f0f4eb;
}

.strength-card > span {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #98aa9f;
  font-size: 11px;
  font-weight: 700;
}

.strength-icon {
  color: var(--green);
  font-size: 29px;
}

.strength-card h3 {
  margin: 20px 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.strength-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}


/* =========================
   SCHOOL LIFE
========================= */

.school-life {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 610px;
}

.school-life-image {
  background-image:
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1500&q=85");
  background-position: center;
  background-size: cover;
}

.school-life-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(55px, 9vw, 120px) clamp(35px, 7vw, 85px);
  background: var(--green);
  color: var(--white);
}

.school-life-content h2,
.admissions h2 {
  font-size: clamp(40px, 4vw, 56px);
}

.school-life-content > p:not(.section-label) {
  max-width: 385px;
  color: #d3e5d8;
  font-size: 15px;
}

.school-life-content .secondary-button {
  margin-top: 16px;
}


/* =========================
   ADMISSIONS
========================= */

.admissions {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  background: linear-gradient(120deg, var(--green), #107049);
  color: var(--white);
  text-align: center;
}

.admissions::before,
.admissions::after {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.admissions::before {
  top: -220px;
  left: -200px;
}

.admissions::after {
  right: -190px;
  bottom: -280px;
}

.admissions-content {
  position: relative;
  z-index: 1;
}

.admissions-content > p:not(.section-label) {
  max-width: 510px;
  margin: 20px auto 30px;
  color: #d3e5d8;
}

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

.white-button:hover {
  transform: translateY(-3px);
  background: var(--lime);
}


/* =========================
   CONTACT
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
}

.contact-content > p:not(.section-label) {
  max-width: 440px;
  color: var(--muted);
}

.address-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.address-box > span {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
}

.address-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.address-box strong {
  display: block;
  color: var(--ink);
}

.contact-card {
  padding: 42px;
  background: var(--green);
  color: var(--white);
}

.contact-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
}

.contact-card p {
  color: #d7e7d9;
  font-size: 14px;
}

.contact-card .primary-button {
  margin: 12px 0 20px;
}

.contact-card small {
  display: block;
  color: #b9d2c0;
  font-size: 10px;
  line-height: 1.5;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 38px 0 20px;
  background: var(--dark-green);
  color: #e7f0e9;
}

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

.footer .logo-text small {
  color: #abc2b3;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-top > p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.back-to-top {
  font-size: 12px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  color: #a9c0b1;
  font-size: 11px;
}
/* =========================
   SCROLL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.academic-card:nth-child(2),
.strength-card:nth-child(2) {
  transition-delay: 0.1s;
}

.academic-card:nth-child(3),
.strength-card:nth-child(3) {
  transition-delay: 0.2s;
}

.academic-card:nth-child(4),
.strength-card:nth-child(4) {
  transition-delay: 0.3s;
}

.strength-card:nth-child(5) {
  transition-delay: 0.1s;
}

.strength-card:nth-child(6) {
  transition-delay: 0.2s;
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 850px) {
  .header {
    height: 72px;
  }

  .menu-button {
    display: block;
    z-index: 60;
    width: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 6px auto;
    background: var(--green);
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  /* Turns the three lines into an X */
  .menu-button.menu-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button.menu-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.menu-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 24px;
    background: var(--white);
    box-shadow: 0 15px 28px rgba(4, 48, 32, 0.14);
  }

  .nav-links.menu-open {
    display: flex;
    animation: menuSlideDown 0.28s ease forwards;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid #eef1ec;
  }

  .nav-link.active::after {
    right: auto;
    bottom: 6px;
    width: 36px;
  }

  .nav-button {
    margin-top: 16px;
    padding: 14px 16px;
    text-align: center;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .academic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .about-image-wrapper {
    max-width: 580px;
  }

  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .school-life {
    grid-template-columns: 1fr;
  }

  .school-life-image {
    min-height: 360px;
  }

  .school-life-content {
    min-height: 410px;
  }

  .contact-card {
    max-width: 580px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .logo-circle {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .logo-text strong {
    font-size: 13px;
  }

  .logo-text small {
    font-size: 8px;
  }

  .hero {
    min-height: 640px;
    background-position: 59% center;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 57px);
    letter-spacing: -1px;
  }

  .hero-description {
    max-width: 370px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 18px;
  }

  .primary-button,
  .white-button {
    padding: 13px 17px;
  }

  .hero-location {
    margin-top: 52px;
  }

  .intro-strip {
    padding: 14px 0;
  }

  .intro-strip p {
    font-size: 14px;
    line-height: 1.8;
  }

  .intro-strip span {
    margin: 0 7px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading h2,
  .center-heading h2,
  .about-content h2,
  .contact-content h2 {
    font-size: 38px;
  }

  .academic-grid,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .academic-card {
    min-height: 230px;
  }

  .card-icon {
    margin: 24px 0 16px;
  }

  .about-image-wrapper img {
    height: 370px;
  }

  .image-message {
    right: 12px;
    bottom: -22px;
    width: 170px;
    padding: 17px;
  }

  .strength-card {
    min-height: 195px;
  }

  .school-life-image {
    min-height: 300px;
  }

  .school-life-content {
    min-height: 390px;
    padding: 60px 32px;
  }

  .admissions {
    padding: 76px 0;
  }

  .admissions h2,
  .school-life-content h2 {
    font-size: 39px;
  }

  .contact-card {
    padding: 28px;
  }

  .contact-card h3 {
    font-size: 24px;
  }

  .footer {
    padding-top: 32px;
  }

  .footer-top > p {
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}


/* =========================
   MENU OPENING ANIMATION
========================= */

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Accessibility:
   disables animations for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.quick-contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 14px;
}

.whatsapp-button,
.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.whatsapp-button {
  background: #25d366;
  color: white;
}

.call-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.whatsapp-button:hover,
.call-button:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.whatsapp-button span,
.call-button span {
  font-size: 17px;
}

@media (max-width: 400px) {
  .quick-contact-buttons {
    grid-template-columns: 1fr;
  }
}