/* Layout: a lot-office site. Ink-blue ground, windshield grease-pencil yellow for prices only.
   Header strip with phone, hero with a featured car, filterable inventory grid, contact + visit. */
:root {
  --paper: #eef2f5;
  --surface: #ffffff;
  --ink: #0f1d2b;
  --steel: #556677;
  --line: #d3dbe2;
  --accent: #1b4f8a;
  --accent-ink: #ffffff;
  --glass: #c9d6e2;
  --tag-bg: #0f1d2b;
  --marker: #f6c915;
  --pending: #a8541a;
  --hero: #0f1d2b;
  --hero-ink: #eef2f5;
  --hero-muted: #9fb0c1;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b131b; --surface: #121d28; --ink: #e6edf3; --steel: #93a4b5; --line: #243443;
    --accent: #7db0e8; --accent-ink: #0b131b; --glass: #2c4257; --tag-bg: #05090d;
    --pending: #e59a62; --hero: #060c12; --hero-ink: #e6edf3; --hero-muted: #8ea0b2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b131b; --surface: #121d28; --ink: #e6edf3; --steel: #93a4b5; --line: #243443;
  --accent: #7db0e8; --accent-ink: #0b131b; --glass: #2c4257; --tag-bg: #05090d;
  --pending: #e59a62; --hero: #060c12; --hero-ink: #e6edf3; --hero-muted: #8ea0b2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; font-weight: 600; color: var(--steel); margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-marker { background: var(--marker); color: #0f1d2b; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }

/* Top strip + header */
.strip { background: var(--hero); color: var(--hero-muted); font-size: 0.9rem; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-block: 8px; }
.strip strong { color: var(--hero-ink); font-weight: 600; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hero); color: var(--hero-ink); border-bottom: 1px solid #ffffff14; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--marker); }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: var(--hero-ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--marker); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .call { color: var(--marker); font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0; }

/* Hero */
.hero { background: var(--hero); color: var(--hero-ink); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 800; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--marker); }
.hero p.lede { color: var(--hero-muted); font-size: 1.15rem; max-width: 34em; margin: 18px 0 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--hero-muted); font-size: 0.95rem; }
.hero .facts b { color: var(--hero-ink); font-weight: 600; }

