/* ===================================================================
   Designated Driver Inc. — ddiofbako.com
   Night-drive identity: asphalt black, headlight amber, road-sign type
   =================================================================== */

:root {
  --asphalt: #16181d;        /* header, hero, footer */
  --asphalt-soft: #21242b;   /* raised cards on dark */
  --amber: #f2a93b;          /* headlight accent */
  --amber-deep: #d98e1e;     /* hover state */
  --paper: #faf7f1;          /* content background */
  --ink: #23262d;            /* body text on light */
  --ink-soft: #5a5e68;       /* secondary text */
  --line: #e4ded2;           /* hairlines on light */
  --radius: 10px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Lane-line divider (signature motif) ---- */
.lane {
  border: 0;
  height: 0;
  border-top: 4px dashed var(--amber);
  width: 120px;
  margin: 0 0 28px;
  opacity: .9;
}
.lane.center { margin-left: auto; margin-right: auto; }

/* ---- Eyebrow labels ---- */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .95rem;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 10px;
}
.on-dark .eyebrow { color: var(--amber); }

/* =========================== HEADER =========================== */
.site-header {
  background: var(--asphalt);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; border-radius: 4px; }
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  color: rgba(255,255,255,.82);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }

.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-amber { background: var(--amber); color: var(--asphalt); }
.btn-amber:hover, .btn-amber:focus-visible { background: var(--amber-deep); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--amber); color: var(--amber); }
.btn-ghost-dark { border-color: var(--asphalt); color: var(--asphalt); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { background: var(--asphalt); color: #fff; }

.header-call { display: inline-flex; }
@media (max-width: 860px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .9rem; }
  .brand-name { display: none; }
  .header-call { display: none; }
}
@media (max-width: 560px) {
  .main-nav { gap: 12px; }
}

/* =========================== HERO =========================== */
.hero {
  background:
    radial-gradient(ellipse 55% 60% at 18% 110%, rgba(242,169,59,.22), transparent 70%),
    radial-gradient(ellipse 55% 60% at 82% 110%, rgba(242,169,59,.22), transparent 70%),
    var(--asphalt);
  color: #fff;
  padding: 92px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after { /* road edge: lane dashes along the bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 46px, transparent 46px 86px);
  opacity: .55;
}
.hero .wrap { max-width: 880px; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lede {
  font-size: 1.18rem;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sub {
  margin-top: 26px;
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .03em;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--asphalt);
  color: #fff;
  padding: 64px 0 58px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 46px, transparent 46px 86px);
  opacity: .45;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 640px; font-size: 1.1rem; }

/* =========================== SECTIONS =========================== */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

.section.dark { background: var(--asphalt); color: #fff; }
.section.dark .section-head p { color: rgba(255,255,255,.72); }

/* ---- How it works: three steps along a route ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--amber);
  display: block;
  margin-bottom: 6px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step .hours { margin-top: 10px; font-size: .92rem; color: var(--ink); }
.step .hours span { display: block; }
.step .hours strong { font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---- Services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service {
  background: var(--asphalt-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
}
.service h3 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.service h3::before {
  content: "";
  display: block;
  width: 34px;
  border-top: 3px dashed var(--amber);
  margin-bottom: 12px;
}
.service p { color: rgba(255,255,255,.74); font-size: .98rem; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* ---- Why DDI ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px 22px;
}
.why strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.why p { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 920px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- Testimonials: quiet, no clipart ---- */
.quotes { max-width: 720px; }
.quote { padding: 28px 0; border-bottom: 1px solid var(--line); }
.quote:last-child { border-bottom: 0; }
.quote blockquote {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .92rem;
  color: var(--amber-deep);
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--amber);
  color: var(--asphalt);
  padding: 56px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { font-weight: 500; }
.cta-band .btn { background: var(--asphalt); color: #fff; }
.cta-band .btn:hover, .cta-band .btn:focus-visible { background: #000; }

/* =========================== ABOUT =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: start;
}
.about-grid .prose p { margin-bottom: 18px; }
.stat-card {
  background: var(--asphalt);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
}
.stat-card .big {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--amber);
}
.stat-card .label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}
.stat-card + .stat-card { margin-top: 18px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.commit-list { list-style: none; }
.commit-list li {
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.commit-list li:last-child { border-bottom: 0; }
.commit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 28px;
  width: 14px;
  border-top: 3px dashed var(--amber);
}
.commit-list strong { display: block; margin-bottom: 2px; }
.commit-list span { color: var(--ink-soft); font-size: .97rem; }

/* =========================== CONTACT =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { list-style: none; }
.contact-card li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card li:last-child { border-bottom: 0; }
.contact-card .k {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
}
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--amber-deep); }
.hours-table { font-size: .98rem; }
.hours-table div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.hours-table strong { font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form .row { margin-bottom: 18px; }
.form label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form input, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; }

/* =========================== LEGAL (SMS T&C) =========================== */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--amber-deep); }
.legal .effective {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* =========================== FOOTER =========================== */
.site-footer {
  background: var(--asphalt);
  color: rgba(255,255,255,.75);
  padding: 48px 0 36px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
.site-footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-brand img { height: 44px; border-radius: 4px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Mobile sticky call bar ---- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar {
    display: block;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 60;
  }
  .call-bar a {
    display: block;
    text-align: center;
    background: var(--amber);
    color: var(--asphalt);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  body { padding-bottom: 74px; }
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--amber);
  color: var(--asphalt);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
