:root {
  --ink: #102033;
  --navy: #14324d;
  --deep: #0b1c2c;
  --teal: #0f7f7b;
  --teal-dark: #0b5f5c;
  --mint: #d7f3ef;
  --sand: #f4efe6;
  --paper: #faf8f4;
  --white: #ffffff;
  --amber: #e8a317;
  --coral: #e36b4a;
  --line: #d9d3c8;
  --muted: #5b6b78;
  --shadow: 0 18px 40px rgba(16, 32, 51, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white; display: grid; place-items: center;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand span { display: block; font-size: 0.75rem; color: var(--muted); }
.capa-link {
  display: inline-flex; align-items: center;
  background: var(--navy); color: white !important;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 999px;
  text-decoration: none !important; white-space: nowrap;
}
.capa-link:hover { background: var(--teal-dark); color: white !important; }
.tg-link {
  display: inline-flex; align-items: center;
  background: #6d28d9; color: white !important;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 999px;
  text-decoration: none !important; white-space: nowrap;
}
.tg-link:hover { background: #5b21b6; color: white !important; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 8px 11px; border-radius: 999px; text-decoration: none;
}
nav a:hover, nav a.active { background: var(--mint); color: var(--teal-dark); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
  border: 0; cursor: pointer; text-decoration: none; gap: 8px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-ghost { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline { background: white; color: var(--ink); border: 1.5px solid var(--line); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-weight: 700;
}

.hero {
  background:
    linear-gradient(120deg, rgba(11,28,44,0.82), rgba(15,127,123,0.55)),
    #14324d;
  color: white; padding: 88px 0 76px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -80px -120px auto;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,23,0.35), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; max-width: 16ch; margin: 12px 0 16px; }
.hero p { max-width: 640px; font-size: 1.18rem; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #e8f5f3, var(--paper)); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 8px 0 10px; }

.section { padding: 72px 0; }
.section-alt { background: white; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.grid-3, .grid-4, .schools-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.schools-grid { grid-template-columns: repeat(2, 1fr); }

.card, .stat, .school-card, .quote, .media-box {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 26px; }
.card h3 { margin-bottom: 8px; }
.stat { padding: 22px; text-align: center; }
.stat b { display: block; font-family: "Fraunces", serif; font-size: 2rem; color: var(--teal-dark); }
.quote { padding: 28px; background: var(--navy); color: white; border: 0; }
.quote p { font-family: "Fraunces", serif; font-size: 1.15rem; line-height: 1.45; }
.quote cite { display: block; margin-top: 14px; font-style: normal; color: #d7f3ef; }

.beliefs { background: var(--mint); padding: 24px; border-radius: var(--radius); }
.beliefs li { margin: 10px 0 10px 18px; }

.school-card { overflow: hidden; display: flex; min-height: 210px; text-decoration: none; color: inherit; }
.school-card:hover { text-decoration: none; transform: translateY(-3px); }
.school-media {
  width: 42%; min-width: 180px; padding: 0; overflow: hidden;
  background: #d7ece9;
}
.school-media img {
  width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block;
}
.page-hero.school-hero {
  position: relative; color: white; background: #0b1c2c;
  padding: 88px 0 48px; overflow: hidden;
}
.page-hero.school-hero .school-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero.school-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,28,44,0.42), rgba(11,28,44,0.68));
}
.page-hero.school-hero .wrap { position: relative; z-index: 1; }
.page-hero.school-hero h1,
.page-hero.school-hero p,
.page-hero.school-hero .eyebrow { color: white; }
.school-body { padding: 22px; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--mint); color: var(--teal-dark);
  padding: 4px 8px; border-radius: 999px; margin-bottom: 8px;
}
.badge.soon { background: #f8e7c5; color: #8a5a00; }

.media-box { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 28px; color: var(--muted); background: #eef6f5; }
.media-box.video { min-height: 280px; background: #102033; color: #d7f3ef; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-4 { grid-template-columns: repeat(2, 1fr); }
.gallery-4 img { height: 220px; }
.gallery .media-box { min-height: 170px; }
.gallery figure {
  margin: 0; background: white; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.gallery figure img {
  width: 100%; height: 240px; object-fit: cover; display: block;
}
.gallery figcaption {
  padding: 10px 12px 12px; font-size: 0.9rem; color: var(--muted);
}
.photo-wide {
  margin: 0 0 22px; background: white; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.photo-wide img { width: 100%; height: auto; display: block; }
.photo-wide figcaption { padding: 12px 16px 14px; color: var(--muted); }

.form {
  display: grid; gap: 12px;
}
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); font: inherit; background: white;
}
.note { color: var(--muted); font-size: 0.95rem; }

footer {
  background: var(--deep); color: #dbe7e6; padding: 42px 0 24px; margin-top: 20px;
}
footer a { color: white; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 0.88rem; color: #9fb0b3; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .schools-grid, .gallery, .foot-grid { grid-template-columns: 1fr; }
  .school-card { flex-direction: column; }
  .school-media { width: 100%; min-height: 140px; }
}
