/* Kepha Fabricators & Engineering — design system.
   Brand: engineering blue #15598B, golden yellow #EDBF23, steel blue #3483AF,
   metallic grey #888888, charcoal #6A6A6A, white.
   Depth comes from spacing, borders and colour blocks — no gradients, no shadows. */

:root {
  --primary: #15598B;
  --primary-dark: #0E4066;
  --secondary: #EDBF23;
  --steel: #3483AF;
  --grey: #888888;
  --grey-line: #CFCFCF;
  --charcoal: #6A6A6A;
  --ink: #33404D;
  --tint: #EAF2F8;
  --tint-strong: #D8E8F2;
  --white: #FFFFFF;
  --error: #B3261E;
  --ok: #1E6B3A;

  /* Corner radius scale — one figure per breakpoint */
  --r-card: 8px;
  --r-btn: 6px;
  --r-chip: 3px;

  /* Image aspect-ratio slots — one variable each so real photos can be
     dropped in and the crop adjusted in one place. */
  --ar-logo: 10 / 3;
  --ar-hero: 4 / 3;
  --ar-card: 16 / 10;
  --ar-square: 1 / 1;
  --ar-wide: 16 / 7;
  --ar-portrait: 4 / 5;
}

* { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
h3 a { color: inherit; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--primary); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead { color: var(--tint-strong); }
.section-navy a:not(.btn) { color: var(--secondary); }
.section-head { max-width: 64ch; margin-bottom: 24px; }
.section-head p { color: var(--charcoal); }
.section-navy .section-head p { color: var(--tint-strong); }
.lead { font-size: 1.12rem; color: var(--charcoal); max-width: 62ch; }
.small { font-size: .88rem; color: var(--charcoal); }

/* Signature element: the rivet dot — a punched yellow rivet on navy, reused
   as the marker on step lists, feature lists and timelines. */
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step-list li {
  position: relative; padding: 0 0 22px 34px;
  margin-left: 9px;
}
.step-list li:last-child { padding-bottom: 4px; }
.step-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--secondary); border: 2px solid var(--primary);
}
.step-list h3 { margin-bottom: .3em; }
.step-list p { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 60;
  background: var(--primary); color: var(--white);
  padding: 10px 16px; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 8px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--primary); border-radius: var(--r-btn);
  background: var(--primary); color: var(--white);
  transition: background-color .14s ease, border-color .14s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-cta { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.btn-cta:hover { background: #D9AC14; border-color: #D9AC14; color: var(--primary-dark); }
.btn-ghost { background: var(--white); color: var(--primary); }
.btn-ghost:hover { background: var(--tint); color: var(--primary); }
.btn-small { min-height: 40px; padding: 7px 14px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand-logo { height: 52px; width: auto; max-width: 62vw; display: block; object-fit: contain; }
.brand-logo-footer {
  height: 56px; width: auto; max-width: 100%; display: block; object-fit: contain;
  background: var(--white); padding: 8px 12px; border-radius: var(--r-btn); margin-bottom: 16px;
}
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 13px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: var(--r-btn);
  transition: background-color .14s ease;
}
.nav-list a:hover { background: var(--tint); color: var(--primary); }
.nav-list a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.nav-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-call { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.btn-call:hover { background: #D9AC14; border-color: #D9AC14; color: var(--primary-dark); }

/* Hero — full-bleed background image band */
.hero {
  padding: 88px 0 76px;
  background-color: var(--primary-dark);
  background-image: linear-gradient(100deg, rgba(10,22,44,.94) 0%, rgba(10,22,44,.78) 52%, rgba(10,22,44,.45) 100%), var(--ph);
  background-size: cover; background-position: center 38%;
  color: var(--white);
}
.hero .wrap { max-width: 46rem; margin-left: 0; }
.hero h1 { font-size: 2rem; color: var(--white); }
.hero .lead { margin-bottom: 22px; color: rgba(255,255,255,.87); }
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Ghost buttons on dark bands: outlined, not a white box */
.section-navy .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.section-navy .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Page hero — background-image band on inner pages */
.page-hero {
  background-color: var(--primary-dark);
  background-image: linear-gradient(100deg, rgba(10,22,44,.93) 0%, rgba(10,22,44,.74) 55%, rgba(10,22,44,.5) 100%), var(--ph);
  background-size: cover; background-position: center 40%;
  color: var(--white); padding: 70px 0 56px;
}
.page-hero h1 { color: var(--white); margin: 0 0 10px; max-width: 24ch; }
.page-hero .lead { color: rgba(255,255,255,.86); margin: 0; max-width: 64ch; }
.page-hero .crumbs { margin-bottom: 14px; }
.page-hero .crumbs a, .page-hero .crumbs li { color: rgba(255,255,255,.75); }
.page-hero .crumbs a:hover { color: var(--secondary); }
.page-hero .status { margin-top: 14px; }
.promise-band { background: var(--primary); color: var(--white); padding: 18px 0; }
.promise-band .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.promise-band p { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.promise-band svg { width: 18px; height: 18px; fill: var(--secondary); flex: none; }

/* Cards & grids */
.grid-3 { display: grid; gap: 20px; }
.card {
  position: relative;
  border: 2px solid var(--grey-line); border-radius: var(--r-card); padding: 22px;
  background: var(--white);
  transition: border-color .14s ease;
}
.card h3 { margin-top: 0; }
.card:hover:has(.card-link) { border-color: var(--primary); }
/* Whole-card tap target — drop <a class="card-link"> inside any positioned card */
.card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.card-ico {
  width: 48px; height: 48px; border-radius: var(--r-btn); margin-bottom: 14px;
  background: var(--primary); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
}
.card-ico svg { width: 26px; height: 26px; fill: currentColor; }

/* Split section */
.split { display: grid; gap: 28px; align-items: center; }
.media-frame { border: 1px solid var(--grey-line); border-radius: var(--r-card); overflow: hidden; aspect-ratio: var(--ar-card); background: var(--tint); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: var(--ar-portrait); }

/* Vehicle cards & detail */
.vlist { display: grid; gap: 20px; }
.vcard {
  position: relative;
  border: 2px solid var(--grey-line); border-radius: var(--r-card); overflow: hidden;
  background: var(--white);
  transition: border-color .14s ease;
}
.vcard:hover:has(.card-link) { border-color: var(--primary); }
.vcard-img { position: relative; display: block; aspect-ratio: var(--ar-card); background: var(--tint); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vcard-body { padding: 16px 18px 18px; }
.vcard-body h3 { margin-bottom: 4px; }
.vcard-meta { color: var(--charcoal); font-size: .92rem; margin-bottom: 6px; }
.vcard-price { font-weight: 800; color: var(--primary); font-size: 1.05rem; margin-bottom: 2px; }
.vcard-basis { font-weight: 400; font-size: .8rem; color: var(--charcoal); }
.status {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--r-chip);
  font-size: .8rem; font-weight: 700; background: var(--white); color: var(--primary);
  border: 1px solid var(--grey-line);
}

/* Filters */
.filters { border: 2px solid var(--grey-line); border-radius: var(--r-card); padding: 18px; background: var(--tint); }
.filters form { display: grid; gap: 12px; }
.filters label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.filters input, .filters select {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1rem;
  border: 2px solid var(--grey-line); border-radius: var(--r-btn); background: var(--white);
}
.filters input:focus, .filters select:focus { border-color: var(--primary); }
.empty-state { border: 2px dashed var(--grey); border-radius: var(--r-card); padding: 32px; text-align: center; color: var(--charcoal); }

/* Spec table + detail */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--grey-line); }
.spec-table th { color: var(--charcoal); font-weight: 600; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--tint-strong); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--secondary);
  border: 2px solid var(--primary);
}
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery-row img { aspect-ratio: var(--ar-card); object-fit: cover; width: 100%; border: 2px solid var(--grey-line); border-radius: var(--r-btn); }
.callout {
  border: 1px solid var(--grey-line); border-radius: var(--r-card);
  padding: 16px 18px; background: var(--tint); margin: 18px 0;
}
.callout.warn { background: #FBF3DC; }
.price-box { border: 2px solid var(--primary); border-radius: var(--r-card); padding: 20px; }
.price-box .amount { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: var(--charcoal); }
.crumbs a { color: var(--primary); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--grey); }

/* Gallery & product grids */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gallery-grid figure { margin: 0; border: 2px solid var(--grey-line); border-radius: var(--r-card); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; }
.gallery-grid figcaption { padding: 12px 14px; font-size: .92rem; color: var(--charcoal); }

/* FAQ accordion */
details.acc { border: 2px solid var(--grey-line); border-radius: var(--r-card); margin-bottom: 12px; background: var(--white); }
details.acc summary {
  list-style: none; cursor: pointer; padding: 16px 50px 16px 18px; position: relative;
  font-weight: 700; color: var(--primary); min-height: 44px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+"; position: absolute; right: 16px; top: 12px;
  font-size: 1.4rem; font-weight: 800; color: var(--steel);
}
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 16px; }

