/* =========================================================
   Gonzo Auto Sales — shared styles
   Modern, bold automotive theme.
   Replace the brand color tokens below to re-skin the site.
   ========================================================= */

:root {
  /* Brand palette — change these to re-skin everything */
  --bg:          #0c0f14;   /* page background (near-black) */
  --surface:     #141923;   /* cards / panels */
  --surface-2:   #1c2330;   /* raised panels, hovers */
  --line:        #273141;   /* hairline borders */
  --text:        #eef2f8;   /* primary text */
  --muted:       #9aa7bd;   /* secondary text */
  --accent:      #2563eb;   /* primary accent (CTA / highlights) */
  --accent-2:    #38bdf8;   /* secondary accent (gradients) */
  --accent-ink:  #ffffff;   /* text that sits on the accent */
  --good:        #2fd17a;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 18px 50px rgba(0,0,0,.45);
  --maxw:        1180px;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12,15,20,.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .98rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  color: var(--text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(56,189,248,.12), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem;
}
.hero-stats .stat strong { display: block; font-size: 2rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Vehicle grid ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2rem;
}
.chip {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b2230, #0f141d);
  display: grid; place-items: center;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder-car { width: 64%; opacity: .35; color: var(--muted); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 7px; text-transform: uppercase;
}
.badge.sold { background: var(--muted); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body .year { color: var(--muted); font-size: .85rem; font-weight: 600; }
.card-body h3 { margin: .15rem 0 .6rem; font-size: 1.18rem; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.specs span { display: inline-flex; align-items: center; gap: .35rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.4rem; font-weight: 800; }
.price small { color: var(--muted); font-weight: 600; font-size: .8rem; }

/* ---------- Feature / value cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.feature .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  overflow: hidden;
}
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; font-weight: 500; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--accent-ink); }
.cta-band .btn-ghost:hover { background: rgba(0,0,0,.08); }
.cta-band .btn-dark { background: var(--bg); color: var(--text); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1b2230, #0f141d);
  display: grid; place-items: center;
}
.media-frame .placeholder-car { width: 60%; opacity: .35; color: var(--muted); }

.bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.bullets li { display: flex; gap: .7rem; color: var(--muted); }
.bullets li svg { width: 22px; height: 22px; color: var(--good); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); color: var(--accent);
  font-weight: 800; margin-bottom: 1rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
}
.info-row { display: flex; gap: .9rem; margin-bottom: 1.3rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ico { color: var(--accent); flex: 0 0 auto; }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row strong { display: block; font-size: .98rem; }
.info-row span { color: var(--muted); font-size: .92rem; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.form-success {
  display: none;
  background: rgba(47,209,122,.12);
  border: 1px solid rgba(47,209,122,.4);
  color: var(--good);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  margin-bottom: 1.2rem; font-weight: 600;
}

/* ---------- Map / hours ---------- */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); padding: .25rem 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--muted); font-size: .95rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  color: var(--muted); font-size: .88rem;
}
.socials { display: flex; gap: .8rem; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; transition: all .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 0; position: relative; overflow: hidden; }
.page-head::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(900px 360px at 80% -20%, rgba(37,99,235,.22), transparent 60%);
  pointer-events:none;
}
.page-head .container { position: relative; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.crumbs a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open + .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 0;
}
.mobile-menu a {
  display: block; padding: .85rem 24px; color: var(--muted); font-weight: 600;
}
.mobile-menu a:hover { color: var(--text); background: var(--surface-2); }
.mobile-menu .btn { margin: .8rem 24px 0; display: inline-flex; }

/* ---------- Brand wordmark logo ---------- */
.brand-logo{height:32px;width:auto;display:block}
.site-footer .brand-logo{height:30px}
.gate .brand-logo{height:30px;margin:0 auto 4px}
