/* ==========================================================================
   WISECAR — Wholesale Auto Solutions
   Static site stylesheet
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  --ink: #17201e;
  --ink-soft: #20302c;
  --ink-line: #34443f;
  --gold: #0e5d4e;
  --gold-strong: #176b5b;
  --gold-soft: rgba(14, 93, 78, 0.1);
  --page: #fafaf7;
  --card: #ffffff;
  --surface-2: #f3f4f2;
  --text: #17201e;
  --text-muted: #65736f;
  --text-invert: #fafaf7;
  --line: #dfe6e2;
  --green: #176b5b;
  --radius: 6px;
  --radius-lg: 8px;
  --r-md: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 30, 0.04);
  --shadow: 0 10px 28px rgba(23, 32, 30, 0.07);
  --shadow-lg: 0 22px 54px rgba(23, 32, 30, 0.14);
  --wrap: 1320px;
  --header-h: 72px;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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;
}

/* --- 3. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  background: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #1a1408; }
.btn--gold:hover { background: var(--gold-strong); }
.btn--dark { background: var(--ink); color: var(--text-invert); }
.btn--dark:hover { background: #232329; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); background: var(--card); }
.btn--outline-dark:hover { background: var(--ink); color: var(--text-invert); }
.btn--outline-gold { border-color: var(--gold); color: var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: #1a1408; }
.btn--outline-light { border-color: rgba(255, 255, 255, .28); color: var(--text-invert); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn .ico { width: 16px; height: 16px; }

/* --- 4. Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: var(--text-invert);
  border-bottom: 1px solid var(--ink-line);
}
.site-header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 22px; color: var(--gold);
  letter-spacing: -0.06em;
}
.brand__name { font-size: 19px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.brand__tag {
  display: block; font-size: 7.5px; font-weight: 600; letter-spacing: .22em;
  color: rgba(246, 244, 240, .55); margin-top: 3px;
}

.nav { display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: rgba(246, 244, 240, .86);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: var(--gold); }
.nav__caret { width: 12px; height: 12px; opacity: .7; }

.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 13.5px; color: rgba(246, 244, 240, .8);
}
.nav__menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.bell {
  position: relative; width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--text-invert);
}
.bell:hover { background: rgba(255, 255, 255, .07); }
.bell__dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--gold); color: #1a1408;
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.hamburger {
  display: none; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--ink-line); background: transparent; color: var(--text-invert);
  place-items: center;
}

.mobile-nav {
  display: none; background: var(--ink-soft); border-top: 1px solid var(--ink-line);
  padding: 12px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 15px; font-weight: 600;
  color: rgba(246, 244, 240, .9); border-bottom: 1px solid var(--ink-line);
}
.mobile-nav__actions { display: grid; gap: 10px; margin-top: 16px; }

/* --- 5. Hero ------------------------------------------------------------ */
.hero { position: relative; background: var(--ink); color: var(--text-invert); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0c0c0d 4%, rgba(12, 12, 13, .92) 30%, rgba(12, 12, 13, .35) 62%, rgba(12, 12, 13, .55) 100%);
}
.hero__inner { position: relative; padding: 56px 0 70px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 99px;
  border: 1px solid rgba(201, 162, 92, .5); background: var(--gold-soft);
  color: var(--gold-strong); font-size: 11px; font-weight: 700; letter-spacing: .14em;
}
.hero h1 { margin: 22px 0 0; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.035em; }
.hero h1 .gold { color: var(--gold-strong); display: block; }
.hero__lede {
  margin-top: 16px; max-width: 430px; font-size: 15.5px;
  color: rgba(246, 244, 240, .72);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px;
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; }
.trust-item .ico { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; font-size: 12.5px; font-weight: 700; }
.trust-item span { font-size: 11.5px; color: rgba(246, 244, 240, .6); }

