
:root{
  --yellow:#f6c400;
  --yellow2:#ffd84d;
  --blue:#1e4fb3;
  --blue2:#2c6bff;
  --red:#c62828;
  --black:#0e0f12;
  --muted:#6b7280;
  --card:#ffffff;
  --ring: rgba(30,79,179,.25);
  --shadow: 0 18px 50px rgba(0,0,0,.12);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#111827;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(246,196,0,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(30,79,179,.22), transparent 55%),
    #fff;
}

/* Header / Nav */
header{
  position:sticky; top:0; z-index:1000;
  background:linear-gradient(180deg, var(--yellow2), var(--yellow));
  border-bottom:4px solid var(--red);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.nav{
  max-width:1180px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; gap:12px;
}
.nav-left{ display:flex; align-items:center; gap:12px; min-width: 180px; }
.brand img{ height:46px; display:block; }
.nav-links{ display:flex; align-items:center; gap:14px; }
.nav a{
  text-decoration:none;
  color:#0b0b0b;
  font-weight:800;
  letter-spacing:.2px;
  padding:10px 10px;
  border-radius:10px;
}
.nav a:hover{ background:rgba(255,255,255,.55); }
.nav .cta{
  background:linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff !important;
  padding:10px 14px;
  border-radius:12px;
  box-shadow: 0 12px 24px rgba(30,79,179,.28);
}
.nav .cta:hover{ filter:brightness(1.05); background:linear-gradient(135deg, var(--blue2), var(--blue)); }

/* Mobile nav */
.burger{ display:none; border:0; background:transparent; padding:10px; border-radius:10px; }
.burger:focus{ outline:3px solid var(--ring); }
.burger span{ display:block; width:22px; height:2px; background:#111; margin:5px 0; border-radius:2px; }
.mobile-menu{ display:none; padding:0 16px 12px; }
.mobile-menu a{ display:block; margin:6px 0; background:rgba(255,255,255,.55); }

@media (max-width: 780px){
  .nav-links{ display:none; }
  .burger{ display:block; }
  .mobile-menu.open{ display:block; }
}

/* Layout */
.container{ max-width:1180px; margin:0 auto; padding:0 16px; }
.section{ padding:56px 0; }
.section.tight{ padding:34px 0; }
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.85rem; font-weight:800; letter-spacing:.3px;
  color:#0f172a;
  background:rgba(246,196,0,.35);
  border:1px solid rgba(198,40,40,.25);
  padding:8px 12px;
  border-radius:999px;
}
.h2{ font-size:2rem; margin:14px 0 10px; letter-spacing:-.4px; }
.p{ color: var(--muted); line-height:1.65; max-width: 70ch; }

/* Hero */
.hero{
  padding:72px 0 44px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:stretch;
}
.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.70));
  border:1px solid rgba(17,24,39,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
  position:relative;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-40% -40% auto auto;
  width:420px; height:420px;
  background: radial-gradient(circle at 30% 30%, rgba(30,79,179,.22), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(198,40,40,.18), transparent 55%);
  transform: rotate(18deg);
}
.hero h1{
  position:relative;
  margin:14px 0 10px;
  font-size:2.75rem;
  letter-spacing:-1px;
  line-height:1.05;
}
.hero .sub{
  position:relative;
  font-size:1.05rem;
  color:#334155;
  line-height:1.6;
  max-width: 62ch;
}
.hero-actions{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(17,24,39,.12);
  cursor:pointer;
}
.btn.primary{
  background:linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  box-shadow: 0 16px 30px rgba(30,79,179,.25);
}
.btn.primary:hover{ filter:brightness(1.04); }
.btn.ghost{
  background:rgba(255,255,255,.75);
  color:#111;
}
.btn.ghost:hover{ background:rgba(255,255,255,.95); }
.badges{
  position:relative;
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:18px;
}
.badge{
  display:flex; gap:8px; align-items:flex-start;
  padding:10px 12px;
  background:rgba(17,24,39,.04);
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  min-width: 160px;
  flex:1 1 160px;
}
.badge b{ display:block; font-size:.92rem; }
.badge span{ color:var(--muted); font-size:.85rem; line-height:1.25; }

.hero-side{
  display:grid;
  grid-template-rows: auto 1fr;
  gap:14px;
}
.hero-photo{
  border-radius:22px;
  border:1px solid rgba(17,24,39,.10);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)),
    url('https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1400&q=80');
  background-size:cover;
  background-position:center;
  min-height: 240px;
  padding:18px;
  color:#fff;
  display:flex;
  align-items:flex-end;
}
.hero-photo .mini{
  font-weight:900;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.20);
  padding:10px 12px;
  border-radius:16px;
  backdrop-filter: blur(6px);
}
.hero-side .quick{
  background:rgba(255,255,255,.80);
  border:1px solid rgba(17,24,39,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:18px;
}
.quick h3{ margin:0 0 10px; letter-spacing:-.3px; }
.quick .row{ display:flex; gap:12px; flex-wrap:wrap; }
.quick .pill{
  flex:1 1 160px;
  background:rgba(246,196,0,.24);
  border:1px solid rgba(198,40,40,.20);
  padding:10px 12px;
  border-radius:16px;
}
.quick .pill b{ display:block; }
.quick .pill small{ color:var(--muted); }

/* Cards & grids */
.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; } .grid3{ grid-template-columns:1fr; } }

