/* Insight Education Partners — navy, sage, and gold from the IEP mark */
:root {
  --navy: #0E2840;
  --navy-deep: #081C2E;
  --sage: #5C6E52;
  --sage-deep: #3F4E39;
  --sage-soft: #E8EEE4;
  --gold: #B08A3E;
  --gold-deep: #7A5C22;
  --gold-soft: #F6EEDC;
  --cream: #F7F4EE;
  --paper: #FFFcf7;
  --ink: #1A2430;
  --muted: #5A655C;
  --line: #E4DDD2;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(14, 40, 64, 0.08);
  --font-head: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 620;
  margin: 0 0 0.55em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.28rem; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }

.container { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .7rem;
}
.eyebrow-light { color: #E4C98A; }
.rule {
  display: block; width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  border-radius: 2px; margin: .35rem 0 0;
}
.rule-center { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.25rem;
  border-radius: 999px; text-decoration: none; font-weight: 650;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(14, 40, 64, .28); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 0; }
.btn-gold:hover { background: #C49A48; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.text-link { font-weight: 650; color: var(--sage-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 252, 247, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); font-weight: 650; }
.brand-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 650; }
.site-nav ul { display: flex; gap: .2rem 1.15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--sage-deep); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: .45rem .9rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-deep); color: #fff !important; }
.nav-toggle, .nav-toggle-label { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(176, 138, 62, .16), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 3.2rem 0 3.6rem;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hero-logo {
  justify-self: center;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow), 0 0 0 10px rgba(232, 238, 228, .9);
}
.hero-logo img { width: 100%; height: auto; }

/* Sections */
.section { padding: 4.5rem 0; }
.about { background: #fff; }
.about-grid, .split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.about-copy p, .prose p { font-size: 1.12rem; color: #24302a; }
.schools { background: var(--cream); }
.families { background: #fff; }
.prose h3 { margin-top: 1.4rem; }

.pull { background: var(--navy); color: #F4EFE6; padding: 3.2rem 0; }
.pull blockquote { margin: 0; max-width: 46rem; }
.pull p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.35;
  font-weight: 520;
  color: #F7F3EA;
}
.pull blockquote::before {
  content: "";
  display: block; width: 42px; height: 3px;
  background: var(--gold); margin-bottom: 1rem; border-radius: 2px;
}

.services { background: var(--sage-soft); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .4rem; }
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.service-grid li {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.1rem;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(14, 40, 64, .05);
}
.service-grid p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Contact */
.contact { background: var(--navy-deep); color: #F4EFE6; }
.contact h2, .contact h3 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-lede { color: #D5D0C6; max-width: 28rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .95rem; }
.contact-label {
  display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: #E4C98A; font-weight: 700; margin-bottom: .15rem;
}
.contact-list a { color: #fff; font-weight: 650; }
.form-card {
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.form-card h3 { color: var(--navy); }
.form-intro { color: var(--muted); font-size: .95rem; }
.req { color: #8C3B2A; }
.optional { color: var(--muted); font-weight: 500; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 650; margin-bottom: .3rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid #DDD4C6; border-radius: 10px;
  padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #8C3B2A; background: #FBF4F2;
}
.field-error { min-height: 1.1em; margin: .25rem 0 0; color: #8C3B2A; font-size: .88rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.is-error { color: #8C3B2A; }
.form-status.is-success { color: var(--sage-deep); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button:disabled { opacity: .7; cursor: progress; }

/* Footer */
.site-footer { background: var(--navy); color: #E7E1D6; padding: 1.6rem 0 1.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.brand-footer .brand-name { color: #fff; font-size: 1.05rem; }
.brand-footer img { width: 40px; height: 40px; }
.parent, .legal { margin: 0; }
.parent a { color: #E4C98A; font-weight: 650; }
.legal { color: #C9C2B6; margin-left: auto; }

/* Simple pages */
.simple-page { background: var(--cream); min-height: 100vh; }
.simple {
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 2rem 1.25rem; max-width: 36rem; margin: 0 auto;
}
.simple img { width: 120px; height: 120px; margin-bottom: .5rem; }
.simple p { color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner, .about-grid, .split, .contact-inner, .service-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .hero-logo { order: -1; width: min(240px, 70%); }
  .section { padding: 3.2rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .legal { margin-left: 0; }
  .nav-toggle-label {
    display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 22px; height: 2px; background: var(--navy); position: relative; border-radius: 2px;
  }
  .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0;
  }
  .nav-toggle-label span::before { top: -7px; }
  .nav-toggle-label span::after { top: 7px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.25rem 1rem;
  }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .site-nav a { display: inline-block; padding: .55rem 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-cta { margin-top: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
