/*
Theme Name: DB Specialist Engineering
Theme URI: https://www.dbse.co.uk
Author: DB Specialist Engineering Ltd
Description: One-page website for DB Specialist Engineering Ltd. Repair, design, build and transport for motorhomes, caravans, HGVs, light commercials and trailers.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dbse
*/

/* Layout: clean corporate single page — sticky header, split hero with spec panel, 3-col services grid, about with figures, contact split. */
:root {
  --bg: #ffffff;
  --surface: #f3f6fa;
  --ink: #0f1d33;
  --muted: #55647a;
  --line: #dbe2ec;
  --navy: #12305c;
  --accent: #1f6fd1;
  --on-navy: #ffffff;
  --logo-tile: #000000;
  --illus-body: #ffffff;
  --fleet-bg: #000000;
  --fleet-ink: #f2f5fa;
  --fleet-muted: #a3adbd;
  --illus-glass: #cfe4fb;
  --font-display: "Saira", "Helvetica Neue", Arial, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --brand-blue: #1682F0;
  --brand-grey: #6b717c;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1424; --surface: #111e33; --ink: #e8eef7; --muted: #9aa9bf; --line: #23344f;
  --navy: #1b3d70; --accent: #6aa8ff; --on-navy: #ffffff; --illus-body: #1a2a44; --illus-glass: #2f5f96; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b1424; --surface: #111e33; --ink: #e8eef7; --muted: #9aa9bf; --line: #23344f;
  --navy: #1b3d70; --accent: #6aa8ff; --on-navy: #ffffff; --illus-body: #1a2a44; --illus-glass: #2f5f96; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112.5%; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* Header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 38px; height: 38px; border-radius: 6px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.logo { height: 46px; width: auto; background: var(--logo-tile); border-radius: 6px; padding: 6px 9px; display: block; }
.brand-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 17px; text-transform: uppercase; letter-spacing: 0; line-height: 1.1; }
.brand-name .db { color: var(--brand-blue); }
.brand-name small { display: block; font-weight: 500; font-style: normal; font-size: 10.5px; color: var(--brand-grey); letter-spacing: .32em; text-transform: uppercase; margin-top: 2px; }
.links { display: flex; gap: 24px; align-items: center; }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.links .btn { padding: 9px 16px; font-size: 15px; color: var(--on-navy); }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; font-style: italic; font-stretch: 125%; margin-top: 14px; letter-spacing: -.01em; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 19px; max-width: 34em; margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.spec h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.spec dl { margin: 16px 0 0; display: grid; gap: 0; }
.spec .row { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-block: 48px; } }

/* Sections */
section { padding-block: 80px; }
.section-head { max-width: 640px; display: grid; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.fleet { background: var(--fleet-bg); color: var(--fleet-ink); padding-block: 72px 64px; border-block: 1px solid var(--line); }
.fleet .section-head h2 { color: var(--fleet-ink); }
.fleet .section-head p { color: var(--fleet-muted); }
.fleet .eyebrow { color: var(--brand-blue); }
.fleet-img { display: block; width: 100%; height: auto; max-width: 100%; }
.fleet-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fleet-list li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 4px 8px; border-left: 2px solid var(--brand-blue); }
.fleet-list li:first-child { border-left: 0; }
.fleet-list strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 1000px) {
  .fleet-list li { padding: 4px 6px; }
  .fleet-list strong { white-space: normal; font-size: clamp(10px, 1.6vw, 13px); letter-spacing: .1em; line-height: 1.35; }
}
@media (max-width: 560px) {
  .fleet-list li { padding: 4px 2px; }
  .fleet-list strong { font-size: 2.15vw; letter-spacing: .02em; }
}
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.service svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 20px; font-weight: 700; }
.service p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text { display: grid; gap: 18px; max-width: 34em; }
.about-text p { color: var(--muted); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reasons li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-block: 20px; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.reasons strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 2px; }
.reasons span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.details { display: grid; gap: 22px; align-content: start; }
.detail { display: grid; gap: 2px; }
.detail .eyebrow { color: var(--muted); }
.detail div { font-size: 18px; font-weight: 600; user-select: all; }
.hours { list-style: none; margin: 4px 0 0; padding: 0; max-width: 300px; display: grid; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; border-bottom: 1px solid var(--line); font-size: 16px; font-variant-numeric: tabular-nums; }
.hours li span:first-child { font-weight: 600; }
.hours li.closed span:last-child { color: var(--muted); }
.detail .tag { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; user-select: none; }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: 15px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.note { font-size: 15px; color: var(--muted); }
.sent { background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; padding: 12px 14px; font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .reg { width: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html, body { margin: 0; }
body { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
