:root {
  --ink: #16261f;
  --ink-soft: #3d4a44;
  --muted: #66716b;
  --moor: #1d3a2f;
  --moor-deep: #12241d;
  --brand-accent: #9a7bb0;
  --stone: #f3f0e8;
  --paper: #fffdf8;
  --line: #ddd6c8;
  --plate: #f7c928;
  --plate-ink: #111;
  --call: #f7c928;
  --call-hover: #ffd84d;
  --focus: #2f6fdd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 38, 31, .06), 0 8px 24px rgba(22, 38, 31, .07);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.55 var(--body); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
svg { width: 1.1em; height: 1.1em; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: var(--moor-deep); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 44px; height: 28px; color: #e9e3d4; }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); text-transform: uppercase; line-height: .92; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { font-size: 13px; font-weight: 600; letter-spacing: .32em; color: #cbbfd8; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav > a:not(.header-call) { text-decoration: none; font-weight: 500; opacity: .9; }
.header-nav > a:not(.header-call):hover { opacity: 1; text-decoration: underline; }
.header-call { display: inline-flex; align-items: center; gap: 8px; background: var(--call); color: var(--plate-ink); text-decoration: none; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.header-call:hover { background: var(--call-hover); }
@media (max-width: 560px) {
  .header-nav > a:not(.header-call) { display: none; }
  .header-call { padding: 8px 12px; font-size: 15px; }
  .brand-name { font-size: 18px; }
  .logo-mark { width: 36px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border-radius: 10px; font: 600 17px/1.1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-call { background: var(--call); color: var(--plate-ink); border-color: #d9ab0c; }
.btn-call:hover { background: var(--call-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* UK rear-plate style registration chip */
.plate { display: inline-flex; align-items: center; justify-content: center; background: var(--plate); color: var(--plate-ink); font: 700 22px/1 var(--head); letter-spacing: .08em; padding: 8px 12px; border-radius: 6px; border: 2px solid #111; white-space: nowrap; }
.plate-sm { font-size: 16px; padding: 4px 8px; border-width: 1.5px; border-radius: 4px; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 85% 110%, #2c5343 0%, transparent 60%), var(--moor); color: #fff; padding: 40px 0 48px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 48px; } .hero { padding: 64px 0 72px; } }
.eyebrow { margin: 0 0 12px; font: 600 14px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: #cbbfd8; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); text-transform: uppercase; text-wrap: balance; }
.hero-lede { font-size: 19px; max-width: 34em; color: #dfe7e2; margin: 16px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-stats div { min-width: 0; }
.hero-stats dt { font-size: 13px; color: #b9c7bf; }
.hero-stats dd { margin: 2px 0 0; font: 700 30px/1 var(--head); }
.hero-feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); text-decoration: none; color: #fff; }
.hero-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.hero-feature:hover img { transform: scale(1.02); }
.hero-feature-tag { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(18, 36, 29, .88); padding: 10px 12px; border-radius: 10px; font-weight: 600; }

/* stock */
.stock { padding: 48px 0 56px; scroll-margin-top: 64px; }
.stock-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.stock-head h2 { font-size: clamp(32px, 4.5vw, 44px); text-transform: uppercase; }
.stock-count { margin: 0; color: var(--muted); font-weight: 500; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; box-shadow: var(--shadow); }
.filters label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filters label > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.filters input, .filters select { width: 100%; min-height: 46px; border: 1px solid #c9c1b1; border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px var(--body); padding: 0 12px; }
.f-search { grid-column: 1 / -1; }
.btn-reset { grid-column: 1 / -1; min-height: 44px; border: 1px solid #c9c1b1; background: transparent; border-radius: 9px; font: 600 15px var(--body); color: var(--ink-soft); cursor: pointer; }
.btn-reset:hover { background: var(--stone); }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) {
  .filters { grid-template-columns: 2fr repeat(4, 1fr) auto; align-items: end; }
  .f-search, .btn-reset { grid-column: auto; }
  .btn-reset { min-height: 46px; padding: 0 16px; }
}

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 84px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22, 38, 31, .08), 0 14px 32px rgba(22, 38, 31, .12); }
.card:target { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4dfd3; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.card-year { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 27px; text-transform: uppercase; }
.card-title span, .car-panel h1 span { display: block; font-size: .7em; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-specs, .car-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-specs li, .car-chips li { background: #eee9dd; border-radius: 999px; padding: 4px 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.card-price { font: 700 20px/1 var(--head); text-transform: uppercase; color: var(--moor); }
.card-call { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; background: var(--moor); color: #fff; text-decoration: none; font-weight: 600; }
.card-call:hover { background: var(--moor-deep); }
.card-call svg { color: var(--plate); }

.empty { text-align: center; padding: 40px 16px; background: var(--paper); border: 1px dashed #c9c1b1; border-radius: var(--radius); }
.empty p { font-size: 19px; margin: 0 0 16px; }

/* how */
.how { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0; }
.how h2 { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; margin-bottom: 18px; }
.how-steps { margin: 0 0 24px; padding-left: 1.3em; max-width: 44em; display: grid; gap: 10px; }
.how-steps li::marker { font: 700 20px var(--head); color: var(--brand-accent); }

/* footer */
.site-footer { background: var(--moor-deep); color: #dfe7e2; padding: 40px 0 88px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }
.page-home .site-footer { padding-bottom: 28px; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer-note { font-size: 15px; color: #b9c7bf; max-width: 32em; margin: 12px 0 0; }
.footer-label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #cbbfd8; font-weight: 600; }
.footer-phone { display: inline-block; font: 700 36px/1.1 var(--head); color: var(--plate); text-decoration: none; margin-top: 4px; }
.footer-phone:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #9fb0a7; }

/* car detail */
.car { padding-top: 18px; padding-bottom: 40px; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.back-link { font-weight: 600; text-decoration: none; color: var(--moor); padding: 6px 0; }
.back-link:hover { text-decoration: underline; }
.crumb-pos { color: var(--muted); }
.car-top { display: grid; gap: 20px; }
@media (min-width: 960px) { .car-top { grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; } }
.car-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e4dfd3; box-shadow: var(--shadow); }
.car-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.car-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .car-panel { position: sticky; top: 84px; padding: 26px; } }
.car-panel h1 { font-size: clamp(34px, 4.4vw, 46px); text-transform: uppercase; }
.car-price { margin: 4px 0 0; font: 700 32px/1 var(--head); text-transform: uppercase; color: var(--moor); }
.car-price span { display: block; font: 600 13px/1.4 var(--body); letter-spacing: .08em; color: var(--muted); }
.cta-block { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cta-block .btn-call { width: 100%; font-size: 19px; min-height: 56px; }
.cta-reg { display: flex; align-items: center; gap: 12px; }
.cta-reg-note { font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.cta-reg-note a { font-weight: 600; white-space: nowrap; }

.car-sections { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .car-sections { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .panel { padding: 24px 26px; } }
.panel h2 { font-size: 28px; text-transform: uppercase; margin-bottom: 14px; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.spec { margin: 0; display: grid; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #ebe5d8; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.spec-status dd { color: var(--moor); }
.panel-enquire { background: var(--moor); color: #fff; border-color: var(--moor); }
.panel-enquire p { color: #dfe7e2; }
.cta-inline { flex-direction: row; flex-wrap: wrap; align-items: center; border-top-color: rgba(255, 255, 255, .18); }
.cta-inline .btn-call { width: auto; flex: 1 1 220px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; min-width: 0; }
.pager a:hover { border-color: var(--moor); }
.pager a[rel="next"] { text-align: right; }
.pager span { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.more { margin-top: 36px; }
.more h2 { font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .more-list { grid-template-columns: repeat(3, 1fr); } }
.more-list a { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; }
.more-list a:hover { border-color: var(--moor); }
.more-list img { width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; flex: none; }
.more-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.more-text span { font-size: 14px; color: var(--muted); }

/* sticky mobile call bar on car pages */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 36, 29, .97); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.callbar .btn-call { flex: 1; min-height: 50px; }
@media (min-width: 900px) { .callbar { display: none; } }

.notfound { padding: 64px 16px; }
.notfound h1 { font-size: 44px; text-transform: uppercase; margin-bottom: 12px; }
.notfound p { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
