/* Clean white dealer layout: black banner to match the logo, white car cards, one red. */
:root {
  --white: #FFFFFF;
  --soft: #F3F4F6;
  --art-bg: #E9EBEE;
  --ink: #16181B;
  --black: #0B0B0C;
  --grey: #575D66;
  --line: #DCDFE4;
  --field: #868C95;
  --red: #D02A1E;
  --red-dark: #A81F15;
  --plate-blue: #003399;
  --amber: #F6D08F;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 Archivo, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hero :focus-visible, .band-red :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.todo { background: var(--amber); color: var(--ink); padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.loading { color: var(--grey); padding: 32px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 2px solid var(--red); border-radius: 4px; background: var(--red); color: var(--white); font: 700 1rem/1.1 Archivo, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--red); }

/* header. Phones: a sticky row of quick buttons with the logo centred below it */
.site-header, .bar { display: contents; }
.preview-bar { background: var(--amber); font-size: .875rem; text-align: center; padding: 4px var(--gutter); }
.quick-actions { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--soft); border-bottom: 1px solid var(--line); }
.qa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 0; border: 0; border-right: 1px solid var(--line); background: none; color: var(--ink); font: 650 .8125rem/1 Archivo, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.qa:last-child { border-right: 0; }
.qa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.saved-n { font-size: .75rem; font-weight: 700; }
.saved-n:empty { display: none; }
.qa .saved-n { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; padding: 3px 4px; border-radius: 9px; background: var(--red); color: var(--white); text-align: center; }
.logo { display: flex; align-items: center; justify-content: center; padding: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.logo img { width: 76px; height: 76px; }
.foot-logo { margin-bottom: 12px; }
@media (max-width: 859px) { body:has(.hero-logo img) .logo { display: none; } }
#nav { display: none; position: fixed; left: 0; right: 0; z-index: 49; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--white); padding: 8px var(--gutter) 24px; box-shadow: 0 14px 22px -14px rgba(0,0,0,.45); }
#nav.open { display: grid; gap: 4px; }
#nav a:not(.btn) { display: flex; align-items: center; gap: 8px; min-height: 52px; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
#nav .btn { margin-top: 8px; }
@media (min-width: 860px) {
  .site-header { display: block; position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 8px var(--gutter); }
  .quick-actions { display: none; }
  .logo { padding: 0; min-height: 44px; }
  .logo img { width: 64px; height: 64px; }
  #nav { display: flex; position: static; align-items: center; gap: clamp(16px, 2.4vw, 34px); max-height: none; overflow: visible; padding: 0; box-shadow: none; }
  #nav a:not(.btn) { min-height: 44px; font-size: 1rem; font-weight: 650; gap: 5px; }
  #nav a:not(.btn):hover { color: var(--red); }
  #nav .btn { margin-top: 0; }
  #nav .saved-n { min-width: 20px; padding: 3px 5px; border-radius: 10px; background: var(--red); color: var(--white); text-align: center; line-height: 1; }
}

/* full-width banner */
.hero { background: var(--black); color: var(--white); }
.hero.has-photo { background: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)), var(--hero-photo) center / cover no-repeat; }
.hero-inner { display: grid; gap: 20px; justify-items: center; text-align: center; padding-block: 28px 40px; }
.hero-logo { order: -1; }
.hero-logo img { width: min(62vw, 240px); height: auto; }
.hero h1 { font-size: 10.4vw; font-weight: 800; font-stretch: 70%; line-height: 1; letter-spacing: -.01em; text-wrap: initial; }
.hero h1 span { display: block; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 40ch; margin-top: 14px; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
@media (min-width: 620px) { .hero h1 { font-size: 7.6vw; font-stretch: 85%; } }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 48px; padding-block: 56px; }
  .hero-logo { order: 0; }
  .hero-logo img { width: clamp(280px, 28vw, 380px); }
  .hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.5rem); font-stretch: 100%; }
  .hero-btns { justify-content: flex-start; }
  .hero-text { min-width: 0; }
}

