:root {
  --ink: #191715;
  --ink-2: #2b2926;
  --muted: #6d675f;
  --paper: #f4efe7;
  --paper-2: #fffaf2;
  --line: #ddd4c8;
  --accent: #c26432;
  --accent-dark: #9e4820;
  --charcoal: #11100f;
  --ok: #2e7355;
  --bad: #9a3028;
  --shadow: 0 22px 70px rgba(17, 16, 15, 0.13);
  --lead-text: #d7cec0;
  --dark-muted-text: #d5cabd;
  --trust-text: #eee4d7;
  --card-fallback: #d8d0c4;
  --input-bg: #fffdf8;
  --footer-bg: #0f0e0d;
  --footer-text: #e8ded1;
  --footer-text-muted: #cfc4b6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(194, 100, 50, 0.5); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--accent); color: var(--charcoal); padding: .75rem 1rem; }
.skip-link:hover { color: var(--charcoal); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.topbar { display: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244, 239, 231, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-weight: 700; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; font-size: .94rem; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: .62rem .8rem; border-radius: 6px; color: var(--ink); }
.hero { background: var(--charcoal); color: var(--paper); overflow: hidden; }
.hero-grid { min-height: calc(100svh - 114px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; padding: 56px 0 34px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, h3 { font-family: "Bitter", Georgia, "Times New Roman", serif; font-optical-sizing: auto; line-height: 1.02; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.75rem); max-width: 13ch; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.75vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--lead-text); max-width: 38rem; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .82rem 1.05rem; border-radius: 6px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--charcoal); }
.btn--primary:hover { background: var(--accent-dark); color: white; }
.btn--ghost { border-color: rgba(244,239,231,.35); color: var(--paper); }
.btn--ghost:hover { background: rgba(244,239,231,.12); border-color: rgba(244,239,231,.6); color: var(--paper); }
.btn--dark { background: var(--ink); color: white; }
.btn--dark:hover { background: var(--charcoal); color: white; }
.btn--light { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.btn--light:hover { background: var(--paper); border-color: var(--muted); color: var(--ink); }
.hero-media { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.hero-media-label { display: block; margin-bottom: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent); }
.hero-media .vehicle-card { max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.hero-media .vehicle-card:hover { box-shadow: 0 26px 80px rgba(17, 16, 15, .22); }
.hero-media .status-box { width: 100%; }
.search-panel { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-top: 2rem; }
.search-panel form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .75rem; align-items: end; }
label { display: grid; gap: .35rem; font-weight: 500; font-size: .88rem; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--input-bg); color: var(--ink); padding: .7rem .78rem; }
textarea { min-height: 120px; resize: vertical; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; color: var(--trust-text); }
.trust-item { border: 1px solid rgba(244,239,231,.18); border-radius: 8px; padding: .8rem; }
.section { padding: clamp(54px, 8vw, 104px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted { color: var(--dark-muted-text); }
.section-head { display: flex; justify-content: space-between; gap: 1.4rem; align-items: end; margin-bottom: 1.8rem; }
.muted { color: var(--muted); max-width: 46rem; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vehicle-card { display: grid; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 0; }
.vehicle-card:hover { box-shadow: var(--shadow); }
.vehicle-card__image { aspect-ratio: 16 / 10; object-fit: contain; width: 100%; background: var(--card-fallback); }
.vehicle-card__body { padding: 1rem; display: grid; gap: .8rem; }
.vehicle-card h3 { font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-size: 1.02rem; line-height: 1.25; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--accent-dark); }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; font-size: .9rem; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.review-scroll { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem; margin: 0 -.25rem; scroll-snap-type: x proximity; }
.review-card { flex: 0 0 min(320px, 82%); scroll-snap-align: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; display: grid; gap: .8rem; align-content: start; }
.review-stars { color: var(--accent); letter-spacing: .12em; font-size: 1rem; line-height: 1; }
.review-card p { color: var(--ink-2); }
.review-author strong { display: block; }
.pill { border: 1px solid var(--line); background: rgba(255,250,242,.7); border-radius: 999px; padding: .28rem .58rem; font-size: .82rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); }
.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.step { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .4rem; align-content: start; }
.step-number { font: 700 1.6rem/1 "IBM Plex Sans", ui-sans-serif, sans-serif; color: var(--accent); }
.step h3 { margin-top: .3rem; }
.form-narrow { max-width: 640px; margin-inline: auto; }
.seller-cta { background: var(--accent); color: var(--charcoal); border-radius: 8px; padding: clamp(1.4rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.seller-cta .eyebrow { color: var(--charcoal); } /* the eyebrow's default accent-on-accent would be invisible here */
.price-card { position: relative; background: var(--charcoal); color: var(--paper); border-radius: 14px; padding: clamp(2rem, 5vw, 2.8rem) clamp(1.6rem, 4vw, 2.2rem); text-align: center; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.price-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 100% 0%, rgba(194, 100, 50, .45), transparent 60%); }
.price-card__label { display: block; font-family: "IBM Plex Sans", ui-sans-serif, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--accent); }
.price-card__amount { display: block; margin-top: .55rem; font-family: "Bitter", Georgia, serif; font-size: clamp(2.75rem, 6vw, 3.75rem); font-weight: 600; line-height: 1; }
.price-card__note { display: block; margin-top: .7rem; font-size: .88rem; color: rgba(244, 239, 231, .68); }
.inventory-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.segmented button { border: 0; border-right: 1px solid var(--line); background: var(--paper-2); padding: .62rem .8rem; cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: white; }
.vehicle-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.vehicle-list.list { grid-template-columns: 1fr; }
.vehicle-list.list .vehicle-card { grid-template-columns: 270px 1fr; }
.vehicle-list.list .vehicle-card__image { height: 100%; aspect-ratio: auto; }
.empty, .status-box { border: 1px dashed var(--line); border-radius: 8px; padding: 1.4rem; background: var(--paper-2); }
.gallery-main-wrap { position: relative; touch-action: pan-y; }
.gallery-main { aspect-ratio: 16 / 10; width: 100%; object-fit: contain; background: var(--card-fallback); border-radius: 8px; user-select: none; -webkit-user-drag: none; cursor: zoom-in; touch-action: pan-y; }
.gallery-main:active { cursor: grabbing; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(17, 16, 15, .55); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.gallery-nav:hover { background: rgba(17, 16, 15, .75); }
.gallery-prev { left: .6rem; }
.gallery-next { right: .6rem; }
.gallery-counter { position: absolute; right: .8rem; bottom: .8rem; background: rgba(17, 16, 15, .65); color: #fff; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 500; }
.gallery-fullscreen { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17, 16, 15, .55); color: #fff; font-size: 1.15rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.gallery-fullscreen:hover { background: rgba(17, 16, 15, .75); }
body.lightbox-locked { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10, 9, 8, .94); padding: 2.4rem; }
.lightbox.is-open { display: flex; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: rgba(255, 255, 255, .12); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 500; }
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
}
.gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; margin-top: .8rem; padding: .2rem .1rem .4rem; scroll-snap-type: x proximity; }
.gallery-thumbs img { flex: 0 0 104px; height: 76px; object-fit: contain; background: var(--card-fallback); border-radius: 6px; cursor: pointer; border: 2px solid transparent; scroll-snap-align: start; }
.gallery-thumbs img.is-active { border-color: var(--accent); }
.gallery-thumbs-more { flex: 0 0 104px; height: 76px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-2); color: var(--muted); font-family: "IBM Plex Sans", sans-serif; font-size: .78rem; font-weight: 500; cursor: pointer; }
.gallery-thumbs-more:hover { color: var(--ink); border-color: var(--muted); }
.option-group-heading { font: 700 .82rem/1.3 "IBM Plex Sans", ui-sans-serif, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 1.1rem 0 .5rem; }
.option-group-heading:first-of-type { margin-top: 0; }
.spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.spec-table { margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 700; text-align: right; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) 360px; gap: 1.4rem; align-items: start; }
.detail-layout > article { min-width: 0; }
.sticky-card { position: sticky; top: 96px; display: grid; gap: .75rem; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.spec { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: .9rem; }
.spec span { display: block; color: var(--muted); font-size: .82rem; }
.content-list { display: grid; gap: .55rem; padding-left: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-message { margin-top: .8rem; font-weight: 500; }
.form-message.ok { color: var(--ok); }
.form-message.err { color: var(--bad); }
.embed-fallback { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.map-card { display: grid; gap: 1rem; }
.map-embed { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 8px; }
.map-link { display: block; background: linear-gradient(135deg, #1a1816, #393028); color: var(--paper); border-radius: 8px; padding: 1.6rem; }
.privacy article { display: grid; gap: 1rem; }
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 44px 0 78px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.8rem; }
.footer h2 { font: 700 1rem/1.2 "IBM Plex Sans", sans-serif; margin: 0 0 .7rem; }
.footer p { color: var(--footer-text-muted); }
.brand--footer { margin-bottom: 1rem; }
.mobile-actions { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 1px solid rgba(255,255,255,.18); }
.mobile-actions a { color: white; text-align: center; padding: .85rem .45rem; font-weight: 700; border-right: 1px solid rgba(255,255,255,.14); }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 76px 16px auto; display: none; flex-direction: column; align-items: stretch; background: var(--paper-2); border-radius: 8px; padding: .8rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .hero-grid, .split, .inventory-layout, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-top: 34px; }
  h1 { max-width: 11ch; }
  .hero-media { align-items: stretch; }
  .hero-media .vehicle-card { max-width: 100%; }
  .search-panel form, .trust-row, .vehicle-grid, .vehicle-list, .specs, .form-grid, .spec-groups, .step-row { grid-template-columns: 1fr; }
  .spec-groups > div + div { margin-top: 1.1rem; }
  .section-head { display: grid; align-items: start; }
  .seller-cta { grid-template-columns: 1fr; }
  .filters, .sticky-card { position: static; }
  .vehicle-list.list .vehicle-card { grid-template-columns: 1fr; }
  .footer { padding-bottom: 84px; }
  .mobile-actions { display: grid; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1160px); }
  .nav-shell { min-height: 66px; }
  .site-nav { inset-top: 66px; }
  .brand-mark { width: 46px; height: 46px; }
  .gallery-thumbs img { flex-basis: 84px; height: 62px; }
  .toolbar { align-items: stretch; }
  .toolbar > * { width: 100%; }
  .segmented, .segmented button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  /* Only the full-page smooth-scroll jump is disorienting enough to matter here;
     the small hover lift/color transitions stay — they're the state-change signal
     for hover/focus, not decoration, so removing them would lose feedback rather
     than reduce motion sickness risk. */
  html { scroll-behavior: auto; }
}
