/* ==========================================================================
   Ger's Driving School
   Identity: dependable workshop / honest tradesman. Sturdy, no-nonsense.
   Headings: Libre Franklin. Body: Bitter (slab-ish serif).
   Palette: deep bottle green + warm cream/oat + oxblood/rust accent.
   Mobile-first, flat, polished.
   ========================================================================== */

:root {
  --green-900: #132a20;
  --green-800: #1c3a2c;
  --green-700: #28513c;
  --green-600: #356b4f;
  --cream: #f5efe1;
  --cream-2: #efe7d4;
  --oat: #e7dcc4;
  --oat-line: #d8caab;
  --rust: #a2402b;
  --rust-dark: #7d2f1f;
  --ink: #211d16;
  --ink-soft: #4a4437;
  --paper: #faf6ec;

  --font-head: "Libre Franklin", system-ui, sans-serif;
  --font-body: "Bitter", Georgia, serif;

  --container: 1120px;
  --radius: 6px;
  --shadow: 0 1px 0 var(--oat-line), 0 14px 30px -20px rgba(19, 42, 32, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--rust-dark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--rust); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--rust); color: var(--cream); padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0;
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--green-900);
  border-bottom: 3px solid var(--rust);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-badge {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--rust); color: var(--cream);
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  border: 2px solid var(--cream-2);
  box-shadow: inset 0 0 0 2px var(--rust);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--font-head); font-weight: 900; font-size: 1.4rem;
  color: var(--cream); letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-head); font-weight: 600; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--oat);
  margin-top: 3px;
}

.nav-toggle { display: none; }
.nav-toggle-btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle-btn span { height: 3px; background: var(--cream); border-radius: 2px; transition: 0.2s; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--oat); text-decoration: none; letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--cream); background: var(--green-700); }
.site-nav a[aria-current="page"] { color: var(--cream); background: var(--rust); }

@media (max-width: 820px) {
  .nav-toggle-btn { order: 3; }
  .site-nav {
    order: 4; flex-basis: 100%;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0.15rem; padding-bottom: 0.75rem; }
  .site-nav a { padding: 0.7rem 0.6rem; }
  .nav-toggle:checked ~ .site-nav { max-height: 480px; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.page-hero {
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(162, 64, 43, 0.28), transparent 60%),
    var(--green-900);
  color: var(--cream);
  padding: 2.9rem 0 2.6rem;
  border-bottom: 3px solid var(--rust);
}
.hero-inner { max-width: 820px; }
.hero-kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--rust);
  margin: 0 0 0.7rem;
  display: inline-block; padding: 0.28rem 0.6rem;
  border: 1.5px solid rgba(162, 64, 43, 0.55); border-radius: 3px;
  background: rgba(162, 64, 43, 0.12);
}
.page-hero h1 {
  color: var(--cream); font-size: clamp(1.95rem, 6vw, 3.05rem); margin: 0;
  font-weight: 900;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.28rem); line-height: 1.55;
  color: var(--oat); margin: 1.05rem 0 0; max-width: 60ch;
}
.page--home .page-hero { padding: 3.6rem 0 3.2rem; }

.hero-figure { margin: 0; background: var(--green-800); }
.hero-figure img {
  width: 100%; max-height: 440px; object-fit: cover;
}
.hero-figure figcaption {
  max-width: var(--container); margin: 0 auto;
  padding: 0.7rem 1.25rem; font-size: 0.86rem; font-style: italic;
  color: var(--ink-soft); background: var(--cream-2);
  border-bottom: 1px solid var(--oat-line);
}

/* ---------- Page body ---------- */
.page-body { max-width: 760px; padding-top: 2.4rem; padding-bottom: 3rem; }
.page-body > p, .page-body > ul, .page-body > ol, .page-body > h2,
.page-body > h3, .page-body > figure, .page-body > .callout,
.page-body > .guide-grid, .page-body > .key-facts, .page-body > blockquote,
.page-body > .cols { margin-left: auto; margin-right: auto; }

.page-body h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin: 2.4rem 0 0.9rem;
  padding-top: 0.4rem; position: relative;
}
.page-body h2::before {
  content: ""; display: block; width: 46px; height: 4px;
  background: var(--rust); border-radius: 2px; margin-bottom: 0.85rem;
}
.page-body h3 { font-size: 1.22rem; margin: 1.8rem 0 0.6rem; color: var(--green-800); }
.page-body p { margin: 0 0 1.15rem; }
.page-body .lead {
  font-size: 1.22rem; line-height: 1.6; color: var(--green-800);
  font-weight: 500;
}
.page-body a { font-weight: 600; }

