/* Public site. Mobile-first; breakpoints at 640 / 900 / 1100. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 .75rem; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }
.h-display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2rem, 4.5vw, 3rem); }
.red { color: var(--red); }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: var(--radius-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: .95rem; }
.btn--block { width: 100%; justify-content: center; }
.textlink { display: inline-flex; align-items: center; gap: .35rem; color: var(--red); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; line-height: .9; color: #fff; }
.wordmark__top { font-size: 1.55rem; letter-spacing: .02em; }
.wordmark__bottom { font-size: 1.05rem; letter-spacing: .12em; margin-top: .15rem; }
.wordmark__dealz { color: #fff; }
.wordmark__auto { color: var(--red); }

/* Header */
.hdr { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.hdr__row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.hdr__tag { display: none; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #bbb; line-height: 1.3; margin: 0 0 0 .25rem; padding-left: 1rem; border-left: 1px solid #333; }
.nav { display: none; gap: 1.4rem; margin-left: 1rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--red); }
.hdr__side { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.hdr__phone { display: none; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.hdr__cta { display: none; }
.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--red); }
.socials--lg a { width: 38px; height: 38px; }
.hdr__burger { background: none; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
.hdr__burger .icon { width: 1.6rem; height: 1.6rem; }
.hdr__burger-close { display: none; }
.nav-open .hdr__burger-close { display: inline; } .nav-open .hdr__burger-open { display: none; }
.nav-open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: var(--black); padding: 1rem var(--gutter) 1.4rem; gap: .2rem; border-top: 1px solid #222; margin: 0; }
.nav-open .nav a { padding: .7rem 0; border-bottom: 1px solid #222; }
@media (min-width: 900px) {
  .hdr__tag { display: block; } .nav { display: flex; } .hdr__burger { display: none; } .hdr__cta { display: inline-flex; }
}
@media (min-width: 1100px) { .hdr__phone { display: inline-flex; } }

/* Flash */
.flash-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, 92vw); transition: opacity .5s; }
.flash-wrap.is-gone { opacity: 0; pointer-events: none; }
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--black); color: #fff; box-shadow: var(--shadow); font-weight: 600; margin-bottom: .5rem; border-left: 5px solid var(--red); }
.flash--success { border-left-color: #16a34a; }
.flash--error { border-left-color: var(--red); }

/* Hero */
.hero { position: relative; color: #fff; background: #0d0d0d; overflow: hidden; }
/* The photo is a bright daytime shot of the lot; the overlay is what lets
   white and red type sit on it — heavy on the left where the words are,
   lighter on the right so the vehicles stay visible (as in the mockup).
   Position keeps the sign and the cars in frame at every hero height. */
.hero--photo { background: var(--hero-image-small, var(--hero-image)) center 62% / cover no-repeat #0d0d0d; display: grid; align-items: center; }
/* From tablet up the section takes the photo's own proportions (1920x890),
   so the whole picture shows instead of a zoomed crop; capped so an
   ultra-wide monitor doesn't get a skyscraper. */
@media (min-width: 900px) { .hero--photo { background-image: var(--hero-image); min-height: min(46.35vw, 820px); } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.30) 75%, rgba(0,0,0,.22) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%); }
/* Copy sits flush left, lined up with the logo, like the mockup — the
   wrap keeps the page gutter; only the text measure is capped. */
.hero__inner { position: relative; padding: clamp(4rem, 10vw, 8rem) 0; }
.hero__inner > * { max-width: 640px; }
.hero__kicker { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: #ddd; margin-bottom: .6rem; }
.hero__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 5rem); line-height: .95; display: flex; flex-direction: column; }
.hero__sub { margin: 1.1rem 0 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: #eee; line-height: 1.7; }

/* Trust / features strips */
.trust, .features { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__row, .features__row { display: grid; gap: 1.2rem; padding: 1.4rem 0; grid-template-columns: 1fr; }
.trust__item, .features__item { display: flex; align-items: center; gap: .9rem; }
.trust__item .icon, .features__item .icon { width: 2.4rem; height: 2.4rem; color: var(--ink); padding: .45rem; border: 2px solid var(--ink); border-radius: 50%; }
.trust__item strong, .features__item strong { display: block; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
.trust__item span, .features__item span { color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) { .trust__row { grid-template-columns: repeat(3, 1fr); } .features__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features__row { grid-template-columns: repeat(4, 1fr); } }

/* Search bar */
.searchband { background: var(--paper-2); padding: 1.2rem 0; }
.searchband--inner { border-bottom: 1px solid var(--line); }
.search { display: grid; grid-template-columns: 1fr; gap: .6rem; background: #fff; padding: .8rem; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.search__icon { display: none; color: var(--red); }
.search select { width: 100%; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.search .btn { justify-content: center; }
@media (min-width: 640px) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; } }
@media (min-width: 900px) { .search { grid-template-columns: auto 1fr 1fr 1fr auto; } .search__icon { display: block; padding: 0 .4rem; } .search .btn { grid-column: auto; } }

/* Sections */
.sechead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sechead__kicker { display: inline-block; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); padding-left: 2.2rem; position: relative; margin-bottom: .4rem; }
.sechead__kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.6rem; height: 3px; background: var(--red); }
.sechead__kicker--light { color: #ddd; }
.featured { padding: 2.4rem 0 3rem; }
.vgrid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .vgrid { grid-template-columns: repeat(4, 1fr); } .vgrid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Vehicle card */
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease); }
.vcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__nophoto { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .3rem; color: #9ca3af; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.vcard__nophoto .icon { width: 2.6rem; height: 2.6rem; }
.vcard__ribbon { position: absolute; top: .7rem; left: .7rem; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 3px; }
.vcard__ribbon--pending { background: var(--ink); }
.vcard--sold .vcard__media img { filter: grayscale(.6); opacity: .8; }
.vcard__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.vcard__title { font-size: 1rem; font-weight: 700; }
.vcard__title a { text-decoration: none; }
.vcard__trim { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.vcard__price { margin: 0 0 .5rem; }
.price { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .01em; }
.price--ask { font-family: var(--font-body); font-weight: 700; color: var(--red); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; color: var(--ink-2); margin-bottom: .9rem; }
.vcard__meta li { display: inline-flex; align-items: center; gap: .3rem; }
.vcard__meta .icon { width: 1em; height: 1em; color: var(--muted); }
.vcard__cta { margin-top: auto; justify-content: center; }

/* Trade band */
.trade { background: var(--black); color: #fff; padding: 3rem 0; background-image: radial-gradient(ellipse at 80% 50%, rgba(227,33,27,.18), transparent 55%); }
.trade__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.trade__pitch p { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; color: #ddd; margin: .6rem 0 1.4rem; }
.trade__points li { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.trade__points .icon { width: 2.2rem; height: 2.2rem; padding: .4rem; border: 2px solid #fff; border-radius: 50%; }
.trade__points strong { display: block; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.trade__points span { color: #bbb; font-size: .9rem; }
@media (min-width: 900px) { .trade__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Forms */
.form { display: grid; gap: .7rem; }
.form h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.4rem; margin-bottom: .2rem; }
.form__row { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: .25rem; }
.form input, .form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .search select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form .btn { justify-self: start; }
.form__error { color: var(--red); font-size: .85rem; font-weight: 600; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; }
.form--dark { background: rgba(255,255,255,.05); padding: 1.4rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }
.form--dark input, .form--dark textarea { background: #fff; }
.form--dark .form__note { color: #aaa; }
.form--dark .form__error { color: #ff7b75; }

/* About + contact */
.about { padding: 3rem 0; background: var(--paper-2); }
.about__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.about__text { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; }
.contact { padding: 3rem 0 3.5rem; }
.contact__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact__info p { color: var(--ink-2); }
.contact__phone a { font-family: var(--font-display); font-size: 1.8rem; text-decoration: none; }
.contact__hours { font-size: .95rem; }
@media (min-width: 900px) { .about__grid, .contact__grid { grid-template-columns: 1fr 1.4fr; gap: 3rem; } }

.emptystate { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center; display: grid; gap: .8rem; justify-items: center; }
.emptystate p { margin: 0; max-width: 46ch; color: var(--ink-2); }

/* Footer */
.ftr { background: var(--black); color: #fff; padding: 2.6rem 0 1.2rem; }
.ftr__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
.ftr__phone { color: #fff; text-decoration: none; display: block; margin-top: .8rem; font-weight: 700; }
.ftr__col { display: flex; gap: .8rem; align-items: start; }
.ftr__col > .icon { width: 2.4rem; height: 2.4rem; padding: .45rem; border: 2px solid #fff; border-radius: 50%; flex: none; }
.ftr__col p { margin: 0 0 .4rem; color: #ddd; }
.ftr__label { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .78rem; color: #fff !important; }
.ftr__link { color: var(--red); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .3rem; }
.ftr__col--social { flex-direction: column; gap: .5rem; }
.ftr__tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #aaa; margin-top: .4rem; }
.ftr__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #222; margin-top: 2rem; padding-top: 1rem; font-size: .8rem; color: #888; }
.ftr__legal a { color: #aaa; }
@media (min-width: 640px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }

/* Inventory pages */
.pagehero { background: var(--black); color: #fff; padding: 2.2rem 0; }
.listing { padding: 1.6rem 0 3rem; }
.listing__bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.chip--on, .chip:hover { background: var(--black); color: #fff; border-color: var(--black); }
.sort { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.sort select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-left: .3rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* Vehicle detail */
.detail { padding: 1.4rem 0 3rem; }
.back { display: inline-block; margin-bottom: 1rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.detail__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--red); }
.detail__side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.detail__title { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.detail__trim { color: var(--muted); margin: 0; }
.detail__price .price { font-size: 2.4rem; }
.detail__price .price--ask { font-size: 1.15rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: .4rem 0 .6rem; }
.specs div { border-top: 1px solid var(--line); padding-top: .5rem; }
.specs dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.detail__desc, .detail__ask, .detail__similar { margin-top: 2.4rem; }
.detail__desc { max-width: 70ch; }
.detail__desc h2, .detail__ask h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.detail__ask { background: var(--paper-2); padding: 1.6rem; border-radius: var(--radius); max-width: 720px; }
@media (min-width: 900px) { .detail__grid { grid-template-columns: 1.5fr 1fr; } }

.simple { padding: 4rem 0; text-align: center; display: grid; gap: 1rem; justify-items: center; }
