/* =========================================================
   Drivers World — Global Stylesheet
   ========================================================= */

:root {
  --brand: #0a6b4f;
  --brand-dark: #074d39;
  --brand-light: #12a079;
  --accent: #f5a623;
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --muted: #6b7480;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9f8;
  --bg-tint: #eef6f3;
  --danger: #c0392b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: 2.4rem; margin: 0 0 .5em; }
h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand .brand-name span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--bg-tint), transparent),
              linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.9rem; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.6em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--bg-tint);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 26px;
}
.hero-card h3 { margin-top: 0; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-list li:last-child { border-bottom: none; }
.step-badge {
  flex: none; width: 40px; height: 40px; border-radius: 10px; font-weight: 800;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--brand);
}
.step-list strong { display: block; }
.step-list small { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Free banner ---------- */
.free-strip {
  background: var(--brand-dark); color: #eafff7; text-align: center;
  font-weight: 600; font-size: .92rem; padding: 10px 16px;
}
.free-strip strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico { font-size: 1.9rem; margin-bottom: 10px; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Article cards */
.article-card { display: flex; flex-direction: column; }
.article-card .tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--brand);
  background: var(--bg-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.article-card h3 { font-size: 1.2rem; }
.article-card .meta { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 14px; }
.article-card a.read { font-weight: 700; }

/* ---------- Steps / pathway ---------- */
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .pathway { grid-template-columns: 1fr; } }
.path-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.path-step .num {
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--brand);
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px;
}
.path-step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.path-step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
details.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 12px; background: #fff; overflow: hidden;
}
details.faq-item summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7f5ec; font-size: 1.1rem; max-width: 620px; margin: 0 auto 24px; }

/* ---------- Article layout ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 40px 0 60px; }
@media (max-width: 960px) { .article-wrap { grid-template-columns: 1fr; } }
.article-body { max-width: 760px; }
.article-body h1 { font-size: 2.4rem; }
.article-body h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.article-meta .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--brand); background: var(--bg-tint);
  padding: 4px 10px; border-radius: 999px; margin-right: 8px;
}
.callout {
  background: var(--bg-tint); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0;
}
.callout.warn { background: #fff6f4; border-left-color: var(--danger); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 24px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg-soft); font-weight: 700; }
table.data tr:hover td { background: var(--bg-soft); }

.toc {
  position: sticky; top: 90px; align-self: start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.toc h4 { margin: 0 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink-soft); font-size: .92rem; }
.toc a:hover { color: var(--brand); }
@media (max-width: 960px) { .toc { display: none; } }

.breadcrumb { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 800px; margin: 0 auto; padding: 40px 0 60px; }
.prose h1 { font-size: 2.3rem; }
.prose h2 { font-size: 1.4rem; }
.prose ul { padding-left: 1.3em; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--brand-light); border-color: var(--brand-light);
}
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--brand-dark); font-weight: 600; }

/* ---------- Disclaimer inline ---------- */
/* Ad insertion points. Empty slots render nothing (collapse) so the page never
   shows a placeholder / "under construction" box. Paste real ad code inside a
   slot and it becomes visible with spacing. */
.ad-slot { margin: 28px 0; text-align: center; }
.ad-slot:empty { display: none; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d0db; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c7d0db; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand .brand-name { color: #fff; }
.footer-about { font-size: .92rem; color: #9aa6b3; max-width: 320px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #2c3645;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8c97a4;
}
.footer-bottom a { color: #8c97a4; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.disclaimer-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: .9rem; color: var(--ink-soft); margin: 24px 0;
}
