/* Broadway Auto Wrecking — dark industrial theme */
:root {
  --bg: #161614;
  --bg-2: #1e1e1b;
  --bg-3: #26261f;
  --line: #3a3a33;
  --text: #f2f0e9;
  --muted: #b3b1a6;
  --amber: #f0a01f;
  --amber-dark: #432a05;
  --blue: #7fb3e8;
  --green: #9fd066;
  --red: #e86a5e;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, .display {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 0;
}
a { color: var(--amber); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* header */
.site-header {
  background: #121210;
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand .mark {
  width: 38px; height: 38px; flex: none;
}
.brand .name { font-family: "Oswald", sans-serif; font-size: 19px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.1; }
.brand .name small { display: block; color: var(--amber); font-size: 11px; letter-spacing: 0.22em; }
nav.main { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; align-items: center; }
nav.main a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 6px 2px; }
nav.main a:hover, nav.main a.active { color: var(--text); border-bottom: 2px solid var(--amber); }
.call-btn {
  background: var(--amber); color: #2a1a02 !important; font-weight: 700;
  padding: 9px 16px; border-radius: 8px; font-size: 15px; white-space: nowrap;
}
.call-btn:hover { filter: brightness(1.08); border-bottom: none !important; }

/* hero */
.hero {
  background:
    repeating-linear-gradient(135deg, rgba(240,160,31,.05) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #1d1d19, #161614);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero .kicker { color: var(--amber); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; }
.hero p.sub { color: var(--muted); max-width: 560px; font-size: 18px; margin: 16px 0 30px; }

/* badge logos */
.badges { display: flex; gap: 16px; flex-wrap: wrap; }
.badge-logo {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .12s ease, border-color .12s ease;
  min-width: 250px;
}
.badge-logo:hover { transform: translateY(-2px); border-color: var(--amber); }
.badge-logo svg { width: 52px; height: 52px; flex: none; }
.badge-logo .t1 { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 19px; letter-spacing: .05em; color: var(--text); }
.badge-logo .t2 { display: block; color: var(--muted); font-size: 13px; }
.badge-logo.mech { border-left: 4px solid var(--amber); }
.badge-logo.show { border-left: 4px solid var(--blue); }

/* sections */
section.block { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; }
.section-head a { font-size: 14px; font-weight: 600; }

/* car grid */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.car-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .12s ease;
}
.car-card:hover { transform: translateY(-3px); border-color: #565648; }
.car-card .photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.car-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.car-card .photo .nopic { color: #5d5c50; font-size: 42px; }
.cat-pill {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 7px;
}
.cat-pill.mechanic { background: var(--amber); color: #2a1a02; }
.cat-pill.showroom { background: var(--blue); color: #0c2238; }
.status-pill { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: #000a; color: #fff; }
.car-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-card .title { font-family: "Oswald", sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.spec-row { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.spec-row span { display: inline-flex; gap: 5px; align-items: center; }
.car-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: "Oswald", sans-serif; font-size: 22px; color: var(--text); }
.price.na { color: var(--muted); font-size: 15px; }
.sale-flag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: 7px; }
.sale-flag.public { background: #2c3d1c; color: var(--green); }
.sale-flag.dealer { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }

/* who we sell to strip */
.audience { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-top: 34px; padding-bottom: 34px; }
.aud-card h3 { color: var(--amber); font-size: 17px; margin-bottom: 6px; }
.aud-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.filters select, .filters input[type=search] {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit;
}
.filters input[type=search] { min-width: 200px; flex: 1; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip.on.mechanic { background: var(--amber); border-color: var(--amber); color: #2a1a02; }
.chip.on.showroom { background: var(--blue); border-color: var(--blue); color: #0c2238; }
.chip.on.all { background: var(--text); border-color: var(--text); color: #1a1a17; }

/* detail page */
.detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; padding: 36px 0; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.gallery .main { aspect-ratio: 4/3; background: var(--bg-3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.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; border: 2px solid transparent; cursor: pointer; }
.thumbs img.sel { border-color: var(--amber); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--amber); color: #2a1a02; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 9px; border: none; font-family: inherit;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.07); }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; padding: 12px 16px; color: var(--muted); font-size: 14.5px; }

/* footer */
footer {
  background: #121210; border-top: 1px solid var(--line);
  margin-top: 50px; padding: 36px 0 28px; color: var(--muted); font-size: 14.5px;
}
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
footer h3 { color: var(--text); font-size: 15px; margin-bottom: 10px; }
footer .fine { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: #84826f; }

/* admin */
.admin-wrap { max-width: 980px; margin: 30px auto; padding: 0 18px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.field.full { grid-column: 1 / -1; }
.vin-row { display: flex; gap: 10px; align-items: end; }
.vin-row .field { flex: 1; }
.toggle { display: flex; align-items: center; gap: 9px; font-size: 15px; padding: 10px 0; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--amber); }
.admin-list .row {
  display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 10px; background: var(--bg);
}
.admin-list .row img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; }
.admin-list .row .nfo { flex: 1; min-width: 0; }
.admin-list .row .nfo b { display: block; }
.admin-list .row .nfo small { color: var(--muted); }
.mini-btn { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 7px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.mini-btn.danger { color: var(--red); border-color: #5a2d28; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-strip .ph { position: relative; }
.photo-strip img { width: 110px; height: 80px; object-fit: cover; border-radius: 7px; }
.photo-strip .del { position: absolute; top: -7px; right: -7px; background: var(--red); color: #fff; border: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-weight: 700; line-height: 1; }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 14.5px; margin: 10px 0; display: none; }
.msg.ok { background: #233517; color: var(--green); display: block; }
.msg.bad { background: #3d1f1c; color: var(--red); display: block; }
.muted { color: var(--muted); }
.tcenter { text-align: center; }
.dropzone { border: 2px dashed var(--line); border-radius: 10px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.drag { border-color: var(--amber); color: var(--amber); }
