/* DRIVE Dealer Solutions - shared styles
   Colors and fonts match the DriveDesk app so both sites look like one company. */

:root {
  --navy: #0c2544;
  --navy-light: #17395c;
  --navy-deep: #081a30;
  --green: #4a9c2e;
  --green-dark: #397623;
  --green-darker: #2d5f1c;
  --green-bright: #7bcb4b;
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #e1e6ea;
  --text: #1e2a33;
  --muted: #56667a;
  --on-navy: #dce8ef;
  --on-navy-muted: #93a9b8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12, 37, 68, .06), 0 6px 20px rgba(12, 37, 68, .06);
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-light); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; color: #fff; }
.brand-sub { font-family: var(--font-head); font-weight: 500; font-size: .78rem; letter-spacing: .04em; color: var(--green-bright); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a.nav-link {
  display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 10px 14px; border-radius: 8px;
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav a.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green-bright); }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border-radius: 10px;
  padding: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); flex-direction: column; align-items: stretch;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }
.sub a { display: block; color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.sub a:hover { background: var(--bg); color: var(--green-dark); }
.header-call { margin-left: 8px; }
.nav-toggle {
  display: none; background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 10px;
  min-width: 48px; min-height: 48px; font-size: 1rem; font-weight: 600; cursor: pointer; padding: 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 24px; border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.25;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-bright { background: var(--green-bright); color: var(--navy); }
.btn-bright:hover { background: #8fd85f; color: var(--navy); }
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-darker); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-dark:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(123, 203, 75, .22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--on-navy); padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::after { /* road stripe accent */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--green-bright) 0 46px, transparent 46px 74px);
  opacity: .9;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-bright); background: rgba(123, 203, 75, .12);
  border: 1px solid rgba(123, 203, 75, .45); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--on-navy); max-width: 62ch; }
.call-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 28px;
}
.call-card .eyebrow { color: var(--green-bright); }
.call-card .phone {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: #fff; text-decoration: none; margin: 6px 0 10px; line-height: 1.15;
}
.call-card .phone:hover { color: var(--green-bright); }
.call-card p { color: var(--on-navy); margin-bottom: 18px; }
.page-hero { padding: 56px 0 50px; }
.page-hero .lead { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark); margin: 0 0 10px;
}
.on-navy .eyebrow, .hero .eyebrow { color: var(--green-bright); }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-deep); padding: 22px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stats li {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-align: center; line-height: 1.3;
  padding: 12px 10px; border-left: 3px solid var(--green-bright); background: rgba(255, 255, 255, .05); border-radius: 6px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-white { background: #fff; }
.section-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-navy .section-head p { color: var(--on-navy); }
.section-head p.eyebrow { color: var(--green-dark); font-size: .8rem; margin: 0 0 12px; }
.section-navy .eyebrow, .quote-band .eyebrow { color: var(--green-bright); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card.accent { border-top: 4px solid var(--green); }
.grid > .card.accent { display: flex; flex-direction: column; }
.grid > .card.accent .more-link { margin-top: auto; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 8px;
}
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { position: relative; padding: 6px 0 6px 30px; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) scale(.9);
}
.more-link { font-weight: 700; text-decoration: none; color: var(--green-dark); }
.more-link:hover { text-decoration: underline; }

.product { padding: 22px 24px; }
.product h3 { font-size: 1.05rem; color: var(--navy); }
.product p { color: var(--muted); font-size: .98rem; }

/* pull quote band */
.quote-band { padding: 64px 0; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote-band blockquote p {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.8vw, 1.8rem); line-height: 1.4; color: #fff; margin-bottom: 18px;
}
.quote-band cite { font-style: normal; color: var(--green-bright); font-weight: 600; }

/* steps */
.step { position: relative; padding-top: 34px; }
.step .num {
  position: absolute; top: -22px; left: 24px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  background: var(--green-dark); color: #fff; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); }
.steps { margin-top: 30px; }

/* testimonials */
.quote-card { display: flex; flex-direction: column; height: 100%; }
.quote-card blockquote { margin: 0 0 16px; position: relative; padding-top: 26px; flex: 1; }
.quote-card blockquote::before {
  content: "\201C"; position: absolute; left: -2px; top: -18px; font-family: var(--font-head); font-weight: 800;
  font-size: 4rem; line-height: 1; color: var(--green);
}
.quote-card blockquote p { font-size: 1.02rem; }
.quote-card .who { border-top: 1px solid var(--border); padding-top: 14px; }
.who strong { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.who span { color: var(--muted); font-size: .95rem; }
.testimonial-columns { column-count: 2; column-gap: 24px; }
.testimonial-columns .card { break-inside: avoid; margin-bottom: 24px; display: block; }

/* two-column text pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--green); }
.timeline li { padding: 0 0 22px 22px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; background: var(--green-bright);
  border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--green);
}
.timeline .when { font-family: var(--font-head); font-weight: 700; color: var(--navy); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.chips li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; color: var(--navy); }

.contact-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 32px; }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--green-bright); }
.contact-item { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item .label { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-bright); font-weight: 600; }
.contact-item .value { font-size: 1.15rem; font-weight: 600; }

.cta-band { text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 56px 0 0; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); text-decoration: underline; }
.footer-tag { font-family: var(--font-head); color: var(--green-bright); font-weight: 600; margin: 14px 0 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px; font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-columns { column-count: 1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
    padding: 12px 20px 22px; box-shadow: 0 14px 24px rgba(0, 0, 0, .3);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a.nav-link { padding: 14px 12px; font-size: 1.05rem; }
  .sub { display: flex; position: static; background: transparent; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .sub a { color: var(--on-navy); }
  .sub a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .header-call { margin: 10px 0 0; }
  .header-call .btn { width: 100%; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 48px 0 44px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats ul { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .hero::after { display: none; }
  body { background: #fff; }
}
