/* D & G Auto Sales - site styles */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  --navy-950: #061224;
  --navy-900: #081a33;
  --navy-800: #0b1f3a;
  --navy-700: #13305a;
  --navy-600: #1d4278;
  --red: #c8102e;
  --red-dark: #a30c25;
  --ink: #142033;
  --muted: #4f5b70;
  --line: #d9e0ea;
  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --focus: #ffbf47;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--navy-800);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
.icon { flex: none; vertical-align: middle; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: #fff; color: var(--navy-800); padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 20px;
  border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: #e7edf6; color: var(--navy-800); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: #fff; }
.btn-outline:hover { background: var(--bg-soft); color: var(--navy-800); }
.btn-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { color: var(--navy-700); background: var(--bg-soft); }
.btn-ghost:hover { background: #e4eaf2; color: var(--navy-800); }
.btn-num { font-weight: 600; opacity: .92; }
.btn-num::before { content: '\00b7'; margin-right: 8px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800); color: #fff;
  border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; padding: 6px 0; }
.brand:hover { color: #fff; }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .02em; line-height: 1; }
.brand-sub {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.05;
  padding-left: 10px; border-left: 3px solid var(--red);
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--red); }
.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: #fff; font: inherit; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 8px; cursor: pointer;
}
@media (max-width: 859px) {
  .header-call { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800); border-bottom: 3px solid var(--red);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .js .site-nav a { padding: 14px 12px; font-size: 1.1rem; }
  .js .site-nav a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--red); }
  .site-nav { width: 100%; }
  .js .site-nav { width: auto; }
}

/* Mobile quick-contact bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(11, 31, 58, .12);
}
.action-bar .btn { min-height: 52px; font-size: 1.05rem; }
@media (min-width: 860px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Hero */
.hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; border-bottom: 6px solid var(--red); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 58%, rgba(255, 255, 255, .045) 58% 64%, transparent 64% 67%, rgba(255, 255, 255, .045) 67% 70%, transparent 70%),
    radial-gradient(900px 480px at 0% 0%, rgba(29, 66, 120, .95), transparent 70%);
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero-inner { position: relative; display: grid; gap: 28px; padding: 44px 16px 48px; align-items: center; }
@media (min-width: 700px) { .hero-inner { padding: 64px 24px 72px; } }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); padding-top: 88px; padding-bottom: 96px; gap: 48px; } }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .18em; color: #c9d6ea;
}
.eyebrow::before { content: ''; width: 30px; height: 3px; background: var(--red); flex: none; }
.hero h1 {
  color: #fff; margin: 0 0 14px;
  font-size: clamp(2.7rem, 9vw, 5rem); text-transform: uppercase; letter-spacing: .02em; line-height: .95;
}
.hero-tagline { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: #dbe4f1; max-width: 34em; margin: 0 0 28px; }
.lead-dark { font-size: 1.2rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-card {
  margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 10px;
}
.hero-card img { width: 112px; height: auto; border-radius: 8px; }
.hero-card figcaption { display: flex; flex-direction: column; gap: 2px; color: #dbe4f1; font-size: .95rem; }
.hero-card strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .02em; }
@media (min-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 14px; justify-self: end; max-width: 290px; background: #fff; border: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .hero-card img { width: 100%; }
  .hero-card figcaption { color: var(--muted); padding: 2px 4px 4px; }
  .hero-card strong { color: var(--navy-800); }
}

/* Sections */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0 56px; }
@media (min-width: 900px) { .section { padding: 72px 0; } .section-tight { padding: 36px 0 80px; } }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.kicker {
  margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--red);
}

.page-head { background: var(--navy-800); color: #dbe4f1; padding: 32px 0 30px; border-bottom: 4px solid var(--red); }
.page-head h1 { color: #fff; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.page-head p { margin: 0; }
.js .page-head.has-toolbar { padding-bottom: 60px; }

/* Vehicle cards */
.vehicle-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); list-style: none; margin: 0; padding: 0; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.vcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 31, 58, .08), 0 14px 32px rgba(11, 31, 58, .14); }
.vcard a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.vcard-media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; flex: 1; }
.vcard-title { margin: 0; font-size: 1.5rem; }
.vcard-trim { margin: 0; color: var(--muted); }
.vcard-price { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; color: var(--navy-800); }
.vcard-price.is-call { font-size: 1.3rem; color: var(--navy-600); }
.vcard-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.vcard-cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }

.photo-placeholder, .gallery-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 100%; color: var(--muted); background: var(--bg-soft); font-weight: 600;
}
.gallery-empty { aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* Empty states */
.empty {
  text-align: center; background: #fff; border: 2px dashed #c3cede; border-radius: 14px;
  padding: 40px 20px;
}
.empty-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 34em; margin: 0 auto 16px; }
.empty .actions-row { justify-content: center; }

