/* Dealer website prototype. Three looks (data-template) share one structure; --accent is the dealer's brand colour. */
:root { --accent: #e11d2e; --bg: #fff; --bg2: #f4f4f5; --ink: #18181b; --muted: #6b6b73; --line: #e4e4e7; --card: #fff; --hero-ink: #fff; --head-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head-weight: 800; --head-case: none; --head-track: -0.01em; --radius: 10px; --hdr-bg: #fff; --hdr-ink: #18181b; }
html[data-template="classic"] { --bg: #fbf8f1; --bg2: #f1ebdd; --ink: #2a2118; --muted: #7a6c5a; --line: #e0d6c2; --card: #fffdf8; --head-font: Georgia, "Times New Roman", serif; --head-weight: 700; --head-track: 0; --radius: 4px; --hdr-bg: #fffdf8; --hdr-ink: #2a2118; }
html[data-template="luxury"] { --bg: #0e0e10; --bg2: #17171a; --ink: #f2efe9; --muted: #a09b90; --line: #2a2a2f; --card: #17171a; --head-font: "Palatino Linotype", Palatino, Georgia, serif; --head-weight: 400; --head-case: uppercase; --head-track: 0.12em; --radius: 0; --hdr-bg: #0e0e10; --hdr-ink: #f2efe9; }
html[data-template="muscle"] { --bg: #111113; --bg2: #1b1b1f; --ink: #f4f4f5; --muted: #a1a1aa; --line: #2c2c31; --card: #1b1b1f; --head-font: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; --head-weight: 400; --head-case: uppercase; --head-track: 0.02em; --radius: 6px; --hdr-bg: #0b0b0d; --hdr-ink: #f4f4f5; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body-font); line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, .hd { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: 1.12; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 22px; font: 700 15px var(--body-font); cursor: pointer; letter-spacing: 0.02em; text-transform: uppercase; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; }
.muted { color: var(--muted); }

/* header */
.hdr { background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 46px; width: auto; border-radius: 4px; background: #fff; padding: 2px; }
.brand .nm { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: 22px; line-height: 1.05; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { padding: 8px 12px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; border-radius: var(--radius); }
.nav a.on, .nav a:hover { color: var(--accent); }
.nav .tel { background: var(--accent); color: #fff; margin-left: 6px; }
.nav .tel:hover { color: #fff; filter: brightness(1.1); }

/* hero */
.hero { position: relative; color: #fff; min-height: 520px; display: flex; align-items: flex-end; background: #000 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.78)); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 54px; width: 100%; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); max-width: 820px; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero p { font-size: clamp(16px, 2.2vw, 20px); max-width: 640px; margin: 14px 0 24px; color: #f0f0f0; }
html[data-template="luxury"] .hero { align-items: center; text-align: center; }
html[data-template="luxury"] .hero .wrap { display: flex; flex-direction: column; align-items: center; }
html[data-template="classic"] .hero::before { background: linear-gradient(180deg, rgba(42,33,24,.15), rgba(42,33,24,.75)); }
.search { display: flex; gap: 8px; flex-wrap: wrap; background: rgba(255,255,255,.96); padding: 10px; border-radius: var(--radius); max-width: 760px; width: 100%; }
.search select, .search input { flex: 1 1 160px; padding: 12px; border: 1px solid #d4d4d8; border-radius: var(--radius); font: 15px var(--body-font); background: #fff; color: #18181b; min-width: 0; }
.search .btn { flex: 0 0 auto; }

/* sections */
.sec { padding: 54px 0; }
.sec.alt { background: var(--bg2); }
.sec h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 8px; }
.sec .sub { color: var(--muted); margin: 0 0 26px; }
.sec .row { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.sec .row .sub { margin: 4px 0 0; }
.link { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.card .ph { aspect-ratio: 4 / 3; background: #222 center / cover no-repeat; position: relative; }
.card .loc { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 18px; text-transform: var(--head-case); }
.card .pr { font-size: 22px; font-weight: 800; color: var(--accent); }
.card .sp { font-size: 13px; color: var(--muted); }
.vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.val { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.val b { display: block; font-family: var(--head-font); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: 20px; color: var(--accent); margin-bottom: 6px; font-weight: var(--head-weight); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 14px; background: var(--card); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 8px; }
.stats div b { display: block; font-family: var(--head-font); font-size: 34px; color: var(--accent); font-weight: var(--head-weight); }
.stats div span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* inventory */
.page-h { padding: 34px 0 10px; }
.page-h h1 { font-size: clamp(28px, 4vw, 44px); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; align-items: center; }
.filters input, .filters select { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: 15px var(--body-font); min-width: 0; }
.filters input[type=search] { flex: 1 1 220px; }
.count { margin-left: auto; color: var(--muted); font-size: 14px; }
.more { text-align: center; margin: 28px 0 0; }
.empty { padding: 50px 0; text-align: center; color: var(--muted); }

/* vehicle page */
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 10px; }
.crumbs a:hover { color: var(--accent); }
.vh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vh h1 { font-size: clamp(26px, 4vw, 42px); }
.vh .pr { font-family: var(--head-font); font-size: clamp(28px, 4vw, 40px); color: var(--accent); font-weight: var(--head-weight); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gal .main { aspect-ratio: 4 / 3; background: #000 center / contain no-repeat; border-radius: var(--radius); border: 1px solid var(--line); }
.gal .th { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.gal .th button { aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 4px; background: #222 center / cover no-repeat; cursor: pointer; padding: 0; opacity: .75; }
.gal .th button.on { border-color: var(--accent); opacity: 1; }
.gal .note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.box h3 { font-size: 18px; margin-bottom: 12px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec td:first-child { color: var(--muted); width: 42%; }
.desc p { margin: 0 0 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.fld input, .fld textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 15px var(--body-font); width: 100%; }
.fld.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay { font-size: 15px; }
.pay .mo { font-family: var(--head-font); font-size: 34px; color: var(--accent); font-weight: var(--head-weight); margin: 6px 0 2px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ok { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.5); padding: 12px; border-radius: var(--radius); font-size: 14px; margin-top: 12px; }
.contact-big { font-size: 22px; font-weight: 800; color: var(--accent); }

/* footer */
.ftr { background: var(--hdr-bg); color: var(--hdr-ink); border-top: 3px solid var(--accent); padding: 36px 0; margin-top: 30px; font-size: 14px; }
.ftr .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.ftr h4 { margin: 0 0 8px; font-family: var(--head-font); text-transform: var(--head-case); letter-spacing: var(--head-track); font-weight: var(--head-weight); font-size: 16px; }
.ftr .proto { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .sec { padding: 38px 0; }
  .gal .th { grid-template-columns: repeat(4, 1fr); }
}
