:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --text: #1b1d25;
  --muted: #5f6474;
  --brand: #0f766e;
  --brand-2: #f59e0b;
  --accent: #ef4444;
  --shadow: 0 18px 40px rgba(27, 29, 37, 0.1);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 10%, #ffe8d2 0, var(--bg) 40%) fixed;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 239, 0.88);
  border-bottom: 1px solid rgba(27, 29, 37, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 500;
}

nav a:hover { color: var(--text); }

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(27, 29, 37, 0.16);
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0b5e58);
}

.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd58a 0, #f59e0b 45%, transparent 70%);
  opacity: 0.38;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

h1, h2, h3 { margin: 0 0 0.7rem; line-height: 1.2; }

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.5px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
  max-width: 58ch;
}

.card-lead {
  margin: 0;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-outline {
  border: 1px solid rgba(27, 29, 37, 0.2);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.hero-card {
  border: 1px solid rgba(27, 29, 37, 0.06);
  position: relative;
}

.hero-card::before {
  content: "Open Admissions 2026-27";
  position: absolute;
  top: -12px;
  left: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.stat {
  background: #f8fafc;
  border: 1px solid rgba(27, 29, 37, 0.08);
  border-radius: 12px;
  padding: 0.8rem;
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.hero-photo {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(27, 29, 37, 0.08);
}

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

section { padding: 1.2rem 0 3.8rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.section-head p { margin: 0; color: var(--muted); }

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

.tile img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.tile h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.tile p { margin: 0; color: var(--muted); }

.about-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.about-lead {
  margin-bottom: 0;
  max-width: unset;
}

.programs .tile {
  border-top: 5px solid var(--brand);
  background: linear-gradient(180deg, #fff, #f7fffc);
}

.facilities .tile {
  border-top: 5px solid var(--brand-2);
  background: linear-gradient(180deg, #fff, #fff9f0);
}

.banner {
  margin: 1.2rem 0 2.5rem;
  background: linear-gradient(120deg, #0f766e, #0a4b46);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.3);
}

.banner h2 { margin: 0; }
.banner p { margin: 0.4rem 0 0; color: rgba(255, 255, 255, 0.9); }
.banner .btn { justify-self: end; background: #fff; color: #0b5e58; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote {
  border-left: 4px solid var(--brand);
  background: #fff;
}

.quote img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.quote p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.subhead {
  font-family: "Fraunces", serif;
}

.contact li {
  list-style: none;
  margin: 0.65rem 0;
  color: var(--muted);
}

.contact ul { margin: 0; padding: 0; }

.timings-note {
  font-size: 0.96rem;
  margin-top: 1rem;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(27, 29, 37, 0.1);
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(27, 29, 37, 0.2);
  border-radius: 10px;
  background: #fff;
  width: 42px;
  height: 40px;
  cursor: pointer;
}

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

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

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .banner,
  .contact,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .banner .btn { justify-self: start; }

  .menu-toggle { display: inline-block; }

  nav {
    position: absolute;
    top: 70px;
    left: 4vw;
    right: 4vw;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav-cta { display: none; }

  .hero-photo img,
  .tile img,
  .quote img,
  .about-photo {
    height: auto;
    object-fit: contain;
  }
}
