/* Driven3 Transport & Recovery
   Accent colours are taken from the Driven3 logo. */

:root {
  --ink: #121519;
  --ink-2: #1d2126;
  --ink-3: #2a2f35;
  --yellow: #fad807;
  --yellow-dark: #e2c200;
  --red: #c90c0e;
  --blue: #0a5bd6;
  --text: #1b1f24;
  --muted: #5b626c;
  --line: #e5e7eb;
  --alt: #f5f6f7;
  --white: #fff;
  --green: #17864a;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --wrap: 1200px;
  --gutter: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
ol { padding-left: 22px; margin: 0 0 1.2em; }
ol li { margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { border-color: #cfd3d9; color: var(--ink); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.alt-link { font-weight: 700; color: var(--ink); }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; flex: none; }
.brand img { height: 36px; width: auto; }
.brand span { font-size: 10.5px; font-weight: 700; letter-spacing: .3em; color: #b5b9bf; padding-left: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 11px; font-weight: 600; font-size: 15px; color: #d4d7db; text-decoration: none; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--white); background: var(--ink-3); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--yellow); }
.header-call { min-height: 44px; padding: 0 16px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ink-3); border-radius: var(--r-sm); background: transparent; color: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.mobile-nav { display: none; background: var(--ink-2); padding: 8px 0 4px; }
.mobile-nav a { display: block; margin: 2px 12px; padding: 12px; border-radius: var(--r-sm); color: #e4e6e9; font-weight: 600; text-decoration: none; }
.mobile-nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.mobile-nav .btn { margin: 12px 12px 14px; width: calc(100% - 24px); }
.menu-open .mobile-nav { display: block; }
.stripe { height: 3px; background: linear-gradient(90deg, #8c9198 0 22%, var(--red) 22% 74%, var(--yellow) 74% 100%); }
@media (max-width: 1140px) {
  .nav, .header-call { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { height: 30px; }
  .brand span { font-size: 9.5px; letter-spacing: .24em; }
}

/* home hero */
.hero { background: var(--alt); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero .intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 600; font-size: 15px; color: #39404a; }
.hero-list li { display: flex; align-items: center; gap: 8px; }
.hero-list .icon { color: var(--green); stroke-width: 2.6; width: 18px; height: 18px; }
.hero-grid > img { width: 100%; aspect-ratio: 5 / 4.2; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* facts row */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 22px 16px; font-weight: 700; font-size: 15px; color: var(--ink); }
.facts li + li { border-left: 1px solid var(--line); }
.facts .icon { width: 22px; height: 22px; color: var(--ink); }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .facts li { font-size: 14px; padding: 16px 10px; gap: 8px; } }

/* inner page header */
.page-head { background: var(--alt); }
.ph-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 60px); }
.ph-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.page-head .intro { color: var(--muted); font-size: 1.12rem; margin-bottom: 26px; }
.ph-grid > img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; } .ph-grid > img { order: -1; aspect-ratio: 16 / 9; } }

/* sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--alt); }
.section-intro { max-width: 680px; margin-bottom: 32px; }
.section-intro p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; transition: border-color .2s; }
.card:hover { border-color: #b9bec5; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); }
.card-body { padding: 16px 12px 12px; }
.card-body p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card h3 { margin-bottom: 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.two-col.top { align-items: start; }
img.photo { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col .photo-first { order: -1; } }

/* dark highlight block */
.highlight { background: var(--ink); color: #c9cdd3; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.highlight h2 { color: var(--white); }
.highlight img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.highlight .ticks li { color: #e3e6ea; }
.highlight .ticks .icon { color: var(--yellow); }
.highlight .alt-link { color: var(--yellow); }
@media (max-width: 900px) { .highlight { grid-template-columns: 1fr; } .highlight img { order: -1; } }

/* tick lists */
.ticks { display: grid; gap: 10px; margin: 0 0 24px; }
.ticks li { display: flex; gap: 10px; }
.ticks .icon { color: var(--green); margin-top: 3px; stroke-width: 2.6; width: 18px; height: 18px; }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 600px) { .ticks.cols { grid-template-columns: 1fr; } }

/* short notes with dividers (used instead of icon feature grids) */
.notes { border-top: 1px solid var(--line); }
.notes > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes h3 { margin-bottom: 4px; }
.notes p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* text-only boxes in a grid */
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.boxes > div { background: var(--alt); border-radius: var(--r); padding: 20px; }
.boxes h3 { font-size: 1.05rem; margin-bottom: 4px; }
.boxes p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 600px) { .boxes { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: block; font-size: 28px; font-weight: 800; color: #c3c7cd; line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel h3 { margin-bottom: 8px; }
.panel.dark { background: var(--ink); border-color: var(--ink); color: #c9cdd3; }
.panel.dark h3 { color: var(--white); }
.panel.dark a.wa { color: var(--yellow); font-weight: 600; font-size: 15px; display: block; margin-top: 12px; }
.panel.warn { background: #fff8d6; border-color: #f1dc7c; margin-bottom: 8px; }
.panel.warn ol { margin: 0; }
.panel .phone-big { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--yellow); text-decoration: none; margin: 4px 0 16px; }

/* main + sidebar */
.with-side { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 100px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--ink); text-decoration: underline; }
.side-links a[aria-current="page"] { font-weight: 800; color: var(--ink); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose > p { color: #3b424c; }
.prose img.photo { margin: 8px 0 24px; aspect-ratio: 16 / 9; }
@media (max-width: 960px) { .with-side { grid-template-columns: 1fr; } .side { position: static; } }

/* areas */
.areas-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.areas-list li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }

/* logo plate (the logo is designed for a dark background) */
.logo-plate { display: inline-block; background: var(--ink); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; }
.logo-plate img { height: 60px; width: auto; }

/* faq */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: -4px 0 18px; }

/* call band */
.call-band { padding: 0 0 clamp(56px, 7vw, 96px); }
.call-band.after-alt { padding-top: clamp(56px, 7vw, 96px); }
.call-band .inner { background: var(--yellow); color: var(--ink); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.call-band h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.call-band p { margin: 0; font-size: 16.5px; }

/* forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdd2d8; border-radius: var(--r-sm);
  font: inherit; font-size: 16px; color: var(--text); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(250,216,7,.45); }
.field .err { display: none; font-size: 14px; color: var(--red); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-box { background: var(--alt); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
.form-done { display: none; background: #ecf8f1; border: 1px solid #bfe3cd; border-radius: var(--r); padding: 22px; }
.form-done h3 { color: var(--green); margin-bottom: 6px; }
.form-done p { margin: 0; }
.sent .form { display: none; }
.sent .form-done { display: block; }

/* UK number plate input */
.plate { display: flex; height: 54px; border: 2px solid #1d1d1d; border-radius: 8px; overflow: hidden; background: #f7c600; }
.plate span { width: 34px; background: #003399; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.plate input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0; text-align: center; text-transform: uppercase; font-weight: 800; font-size: 24px; letter-spacing: .1em; color: #111; }
.plate input::placeholder { color: rgba(0,0,0,.35); }
.plate:focus-within { box-shadow: 0 0 0 3px rgba(250,216,7,.45); }

.small-print { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

/* footer */
.footer { background: var(--ink); color: #a7adb5; font-size: 15px; }
.footer .wrap { padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { color: #dadde1; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer .phone { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 24px; color: var(--yellow); letter-spacing: -0.02em; }
.footer-bottom { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #7f8791; }
.footer-bottom nav { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile call bar */
.call-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 800; text-decoration: none; }
.call-bar .c1 { background: var(--yellow); color: var(--ink); }
.call-bar .c2 { color: var(--white); }
@media (max-width: 760px) { .call-bar { display: grid; } body { padding-bottom: 56px; } }

/* cost summary (non-fault accidents) */
.cost { display: grid; grid-template-columns: 1fr 1.6fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 26px; max-width: 560px; }
.cost > div { padding: 16px 20px; }
.cost > div + div { border-left: 1px solid var(--line); }
.cost span { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cost strong { display: block; font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.cost strong.sm { font-size: 18px; line-height: 1.3; margin-top: 6px; }
@media (max-width: 480px) { .cost { grid-template-columns: 1fr; } .cost > div + div { border-left: 0; border-top: 1px solid var(--line); } }