.feature-card {
  background: rgba(16, 16, 18, .92); border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(6px);
}
.feature-card__label { font-size: 10.5px; letter-spacing: .16em; color: rgba(246, 244, 240, .5); font-weight: 700; }
.feature-card h3 { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card__price { margin-top: 12px; font-size: 30px; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0 18px; }
.spec { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(246, 244, 240, .72); }
.spec .ico { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* --- 6. Search bar ------------------------------------------------------ */
.search-panel { margin-top: -34px; position: relative; z-index: 10; }
.search-panel__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 18px 20px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
}
.field label {
  display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px;
}
.control {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 13px; min-width: 0;
}
.control:focus { outline: 2px solid rgba(201, 162, 92, .5); outline-offset: 1px; border-color: var(--gold); }
.field--split { display: grid; grid-template-columns: 1fr 10px 1fr; gap: 6px; align-items: center; }
.field--split .dash { color: var(--text-muted); text-align: center; font-size: 12px; }
.search-panel__actions { display: flex; align-items: center; gap: 18px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.link-btn:hover { color: var(--gold); }

/* --- 7. Sections & layout ---------------------------------------------- */
.section { padding: 34px 0; }
.section--tight { padding: 20px 0; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel__head h2 { font-size: 21px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: start; }
.side-stack { display: grid; gap: 16px; }

/* --- 8. Vehicle cards --------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vehicle-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.vehicle-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vehicle-card__media { position: relative; aspect-ratio: 4 / 2.6; background: #eceae5; overflow: hidden; }
.vehicle-card__media a { display: block; width: 100%; height: 100%; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; background: var(--ink); color: var(--text-invert);
}
.badge--hot { background: var(--gold); color: #1a1408; }
.fav {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 99px;
  border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--text);
}
.fav:hover { background: #fff; }
.fav.is-on { color: #d34848; }
.fav.is-on .ico { fill: currentColor; }
.vehicle-card__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vehicle-card__title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.vehicle-card__sub { font-size: 13px; color: var(--text-muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--text-muted); }
.meta-row .ico { width: 13px; height: 13px; }
.meta { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-card__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }

.dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.dots button {
  width: 7px; height: 7px; border-radius: 99px; border: 0; background: #d5d1c9; padding: 0;
}
.dots button.is-active { background: var(--gold); width: 20px; }

/* --- 9. Side promo cards ----------------------------------------------- */
.promo-dark {
  background: var(--ink); color: var(--text-invert); border-radius: var(--radius-lg); padding: 22px;
}
.promo-dark__ico, .promo__ico {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 14px;
}
.promo-dark h3 { font-size: 18px; }
.promo-dark p { margin-top: 8px; font-size: 13px; color: rgba(246, 244, 240, .66); }
.promo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
}
.promo h3 { font-size: 16.5px; font-weight: 700; }
.promo p { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.promo .btn, .promo-dark .btn { margin-top: 16px; }

/* --- 10. Process steps ------------------------------------------------- */
.process-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: stretch; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.step { text-align: center; position: relative; padding: 0 6px; }
.step__ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 99px;
  display: grid; place-items: center; background: #f1efea; color: var(--ink);
}
.step--done .step__ico { background: var(--ink); color: var(--text-invert); }
.step h4 { font-size: 13px; font-weight: 700; }
.step p { margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
.step::after {
  content: ""; position: absolute; top: 23px; right: -3px; width: calc(100% - 46px);
  height: 1px; background: #dcd8d0;
  transform: translateX(50%);
}
.step:last-child::after { display: none; }

.finance-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: var(--text-invert); min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 22px;
}
.finance-card__bg { position: absolute; inset: 0; }
.finance-card__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.finance-card__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 13, .92), rgba(12, 12, 13, .55));
}
.finance-card > *:not(.finance-card__bg) { position: relative; }
.finance-card h3 { font-size: 19px; }
.finance-card p { margin-top: 8px; font-size: 13px; color: rgba(246, 244, 240, .72); max-width: 260px; }

