/* Fast Toys Motorsports — site styles. Change brand colors here. */
:root {
  --red: #db1200;
  --red-dark: #a80e00;
  --bg: #0c0c0e;
  --bg-2: #151518;
  --bg-3: #1e1e22;
  --line: #2b2b31;
  --text: #f3f3f4;
  --muted: #a3a3ad;
  --ok: #1fa45a;
  --warn: #e8a200;
  --radius: 10px;
  --wrap: 1240px;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.sr { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 6px; border: 2px solid var(--red); background: var(--red); color: #fff; font: 700 .95rem/1 var(--body); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff4; }
.btn.ghost:hover { border-color: #fff; background: #ffffff10; }
.btn.small { padding: .55em .9em; font-size: .8rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Top bar + header */
.topbar { background: var(--red); font-size: .85rem; font-weight: 600; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar a { display: inline-flex; gap: 6px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: #0c0c0eee; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 54px; width: auto; }
.logo .wordmark { font: 900 1.7rem/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.logo .wordmark small { display: block; font-size: .55em; letter-spacing: .32em; color: var(--muted); font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; color: #ddd; }
.nav a:hover, .nav a.active { color: #fff; background: #ffffff0d; }
.nav a.active { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transform: scale(1.03); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000e 0%, #000a 45%, #0000 100%), linear-gradient(0deg, var(--bg) 0%, #0000 30%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.hero .kicker { display: inline-block; font: 800 .85rem/1 var(--body); letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.hero h1 { max-width: 760px; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero p { font-size: 1.15rem; max-width: 560px; color: #ddd; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Quick search bar */
.quick-search { position: relative; z-index: 3; margin-top: -46px; }
.quick-search form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); box-shadow: 0 20px 50px #0008; }
@media (max-width: 820px) { .quick-search form { grid-template-columns: 1fr 1fr; } .quick-search .btn { grid-column: 1 / -1; } }

/* Forms */
input, select, textarea { width: 100%; padding: .75em .85em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.form-msg { margin-top: 10px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff6a5c; }
.fine { font-size: .78rem; color: var(--muted); }

/* Sections */
section { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head h2 span { color: var(--red); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); display: flex; align-items: flex-end; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .8; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #000d, #0000 60%); }
.cat:hover img { transform: scale(1.06); opacity: 1; }
.cat div { position: relative; z-index: 2; padding: 16px; width: 100%; }
.cat h3 { margin: 0; font-size: 1.6rem; }
.cat span { font-size: .85rem; color: #ddd; }
@media (max-width: 820px) { .cats { grid-template-columns: 1fr 1fr; } }

/* Vehicle cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: #4a4a52; }
.card .ph { position: relative; aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font: 800 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .06em; background: #000c; color: #fff; }
.badge.red { background: var(--red); }
.badge.warn { background: var(--warn); color: #000; }
.badge.ok { background: var(--ok); }
.card .count { position: absolute; bottom: 10px; right: 10px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .yr { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-size: 1.35rem; margin: 0; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card .price-row { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); }
.price { font: 800 1.7rem/1 var(--display); color: #fff; }
.price s { font-size: .65em; color: var(--muted); margin-right: 6px; font-weight: 600; }
.price.call { font-size: 1.2rem; }
.est { font-size: .78rem; color: var(--muted); text-align: right; }
.est b { color: #fff; font-size: 1rem; display: block; }

/* Inventory page */
.inv-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters h3 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; font-size: .8rem; text-transform: uppercase; }
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.inv-top select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 600; font-size: .85rem; cursor: pointer; color: #ddd; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .inv-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Vehicle detail */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: #fff; }
.vdp { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; padding: 20px 0 60px; align-items: start; }
@media (max-width: 960px) {
  .vdp { display: flex; flex-direction: column; gap: 22px; }
  .vdp-main { display: contents; }
  .vdp-main > .panel { margin-top: 0 !important; }
  .gallery { order: 1; } .vdp-side { order: 2; } .vdp-main > .panel { order: 3; }
}
.gallery .main { position: relative; aspect-ratio: 4/3; background: #000; border-radius: var(--radius); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #000a; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.gallery .prev { left: 12px; } .gallery .next { right: 12px; }
.gallery .counter { position: absolute; bottom: 12px; right: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.thumbs img.on, .thumbs img:hover { opacity: 1; border-color: var(--red); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vdp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.vdp h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .2em; }
.vdp .big-price { font: 900 2.8rem/1 var(--display); margin: 10px 0 4px; }
.vdp .big-price s { font-size: .5em; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.specs div:nth-child(odd) { padding-right: 12px; }
.specs dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.specs dd { margin: 0; font-weight: 600; word-break: break-word; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { flex: 1; min-width: 0; padding: 10px 4px; background: var(--bg-3); border: 1px solid var(--line); color: #ccc; border-radius: 6px; font-weight: 700; font-size: .74rem; text-transform: uppercase; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.desc { white-space: pre-line; color: #ddd; }
.calc-out { font: 800 2.2rem/1 var(--display); }
.lightbox { position: fixed; inset: 0; background: #000f; z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
.lightbox button { position: absolute; background: #fff2; border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .x { top: 16px; right: 16px; } .lightbox .prev { left: 16px; } .lightbox .next { right: 16px; }
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .vdp-side { position: static; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px; background: #0c0c0ef2; border-top: 1px solid var(--line); z-index: 60; }
  body.has-mobile-cta { padding-bottom: 70px; }
}

/* Generic page header */
.page-head { padding: 54px 0 34px; background: linear-gradient(120deg, #1a0300, var(--bg) 60%); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 680px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { list-style: none; counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 800; }
.steps { padding: 0; }

/* Why us strip */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why div { padding: 22px; background: var(--bg-3); border-radius: var(--radius); border-left: 4px solid var(--red); }
.why h3 { font-size: 1.25rem; margin-bottom: .3em; }
.why p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { background: #070708; border-top: 3px solid var(--red); padding: 50px 0 20px; color: #bbb; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hours-tbl { width: 100%; border-collapse: collapse; }
.hours-tbl td { padding: 3px 0; }
.hours-tbl td:last-child { text-align: right; color: #fff; }
.legal { border-top: 1px solid #222; margin-top: 34px; padding-top: 16px; font-size: .78rem; color: #777; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.prop65 { font-size: .72rem; color: #666; margin-top: 14px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