/* Forms */
.form-panel { border: 2px solid var(--grey-line); border-radius: var(--r-card); padding: 24px; background: var(--white); }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-weight: 600; margin-bottom: 5px; }
.req { color: var(--error); }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem;
  border: 2px solid var(--grey-line); border-radius: var(--r-btn); background: var(--white); color: var(--ink);
}
.f-field textarea { min-height: 110px; }
.filters select, .f-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2315598B' stroke-width='2.5' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 40px;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--primary); }
.f-field.f-error input, .f-field.f-error select, .f-field.f-error textarea { border-color: var(--error); }
.f-hint { font-size: .85rem; color: var(--charcoal); margin: 4px 0 0; }
.f-err { color: var(--error); font-size: .9rem; margin: 5px 0 0; font-weight: 600; }
.f-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-alert { border: 2px solid var(--error); background: #FDECEA; color: var(--error); padding: 12px 16px; border-radius: var(--r-btn); margin-bottom: 16px; font-weight: 600; }
.f-check {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px;
  border: 2px solid var(--grey-line); border-radius: var(--r-btn);
  padding: 12px 14px; transition: border-color .14s ease, background-color .14s ease;
}
.f-check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.f-check label { font-weight: 400; }
.f-check:has(input:checked) { border-color: var(--primary); background: var(--tint); }
button[type="submit"].sending { opacity: .7; pointer-events: none; }

/* Floating contact buttons */
.float-stack { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  border: none; background: var(--primary); color: var(--white);
}
.float-btn svg { width: 26px; height: 26px; fill: currentColor; }
.float-btn:hover { background: var(--primary-dark); color: var(--white); }
.float-wa { background: #25D366; }
.float-wa:hover { background: #1DA851; color: var(--white); }



/* Footer */
.site-footer { background: var(--ink); color: var(--tint-strong); margin-top: 0; }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }

.footer-h { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer-links a { color: var(--tint-strong); text-decoration: none; display: inline-block; padding: 7px 0; }
.footer-links a:hover { color: var(--secondary); }
.footer-note { font-size: .85rem; color: var(--grey); }
.footer-legal { border-top: 1px solid var(--charcoal); padding-top: 18px; padding-bottom: 26px; font-size: .85rem; }
.footer-legal p { color: var(--grey); margin-bottom: 6px; }
.legal-links { list-style: none; display: flex; gap: 18px; margin: 0 0 10px; padding: 0; }
.legal-links a, .footer-legal a { color: var(--tint-strong); }
.footer-legal a:hover { color: var(--secondary); }

/* Consent */
.consent {
  position: fixed; left: 14px; bottom: 14px; z-index: 55; max-width: 330px;
  background: var(--white); border: 2px solid var(--primary); border-radius: var(--r-card); padding: 16px;
}
.consent p { font-size: .9rem; margin-bottom: 10px; }
.consent-btns { display: flex; gap: 10px; }

/* Admin */
.admin-shell { display: grid; gap: 24px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--grey-line); padding-bottom: 12px; }
.admin-nav a { padding: 8px 14px; border: 2px solid var(--grey-line); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; color: var(--ink); }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { border-color: var(--primary); color: var(--primary); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grey-line); vertical-align: top; }
.tbl th { color: var(--charcoal); }
.tbl-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-chip); font-size: .78rem; font-weight: 700; border: 1.5px solid var(--primary); color: var(--primary); }
.badge.new { border-color: var(--error); color: var(--error); }
.badge.sensitive { border-color: var(--error); background: #FDECEA; }
.badge.done { border-color: var(--ok); color: var(--ok); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.media-grid figure { margin: 0; border: 2px solid var(--grey-line); border-radius: var(--r-btn); overflow: hidden; }
.media-grid img { width: 100%; aspect-ratio: var(--ar-square); object-fit: cover; }
.media-grid figcaption { font-size: .72rem; padding: 6px 8px; word-break: break-all; color: var(--charcoal); }
#upload-preview { margin: 12px 0; }
#upload-preview img { max-width: 220px; border: 2px solid var(--primary); border-radius: var(--r-btn); }

/* Thank-you & misc pages */
.confirm-box { border: 2px solid var(--ok); border-radius: var(--r-card); padding: 28px; text-align: center; }
.confirm-box h1 { color: var(--ok); }
.track-stage { padding-left: 20px; margin-left: 8px; }
.track-stage li { position: relative; padding-bottom: 16px; list-style: none; }
.track-stage li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); border: 2px solid var(--primary); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; background: var(--tint);
  border-radius: var(--r-card); color: var(--charcoal);
}
.prose img { max-width: 100%; height: auto; border-radius: var(--r-card); }
.prose pre { background: var(--tint); padding: 14px; border-radius: var(--r-btn); overflow-x: auto; }

