/* JAS Auto Sales — dark luxury dealership theme */
:root {
  --ink: #0d0e11;
  --ink2: #12141a;
  --gold: #c9a227;
  --gold-hi: #e3c566;
  --gold-deep: #c9a227;
  --bg: #0d0e11;
  --card: #1c1f26;
  --muted: #9aa0ab;
  --line: #2a2e38;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font-h: 'Archivo', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: #e8eaee;
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
::selection { background: rgba(201, 162, 39, .35); color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; margin: 0 0 .6em; color: #f4f5f7; }
.muted { color: var(--muted); }
.sm { font-size: .85em; }
.gold { color: var(--gold-hi); }
hr { border: 0; border-top: 1px solid var(--line); }

/* top utility bar */
.topbar { background: #08090b; color: #9aa0ab; font-size: .82rem; border-bottom: 1px solid #16181d; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; }
.topbar-phone { color: var(--gold-hi); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* header */
.site-header { background: #0d0e11; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(0,0,0,.5); border-bottom: 1px solid #1e222b; }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--font-h); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; color: #fff; text-decoration: none; }
.logo-mark { background: var(--gold); color: #14161a; padding: 2px 9px; border-radius: 6px; margin-right: 8px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #dfe2e7; text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a.on { color: var(--gold-hi); }
.nav-cta { border: 1px solid var(--gold); border-radius: 999px; padding: 8px 18px !important; color: var(--gold-hi) !important; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); color: #14161a !important; }
.nav-toggle { display: none; background: none; border: 1px solid #3a3e46; color: #fff; border-radius: 8px; font-size: 1.2rem; padding: 6px 12px; cursor: pointer; }

/* hero */
.hero { background: radial-gradient(1100px 480px at 75% -10%, rgba(201,162,39,.16), transparent 60%), linear-gradient(135deg, #0d0e11 0%, #12141a 60%, #171a21 100%); color: #fff; border-bottom: 1px solid #1e222b; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--gold-hi); font-weight: 600; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; margin: 0 0 16px; color: #fff; }
.lede { color: #c6c9d0; font-size: 1.08rem; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-spot { background: #1c1f26; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; transition: transform .2s, border-color .2s; display: block; }
.hero-spot:hover { transform: translateY(-4px); border-color: var(--gold); }
.hero-spot img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hero-spot-body { padding: 18px 22px 22px; }
.hero-spot-title { font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; color: #f4f5f7; }
.hero-spot-price { color: var(--gold-hi); font-family: var(--font-h); font-weight: 800; font-size: 1.6rem; margin-top: 4px; }

/* buttons — primary gold-filled, secondary dark with gold border */
.btn { display: inline-block; background: var(--gold); color: #14161a; font-family: var(--font-h); font-weight: 700; padding: 13px 30px; border-radius: 999px; text-decoration: none; border: 1px solid var(--gold); cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,162,39,.35); }
.btn.outline { background: #16181d; color: var(--gold-hi); border-color: var(--gold); }
.btn.outline:hover { background: var(--gold); color: #14161a; box-shadow: 0 8px 22px rgba(201,162,39,.35); }
.btn.outline-dark { background: #16181d; color: var(--gold-hi); border-color: var(--gold); }
.btn.sm { padding: 9px 20px; font-size: .9rem; }
.btn.block { display: block; text-align: center; width: 100%; margin-bottom: 10px; }
.btn.danger { background: #b3261e; border-color: #b3261e; color: #fff; }

/* sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section-head h2 { font-size: 1.7rem; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.link-more { font-weight: 600; text-decoration: none; }
.page-title { font-size: 2rem; font-weight: 800; }
.page-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 12px; border-radius: 2px; }

/* car grid + cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.car-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; border: 1px solid var(--line); }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.6); border-color: #3d434f; }
.car-photo { position: relative; display: block; aspect-ratio: 16/10; background: #101216; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-nophoto { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 180px; color: #7d828b; background: #101216; font-size: .9rem; }
.car-nophoto.big { min-height: 320px; border-radius: var(--radius); font-size: 1.1rem; }
.car-body { padding: 18px 20px 20px; }
.car-price { font-family: var(--font-h); font-weight: 800; font-size: 1.45rem; color: var(--gold-hi); }
.car-title { font-size: 1.08rem; margin: 4px 0 6px; color: #f2f3f5; }
.car-title a { color: #f2f3f5; text-decoration: none; }
.car-title a:hover { color: var(--gold-hi); }
.car-meta { color: var(--muted); font-size: .88rem; }

.badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; color: #fff; }
.badge.pending { background: #b7791f; }
.badge.sold { background: #5b6068; }
.badge.big { position: static; font-size: .8rem; padding: 8px 18px; }

/* why strip */
.why { background: #101216; color: #e8eaee; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 52px; padding-bottom: 52px; }
.why-item h3 { color: var(--gold-hi); font-size: 1.15rem; }
.why-item p { color: #9aa0ab; margin: 0; }

/* cta banner */
.cta-banner { background: linear-gradient(120deg, #12141a, #1c1f26); border: 1px solid var(--gold); border-radius: 18px; color: #fff; padding: 40px 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { margin: 0 0 6px; color: #f4f5f7; }
.cta-banner p { margin: 0; color: #9aa0ab; }

/* filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.filters input[type="search"], .filters select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; background: #12141a; color: #e8eaee; font-family: var(--font-b); }
.filters input[type="search"] { min-width: 220px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }

/* forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 18px 0; }
.form-card label, form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: #e8eaee; }
.form-card input[type="text"], .form-card input[type="number"], .form-card input[type="email"],
.form-card input[type="tel"], .form-card select, .form-card textarea,
form input[type="text"], form input[type="number"], form input[type="email"],
form input[type="tel"], form select, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--font-b);
  background: #12141a; color: #e8eaee;
}
.form-card input:focus, form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,39,.25); }
form textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.alert { border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.alert.ok { background: #10231a; border: 1px solid #1f5c36; color: #9fd8b4; }
.alert.error { background: #2a1210; border: 1px solid #8f1d16; color: #f2a49e; }

/* vehicle detail */
.crumbs { margin: 0 0 8px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.veh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.veh-pricebox { text-align: right; }
.veh-price { font-family: var(--font-h); font-weight: 800; font-size: 2.2rem; color: var(--gold-hi); }
.gallery { margin-bottom: 36px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #101216; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gthumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: none; flex: 0 0 auto; width: 120px; }
.gthumb img { width: 120px; height: 75px; object-fit: cover; }
.gthumb.on { border-color: var(--gold); }
.veh-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.veh-desc { white-space: normal; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); margin: 0; }
.specs > div { display: contents; }
.specs dt, .specs dd { padding: 12px 18px; margin: 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--muted); background: #16181d; }
.specs dd { color: #e8eaee; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.side-price { font-family: var(--font-h); font-weight: 800; font-size: 1.8rem; color: var(--gold-hi); margin-bottom: 4px; }
.prose p { font-size: 1.05rem; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--gold-hi); }
.info-card p { margin: 0; color: #c6c9d0; }

/* footer */
.site-footer { background: #08090b; color: #9aa0ab; margin-top: 40px; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.foot-logo { margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer a { color: var(--gold-hi); }
.footer-base { border-top: 1px solid #1e222b; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #7d828b; }

/* responsive */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
  .why-grid { grid-template-columns: 1fr; }
  .veh-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d0e11; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-top: 1px solid #2a2e36; }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid #1e222b; }
  .site-header { position: sticky; }
  .header-in { position: relative; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .cta-banner { padding: 28px; }
}
