/* AllWays Towing and Retrieval — mobile-first */
:root {
  --navy: #101c33;
  --navy2: #16263f;
  --red: #c8102e;
  --red-dark: #a00d25;
  --gold: #f5b301;
  --ink: #1b2432;
  --muted: #5b6b82;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #dfe5ee;
  --ok: #1a7f37;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--red); }

/* Header */
.site-head {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 960px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; font-style: italic;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.brand-name { font-weight: 800; font-size: 16px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 600; font-size: 11px; color: #b9c6da; letter-spacing: .4px; }
.head-call {
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 10px;
  white-space: nowrap;
}
.head-call:active { background: var(--red-dark); }
nav.mainnav { background: var(--navy2); }
nav.mainnav .wrap { display: flex; gap: 2px; overflow-x: auto; max-width: 960px; margin: 0 auto; padding: 0 8px; }
nav.mainnav a {
  color: #cfd9ea; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 12px; white-space: nowrap;
}
nav.mainnav a.on, nav.mainnav a:active { color: #fff; background: rgba(255,255,255,.08); }

/* Layout */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 14px; }
main { padding-bottom: 40px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1d3358 70%, #274067 100%);
  color: #fff;
  padding: 34px 0 30px;
  border-bottom: 4px solid var(--red);
}
.hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; font-weight: 900; }
.hero h1 .accent { color: var(--gold); }
.hero p.sub { margin: 0 0 18px; color: #c9d5e8; font-size: 16px; }
.cta-stack { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: block; text-align: center; text-decoration: none;
  font-weight: 800; font-size: 19px; padding: 16px 18px; border-radius: 12px;
  border: 0; cursor: pointer; width: 100%;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark); }
.btn-red:active { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: #231a00; box-shadow: 0 3px 0 #b98500; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-green { background: var(--ok); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust-chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #e8eef8; font-size: 13px; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
}

/* Cards & sections */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-top: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 21px; }
.card h3 { margin: 16px 0 6px; font-size: 17px; }
.stripe { border-top: 4px solid var(--red); }
.how-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.svc h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.svc p { margin: 0; font-size: 14px; color: var(--muted); }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 12px; font-size: 16px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
}
.field input::placeholder, .field textarea::placeholder { color: #93a1b8; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.example-card {
  border: 2px dashed var(--red); border-radius: 12px; padding: 14px;
  background: #fff7f8; margin-bottom: 18px;
}
.example-card b.head { display: block; color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.example-card div { font-size: 14px; color: var(--muted); margin: 2px 0; }
.example-card div strong { color: var(--ink); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.error-box {
  background: #fdecec; border: 2px solid var(--red); color: #7c0f1f;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
}
.ok-box {
  background: #e6f4ea; border: 2px solid var(--ok, #1c7c3c); color: #14532d;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
}
.gps-row { display: flex; gap: 8px; }
.gps-row input { flex: 1; }
.gps-btn {
  flex: 0 0 auto; background: var(--navy); color: #fff; border: 0; border-radius: 10px;
  padding: 0 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}

/* Tracking timeline */
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.timeline li:last-child { border-bottom: 0; }
.t-dot {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  background: #e8edf4; color: #93a1b8;
}
.timeline li.done .t-dot { background: var(--ok); color: #fff; }
.timeline li.live .t-dot { background: var(--red); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.timeline .t-title { font-weight: 700; }
.timeline li.live .t-title { color: var(--red); }
.timeline .t-sub { font-size: 13px; color: var(--muted); }
.code-big {
  font-size: 26px; font-weight: 900; letter-spacing: 2px; color: var(--navy);
  background: #fff; border: 2px dashed var(--navy); border-radius: 10px;
  padding: 10px; text-align: center; margin: 10px 0;
}
.link-row { display: flex; gap: 8px; margin-top: 10px; }
.link-row input { flex: 1; padding: 10px; font-size: 13px; border: 2px solid var(--line); border-radius: 8px; }
.link-row button { flex: 0 0 auto; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }

/* Driver page */
.job { border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: #fff; }
.job.new { border-color: var(--red); }
.job h3 { margin: 0 0 8px; font-size: 17px; }
.job .kv { font-size: 14px; margin: 3px 0; }
.job .kv b { color: var(--muted); font-weight: 600; display: inline-block; min-width: 88px; }
.job .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.job .actions .btn { width: auto; flex: 1; font-size: 16px; padding: 13px 10px; }
.job img.shot { max-width: 100%; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.pill.new { background: #fdecec; color: var(--red); }
.pill.accepted { background: #e6f4ea; color: var(--ok); }
.pill.arrived { background: #e8edf4; color: var(--navy); }
.pill.declined { background: #f1f3f6; color: var(--muted); }
.eta-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.eta-row input { width: 90px; padding: 10px; font-size: 16px; border: 2px solid var(--line); border-radius: 8px; }
.eta-row span { font-size: 14px; color: var(--muted); }

/* Price menu (roadside extras) */
.menu { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.menu-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fff;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row .m-price {
  flex: 0 0 auto; font-weight: 900; font-size: 16px; color: var(--navy);
  background: var(--bg); border-radius: 8px; padding: 6px 10px; white-space: nowrap;
}

/* Footer */
footer.site-foot { background: var(--navy); color: #b9c6da; padding: 26px 0; margin-top: 30px; border-top: 4px solid var(--red); font-size: 14px; }
footer.site-foot a { color: #fff; }
.foot-call { display: block; text-align: center; background: var(--red); color: #fff !important; font-weight: 800; font-size: 18px; padding: 14px; border-radius: 10px; text-decoration: none; margin-bottom: 16px; }
.foot-fine { text-align: center; font-size: 12px; color: #7e8ea8; }

/* v8: driver availability status bar */
.statusbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 14px; border-radius:10px; margin:12px 0 4px; font-size:15px; }
.statusbar .dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.statusbar.avail { background:#e6f4ea; }
.statusbar.avail .dot { background:var(--ok); box-shadow:0 0 6px var(--ok); }
.statusbar.busy { background:#fdecec; }
.statusbar.busy .dot { background:var(--red); box-shadow:0 0 6px var(--red); }
.notice-box { background:#fff8e6; border:1px solid #f0d060; border-radius:10px; padding:12px 16px; margin:14px 0; font-size:15px; }