/* Category filter pills on /blog */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-pill {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 5px 14px; border-radius: 999px; border: 2px solid var(--grey-line);
  background: var(--white); color: var(--ink); text-decoration: none;
  font-size: .85rem; font-weight: 700;
  transition: border-color .14s ease, background-color .14s ease;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.on { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Whole blog card is clickable via a stretched link overlay */
.blog-card { position: relative; transition: border-color .14s ease; }
.blog-card:hover { border-color: var(--primary); }
.tag { display: inline-block; background: var(--tint); color: var(--primary); border-radius: var(--r-chip); padding: 2px 10px; font-size: .8rem; font-weight: 700; }
/* Tablet */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .filters form { grid-template-columns: 1fr 1fr; }
}

/* Laptop */
@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  .hero { padding: 110px 0 92px; }
  .hero h1 { font-size: 2.6rem; }
  .page-hero { padding: 84px 0 64px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev .media-frame { order: 2; }
  .vlist { grid-template-columns: repeat(2, 1fr); }
  .filters { position: sticky; top: 88px; }
  .vehicles-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
  .detail-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
  .detail-side { position: sticky; top: 88px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .vlist { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
  .vlist { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer;
    background: var(--white); border: 2px solid var(--primary); border-radius: var(--r-btn); color: var(--primary);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 3px; background: var(--primary); position: relative;
  }
  .nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
  .nav-toggle-bars::after { content: ""; position: absolute; top: 6px; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--grey-line);
    padding: 8px 20px 14px; flex-direction: column;
  }
  .main-nav.open .nav-list { display: flex; }
  .nav-list a { padding: 12px 6px; border-bottom: 1px solid var(--tint-strong); border-radius: 0; }
  .nav-list a[aria-current="page"] { background: var(--tint); border-radius: var(--r-btn); }
  .call-label { display: none; }
  .btn-call { width: 44px; padding: 0; }
  :root { --r-card: 7px; --r-btn: 5px; --r-chip: 3px; }
  .section { padding: 36px 0; }
  .header-row { gap: 8px; }
  .brand-logo { height: 40px; }
  .brand-logo-footer { height: 48px; }

  /* Button rows keep one line on phones: equal flex, tight type, no wrap */
  .btn-row { flex-wrap: nowrap; gap: 8px; }
  .btn-row .btn {
    flex: 1 1 auto; min-width: 0; min-height: 44px;
    padding: 9px 8px; font-size: .78rem; line-height: 1.25;
    white-space: nowrap; gap: 6px;
  }
  .btn-row .btn svg { width: 16px; height: 16px; }
  .btn-row .btn-call, .btn-row .btn-ico { flex: 0 0 auto; width: 44px; padding: 0; }
  .btn-ico .call-label { display: none; }

  /* Card density: edge/gap/padding all 6px on compact card-grid sections;
     single-column sections keep the 8px container edge. */
  .wrap { padding-left: 8px; padding-right: 8px; }
  .compact .wrap { padding-left: 6px; padding-right: 6px; }
  .compact .grid-3, .compact .vlist, .compact .gallery-grid {
    grid-template-columns: repeat(2, 1fr); gap: 6px;
  }
  .compact .card { padding: 6px; }
  .compact .card-ico { width: 40px; height: 40px; margin-bottom: 8px; }
  .compact .vcard-body { padding: 6px; }
  .compact .gallery-grid figure { border-radius: var(--r-card); }
  .compact .gallery-grid figcaption { padding: 6px; }
  .compact .btn-small { font-size: .78rem; padding: 6px 10px; min-height: 40px; }
  .compact .vcard-meta { font-size: .82rem; }
  .compact .vcard-price { font-size: .95rem; }
  .compact h3 { font-size: 1rem; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .marquee { padding-left: 6px; }
  .marquee-track { gap: 6px; }
  .review { width: 260px; padding: 12px; }

  /* Mobile form/panel density */
  .form-panel, .price-box { padding: 16px; }
  .f-check { padding: 10px 12px; }
  .filters { padding: 10px; }
  .filters form { gap: 8px; }
  .callout { padding: 10px 12px; }
  details.acc summary { padding: 12px 44px 12px 14px; }
  details.acc .acc-body { padding: 0 14px 14px; }
}

/* Tappable contact rows — phone/email links as full-width targets */
.contact-rows { display: grid; gap: 8px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--grey-line); border-radius: var(--r-btn);
  padding: 12px 14px; min-height: 44px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color .14s ease, background-color .14s ease;
}
.contact-row svg { width: 22px; height: 22px; flex: none; fill: var(--primary); }
.contact-row:hover { border-color: var(--primary); background: var(--tint); }
.contact-row small { display: block; font-weight: 400; color: var(--charcoal); }

/* Reviews marquee — one line on every screen, looping */
.marquee { overflow: hidden; }
.marquee:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.marquee-track {
  list-style: none; display: flex; gap: 16px;
  width: max-content; margin: 0; padding: 4px 0;
  animation: marquee-scroll 90s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.review {
  flex: none; width: 300px; box-sizing: border-box;
  border: 2px solid var(--grey-line); border-radius: var(--r-card); padding: 18px;
  background: var(--white);
}
.review-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.review-stars svg { width: 16px; height: 16px; }
.star-on { fill: var(--secondary); }
.star-off { fill: var(--tint-strong); }
.review-text { font-size: .95rem; margin-bottom: 10px; }
.review-meta { font-size: .85rem; color: var(--charcoal); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
/* Print — printable vehicle sheet */
@media print {
  .site-header, .site-footer, .float-stack, .no-print, .consent { display: none !important; }
  body { font-size: 12pt; }
  .media-frame, .gallery-row { display: none; }
  .callout { border-width: 1px; }
}