/* The featured car sits on a "windshield": price written in grease pencil */
.windshield { position: relative; background: linear-gradient(160deg, #1b3045, #0c1824 70%); border-radius: 18px 18px 8px 8px; padding: 26px 22px 18px; border: 1px solid #ffffff1c; min-width: 0; }
.windshield .scrawl { font-family: var(--font-marker); color: var(--marker); transform: rotate(-4deg); display: grid; gap: 0; line-height: 1.05; }
.windshield .scrawl .yr { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.windshield .scrawl .px { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.windshield .scrawl .mi { font-size: 1.1rem; color: #ffffffd0; }
.windshield svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.windshield .cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--hero-muted); font-size: 0.9rem; border-top: 1px dashed #ffffff26; padding-top: 10px; margin-top: 4px; }
.windshield .cap button { background: none; border: 0; color: var(--marker); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Sections */
section.block { padding-block: clamp(48px, 7vw, 88px); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.block-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
.notice { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--steel); background: var(--surface); border: 1px dashed var(--line); padding: 6px 12px; border-radius: 999px; }

/* Inventory toolbar */
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px;
}
.results-line { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; color: var(--steel); font-size: 0.95rem; }
.results-line button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Vehicle cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.car { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.car .pic { position: relative; border-bottom: 1px solid var(--line); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--tag-bg); color: var(--marker); font-family: var(--font-marker); font-size: 1.35rem; line-height: 1; padding: 7px 11px 6px; border-radius: 3px; transform: rotate(-3deg); }
.status { position: absolute; top: 12px; right: 10px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--pending); color: var(--pending); background: var(--surface); }
.car .body { display: grid; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.car h3 { font-size: 1.55rem; font-weight: 700; }
.car .trim { color: var(--steel); font-size: 0.95rem; margin-top: -6px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; font-size: 0.9rem; }
.specs div { display: grid; min-width: 0; }
.specs dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); font-weight: 600; }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.car .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.car .foot .mono { font-size: 0.82rem; color: var(--steel); }
.car .foot button { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 4px 0; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--steel); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Detail dialog */
dialog { border: 0; padding: 0; border-radius: 10px; width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #05090dcc; }
.dlg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dlg .pic { position: relative; background: var(--paper); display: grid; align-content: start; gap: 8px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 3px; width: 64px; cursor: pointer; background: none; }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dlg .info { padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.dlg h3 { font-size: 2rem; font-weight: 800; }
.dlg ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 18px; font-size: 0.92rem; }
.dlg .close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.dlg .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact */
.contact { background: var(--surface); border-block: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); }
.offers { display: grid; gap: 22px; align-content: start; }
.offer h3 { font-size: 1.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.offer p { margin: 0; color: var(--steel); max-width: 34em; }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
form.lead .full { grid-column: 1 / -1; }
form.lead textarea { min-height: 96px; resize: vertical; }
.form-msg { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }

/* Visit */
.visit .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.visit .big { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; }
.copy { justify-self: start; font: inherit; font-size: 0.88rem; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; padding: 4px 10px; cursor: pointer; }

footer { background: var(--hero); color: var(--hero-muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 26px; }

@media (max-width: 900px) {
  .hero .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search { grid-column: 1 / -1; }
  .dlg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  form.lead { grid-template-columns: minmax(0, 1fr); }
  .dlg ul { columns: 1; }
  .nav { gap: 4px 16px; }
}

/* Tabbed request forms */
.forms { display: grid; gap: 0; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: transparent; color: var(--steel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; padding: 10px 16px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 3px 0 var(--marker); }
.forms form.lead { border-top-left-radius: 0; }
.form-note { margin: 0; color: var(--steel); font-size: 0.92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* Reviews */
.reviews { background: var(--paper); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.review .stars { color: #d9a400; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review .who { color: var(--steel); font-size: 0.9rem; }
.review.placeholder { background: transparent; border-style: dashed; color: var(--steel); }
.review.placeholder .stars { color: var(--line); }
.ph-label { justify-self: start; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; }

/* Visit: map + cards */
.visit { background: var(--surface); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(0deg, transparent 0 38px, var(--line) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, var(--line) 38px 39px), var(--paper); }
.map-fallback .pin { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.visit-cards { display: grid; gap: 14px; align-content: start; }
.visit .card { background: var(--paper); }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 600; }
.hours-note { color: var(--steel); font-size: 0.92rem; }

/* Call / text bar on phones */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--hero); border-top: 1px solid #ffffff1f;
  }
  .callbar a { display: grid; place-items: center; padding: 11px 6px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--hero-ink); border: 1px solid #ffffff3a; }
  .callbar a:first-child { background: var(--marker); color: #0f1d2b; border-color: var(--marker); }
  body { padding-bottom: 72px; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 280px; }
  .tabs button { flex: 1 1 auto; padding: 9px 10px; font-size: 0.95rem; }
}

/* Photos and the no-photo panel share one 4:3 frame so the grid stays even */
.photo, .nophoto { display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; }
.photo { object-fit: cover; background: var(--paper); }
.nophoto {
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px;
  color: var(--hero-muted); background: radial-gradient(120% 90% at 50% 0%, #1d3349, #0d1823 70%);
}
.nophoto svg { width: 34px; height: 34px; color: var(--marker); opacity: .85; }
.nophoto .np-model { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.7rem; line-height: 1; color: #eef2f5; }
.nophoto .np-note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #ffffff66; display: inline-block; }
.feat-pic { margin: 14px 0 6px; border-radius: 8px; overflow: hidden; }
.feat-pic .nophoto { aspect-ratio: 16 / 9; }

section.block.inventory-page { min-height: 70vh; padding-top: clamp(28px, 4vw, 48px); }
