/* RNM Autoparts — site styles
   Brand: red #ED1C24, orange #F7941D, charcoal base.
   No frameworks: the site must work by double-clicking index.html. */

:root {
  --red: #ed1c24;
  --red-dark: #c2141b;
  --orange: #f7941d;
  --ink: #0f1012;
  --ink-2: #17191d;
  --ink-3: #1f2228;
  --line: #2a2e36;
  --text: #e9eaec;
  --muted: #9aa0ab;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* nothing should ever push the page sideways on a phone */
}

h1, h2, h3, p { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 16, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
/* The logo artwork has a white wordmark on transparency, so it sits directly
   on the dark background - no white plate behind it. */
.brand img { height: 40px; width: auto; }
.brand .chip { display: flex; align-items: center; }
.brand .tag {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); line-height: 1.2;
}
.brand .tag b { display: block; color: var(--text); font-size: 13px; letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14px; letter-spacing: .04em; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .18s;
}
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--red); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--orange); color: #fff; }
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 420px at 78% 22%, rgba(237,28,36,.20), transparent 62%),
    linear-gradient(180deg, rgba(15,16,18,.62) 0%, rgba(15,16,18,.90) 72%, var(--ink) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 108px 0 92px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 {
  /* 8vw so the headline actually shrinks on a phone instead of running off */
  margin: 0 0 18px; font-size: clamp(30px, 8vw, 74px); line-height: 1.04;
  letter-spacing: -.02em; font-weight: 800;
}
.hero h1 span { color: var(--red); }
.hero p.lead { margin: 0 0 32px; font-size: clamp(17px, 2vw, 20px); color: #cfd3d9; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 58px; }
.stat b { display: block; font-size: 30px; color: #fff; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { margin-bottom: 42px; max-width: 70ch; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.01em; font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: .2s;
}
.card:hover { transform: translateY(-3px); border-color: #3a404a; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange)); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- vehicles ---------- */
.veh-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 28px;
}
.veh-toolbar input {
  flex: 1 1 260px; background: var(--ink-3); border: 1px solid var(--line);
  color: var(--text); border-radius: 999px; padding: 12px 18px; font-size: 15px;
}
.veh-toolbar input:focus { outline: none; border-color: var(--orange); }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  background: var(--ink-3); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; transition: .18s;
}
.chip-btn:hover { color: #fff; }
.chip-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* auto-fill, not auto-fit: with one car in the yard the card keeps its normal
   width instead of stretching across the whole page */
.veh-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.veh {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.veh:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #3a404a; }
.veh-photo { position: relative; aspect-ratio: 16 / 10; background: #0b0c0e; cursor: zoom-in; }
.veh-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; color: #fff;
}
.badge.stripping { background: var(--red); }
.badge.arriving { background: var(--orange); color: #2a1900; }
.badge.sold-out { background: #4a4f59; }
.shots {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.62); border-radius: 999px; padding: 5px 11px;
  font-size: 12px; color: #dfe2e6;
}
.veh-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.veh-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.veh-title h3 { margin: 0; font-size: 21px; }
.veh-title .stock { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.spec div { font-size: 13.5px; color: var(--muted); }
.spec b { display: block; color: #cfd3d9; font-weight: 600; font-size: 14px; }
.parts { display: flex; flex-wrap: wrap; gap: 7px; }
.part {
  font-size: 12.5px; padding: 6px 11px; border-radius: 8px;
  background: rgba(247,148,29,.10); border: 1px solid rgba(247,148,29,.28); color: #f0c58a;
}
.veh-note { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.veh-foot { margin-top: auto; display: flex; gap: 10px; padding-top: 4px; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(237,28,36,.12); border: 1px solid rgba(237,28,36,.3);
}
.contact-item .icon svg { width: 19px; height: 19px; stroke: var(--red); fill: none; stroke-width: 1.9; }
.contact-item h4 { margin: 0 0 3px; font-size: 15px; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--orange); }

.cta-panel {
  background: linear-gradient(135deg, rgba(237,28,36,.14), rgba(247,148,29,.10));
  border: 1px solid rgba(237,28,36,.28); border-radius: var(--radius);
  padding: 34px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-panel h3 { margin: 0 0 6px; font-size: 24px; }
.cta-panel p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #0b0c0e; border-top: 1px solid var(--line); padding: 48px 0 28px; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-grid h5 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.foot-grid a, .foot-grid p { color: #c3c8cf; font-size: 14.5px; margin: 0 0 8px; display: block; }
.foot-grid a:hover { color: var(--orange); }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13px; color: #6f757f;
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,7,9,.94); place-items: center; padding: 30px;
}
.lb.open { display: grid; }
.lb img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 10px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 20px;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 26px; color: var(--muted); font-size: 14px; }

/* ---------- float whatsapp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: .18s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #06301a; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero .wrap { padding: 74px 0 64px; }
  section { padding: 62px 0; }
  .stats { gap: 26px; }
  .brand .tag { display: none; }
}

@media print {
  .site-header, .wa-float, .veh-foot, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