.card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(17,24,39,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card.pad{ padding:18px; }
.card h3{ margin:0 0 6px; letter-spacing:-.2px; }
.card p{ margin:0; color:var(--muted); line-height:1.6; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
@media(max-width: 900px){ .split{ grid-template-columns:1fr; } }

/* Inventory */
.filters{
  display:flex; flex-wrap:wrap; gap:10px;
  padding:14px;
}
.filters .field{
  display:flex; flex-direction:column; gap:6px;
  min-width: 160px;
  flex: 1 1 180px;
}
label{ font-size:.85rem; color:#0f172a; font-weight:800; }
input, select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.18);
  background:rgba(255,255,255,.90);
  outline:none;
}
input:focus, select:focus, textarea:focus{ box-shadow: 0 0 0 4px var(--ring); border-color: rgba(30,79,179,.45); }
.filters .actions{ display:flex; align-items:flex-end; gap:10px; }
.small{ font-size:.9rem; color:var(--muted); }

.inventory-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:14px;
}
.vehicle-card{
  grid-column: span 4;
}
@media (max-width: 980px){ .vehicle-card{ grid-column: span 6; } }
@media (max-width: 640px){ .vehicle-card{ grid-column: span 12; } }

.vehicle-card img{ width:100%; height:190px; object-fit:cover; }
.vehicle-card .body{ padding:14px; }
.price-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.price{
  font-weight:1000;
  letter-spacing:-.2px;
}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:10px;
}
.tag{
  font-size:.8rem;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(30,79,179,.10);
  border:1px solid rgba(30,79,179,.18);
  color:#0f172a;
  font-weight:800;
}

/* Vehicle detail */
.vehicle-hero{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:16px;
}
@media(max-width: 980px){ .vehicle-hero{ grid-template-columns:1fr; } }
.gallery{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(17,24,39,.10);
  box-shadow: var(--shadow);
  background:#fff;
}
.gallery img{ width:100%; height:360px; object-fit:cover; display:block; }
.thumbrow{ display:flex; gap:10px; padding:12px; flex-wrap:wrap; }
.thumbrow img{
  width:84px; height:64px; object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(17,24,39,.10);
  cursor:pointer;
}
.panel{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(17,24,39,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:16px;
}
.kv{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:10px; }
.kv div{ padding:10px 12px; background:rgba(17,24,39,.04); border:1px solid rgba(17,24,39,.08); border-radius:16px; }
.kv b{ display:block; font-size:.85rem; color:#0f172a; }
.kv span{ color:var(--muted); }

/* CTA strip */
.cta-strip{
  background:linear-gradient(135deg, rgba(30,79,179,.14), rgba(246,196,0,.20));
  border-top:1px solid rgba(17,24,39,.08);
  border-bottom:1px solid rgba(17,24,39,.08);
  padding:18px 0;
}
.cta-strip .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  flex-wrap:wrap;
}
.cta-strip h3{ margin:0; letter-spacing:-.3px; }
.cta-strip p{ margin:0; color:var(--muted); }

/* FAQ */
.faq details{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  padding:12px 14px;
  margin:10px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
}
.faq summary{ cursor:pointer; font-weight:900; }
.faq p{ margin:10px 0 0; color:var(--muted); line-height:1.6; }

/* Forms */
form .hint{ font-size:.88rem; color:var(--muted); margin:-6px 0 12px; }
textarea{ min-height: 110px; resize:vertical; }
button.btn{ border:0; }

/* Footer */
footer{
  background: var(--black);
  color:#fff;
  margin-top:0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap:14px;
  padding:28px 0;
}
@media(max-width: 900px){ .footer-grid{ grid-template-columns:1fr; } }
footer a{ color:#fff; text-decoration:underline; }
footer .muted{ color: rgba(255,255,255,.75); line-height:1.6; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:14px 0 20px;
  color: rgba(255,255,255,.78);
  font-size:.9rem;
}

/* Mobile sticky CTA */
.mobile-cta{
  position:fixed; left:12px; right:12px; bottom:12px; z-index:2000;
  display:none;
}
.mobile-cta a{
  display:flex; align-items:center; justify-content:center;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  font-weight:1000;
  text-decoration:none;
  box-shadow: 0 18px 40px rgba(30,79,179,.35);
}
@media(max-width: 720px){
  .mobile-cta{ display:block; }
  body{ padding-bottom: 72px; } /* space for CTA */
}


/* Mobile footer padding fix */
@media (max-width: 720px){
  footer .container{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .footer-grid{
    padding-left: 0;
    padding-right: 0;
    gap: 18px;
  }
  footer p, footer a, footer b{
    word-break: break-word;
  }
}


/* Navbar logo size upgrade */
.brand img{
  height: 64px;
}

@media (max-width: 720px){
  .brand img{
    height: 56px;
  }
}
