/* yournewusedcar.com — "Paint Booth" system shared with northeastbodyshop.com.
   Dark, photo-forward, one coral accent. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
/* Metric-matched local fallbacks so text doesn't jump when the web fonts arrive. */
@font-face { font-family: 'Instrument Sans Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 102.5%; ascent-override: 94.6%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); font-weight: 700 800; size-adjust: 93.1%; ascent-override: 99.9%; descent-override: 29%; line-gap-override: 0%; }

:root {
  --bg: #0e0f11;
  --panel: #1a1c20;
  --panel-2: #23262b;
  --line: #2e3136;
  --line-2: #3a3d43;
  --text: #f2f0eb;
  --mute: #b3b1ab;
  --mute-2: #8e9096;
  --accent: #ff5a52;
  --accent-ink: #120606;
  --accent-soft: #ff8a84;
  --warn: #f5b84a;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: 24px;
  --display: 'Bricolage Grotesque', 'Bricolage Fallback', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', 'Instrument Sans Fallback', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.h1 { font-weight: 800; font-size: clamp(48px, 8vw, 108px); line-height: .92; letter-spacing: -.03em; max-width: 13ch; }
.h1-car { font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); line-height: .95; letter-spacing: -.03em; }
.h2 { font-weight: 700; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.025em; }
.h3 { font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.lede { font-size: 19px; color: #d6d4ce; max-width: 580px; }

.btn, .btn-o {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-o { border: 1.5px solid var(--line-2); color: var(--text); background: transparent; }
.btn-o:hover { border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14,15,17,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 7px 6px 9px; border: 2.5px solid var(--accent-ink); border-top-color: transparent; border-radius: 0 0 6px 6px; }
.brand-text { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand-text em { font-style: normal; color: var(--accent); }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-nav a:not(.btn) { text-decoration: none; color: var(--mute); }
.top-nav a:not(.btn):hover { color: var(--text); }

/* Home hero */
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 420px at 85% -10%, rgba(255,90,82,.16), transparent 60%); }
.hero .h1 { margin: 18px 0 22px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { color: var(--mute-2); font-size: 14px; }

/* Inventory */
.section-inv { padding-block: 56px 88px; }
.inv-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.inv-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; color: var(--mute); }
.chip:hover { color: var(--text); border-color: var(--mute-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sort select { min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b3b1ab' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: inherit; font-size: 15px; appearance: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card a { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .15s, transform .15s; }
.card a:hover { border-color: var(--line-2); color: inherit; transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--mute-2); font-size: 14px; aspect-ratio: 4 / 3; background: var(--panel-2); }
.card-body { padding: 18px 20px 20px; }
.card-title { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.card-trim { font-size: 15px; margin-top: 4px; min-height: 1.5em; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.card.is-sold .card-img img { filter: grayscale(.85) brightness(.7); }
.card.is-sold .price { color: var(--mute-2); }
.tag { position: absolute; top: 12px; left: 12px; background: rgba(14,15,17,.85); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-warn { color: var(--warn); border-color: rgba(245,184,74,.45); }
.tag-lg { top: 16px; left: 16px; font-size: 15px; padding: 7px 14px; }
.empty { padding: 48px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--mute); text-align: center; }

.band { background: var(--panel); border-block: 1px solid var(--line); padding-block: 80px; }
.band-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.band .h2 { margin-top: 14px; }
.points { display: grid; gap: 22px; }
.points li { padding-left: 22px; border-left: 2px solid var(--accent); color: #d6d4ce; }
.points strong { color: var(--text); display: block; font-size: 18px; margin-bottom: 2px; }

.section-sold { padding-block: 72px 88px; }
.section-sold .h3 { margin-bottom: 22px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.grid-sm .card-title { font-size: 18px; }
.grid-sm .price { font-size: 20px; }

/* Car detail */
.crumbs { padding-top: 24px; font-size: 15px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--mute-2); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs li[aria-current] { color: var(--mute); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(min(100%, 320px), 1fr); gap: 40px; padding-block: 20px 88px; }
.gallery { min-width: 0; grid-column: 1; grid-row: 1; }
.g-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); aspect-ratio: 4 / 3; }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(14,15,17,.8); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-variant-numeric: tabular-nums; }
.g-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.g-thumbs li { flex: 0 0 auto; scroll-snap-align: start; }
.g-thumbs button { display: block; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--panel-2); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.g-thumbs button:hover { opacity: 1; }
.g-thumbs button[aria-current] { border-color: var(--accent); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 92px; align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.buy .h1-car { margin-top: 10px; }
.trim { font-size: 19px; color: #d6d4ce; margin-top: 8px; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.price-lg { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.buy-ctas { display: grid; gap: 10px; margin-bottom: 24px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0; }
.specs div { min-width: 0; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute-2); }
.specs dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.spec-vin { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.spec-vin code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; letter-spacing: .06em; }

.detail-body { grid-column: 1; grid-row: 2; display: grid; gap: 40px; align-content: start; }
.detail-body .h3 { margin-bottom: 14px; }
.prose { display: grid; gap: 14px; font-size: 18px; line-height: 1.65; color: #d6d4ce; max-width: 680px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px 24px; }
.features li { padding-left: 22px; position: relative; color: #d6d4ce; }
.features li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.recon { padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,90,82,.13), rgba(255,90,82,.03)); border: 1px solid rgba(255,90,82,.28); display: grid; gap: 8px; color: #d6d4ce; }
.recon a { color: var(--accent-soft); font-weight: 600; text-decoration: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.foot-about .mute { max-width: 440px; }
.foot-contact { font-style: normal; color: var(--mute); line-height: 1.7; }
.foot-contact a { color: var(--text); text-decoration: none; }
.foot-links { display: grid; gap: 6px; text-align: right; }
.foot-links a { text-decoration: none; color: var(--mute); }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent-soft); }
.foot-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute-2); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot-fine p { margin: 0; }
.foot-fine .mute { color: var(--mute-2); }
.credit { color: var(--mute); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.credit:hover { color: var(--accent-soft); text-decoration-color: currentColor; }

@media (max-width: 960px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-links { text-align: left; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .buy, .detail-body { grid-column: 1; grid-row: auto; }
  .buy { position: static; }
  .band-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top-nav a:not(.btn) { display: none; }
  .brand-text { font-size: 18px; }
  .hide-sm { display: none; }
  .hero { padding: 36px 0 32px; }
  .h1 { font-size: 44px; }
  .hero .h1 { margin: 12px 0 14px; }
  .lede { font-size: 17px; }
  .hero-stats { margin-top: 24px; }
  .section-inv { padding-top: 36px; }
  .inv-tools { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .chip { flex: none; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .inv-head { align-items: start; }
  .g-main { border-radius: var(--radius-sm); margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .buy { padding: 20px; }
  .price-lg { font-size: 36px; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .foot-links { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Long VIN-style words and unbroken model names shouldn't push the page sideways on phones. */
.prose, .features li, .h1-car, .trim, .card h3 { overflow-wrap: anywhere; }
.buy-where { margin-top: 14px; font-size: 15px; color: var(--mute); }
.empty h2 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.empty p + p { margin-top: 10px; }
