/* Drive Forward LLC — design system & site styles */

:root {
  --ink: #0e1f1a;
  --ink-soft: #435850;
  --muted: #6d7d77;
  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  --bg-dark: #0a1c15;
  --bg-dark-alt: #0f2a1f;
  --primary: #17a34a;
  --primary-dark: #0e7c39;
  --primary-light: #e2f6e9;
  --accent: #d6a53c;
  --accent-dark: #b1841f;
  --border: #e1e8e4;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 21, 0.06), 0 1px 1px rgba(10, 28, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 28, 21, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 28, 21, 0.16);
  --header-h: 76px;
  --container: 1220px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #d9e6df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b7c9c0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); display: inline-block; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #241a03; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { color: var(--primary-dark); padding: 10px 4px; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 28, 21, 0.96); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 8px 24px; font-size: .82rem; color: #a9c1b6; max-width: var(--container); margin: 0 auto;
}
.topbar a:hover { color: #fff; }
.topbar .divider { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.lang-toggle button { background: none; border: none; color: #a9c1b6; padding: 3px 10px; font-size: .76rem; font-weight: 700; }
.lang-toggle button.active { background: var(--primary); color: #fff; }

.navbar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .logo-mark { height: 40px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.18rem; letter-spacing: .01em; }
.brand-text span { font-size: .68rem; color: var(--primary); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: #d6e6de; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.08); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff; padding: 8px; margin-left: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .topbar { display: none; }
  .nav-links { position: fixed; top: var(--header-h); right: 0; bottom: 0;
    width: min(280px, 80vw); height: calc(100vh - var(--header-h)); background: var(--bg-dark);
    flex-direction: column; align-items: stretch; padding: 18px; gap: 4px;
    box-shadow: -12px 0 32px rgba(0,0,0,.3); border-left: 1px solid rgba(255,255,255,.08);
    transform: translateX(110%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-scrim { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(4,12,9,.55); z-index: 99; }
  .nav-scrim.open { display: block; }
  .nav-links a { padding: 16px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .brand-text span { display: none; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 1rem; }
  .nav-cta .btn-outline { padding: 9px; }
  .nav-cta .btn-outline svg { width: 15px; height: 15px; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(120% 140% at 15% 0%, #123727 0%, #0a1c15 55%, #08150f 100%); color: #fff; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-opacity='0.03'/%3E%3C/svg%3E"); pointer-events:none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(23,163,74,.16); border: 1px solid rgba(23,163,74,.4); color: #7be0a4; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 1.14rem; color: #c3d6cd; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.hero-stats .stat span { font-size: .82rem; color: #9db6ab; }
.hero-visual { position: relative; }
.hero-card { background: #0f2a1f; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.hero-card img { border-radius: var(--radius-md); width: 100%; height: auto; object-fit: contain; background: #08150f; }
.hero-card .tag { display: inline-flex; margin-top: 16px; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.hero-card .cap { margin-top: 10px; color: #cfe2d9; font-size: .92rem; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; padding: 48px 0; } .hero-visual { order: -1; max-width: 420px; } }

/* Trust strip */
.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust-strip .row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Feature cards */
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: .95rem; }

/* Vehicle cards */
.inv-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { position: relative; flex: 1 1 240px; max-width: 320px; }
.search-box input { width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.sort-select { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-weight: 600; font-size: .88rem; }

.vehicle-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; display: flex; flex-direction: column; }
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vehicle-media { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-media .no-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.vehicle-media .no-photo svg { width: 34px; height: 34px; opacity: .5; }
.vehicle-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-body { background: rgba(10,28,21,.72); color: #fff; backdrop-filter: blur(2px); }
.badge-export { background: var(--accent); color: #241a03; }
.vehicle-price-tag { position: absolute; bottom: 12px; right: 12px; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700; padding: 6px 13px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.vehicle-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vehicle-body h3 { font-size: 1.08rem; margin: 0; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.vehicle-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-notes { font-size: .87rem; color: var(--ink-soft); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vehicle-actions { display: flex; gap: 8px; margin-top: 6px; }
.vehicle-actions .btn { flex: 1; }
.stock-tag { font-size: .74rem; color: var(--muted); font-weight: 700; letter-spacing: .05em; }

.inv-empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.inv-empty svg { width: 54px; height: 54px; color: var(--border); margin-bottom: 18px; }
.inv-loading { text-align: center; padding: 60px 0; color: var(--muted); font-weight: 600; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,18,14,.7); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 880px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.modal-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-content { padding: 30px 32px 34px; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 4px; }
.modal-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 16px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.modal-specs div span { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 3px; }
.modal-specs div strong { font-family: var(--font-head); font-size: 1.05rem; }

/* Story / values */
.story-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
@media (max-width: 980px) { .values-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .values-row { grid-template-columns: 1fr; } }
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p { font-size: .9rem; }
.value-item .num { font-family: var(--font-head); color: var(--primary); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; display: block; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.honeypot { position: absolute; left: -9999px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.cta-band p { color: #b7c9c0; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-card:last-child { border-bottom: none; }
.contact-card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h4 { margin: 0 0 4px; font-size: .98rem; }
.contact-card p { margin: 0; font-size: .92rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 26px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #a9c1b6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #93aca0; font-size: .92rem; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.site-footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #a9c1b6; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #78927f; }
.footer-bottom a { color: #78927f; }
.footer-bottom a:hover { color: #fff; }

/* Misc pages */
.page-hero { background: var(--bg-dark); color: #fff; padding: 64px 0 46px; }
.page-hero .eyebrow { color: #7be0a4; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.page-hero p { color: #b7c9c0; max-width: 60ch; }
.breadcrumb { font-size: .84rem; color: #9db6ab; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }

.alert { border-radius: var(--radius-md); padding: 16px 20px; font-size: .92rem; font-weight: 600; margin-bottom: 22px; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #b8e6c8; }

.sticky-cta { position: fixed; bottom: 18px; right: 18px; z-index: 90; display: none; }
@media (max-width: 720px) { .sticky-cta { display: flex; gap: 10px; } }
.sticky-cta .btn { box-shadow: var(--shadow-lg); }