.page-body ul, .page-body ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li {
  position: relative; padding-left: 1.7rem;
}
.page-body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; background: var(--rust);
  transform: rotate(45deg); border-radius: 1px;
}
.page-body ol { list-style: decimal; }
.page-body ol li::marker { color: var(--rust); font-family: var(--font-head); font-weight: 800; }

.page-body figure { margin: 2rem auto; }
.page-body figure img { border-radius: var(--radius); border: 1px solid var(--oat-line); }
.page-body figcaption {
  font-size: 0.86rem; font-style: italic; color: var(--ink-soft);
  margin-top: 0.55rem; padding-left: 0.9rem; border-left: 3px solid var(--rust);
}

.page-body blockquote {
  margin: 1.8rem auto; padding: 1rem 1.3rem;
  border-left: 4px solid var(--green-700); background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem; color: var(--green-800);
}
.page-body blockquote p:last-child { margin-bottom: 0; }

/* Callout: "the one thing" box */
.callout {
  margin: 2rem auto; padding: 1.3rem 1.4rem;
  background: var(--green-900); color: var(--cream);
  border-radius: var(--radius); border-left: 5px solid var(--rust);
}
.callout-label {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--rust); margin-bottom: 0.5rem;
}
.callout p { margin: 0; color: var(--cream); }
.callout a { color: var(--oat); }

/* Key-facts panel (used on process/explainer pages) */
.key-facts {
  margin: 2rem auto; padding: 1.3rem 1.4rem 0.6rem;
  background: var(--cream-2); border: 1px solid var(--oat-line);
  border-top: 4px solid var(--green-700); border-radius: var(--radius);
}
.key-facts h3 {
  margin: 0 0 0.9rem; font-family: var(--font-head); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--green-800);
}
.key-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
.key-facts dt { font-family: var(--font-head); font-weight: 700; color: var(--rust-dark); }
.key-facts dd { margin: 0; }
.key-facts dl { margin-bottom: 1rem; }

/* Two-column list block for home / service pages */
.cols { display: grid; gap: 1.2rem; margin: 1.6rem auto 2rem; }
@media (min-width: 640px) { .cols { grid-template-columns: 1fr 1fr; } }
.col-card {
  background: var(--paper); border: 1px solid var(--oat-line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.col-card h3 { margin: 0 0 0.4rem; color: var(--green-900); }
.col-card p { margin: 0; font-size: 0.98rem; }

/* ---------- Guide grid (home + /guides) ---------- */
.guide-grid { display: grid; gap: 1.1rem; margin: 1.6rem auto 2rem; }
@media (min-width: 620px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.page--guides .guide-grid { max-width: var(--container); }
@media (min-width: 940px) { .page--guides .guide-grid { grid-template-columns: 1fr 1fr 1fr; } }

.guide-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--oat-line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1.15rem;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}
.guide-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--green-700); transition: background 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--green-600); color: var(--ink); }
.guide-card:hover::before { background: var(--rust); }
.guide-card h3 { margin: 0 0 0.5rem; font-size: 1.16rem; color: var(--green-900); }
.guide-card p { margin: 0 0 1rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.guide-card .gc-more {
  margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--rust-dark);
}
.guide-card .gc-more::after { content: " \2192"; }
.gc-tick { display: none; }

/* ---------- Home extras ---------- */
.trust-row {
  display: grid; gap: 1rem; margin: 1.8rem auto 0.5rem; max-width: var(--container);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  text-align: center; padding: 1rem 0.6rem; background: var(--green-900);
  border-radius: var(--radius); color: var(--cream); border-bottom: 3px solid var(--rust);
}
.trust-item .tnum {
  display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; color: var(--cream);
}
.trust-item .tlab {
  display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--oat);
  margin-top: 0.25rem; font-family: var(--font-head); font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--oat); margin-top: 2rem; }
.footer-grid {
  display: grid; gap: 2rem; padding: 2.6rem 1.25rem 2rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.96rem; line-height: 1.6; margin: 0; max-width: 42ch; }
.site-footer h2 {
  font-family: var(--font-head); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--cream); margin: 0 0 0.9rem;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--oat); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-contact p { font-size: 0.95rem; line-height: 1.6; margin: 0 0 0.8rem; }
.footer-note { font-style: italic; color: var(--green-600); }
.footer-base { border-top: 1px solid var(--green-700); }
.footer-base p { margin: 0; padding: 1rem 0; font-size: 0.84rem; color: var(--green-600); }

/* ---------- Utility ---------- */
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
