/* ============================================================
   Purpose Driven Tutoring — Site Stylesheet
   Palette pulled from brand mark: deep navy, driven-purple,
   growth-gold, support-teal, warm paper background, wordmark red.
   Type: Fraunces (headline serif, literary warmth) + Source Sans 3 (body).
   ============================================================ */

:root {
  --navy: #1C2A45;
  --navy-deep: #131D31;
  --purple: #5B3B8C;
  --purple-deep: #452C6C;
  --gold: #C6963B;
  --gold-light: #E4C784;
  --teal: #1F7A73;
  --red: #9E2B25;
  --cream: #FAF6EE;
  --cream-deep: #F1EADB;
  --ink: #26241F;
  --ink-soft: #5B5648;
  --line: #DED4BE;
  --white: #FFFFFF;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --radius: 3px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 560; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--navy);
}
.wordmark img { height: 40px; width: 40px; object-fit: contain; }
.wordmark .word-driven { color: var(--purple); font-style: italic; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.primary-nav a {
  font-size: 0.97rem;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a.active { border-color: var(--gold); color: var(--purple-deep); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: #7f221d; border-color: transparent !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #7f221d; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { color: var(--purple); border-color: var(--purple); background: transparent; }
.btn-ghost:hover { background: var(--purple); color: var(--white); }

.hero-panel {
  background: var(--navy);
  color: var(--cream);
  padding: 36px;
  border-radius: var(--radius);
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px; right: 8px; bottom: 8px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-panel .stat-big { font-family: var(--serif); font-size: 2.8rem; color: var(--gold-light); margin-bottom: 2px; }
.hero-panel .stat-label { font-size: 0.92rem; color: #C9CEDA; margin-bottom: 22px; }
.hero-panel .stat-label:last-of-type { margin-bottom: 0; }

/* ---------- Stat strip ---------- */
.stat-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.stat-strip .container {
  display: flex;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 200px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-item .num { font-family: var(--serif); font-size: 2.1rem; color: var(--navy); display: block; }
.stat-item .label { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.tinted { background: var(--cream-deep); }
section.block.dark { background: var(--navy); color: var(--cream); }
section.block.dark h2, section.block.dark h3 { color: var(--white); }
section.block.dark p { color: #C9CEDA; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
}
section.block.dark .panel { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }
section.block.dark .panel p { color: #C9CEDA; }

.panel .icon-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
}
.tag-navy { background: var(--navy); }
.tag-purple { background: var(--purple); }
.tag-teal { background: var(--teal); }
.tag-gold { background: var(--gold); }

/* Team cards */
.team-card { text-align: left; }
.team-card .role { color: var(--purple); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.team-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.team-card ul li { margin-bottom: 4px; }

/* Quote */
blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 0;
}
blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }

/* Chart bars (pure CSS) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 200px;
  padding: 20px 0 0;
  border-bottom: 1px solid var(--line);
}
.bar-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 2px 2px 0 0;
  position: relative;
}
.bar-chart .bar span {
  position: absolute;
  top: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.bar-chart-labels {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.bar-chart-labels span { flex: 1; text-align: center; font-size: 0.78rem; color: var(--ink-soft); }

/* Numbered sequence (only used where content IS a sequence) */
.step-row { display: flex; gap: 26px; counter-reset: step; }
.step {
  flex: 1;
  position: relative;
  padding-top: 46px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

/* Job listing */
.job-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 34px;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.job-head .rate {
  text-align: right;
  font-family: var(--serif);
  color: var(--teal);
  font-size: 1.15rem;
  white-space: nowrap;
}
.job-head .rate small { display: block; font-family: var(--sans); color: var(--ink-soft); font-size: 0.8rem; font-weight: 400; }
.job-meta { font-size: 0.92rem; color: var(--ink-soft); margin-top: 4px; }

.job-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.job-body h4 { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 10px; text-transform: none; }
.job-body ul { margin: 0 0 20px; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.job-body ul li { margin-bottom: 6px; }

.note-inline {
  font-size: 0.87rem;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin-top: 6px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note-inline strong { color: var(--navy); }
.req-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.req-list li { margin-bottom: 6px; }

.apply-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.apply-block img { width: 84px; height: 84px; border-radius: 2px; }
.apply-block .apply-text { flex: 1; min-width: 200px; }
.apply-block .apply-text strong { color: var(--navy); display: block; margin-bottom: 3px; }
.apply-block .apply-text span { font-size: 0.85rem; color: var(--ink-soft); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.compare th {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.02rem;
  border-bottom: 2px solid var(--navy);
}
table.compare td { color: var(--ink-soft); }

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #B7BECF;
  padding: 52px 0 30px;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer a { color: #B7BECF; display: block; margin-bottom: 8px; font-size: 0.93rem; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer .wordmark { color: var(--white); margin-bottom: 12px; }
footer.site-footer .foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.83rem; color: #8890A3; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.97rem;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }

/* Page header (non-home pages) */
.page-head {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-head .kicker { font-family: var(--serif); font-style: italic; color: var(--purple); margin-bottom: 10px; }

/* ---------- Photography ---------- */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 2;
}
.photo-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.photo-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--navy), var(--purple-deep));
  color: #C9CEDA;
  padding: 30px;
}
.photo-pending .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
}
.photo-pending .sub {
  font-size: 0.85rem;
  color: #C9CEDA;
  max-width: 26ch;
}

.hero-photo { aspect-ratio: 4 / 5; }
.hero .container.with-photo { grid-template-columns: 1.05fr 0.95fr; }

.founder-photo { aspect-ratio: 4 / 5; max-width: 340px; }
.founder-grid { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }

.wide-photo { aspect-ratio: 16 / 9; }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; }
  .job-body { grid-template-columns: 1fr; }
  footer.site-footer .container { grid-template-columns: 1fr; gap: 26px; }
  .step-row { flex-direction: column; }
}

@media (max-width: 720px) {
  nav.primary-nav {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.primary-nav .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: block; }
  .stat-item { flex: 1 1 45%; margin-bottom: 18px; border-left: none !important; padding-left: 0 !important; }
  section.block { padding: 52px 0; }
  .hero { padding: 48px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .container { padding: 0 20px; }
  .job-head .rate { text-align: left; }
}