/* Info tiles */
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--navy-800); }
.info-label { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info-label .icon { color: var(--red); }
.info-value { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy-800); line-height: 1.35; }
.info-value a { color: inherit; }
.info-note { margin: 0; color: var(--muted); font-size: .95rem; }
.info-link { margin-top: auto; padding-top: 6px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* Inventory toolbar */
.toolbar {
  position: relative; margin: -64px 0 20px; padding: 16px;
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.toolbar .field-q { grid-column: 1 / -1; }
.toolbar .btn-clear { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .toolbar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .toolbar .field-q, .toolbar .btn-clear { grid-column: auto; }
}
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .92rem; color: var(--navy-800); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #a9b6c9; border-radius: 8px;
}
.field input:focus, .field select:focus { border-color: var(--navy-600); }
.result-count { margin: 0 0 16px; color: var(--muted); font-weight: 600; }
.no-results { margin-top: 8px; }
.inventory-note { margin: 28px 0 0; color: var(--muted); }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 14px; font-size: .95rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #9aa6b8; }
.breadcrumb a { color: var(--navy-600); }

/* Vehicle detail */
.vd { display: grid; gap: 24px; padding-bottom: 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .vd { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); grid-template-areas: 'gallery panel' 'details panel'; column-gap: 36px; align-items: start; padding-bottom: 80px; }
  .vd-gallery { grid-area: gallery; }
  .vd-panel { grid-area: panel; position: sticky; top: 92px; }
  .vd-details { grid-area: details; }
}
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #0d1626; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 3; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(6, 18, 36, .72); color: #fff;
}
.gallery-nav:hover { background: rgba(6, 18, 36, .9); }
.gallery-nav[hidden] { display: none; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(6, 18, 36, .78); color: #fff; font-size: .85rem; font-weight: 700; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 10px 0 0; padding: 2px 2px 6px; }
.thumbs li { flex: 0 0 88px; }
@media (min-width: 700px) {
  .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; }
}
.thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 3px solid transparent; opacity: .82; }
.thumbs a:hover { opacity: 1; }
.thumbs a[aria-current='true'] { border-color: var(--red); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border-top: 5px solid var(--navy-800); }
.vd-title { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0; }
.vd-trim { display: block; font-size: .55em; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 4px; }
.vd-price { margin: 14px 0 2px; font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1.05; color: var(--navy-800); }
.vd-price.is-call { font-size: 1.9rem; color: var(--navy-600); }
.vd-quick { margin: 0; color: var(--muted); font-weight: 600; }
.vd-actions { display: grid; gap: 10px; margin-top: 18px; }
.vd-actions .btn[hidden] { display: none; }
.share-status { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--muted); text-align: center; }
.share-status:empty { display: none; }
.vd-ref { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.vd-details h2 { font-size: 1.8rem; margin-top: 8px; }
.vd-details section + section { margin-top: 28px; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt, .specs dd { margin: 0; padding: 12px 16px; }
.specs dt { background: var(--bg-soft); font-weight: 700; color: var(--navy-800); }
.prose { max-width: 70ch; }
.fine-print { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; gap: 56px; } }
.contact-list { margin: 24px 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .contact-list div { grid-template-columns: 190px 1fr; gap: 16px; } }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-800); }
.contact-list dt .icon { color: var(--red); }
.contact-list dd { margin: 0; }
.contact-list dd a { display: inline-block; padding: 4px 0; }
.sign-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); max-width: 290px; }
.sign-figure img { width: 100%; border-radius: 8px; }
.sign-figure figcaption { display: flex; flex-direction: column; padding: 10px 4px 2px; color: var(--muted); }
.sign-figure strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-800); }

/* Footer */
.site-footer { background: var(--navy-950); color: #c3d0e4; padding: 44px 0 24px; border-top: 4px solid var(--red); }
.site-footer a { color: #fff; }
.site-footer .icon { color: #8fa3c2; margin-right: 4px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.brand-footer { margin-bottom: 12px; }
.footer-address { margin: 0; }
.footer-h { font-size: 1.1rem; color: #fff; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a, .site-footer p a { display: inline-block; padding: 5px 0; }
.site-footer p { margin: 0 0 6px; }
.fine { margin: 28px 0 0 !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; color: #93a4bf; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .vcard:hover { transform: none; }
}
@media print {
  .site-header, .action-bar, .site-footer, .gallery-nav, .thumbs, .vd-actions { display: none !important; }
  body { padding: 0; }
}
