/* ============================================================
   Riverside Educational Advisors — styles.css
   Edit colors and fonts here. Everything is plain CSS.
   The whole palette lives in :root below.
   ============================================================ */

:root {
  --paper: #faf7f2;      /* warm off-white background */
  --paper-alt: #f1ece3;  /* slightly deeper panel background */
  --ink: #22292e;        /* near-black text */
  --ink-soft: #5c676d;   /* muted text */
  --river: #29424d;      /* deep slate-teal: headings, buttons */
  --river-deep: #1d3038; /* hover / dark band */
  --rule: #d9d2c5;       /* hairline borders */
  --note-bg: #fdf6df;    /* placeholder background */
  --note-edge: #b08d57;  /* placeholder border */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--river); color: var(--paper); }

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 46rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--river);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--river); }
a:hover { color: var(--river-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--river);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { font-weight: 400; color: var(--ink-soft); }

.mark { width: 1.5rem; color: var(--river); flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--river); }

.nav-cta {
  border: 1px solid var(--river);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--river) !important;
}

.nav-cta:hover { background: var(--river); color: var(--paper) !important; }

/* ---------------- Hero ---------------- */

.hero { padding: 5.5rem 0 4rem; }

.hero .lede {
  font-size: 1.2rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

.hero-facts {
  font-size: 1.02rem;
  max-width: 40rem;
  color: var(--ink);
  margin-top: 0.35rem;
}

.hero-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--river); color: var(--paper); }
.btn-primary:hover { background: var(--river-deep); color: var(--paper); }

.btn-quiet { border: 1px solid var(--rule); color: var(--ink); }
.btn-quiet:hover { border-color: var(--river); color: var(--river); }

.btn-light { background: var(--paper); color: var(--river); }
.btn-light:hover { background: var(--paper-alt); color: var(--river-deep); }

/* ---------------- Sections ---------------- */

.section { padding: 4.5rem 0; }

#services { border-top: 1px solid var(--rule); }

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------------- Services ---------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.service p:last-of-type { margin-bottom: 1.25rem; }

.service-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: -0.35rem 0 0.9rem;
}

.text-link {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

/* ---------------- Approach ---------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.steps li { counter-increment: step; }

.steps li h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--note-edge);
  margin-bottom: 0.4rem;
}

/* ---------------- Shared teaching philosophy (Approach) ---------------- */

.philosophy {
  max-width: 44rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.philosophy p:last-child { margin-bottom: 0; }

/* ---------------- About ---------------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.partner-photo {
  display: block;
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.partner-creds {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--river);
  margin-bottom: 0.5rem;
}

.partner-role {
  color: var(--ink-soft);
}

.partner > p:not(.partner-creds):not(.partner-role) {
  font-size: 1rem;
}

/* ---------------- Founding note (About) ---------------- */

.founding {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.founding-photo {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.founding-text {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 32rem;
}

.founding-text p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .founding {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------------- Placeholders (partner copy needed) ----------------
   Intentionally loud, so nothing ships by accident. */

.placeholder {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #6b5322;
  background: var(--note-bg);
  border: 2px dashed var(--note-edge);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.placeholder-photo {
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------------- Integrity ---------------- */

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--river);
  margin-top: 1.1rem;
}

/* ---------------- FAQ ---------------- */

.faq-list { margin: 2rem 0 0; }

.faq-item {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.faq-item dt {
  font-weight: 600;
  color: var(--river);
  margin-bottom: 0.4rem;
}

.faq-item dd { margin: 0; color: var(--ink); }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--river-deep);
  color: var(--paper);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 { color: var(--paper); }

.cta-band p { color: rgba(250, 247, 242, 0.85); }

.cta-band .cta-row { justify-content: center; }

.cta-alt {
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

.cta-alt a { color: var(--paper); }

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 2.5rem 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-inner { text-align: center; }

.footer-inner p { margin: 0.3rem 0; }

.footer-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--river);
}

.site-footer a { color: var(--ink-soft); }

/* ---------------- Small screens ---------------- */

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .site-nav { gap: 1rem; }
}