/* --- 11. Reviews / stats bar ------------------------------------------ */
.trustbar { background: var(--ink); color: var(--text-invert); padding: 26px 0; }
.trustbar__inner {
  display: grid; grid-template-columns: 1.4fr repeat(3, .9fr) repeat(4, 1fr); gap: 22px; align-items: center;
}
.trustbar h4 { font-size: 14px; }
.trustbar__blurb { margin-top: 6px; font-size: 12px; color: rgba(246, 244, 240, .55); max-width: 230px; }
.rating { text-align: center; }
.rating__name { font-size: 12.5px; font-weight: 700; }
.rating__stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin: 4px 0; }
.rating__meta { font-size: 11px; color: rgba(246, 244, 240, .5); }
.stat { display: flex; align-items: center; gap: 10px; }
.stat .ico { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.stat b { display: block; font-size: 17px; font-weight: 900; color: var(--gold-strong); letter-spacing: -0.02em; }
.stat span { font-size: 11.5px; color: rgba(246, 244, 240, .55); }

/* --- 12. Footer -------------------------------------------------------- */
.site-footer { background: #08080a; color: rgba(246, 244, 240, .7); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h5 {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; color: #fff; font-weight: 700;
}
.site-footer a { font-size: 13px; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: 13px; line-height: 1.7; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid #1d1d21;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px;
}

/* --- 13. Inner page headers ------------------------------------------- */
.page-head { background: var(--ink); color: var(--text-invert); padding: 46px 0; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
.page-head p { margin-top: 12px; max-width: 620px; color: rgba(246, 244, 240, .7); font-size: 15px; }
.crumbs { font-size: 12px; color: rgba(246, 244, 240, .5); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold); }

.prose h2 { font-size: 22px; margin-top: 6px; }
.prose h3 { font-size: 16px; margin-top: 22px; }
.prose p { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; }
.prose ul { margin-top: 12px; display: grid; gap: 9px; }
.prose li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.prose li .ico { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 16px 0;
  display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; font-weight: 700;
}
.faq__a { display: none; padding: 0 0 16px; font-size: 14px; color: var(--text-muted); max-width: 780px; }
.faq__item.is-open .faq__a { display: block; }
.faq__item.is-open .faq__q { color: var(--gold); }

/* --- 14. Inventory page ----------------------------------------------- */
.inventory-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { display: grid; gap: 18px; }
.filter-group h4 { font-size: 12.5px; letter-spacing: .1em; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 4px 0; color: var(--text-muted); }
.check input { accent-color: var(--gold); width: 15px; height: 15px; }
.results-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.results-bar h2 { font-size: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { padding: 44px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* --- 15. Vehicle detail ----------------------------------------------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: #eceae5; aspect-ratio: 16/10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: none;
  aspect-ratio: 4/3;
}
.gallery__thumbs button.is-active { border-color: var(--gold); outline: 1px solid var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table div { background: var(--card); padding: 12px 14px; font-size: 13px; }
.spec-table dt { color: var(--text-muted); font-size: 11.5px; }
.spec-table dd { margin: 3px 0 0; font-weight: 700; }

/* --- 16. Modals -------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 8, 10, .62);
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); padding: 26px; max-height: 90vh; overflow: auto;
}
.modal__box--wide { max-width: 620px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__head h3 { font-size: 20px; }
.modal__head p { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }
.modal__close { border: 0; background: #f1efea; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.form-grid { display: grid; gap: 14px; margin-top: 20px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.note { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }
.alert {
  margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px;
  background: rgba(31, 157, 99, .1); color: #16714a; border: 1px solid rgba(31, 157, 99, .3);
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--text-invert); padding: 12px 20px; border-radius: 99px;
  font-size: 13px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --- 17. Responsive ---------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .search-panel__card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-panel__actions { grid-column: 1 / -1; justify-content: space-between; }
  .trustbar__inner { grid-template-columns: repeat(4, 1fr); }
  .trustbar__intro { grid-column: 1 / -1; }
}
@media (max-width: 1040px) {
  .home-grid, .process-wrap, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { max-width: 420px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .step::after { display: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .hero__media img { object-position: 70% 50%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(12, 12, 13, .9) 0%, rgba(12, 12, 13, .78) 55%, rgba(12, 12, 13, .92) 100%);
  }
  .hero__inner { padding: 38px 0 54px; }
  .hero__trust { gap: 16px 24px; }
  .search-panel__card { grid-template-columns: 1fr; }
  .card-grid, .card-grid--3, .info-grid, .info-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .trustbar__inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .spec-table, .form-grid--2 { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .brand__name { font-size: 17px; }
  .brand__tag { display: none; }
  .site-header .header__actions .btn { display: none; }

}


/* --- 18. Minimal footer (Phase 1) ------------------------------------- */
.site-footer--minimal { padding: 26px 0 22px; }
.footer-min { display: grid; gap: 16px; }
.footer-min__brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-min__line { font-size: 12px; letter-spacing: .04em; color: rgba(246, 244, 240, .55); }
.footer-min__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-min__nav a { font-size: 13px; font-weight: 600; }
.footer-min__legal {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #17171b; font-size: 11.5px; color: rgba(246, 244, 240, .45);
}

/* --- 19. Value strip -------------------------------------------------- */
.value-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.value-strip__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center;
}
.value-strip__item .ico { width: 22px; height: 22px; color: var(--gold); }
.value-strip__item b { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .1em; font-weight: 800; }
.value-strip__item span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }

/* --- 20. Account / dashboard ----------------------------------------- */
.dash-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav button {
  text-align: left; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer;
}
.dash-nav button:hover { background: rgba(0, 0, 0, .04); }
.dash-nav button.is-active { background: var(--ink); color: var(--text-invert); }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-card b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.stat-card span { font-size: 12px; color: var(--text-muted); }

.status-track { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.status-track span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 6px 11px; border-radius: 99px;
  background: rgba(0, 0, 0, .05); color: var(--text-muted);
}
.status-track span.is-done { background: rgba(31, 157, 99, .12); color: #16714a; }
.status-track span.is-current { background: var(--gold); color: #1a1408; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 11px; letter-spacing: .1em; color: var(--text-muted); text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px;
  background: rgba(201, 162, 92, .16); color: #7a5a1c; }

@media (max-width: 1040px) {
  .value-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .dash-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
}
@media (max-width: 700px) {
  .value-strip { grid-template-columns: 1fr 1fr; }
  .footer-min__nav { gap: 12px; }
}

/* --- 19. Messages / private channel ----------------------------------- */
.chat {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: #fff;
}
.chat__list { border-right: 1px solid var(--line); background: var(--surface-2); max-height: 520px; overflow: auto; }
.chat__item {
  display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0;
  border-bottom: 1px solid var(--line); background: transparent; cursor: pointer;
}
.chat__item:hover { background: rgba(0, 0, 0, .03); }
.chat__item.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.chat__item b { display: block; font-size: 13.5px; line-height: 1.35; }
.chat__item span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); }
.chat__item em {
  display: inline-block; margin-top: 6px; font-style: normal; font-size: 10.5px; font-weight: 800;
  color: #1a1408; background: var(--gold); border-radius: 99px; padding: 1px 7px;
}
.chat__pane { display: flex; flex-direction: column; min-height: 380px; max-height: 520px; }
.chat__head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__head b { font-size: 14.5px; }
.chat__head span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.chat__log { flex: 1; overflow: auto; padding: 18px; display: grid; gap: 12px; align-content: start; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.bubble--them { background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.bubble--me { background: var(--ink); color: var(--text-invert); justify-self: end; }
.bubble small { display: block; margin-top: 6px; font-size: 10.5px; opacity: .65; }
.chat__form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat__form .control { flex: 1; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .chat__list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 200px; }
}

/* --- 20. Homepage rebalance (slimmer composition) --------------------- */
.search-panel__card--slim { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.link-btn--light { color: rgba(246, 244, 240, .82); }
.link-btn--light:hover { color: var(--gold); }
.hero__cta { align-items: center; }
.section { padding: 46px 0; }
.section--tight { padding: 10px 0 56px; }
@media (max-width: 1040px) {
  .search-panel__card--slim { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .search-panel__card--slim { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}

/* --- 21. Wisecar green visual system ---------------------------------- */
body { letter-spacing: 0; }

a, button, input, select, textarea { outline-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn {
  min-height: 42px; padding: 11px 20px; border-radius: var(--radius);
  font-weight: 700; letter-spacing: 0;
}
.btn--gold, .btn--dark { background: var(--gold); color: var(--text-invert); }
.btn--gold:hover, .btn--dark:hover { background: var(--gold-strong); }
.btn--outline-dark, .btn--outline-gold, .btn--outline-light {
  border-color: var(--line); color: var(--text); background: transparent;
}
.btn--outline-dark:hover, .btn--outline-gold:hover, .btn--outline-light:hover {
  border-color: var(--gold); background: var(--gold-soft); color: var(--gold);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.site-header {
  background: rgba(250, 250, 247, .97); color: var(--text);
  border-bottom: 1px solid var(--line); box-shadow: none;
  backdrop-filter: blur(12px);
}
.brand__mark { color: var(--gold); }
.brand__name { color: var(--text); font-weight: 800; letter-spacing: .055em; }
.brand__tag { color: var(--text-muted); letter-spacing: .18em; }
.nav__link { color: var(--text); border-radius: var(--radius); font-weight: 600; }
.nav__link:hover { color: var(--gold); background: var(--gold-soft); }
.nav__link.is-active { color: var(--gold); }
.nav__menu {
  background: var(--card); border-color: var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}
.nav__menu a { color: var(--text); border-radius: var(--radius); }
.nav__menu a:hover { background: var(--surface-2); color: var(--gold); }
.bell { color: var(--text); border-radius: var(--radius); }
.bell:hover { color: var(--gold); background: var(--gold-soft); }
.bell__dot { background: var(--gold); color: var(--text-invert); box-shadow: 0 0 0 2px var(--page); }
.hamburger { border-color: var(--line); color: var(--text); }
.hamburger:hover { border-color: var(--gold); color: var(--gold); }
.mobile-nav { background: var(--page); border-color: var(--line); }
.mobile-nav a { color: var(--text); border-color: var(--line); }
.mobile-nav a:hover { color: var(--gold); }

.hero { min-height: 510px; background: var(--ink); }
.hero__media::after {
  background: linear-gradient(90deg, rgba(15, 36, 31, .96) 3%, rgba(15, 36, 31, .87) 31%, rgba(15, 36, 31, .28) 66%, rgba(15, 36, 31, .48) 100%);
}
.hero__inner { padding: 74px 24px 92px; }
.hero__grid { grid-template-columns: minmax(0, 1fr) 310px; align-items: center; }
.eyebrow {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #c7ddd5; font-size: 11px; letter-spacing: .12em;
}
.hero h1 { max-width: 760px; margin-top: 18px; font-weight: 700; letter-spacing: 0; }
.hero h1 .gold { color: #dcece6; }
.hero__lede { max-width: 520px; color: rgba(250, 250, 247, .78); font-size: 16px; }
.link-btn--light { color: rgba(250, 250, 247, .9); }
.link-btn--light:hover { color: #dcece6; }
.feature-card {
  background: rgba(250, 250, 247, .94); border-color: rgba(255, 255, 255, .38);
  color: var(--text); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.feature-card__label { color: var(--gold); }
.feature-card__price { color: var(--gold); font-weight: 800; }
.feature-card .spec { color: var(--text-muted); }
.feature-card .spec .ico { color: var(--gold); }

.search-panel { margin-top: -38px; }
.search-panel__card { box-shadow: var(--shadow); border-color: var(--line); padding: 20px 22px; }
.field label { color: var(--text-muted); font-weight: 700; }
.control {
  min-height: 42px; border-color: var(--line); background: var(--card); border-radius: var(--radius);
}
.control:hover { border-color: #bdc9c4; }
.control:focus { outline: 2px solid rgba(14, 93, 78, .18); border-color: var(--gold); }
textarea.control { resize: vertical; }
.link-btn { color: var(--gold); font-weight: 700; }
.link-btn:hover { color: var(--gold-strong); }

.section { padding: 54px 0; }
.section--tight { padding: 8px 0 64px; }
.panel { border-color: var(--line); box-shadow: none; padding: 28px; }
.panel__head { margin-bottom: 22px; }
.panel__head h2 { font-size: 24px; }
.card-grid { gap: 20px; }
.vehicle-card { border-color: var(--line); border-radius: var(--radius-lg); }
.vehicle-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7d5d0; }
.vehicle-card__media { background: var(--surface-2); }
.badge { background: var(--ink); color: var(--text-invert); border-radius: 4px; }
.badge--hot { background: var(--gold); color: var(--text-invert); }
.fav { background: rgba(255,255,255,.94); color: var(--text); box-shadow: var(--shadow-sm); }
.fav:hover { color: var(--gold); }
.fav.is-on { color: var(--gold); }
.vehicle-card__body { padding: 17px; gap: 11px; }
.vehicle-card__title { font-size: 15px; font-weight: 700; }
.price { color: var(--gold); font-weight: 800; letter-spacing: 0; }
.dots button { background: #d8dfdc; }
.dots button.is-active { background: var(--gold); }

.step__ico { background: var(--surface-2); color: var(--gold); }
.step--done .step__ico { background: var(--gold); color: var(--text-invert); }
.step::after { background: var(--line); }
.finance-card { background: var(--ink-soft); }
.finance-card__bg::after { background: linear-gradient(180deg, rgba(16, 55, 46, .94), rgba(16, 55, 46, .56)); }

.trustbar { background: var(--ink-soft); }
.rating__stars, .stat .ico, .stat b { color: #9dc4b7; }
.site-footer { background: var(--ink); color: rgba(250, 250, 247, .72); }
.site-footer .brand__name { color: var(--text-invert); }
.site-footer .brand__tag { color: rgba(250, 250, 247, .5); }
.site-footer a:hover { color: #b9d7cd; }
.footer-min__legal { border-color: rgba(250,250,247,.12); }

.page-head {
  background: var(--page); color: var(--text); padding: 54px 0 42px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { color: var(--text); font-weight: 700; }
.page-head p { color: var(--text-muted); }
.crumbs { color: var(--text-muted); }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-strong); }
.prose li .ico, .promo__ico, .promo-dark__ico { color: var(--gold); }
.promo__ico, .promo-dark__ico { background: var(--gold-soft); }
.promo-dark { background: var(--ink-soft); }

.filter-group h4, .data-table th { color: var(--text-muted); letter-spacing: .08em; }
.check input { accent-color: var(--gold); }
.gallery__main { background: var(--surface-2); }
.gallery__thumbs button.is-active { border-color: var(--gold); outline-color: var(--gold); }
.modal { background: rgba(23, 32, 30, .58); }
.modal__close { background: var(--surface-2); color: var(--text); }
.alert, [id$="Confirm"] {
  border-color: rgba(14, 93, 78, .28) !important;
  background: var(--gold-soft) !important; color: var(--gold);
}
.toast { background: var(--ink-soft); box-shadow: var(--shadow); }

.dash-nav button:hover { background: var(--gold-soft); color: var(--gold); }
.dash-nav button.is-active { background: var(--gold); color: var(--text-invert); }
.stat-card { box-shadow: none; }
.stat-card b { color: var(--gold); }
.status-track span { background: var(--surface-2); }
.status-track span.is-done { background: var(--gold-soft); color: var(--gold); }
.status-track span.is-current { background: var(--gold); color: var(--text-invert); }
.pill { background: var(--gold-soft); color: var(--gold); }
.chat { background: var(--card); }
.chat__item:hover { background: var(--gold-soft); }
.chat__item.is-active { background: var(--card); box-shadow: inset 3px 0 0 var(--gold); }
.chat__item em { background: var(--gold); color: var(--text-invert); }
.bubble--me { background: var(--gold); color: var(--text-invert); }

@media (max-width: 1180px) {
  .site-header__inner { gap: 12px; }
}
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .feature-card { width: 100%; max-width: none; }
  .hero__media::after { background: linear-gradient(180deg, rgba(15, 36, 31, .8), rgba(15, 36, 31, .94)); }
  .hero__inner { padding: 52px 16px 68px; }
  .page-head { padding: 38px 0 30px; }
  .panel { padding: 20px; }
  .site-header__inner { height: 66px; }
  .section { padding: 38px 0; }
}

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