/* ============================================================
   HowToOpenADrivingSchool.com
   A distinct brand from the book site: credible business/financial
   planning resource, not "driving school" themed.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Rebranded to the Driving School Founders identity: navy + gold, serif headings. */
:root {
  --paper: #FCFBF8;
  --paper-dim: #EEF3F8;
  --ink: #1B3A5B;
  --ink-soft: #45586b;
  --gold: #B07D2B;
  --gold-light: #E7C98A;
  --brick: #8A6120;
  --white: #ffffff;
  --line: rgba(27, 58, 91, 0.14);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1120px;
  --radius: 6px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 32px; height: 32px; flex: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><circle cx='200' cy='200' r='190' fill='none' stroke='%231B3A5B' stroke-width='16'/><circle cx='200' cy='200' r='118' fill='none' stroke='%231B3A5B' stroke-width='32'/><g stroke='%231B3A5B' stroke-width='32' stroke-linecap='round'><line x1='200' y1='200' x2='200' y2='88'/><line x1='200' y1='200' x2='103' y2='256'/><line x1='200' y1='200' x2='297' y2='256'/></g><circle cx='200' cy='200' r='36' fill='%231B3A5B'/><circle cx='200' cy='200' r='16' fill='%23B07D2B'/></svg>") no-repeat center/contain;
}
.brand span { color: var(--gold); }
nav.links { display: flex; gap: 30px; font-size: 0.92rem; }
nav.links a {
  text-decoration: none;
  color: var(--ink-soft);
  opacity: 0.85;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
nav.links a:hover, nav.links a.active {
  opacity: 1;
  color: var(--brick);
  border-bottom-color: var(--brick);
}
.nav-cta {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--brick); }

/* ---------- Mobile navigation ---------- */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin: -8px -8px -8px 0;
  background: none;
  border: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav.links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(27,58,91,.12);
    padding: 6px 28px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav-toggle:checked ~ nav.links { max-height: 620px; }
  nav.links a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; opacity: 1; }
  nav.links a.nav-cta { margin-top: 16px; border: none; text-align: center; color: #fff; font-size: 1rem; }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--brick);
  margin-bottom: 14px;
  display: block;
}

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

/* ---------- Numeric / ledger figures ---------- */
.figure {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.figure-gold { color: var(--gold); }
.figure-brick { color: var(--brick); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--brick); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brick); color: var(--brick); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 52px 0; }
section.alt { background: var(--paper-dim); }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 56px; }

/* ---------- Journey path (signature element) ---------- */
.journey-path {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 40px 0;
}
.journey-path::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: 0 8px;
}
.journey-step .node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.journey-step .step-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.journey-step p { font-size: 0.8rem; margin-top: 4px; }
@media (max-width: 780px) {
  .journey-path { flex-direction: column; gap: 22px; }
  .journey-path::before { display: none; }
  .journey-step { text-align: left; display: flex; align-items: center; gap: 14px; }
  .journey-step .node { margin: 0; flex-shrink: 0; }
}

/* ---------- Roadmap (12-step) ---------- */
.roadmap-list { counter-reset: step; }
.roadmap-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.roadmap-item:last-child { border-bottom: none; }
.roadmap-item .num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 32px;
}
.roadmap-item .body h3 { font-size: 1.02rem; margin-bottom: 2px; }
.roadmap-item .body p { font-size: 0.9rem; margin: 0; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

/* ---------- Stat callout ---------- */
.stat-block {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.stat-block .stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-block .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 30px; }
footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; font-size: 0.86rem; }
footer a { text-decoration: none; opacity: 0.8; }
footer a:hover { opacity: 1; color: var(--brick); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-fine { opacity: 0.55; margin-top: 26px; font-size: 0.78rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.opacity-70 { opacity: 0.75; }
.small { font-size: 0.85rem; }
