@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #1C5884;
  --navy-dark: #123A57;
  --orange: #DE4E00;
  --paper: #FAF8F4;
  --ink: #1B2430;
  --muted: #6B7280;
  --line: #E5E1D8;
  --sathya: #DE4E00;
  --daya: #2F6FE8;
  --saralatha: #D6A419;
  --pavithratha: #D93A3A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

.house-stripe { height: 6px; display: flex; }
.house-stripe span { flex: 1; }
.house-stripe .s1 { background: var(--sathya); }
.house-stripe .s2 { background: var(--daya); }
.house-stripe .s3 { background: var(--saralatha); }
.house-stripe .s4 { background: var(--pavithratha); }

header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text .school-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.1; }
.brand-text .school-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

nav.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--navy); border-bottom-color: var(--orange); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #c74400; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

section { padding: 72px 24px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.hero {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: 64px 24px 40px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-crest-panel {
  background: var(--navy);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-crest-panel img { width: 200px; height: 200px; }
.hero-crest-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(222,78,0,0.15), transparent 60%);
}

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; }
.stat-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

.house-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.house-card .house-top { padding: 18px 20px; color: #fff; }
.house-card .house-body { padding: 18px 20px; background: #fff; font-size: 0.9rem; color: var(--muted); }

.icon-tile {
  aspect-ratio: 4/3;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border: 1px solid var(--line);
}

footer.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-wrap { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-wrap { grid-template-columns: 1fr; } }
.footer-wrap h4 { color: #fff; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-wrap a { color: rgba(255,255,255,0.8); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-wrap a:hover { color: #fff; }
.footer-bottom { max-width: 1160px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

.divider { height: 1px; background: var(--line); margin: 0; }

table.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.fee-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: 0.85rem; }
table.fee-table td { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }
table.fee-table tr:nth-child(even) td { background: #FBFAF7; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.contact-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; }