/* search strip under the banner */
.road { background: var(--soft); padding-block: 20px; border-bottom: 1px solid var(--line); }
.quick { display: grid; gap: 12px; }
@media (min-width: 620px) { .quick { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* quick links */
.tiles { padding-top: 20px; }
.tiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles a { display: grid; align-content: center; justify-items: center; text-align: center; gap: 2px; min-height: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; transition: border-color .15s; }
.tiles strong { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 750; line-height: 1.15; }
.tiles span { font-size: .95rem; color: var(--grey); }
.tiles a:hover { border-color: var(--red); }
@media (min-width: 860px) { .tiles-grid { grid-template-columns: repeat(4, 1fr); } }

/* why buy from us */
.why { display: grid; gap: 24px 40px; margin-top: 28px; }
.why h3 { margin-bottom: 6px; }
@media (min-width: 620px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }

/* drawings of cars used until real photos exist */
.art-body { fill: var(--art-body, #A2A8B0); }
.art-glass { fill: var(--art-bg); }
.art-arch { fill: var(--art-bg); }
.art-tyre { fill: var(--ink); }
.art-hub { fill: #BFC4CB; }
.art-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/3; background: var(--art-bg); padding: 8%; }
.art-wrap .art { width: 100%; height: auto; }
.art-note { position: absolute; left: 12px; bottom: 8px; font-size: .875rem; color: var(--grey); }

/* forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { font-size: .95rem; font-weight: 650; }
.opt { font-weight: 400; color: var(--grey); }
input, select, textarea { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--field); border-radius: 4px; background: var(--white); color: var(--ink); font: 400 1rem/1.3 Archivo, Arial, sans-serif; }
textarea { resize: vertical; }
[aria-invalid] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.error { color: var(--red-dark); font-size: .95rem; font-weight: 600; }
.error:empty { display: none; }
.band-red .error { color: var(--white); }
.form { display: grid; gap: 16px; }
.fine { font-size: .9rem; color: var(--grey); }
.fine a { display: inline-flex; align-items: center; min-height: 44px; }
.trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.sent { background: var(--soft); border-left: 6px solid var(--red); padding: 24px; display: grid; gap: 8px; }
.sent:focus { outline: none; }

/* the number plate */
.plate { display: flex; align-items: stretch; background: var(--white); border: 3px solid var(--ink); border-radius: 9px; overflow: hidden; min-height: 76px; }
.plate-eu { display: flex; align-items: flex-end; justify-content: center; flex: 0 0 46px; padding-bottom: 8px; background: var(--plate-blue); color: var(--white); font-weight: 700; font-size: .875rem; }
.plate input { min-height: 0; border: 0; border-radius: 0; background: none; padding: 8px 12px; font-size: clamp(1.6rem, 7vw, 2.3rem); font-weight: 800; font-stretch: 80%; letter-spacing: .03em; text-transform: uppercase; box-shadow: none; }
.plate input::placeholder { color: #8B8F96; text-transform: uppercase; opacity: 1; }
.plate input:focus-visible { outline-offset: -5px; outline-color: var(--ink); }
.plate:has([aria-invalid]) { border-color: var(--red); }
.band-red .plate:has([aria-invalid]) { border-color: var(--ink); }

/* sections */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section-top { padding-top: clamp(20px, 3vw, 40px); }
.section-chalk { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(18px, 2.5vw, 32px); }
.h-page { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; }
.h-small { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.count { font-size: 1.1rem; font-weight: 600; }
.empty { display: grid; gap: 12px; justify-items: start; padding: 32px; background: var(--soft); border-radius: 6px; grid-column: 1 / -1; }

/* car cards */
.stock-grid, .results { display: grid; gap: clamp(16px, 2vw, 24px); min-width: 0; }
@media (min-width: 620px) { .stock-grid, .results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .stock-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .results { grid-template-columns: repeat(3, 1fr); } }
.entry { position: relative; display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s; min-width: 0; }
.entry:hover { border-color: var(--field); }
.entry-inner { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.entry-photo { position: relative; overflow: hidden; background: var(--art-bg); }
.entry-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.entry-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 16px; }
.entry h3 { font-size: 1.2rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a::after { content: ""; position: absolute; inset: 0; }
.entry:hover h3 a { color: var(--red); }
.entry h3 a:focus-visible { outline: none; }
.entry:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.entry-variant { color: var(--grey); font-size: .95rem; }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px 12px; font-variant-numeric: tabular-nums; padding-block: 10px; border-block: 1px solid var(--line); margin-block: 4px; }
.specs dt { font-size: .875rem; color: var(--grey); }
.specs dd { font-weight: 650; font-size: .95rem; }
.price { font-size: clamp(1.5rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: auto; }
.price-big { font-size: clamp(2.1rem, 4vw, 2.8rem); margin-top: 6px; }
.is-sold .entry-photo { filter: grayscale(1); opacity: .7; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; margin-right: 56px; }
.badge { padding: 4px 10px; font-size: .875rem; font-weight: 700; border-radius: 3px; }
.badge-sold { background: var(--ink); color: var(--white); }
.badge-res { background: var(--red); color: var(--white); }
.badge-sample { background: var(--amber); color: var(--ink); }
.heart { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.heart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.heart[aria-pressed="true"] { color: var(--red); }
.heart[aria-pressed="true"] svg { fill: currentColor; }

/* stock page */
.stock-layout { display: grid; gap: 20px; }
.filter-toggle { width: 100%; }
.filter-panel { display: none; padding-top: 16px; }
.filter-panel.open { display: block; }
.filters { display: grid; gap: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--red); flex: none; }
@media (min-width: 960px) {
  .stock-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 3vw, 44px); align-items: start; }
  .filter-toggle { display: none; }
  .filter-panel { display: block; padding: 20px; position: sticky; top: 96px; background: var(--soft); border-radius: 8px; }
}

/* red trade-in band */
.band-red { background: var(--red); color: var(--white); padding-block: clamp(40px, 5vw, 68px); }
.band-grid { display: grid; gap: 24px; align-items: center; }
.band-grid h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.band-grid > div p { font-size: 1.15rem; max-width: 42ch; }
.plate-form { display: grid; gap: 10px; }
.plate-form .plate { color: var(--ink); }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }

/* about, visit, contact */
.about { display: grid; gap: 16px; }
.about-text { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 52ch; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.reviews { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.reviews blockquote { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.reviews blockquote p { font-size: 1.15rem; line-height: 1.45; }
.reviews footer { margin-top: 10px; color: var(--grey); }
.visit { display: grid; gap: 32px; }
.visit > div:first-child { display: grid; gap: 18px; justify-items: start; align-content: start; }
.address { font-size: 1.2rem; }
.hours { display: grid; gap: 6px; width: 100%; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { font-weight: 650; }
.map { display: flex; align-items: center; justify-content: center; min-height: 320px; background: var(--art-bg); color: var(--grey); border-radius: 8px; overflow: hidden; text-align: center; }
.map > p { padding: 24px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.contact { display: grid; gap: 28px; }
.contact > div { display: grid; gap: 12px; align-content: start; }
.contact-line { font-size: 1.1rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.contact .form, .sell .form { max-width: 620px; width: 100%; }

/* car page */
.crumb { margin-bottom: 8px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.car-layout { display: grid; gap: 28px; }
.car-main, .car-side { min-width: 0; }
.car-side { display: grid; gap: 12px; align-content: start; }
.car-side h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; }
.car-actions { display: grid; gap: 10px; }
.car-actions:empty { display: none; }
.car-side .form { background: var(--soft); border-radius: 8px; padding: 20px; margin-top: 8px; }
.car-side .form h2 { font-size: 1.4rem; }
.car-main h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 32px 0 14px; }
.car-desc { max-width: 68ch; white-space: pre-line; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-variant-numeric: tabular-nums; }
.spec-table dt { font-size: .9rem; color: var(--grey); }
.spec-table dd { font-weight: 650; }
@media (min-width: 620px) { .spec-table { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .car-layout { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: clamp(32px, 4vw, 60px); align-items: start; }
  .car-side { position: sticky; top: 96px; }
}
/* phones: photo, then title and price, then specs, then the enquiry form */
@media (max-width: 959px) {
  .car-layout { display: flex; flex-direction: column; gap: 12px; }
  .car-main, .car-side { display: contents; }
  .gallery { order: 1; }
  .car-side > * { order: 2; }
  .car-details { order: 3; }
  .car-side > .form, .car-side > .fine { order: 4; }
}
.gallery { position: relative; min-width: 0; border-radius: 8px; overflow: hidden; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--art-bg); }
.g-track::-webkit-scrollbar { display: none; }
.g-track .art-wrap { flex: 0 0 100%; scroll-snap-align: start; }
.g-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: start; }
.g-nav { position: absolute; top: calc(50% - 60px); width: 48px; height: 48px; border: 0; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.g-thumbs button { flex: 0 0 auto; width: 84px; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; }
.g-thumbs button[aria-current] { border-color: var(--red); }
.g-thumbs img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

/* trade-in page */
.sell { display: grid; gap: 24px; }
.sell > div:first-child { display: grid; gap: 4px; align-content: start; }
@media (min-width: 960px) { .sell { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* privacy */
.prose { max-width: 760px; display: grid; gap: 10px; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose p { max-width: 68ch; }

/* footer */
.site-footer { background: var(--black); color: var(--white); padding-block: 44px; min-height: 180px; }
.foot { display: grid; gap: 24px; }
.foot p { min-height: 28px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-name { font-weight: 800; font-size: 1.25rem; margin-bottom: 6px; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1.3fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .entry, .tiles a { transition: none; } }
