/* Meridian Education — site styles */
:root {
  --ink: #14213d;
  --ink-soft: #3d4a63;
  --paper: #f7f4ee;
  --paper-2: #efe9de;
  --white: #fffcf7;
  --teal: #0b6e6e;
  --teal-dark: #085858;
  --coral: #c45c26;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); letter-spacing: -0.03em;
  text-decoration: none; font-size: 1.05rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font); font-size: 1.1rem;
}
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink-soft); padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--paper-2); color: var(--ink); text-decoration: none;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--white); text-decoration: none; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); max-width: 16ch; margin-bottom: 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch;
}
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.stat b { display: block; font-family: var(--font); font-size: 1.8rem; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 50ch; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card p, .panel p { color: var(--ink-soft); }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 10px;
}
.band { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 40px; }
.band h2 { color: var(--white); }
.band p { color: rgba(247,244,238,0.78); max-width: 50ch; }
.band .btn-primary { background: var(--coral); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.list { list-style: none; display: grid; gap: 12px; }
.list li {
  padding-left: 28px; position: relative; color: var(--ink-soft);
}
.list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--teal);
}

form { display: grid; gap: 14px; }
label { font-size: 0.85rem; font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { font-size: 0.85rem; color: var(--ink-soft); }
.success {
  display: none; background: #e6f4ef; border: 1px solid #b7e0d2;
  color: var(--teal-dark); padding: 14px 16px; border-radius: 12px;
}

footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  color: var(--ink-soft); font-size: 0.92rem;
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-grid, .cards, .split, .form-row, .stat-row { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; right: 20px; top: 64px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px; flex-direction: column;
    min-width: 200px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}
