/* Riverside Auto Sales -- demo site stylesheet.
   Deliberately its own visual identity (charcoal/red, not Ryvora's navy/blue,
   not Meridian's amber/stone) since the point of this page is to look like
   an arbitrary real dealership's own website, with the Ryvora Dealership
   widget embedded on top of it. This is a demo site only -- see the footer
   disclaimer on every page. */

:root {
  --ink: #15171c;
  --ink-2: #1e2128;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --green: #16a34a;
  --amber: #d97706;

  --bg: #f6f6f7;
  --bg-alt: #eeeef0;
  --card-bg: #ffffff;
  --text: #1c1e22;
  --text-muted: #6b7280;
  --border: #e2e4e8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }

/* ---- Header / nav ---- */
header { background: var(--ink); padding: 16px 0; position: sticky; top: 0; z-index: 50; }
nav.wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; }
.brand .mark { font-size: 22px; }
.nav-links { display: flex; gap: 26px; color: rgba(255, 255, 255, 0.8); font-size: 15px; flex-wrap: wrap; }
.nav-links a.active { color: var(--red); }
.nav-toggle {
  display: none; background: transparent; border: none; color: #fff; font-size: 22px;
  cursor: pointer; padding: 4px 8px;
}
@media (max-width: 760px) {
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; }
  .nav-toggle { display: block; }
  header.menu-open .nav-links { display: flex; }
  header.menu-open .nav-links a { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ---- Hero ---- */
.hero { background: linear-gradient(160deg, var(--ink) 0%, #2a1416 100%); color: #fff; padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero p.lead { color: rgba(255, 255, 255, 0.75); font-size: 16px; max-width: 460px; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 20px; }
.hero-badges span { display: flex; align-items: center; gap: 6px; }
.hero-panel {
  background: var(--card-bg); border-radius: 10px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-panel h3 { font-size: 15px; margin-bottom: 14px; color: var(--text); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.hero-panel li { display: flex; gap: 8px; }

.page-hero { background: linear-gradient(160deg, var(--ink) 0%, #2a1416 100%); color: #fff; padding: 52px 0; text-align: center; }
.page-hero h1 { font-size: 32px; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ---- Sections ---- */
.section-title { font-size: 28px; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; }

/* ---- Vehicle cards ---- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.vehicle-photo {
  height: 160px; background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--text-muted);
  overflow: hidden;
}
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-card { text-decoration: none; color: inherit; display: block; }
.vehicle-card:hover { border-color: var(--red); }
.vehicle-card:hover .vehicle-photo img { transform: scale(1.03); }
.vehicle-photo img { transition: transform 0.2s ease; }
.vehicle-body { padding: 16px 18px 18px; }
.vehicle-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.vehicle-trim { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.vehicle-price { font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.vehicle-price.call { font-size: 15px; color: var(--text-muted); }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.vehicle-stock { font-size: 11.5px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vehicle-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 8px;
}
.vehicle-tag.clean { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.vehicle-tag.rebuilt { background: rgba(217, 119, 6, 0.14); color: var(--amber); }

.filter-note {
  text-align: center; color: var(--text-muted); font-size: 13px; margin: -16px 0 32px;
}

/* ---- Inventory search layout (SRP) ---- */
.inventory-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filter-sidebar {
  border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--card-bg);
  position: sticky; top: 84px;
}
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.filter-option input { accent-color: var(--red); }
.filter-count { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.results-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.results-count strong { color: var(--text); }
@media (max-width: 900px) {
  .inventory-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}

/* ---- Vehicle detail page (VDP) ---- */
.vdp-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.vdp-back:hover { color: var(--red); }
.vdp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 0 0 48px; }
.vdp-photo { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); aspect-ratio: 4 / 3; }
.vdp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdp-photo.placeholder { display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--text-muted); }
.vdp-eyebrow { color: var(--red); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.vdp-title { font-size: 28px; margin-bottom: 6px; }
.vdp-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.vdp-price-big { font-size: 32px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.vdp-price-big.call { font-size: 20px; color: var(--text-muted); font-weight: 700; }
.vdp-price-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; }
.vdp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.vdp-badge { border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 13px; background: var(--bg-alt); }
.vdp-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.vdp-tag.clean { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.vdp-tag.rebuilt { background: rgba(217, 119, 6, 0.14); color: var(--amber); }
.vdp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vdp-stock { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.spec-section-title { font-size: 18px; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 0; font-size: 14px; }
.spec-table td:first-child { color: var(--text-muted); width: 200px; }
.spec-table td:last-child { font-weight: 600; text-align: right; }
@media (max-width: 900px) {
  .vdp-hero { grid-template-columns: 1fr; }
  .spec-table td:first-child { width: auto; }
}

/* ---- Cards / features ---- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; background: var(--card-bg); text-align: center; }
.service-card .icon { font-size: 26px; margin-bottom: 10px; }
.service-card h4 { font-size: 15px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

.cta-box { text-align: center; }
.cta-box h2 { font-size: 26px; margin-bottom: 10px; }
.cta-box p { color: var(--text-muted); margin-bottom: 22px; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--card-bg); }
.contact-card h4 { font-size: 15px; margin-bottom: 12px; }
.contact-card .row { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.contact-card .row span:first-child { flex-shrink: 0; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 6px 0; border-top: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* ---- Footer ---- */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.55); padding: 28px 0; font-size: 13px; }
footer a { color: rgba(255, 255, 255, 0.75); }
footer a:hover { color: #fff; }
.footer-disclaimer { margin-top: 6px; color: rgba(255, 255, 255, 0.4); font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
}
@media (max-width: 560px) {
  .vehicle-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
