/* TruckerPro Driver Files — truckerspro.net
   Clean editorial compliance site: high contrast, readable guides, clear CTAs. */

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --ink: #12151c;
  --muted: #5b6170;
  --line: #e4e0d6;
  --line-2: #d2cdc0;
  --accent: #0b6e4f;
  --accent-2: #0a4d39;
  --accent-soft: #e3f3ec;
  --warn: #9a5b00;
  --warn-bg: #fff6e8;
  --us: #1d4f91;
  --ca: #a32020;
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad-x: clamp(18px, 4vw, 48px);
  --maxw: 1120px;
  --prose: 720px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 21, 28, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--ink); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin: 0.35em 0; }
strong { font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 10px 16px; font-weight: 700;
  border-radius: 6px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - var(--pad-x) * 2); margin-inline: auto; }
.prose-wrap { width: min(var(--prose), 100%); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; width: min(var(--maxw), 100% - var(--pad-x) * 2); margin-inline: auto;
}
.brand {
  display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: var(--ink);
}
.brand-mark {
  font-family: var(--body); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
}
.brand-mark span { color: var(--accent); }
.brand-sub { font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); font-size: 0.95rem; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav-links a:not(.btn):not(.nav-keep) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-secondary { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn-lg { padding: 15px 22px; font-size: 1rem; }

/* Hero */
.hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(11, 110, 79, 0.10), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(29, 79, 145, 0.08), transparent 50%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero p.lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card h2 { font-family: var(--body); font-size: 1rem; margin-bottom: 12px; }
.hero-card ol { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
.hero-card li { margin: 0.5em 0; }
.hero-card li strong { color: var(--ink); }

/* Pills / tags */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pill {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--muted); text-decoration: none;
}
.pill-us { border-color: rgba(29, 79, 145, 0.35); color: var(--us); background: #eef3fb; }
.pill-ca { border-color: rgba(163, 32, 32, 0.3); color: var(--ca); background: #fbefef; }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head p { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .meta { font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.03em; text-transform: uppercase; }

/* Answer box (AEO) */
.answer-box {
  background: var(--accent-soft); border: 1px solid #b7e0cc; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 28px;
}
.answer-box .label {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.answer-box p { margin: 0; font-size: 1.02rem; }

/* Article */
.article-hero { padding: clamp(32px, 5vw, 56px) 0 12px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.article {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.article .prose h2 { margin-top: 1.6em; }
.article .prose p { font-size: 1.05rem; }
.article .prose li { font-size: 1.02rem; }

/* FAQ */
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 4px; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0b3d2e 0%, #0b6e4f 55%, #1d4f91 130%);
  color: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 20px; align-items: center;
}
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; max-width: 40em; }
.cta-band .btn-primary { background: #fff; color: var(--accent-2); }
.cta-band .btn-primary:hover { background: #eef8f3; color: var(--accent-2); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Notice */
.notice {
  background: var(--warn-bg); border: 1px solid #efd4a8; border-left: 4px solid var(--warn);
  border-radius: var(--radius); padding: 14px 16px; color: #5c3d0a; font-size: 0.95rem; margin: 18px 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line); padding: 40px 0 28px; background: #efece4; color: var(--muted); font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h3 { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 12px; }
.footer a { color: var(--muted); text-decoration: none; display: inline-block; margin: 0.28em 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-2); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center;
}
.footer-note { max-width: 48em; line-height: 1.5; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.related a {
  display: block; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); text-decoration: none; color: var(--ink); font-weight: 650; font-size: 0.95rem;
}
.related a:hover { border-color: var(--accent); color: var(--accent-2); }

.product-links {
  margin-top: 28px; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: #fbfaf7;
}
.product-links h2 { font-family: var(--body); font-size: 1rem; margin-bottom: 8px; }
.product-links ul { margin: 0; padding-left: 1.1em; }
.product-links li { color: var(--muted); }

.mono { font-family: var(--mono); font-size: 0.9em; }
