/* JP Auto Sales - premium dark theme, mobile-first. No dependencies. */
:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #e2e2e2;
  --accent: #c8102e;
  --accent-dark: #9a0b23;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  background: var(--dark);
  padding: 10px 20px;
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: inline-block; text-decoration: none; }
.brand-logo { height: 54px; width: auto; }
.nav a { color: #ddd; text-decoration: none; margin-left: 18px; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.call-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(200,16,46,.35);
}
.call-btn:hover { background: var(--accent-dark); color: #fff; }
.ghost-btn {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.5);
}
.ghost-btn:hover { border-color: #fff; color: #fff; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #3a0d14 0%, var(--dark) 60%);
  color: #fff;
  padding: 52px 0 46px;
  text-align: center;
}
.hero-logo { width: min(420px, 80%); margin: 0 auto 18px; }
.hero h1 { margin: 0 0 12px; font-size: 2.1rem; line-height: 1.2; letter-spacing: .3px; }
.hero p { margin: 0 auto 22px; color: #cfcfcf; max-width: 640px; font-size: 1.02rem; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .phones { margin-top: 20px; font-size: 1rem; color: #bbb; }
.hero .phones a { color: #fff; font-weight: 700; text-decoration: none; }

/* Trust bar */
.trust { background: var(--soft); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.trust-item { font-size: .92rem; color: var(--muted); }
.trust-item strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.trust-item .tick { color: var(--accent); font-weight: 800; }

/* Inventory */
h2.section-title {
  font-size: 1.5rem;
  margin: 36px 0 4px;
  padding-bottom: 10px;
  position: relative;
}
h2.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub { color: var(--muted); margin: 0 0 18px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  padding-bottom: 10px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  border-color: #ccc;
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card .price { color: var(--accent); font-weight: 800; font-size: 1.25rem; margin: 2px 0; }
.card .miles { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.card .more { font-size: .9rem; font-weight: 600; }

/* Visit strip */
.visit {
  background: var(--dark);
  color: #eee;
  margin: 44px 0 0;
  padding: 40px 0;
  text-align: center;
}
.visit h2 { margin: 0 0 10px; font-size: 1.5rem; color: #fff; }
.visit p { margin: 0 0 8px; color: #bbb; }
.visit a.addr { color: #fff; font-weight: 600; text-decoration: none; }
.visit .visit-cta { margin-top: 20px; }

/* Vehicle pages */
.vehicle-head { padding: 28px 0 6px; }
.vehicle-head h1 { margin: 0 0 6px; font-size: 1.7rem; }
.vehicle-head .price { color: var(--accent); font-weight: 800; font-size: 1.5rem; margin: 0; }
.vehicle-head .fees { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.vehicle-head .miles { color: var(--muted); margin: 6px 0 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery a:hover { border-color: #999; }
.gallery-note { color: var(--muted); font-size: .85rem; margin: 0 0 18px; }

.specs { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.specs h2 { margin: 0 0 10px; font-size: 1.15rem; }
.specs ul { margin: 0; padding-left: 20px; }
.specs li { margin: 4px 0; }

.cta { margin: 26px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .call-btn { font-size: 1.05rem; padding: 12px 28px; }
.back-link { display: inline-block; margin: 10px 0 30px; font-size: .95rem; }

/* Footer */
.site-footer {
  background: #0d0d0d;
  color: #bbb;
  padding: 36px 20px;
  font-size: .95rem;
  border-top: 3px solid var(--accent);
}
.site-footer .wrap { display: grid; gap: 8px; justify-items: start; }
.footer-logo { height: 60px; width: auto; margin-bottom: 6px; }
.site-footer strong { color: #fff; }
.site-footer a { color: #eee; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 0 36px; }
  .vehicle-head h1 { font-size: 1.4rem; }
  .nav a { margin-left: 12px; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .brand-logo { height: 46px; }
}

/* ===== Typography upgrade ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.hero h1 { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 4rem; letter-spacing: 3px; font-weight: 400; }
.hero-sub { font-size: 1.15rem; }
.section-title { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 2.4rem; letter-spacing: 2px; font-weight: 400; }
.card h3 { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.45rem; letter-spacing: .8px; font-weight: 400; color: var(--dark); }
.vehicle-head h1 { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 2.6rem; letter-spacing: 1.5px; font-weight: 400; }
.spec-label, .spec-row dt { font-weight: 700; }

/* ===== Price badges on thumbnails ===== */
.card-img { position: relative; overflow: hidden; }
.card-img img { transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.price-badge { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.4rem; letter-spacing: 1px; padding: 4px 14px 2px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.card .price { display: none; }
.card .more { color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 8px; display: inline-block; }
.miles { color: #666; margin: 4px 0 0; }

/* ===== Flashy footer ===== */
.site-footer { text-align: center; padding: 44px 20px 34px; }
.footer-logo { height: 76px; margin: 0 auto 12px; display: block; border-radius: 10px; }
.footer-name { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 2.2rem; letter-spacing: 3px; color: #fff; display: block; }
.footer-tag { color: #999; display: block; margin: 4px 0 20px; }
.footer-calls { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-call { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; text-decoration: none; padding: 14px 30px; border-radius: 14px; box-shadow: 0 6px 20px rgba(200,16,46,.45); transition: transform .2s ease, box-shadow .2s ease; }
.footer-call:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,16,46,.55); }
.footer-call .f-label { display: block; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.footer-call .f-num { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.9rem; letter-spacing: 2px; }
.footer-addr { color: #bbb; display: block; margin-bottom: 8px; }
.footer-fees { color: #777; font-size: .85rem; display: block; }
@media (max-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 1.9rem; }
  .vehicle-head h1 { font-size: 1.9rem; }
}
