/* ===========================================================
   Compass Learning ABA — Design Tokens
   Theme: a family's growth journey, guided step by step.
   =========================================================== */

:root {
  /* Color */
  --bg:         #F5F8F3;   /* pale sage-white */
  --bg-alt:     #EAF1E7;   /* soft sage panel */
  --ink:        #223229;   /* deep forest-charcoal */
  --ink-soft:   #4B5C50;   /* muted body text */
  --primary:    #3F6659;   /* compass-needle green */
  --primary-dk: #2C4B41;
  --accent:     #E8935F;   /* warm apricot */
  --accent-dk:  #CC753F;
  --sun:        #F4C978;   /* soft sunshine */
  --line:       #D9E2D3;   /* hairline border */
  --white:      #FFFEFB;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary-dk);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); margin: 0 0 1em; }

a { color: var(--primary); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dk);
}

.brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary-dk);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dk); color: var(--white) !important; border-bottom: none !important; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    cursor: pointer;
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary-dk); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- Compass Path (signature element) ---------- */
.path-figure { width: 100%; height: auto; }
/* Halo keeps labels legible if they ever land near the dotted path */
.path-figure text {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.path-figure .waypoint-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  fill: var(--primary-dk);
}
.path-figure .waypoint-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--ink-soft);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .card-icon {
  width: 44px; height: 44px;
  color: var(--primary);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .age-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dk);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Founder bio ---------- */
.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 800px) {
  .founder { grid-template-columns: 1fr; gap: 28px; }
}
.founder-portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
}
@media (max-width: 800px) {
  .founder-portrait { max-width: 220px; }
}
.founder-monogram {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
}
.founder-portrait small {
  display: block;
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.founder-name { margin-bottom: 2px; }
.founder-role {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.creds {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.creds li {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dk);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.callout-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 30px 0 8px;
}
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--primary-dk);
  line-height: 1.5;
}

/* ---------- Milestone / journey list ---------- */
.journey {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 3px dotted var(--primary);
}
.journey li {
  position: relative;
  padding: 4px 0 28px 28px;
}
.journey li::before {
  content: "";
  position: absolute;
  left: -9px; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.journey li:last-child { padding-bottom: 4px; }
.journey h4 { margin-bottom: 4px; font-size: 1.05rem; }
.journey p { margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--primary-dk);
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding-bottom: 22px; max-width: 68ch; }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dk);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 102, 89, 0.15);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
#form-status { margin-top: 16px; font-weight: 700; }
#form-status.success { color: var(--primary-dk); }
#form-status.error { color: #B14C3C; }

/* ---------- Contact info blocks ---------- */
.contact-block { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-block svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-block h4 { margin-bottom: 2px; }
.contact-block p { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dk);
  color: #DCE7DF;
  padding: 48px 0 28px;
}
footer a { color: #DCE7DF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  color: #F5F8F3;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #B8C9BE;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
