/* ==========================================================================
   Edwin Motors — main stylesheet
   ========================================================================== */

:root {
  /* Brand colours — change these to re-theme the whole site */
  --primary: #0f2a4a;          /* dark blue */
  --primary-dark: #0a1d34;
  --primary-light: #1d4a7a;
  --accent: #e8a33a;           /* warm gold for highlights */
  --price: #0f2a4a;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1c2733;
  --text-muted: #5f6d7d;
  --border: #dfe4ea;

  --success: #1f8a4c;
  --warning: #b7791f;
  --danger: #c0392b;
  --whatsapp: #25d366;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(15, 42, 74, 0.08);
  --shadow: 0 4px 14px rgba(15, 42, 74, 0.1);
  --shadow-lg: 0 12px 32px rgba(15, 42, 74, 0.16);

  --container: 1200px;
  --header-h: 68px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

img { max-width: 100%; display: block; }
a { color: var(--primary-light); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--primary); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(232, 163, 58, .6); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: #f0b456; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-light:hover { border-color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); background: #eef2f6; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .2px;
}
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 8px; background: var(--accent); color: var(--primary-dark);
}
.logo-mark svg { width: 24px; height: 24px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.site-nav .nav-phone { display: flex; align-items: center; gap: 6px; }
.site-nav .nav-phone svg { width: 16px; height: 16px; }
.site-nav .btn { margin-left: 8px; }
.site-nav .btn:hover { background: #f0b456; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--primary);
  padding: 72px 0 96px;
  overflow: hidden;
}
/* Live wallpaper canvas (js/hero-scene.js) with a dark wash so the text stays readable */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(8, 20, 38, .82) 0%, rgba(8, 20, 38, .55) 55%, rgba(8, 20, 38, .25) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.scene-sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; cursor: pointer;
  background: rgba(8, 20, 38, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; backdrop-filter: blur(4px);
}
.scene-sound:hover { background: rgba(8, 20, 38, .9); }
.hero::after {
  display: none; content: ''; position: absolute; right: -80px; bottom: -40px; width: 520px; height: 260px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath d='M60 280c0-30 18-48 48-56l92-22 70-62c14-12 30-18 50-18h150c22 0 40 8 54 22l60 58 70 12c30 6 46 24 46 54v28c0 10-8 18-18 18H78c-10 0-18-8-18-18z' fill='%23ffffff' opacity='0.06'/%3E%3Ccircle cx='190' cy='310' r='44' fill='%23ffffff' opacity='0.06'/%3E%3Ccircle cx='510' cy='310' r='44' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); max-width: 720px; margin-bottom: 14px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 0 28px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; padding: 0; list-style: none; }
.trust-badges li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.trust-badges svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* Search bar */
.search-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px;
  background: var(--surface); color: var(--text);
  padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 980px;
}
.search-bar .field label {
  display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-bottom: 4px;
}
.search-bar .btn { align-self: end; height: 46px; padding: 0 26px; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--text);
  background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px; height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6d7d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(29, 74, 122, .15);
}
.form-group { margin-bottom: 16px; }
.form-group > label, .form-label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text);
}
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.req { color: var(--danger); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 200px; height: 42px; }
.result-count { color: var(--text-muted); font-size: 15px; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e6edf5; color: var(--primary); font-size: 14px; font-weight: 500;
  padding: 5px 8px 5px 12px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
}
.chip:hover { background: #d7e2ee; }
.chip svg { width: 14px; height: 14px; }

/* ---------- Vehicle grid & cards ---------- */
.vehicle-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vehicle-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.vehicle-card:hover, .vehicle-card:focus-visible {
  box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c8d3df; outline: none;
}
.vehicle-card .card-media { position: relative; aspect-ratio: 16 / 10; background: #e8edf3; overflow: hidden; }
.vehicle-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vehicle-card:hover .card-media img { transform: scale(1.04); }
.vehicle-card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.vehicle-card .card-year { font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: .3px; }
.vehicle-card h3 { font-size: 19px; margin: 2px 0 10px; color: var(--text); }
.vehicle-card .card-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; list-style: none;
  font-size: 14px; color: var(--text-muted);
}
.vehicle-card .card-specs li { display: flex; align-items: center; gap: 5px; }
.vehicle-card .card-specs svg { width: 16px; height: 16px; color: var(--primary-light); }
.vehicle-card .card-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { font-size: 22px; font-weight: 700; color: var(--price); }
.card-link { font-size: 14px; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 4px; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.vehicle-card:hover .card-link svg { transform: translateX(3px); }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px; line-height: 1.3;
}
.badge-available { background: #e3f4ea; color: var(--success); }
.badge-reserved { background: #fdf1dc; color: var(--warning); }
.badge-sold { background: #fbe4e1; color: var(--danger); }
.badge-featured { background: var(--accent); color: var(--primary-dark); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-badges .badge { box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.card-badges .badge-available { display: none; } /* only show non-default statuses on cards */
.vehicle-card.is-sold .card-media img { filter: grayscale(.7); opacity: .8; }

.empty-state {
  text-align: center; padding: 56px 20px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted);
}
.empty-state svg { width: 52px; height: 52px; color: #b7c3d0; margin: 0 auto 12px; }
.empty-state h3 { color: var(--text); }

/* Skeleton loading cards */
.skeleton { background: linear-gradient(90deg, #eceff3 25%, #f6f8fa 50%, #eceff3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton-card { height: 360px; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Why us / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.why-item .icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: #e6edf5; color: var(--primary); margin-bottom: 14px;
}
.why-item .icon svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 18px; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Contact section ---------- */
.contact-section { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--primary); }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--primary-light); text-decoration: underline; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social { margin-top: 10px; flex-direction: column; align-items: flex-start; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover { background: #1466d0; }
.btn-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.btn-instagram:hover { filter: brightness(0.92); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .75); padding: 44px 0 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px;
}

/* ---------- Vehicle detail page ---------- */
.breadcrumb { font-size: 14px; color: var(--text-muted); padding: 18px 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 56px; }

.gallery-main {
  position: relative; aspect-ratio: 16 / 10; background: #e8edf3;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--primary); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-counter {
  position: absolute; right: 12px; bottom: 12px; background: rgba(10, 29, 52, .75); color: #fff;
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; aspect-ratio: 16 / 10; background: #e8edf3;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-section { margin-top: 32px; }
.detail-section h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.description { white-space: pre-line; color: #33414f; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.spec-table th { width: 40%; font-weight: 600; color: var(--text-muted); background: #f8fafc; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: center; gap: 8px; }
.feature-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.detail-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.summary-card h1 { font-size: 26px; margin-bottom: 4px; }
.summary-card .subtitle { color: var(--text-muted); margin: 0 0 14px; }
.summary-card .price { font-size: 32px; display: block; margin: 6px 0 16px; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.key-spec { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.key-spec span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); font-weight: 600; }
.key-spec strong { font-size: 15px; color: var(--text); }
.summary-actions { display: grid; gap: 10px; }
.sold-notice {
  background: #fbe4e1; color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; margin-bottom: 14px; font-size: 15px;
}
.reserved-notice { background: #fdf1dc; color: var(--warning); }

.inquiry-card h2 { font-size: 20px; margin-bottom: 4px; }
.inquiry-card > p { color: var(--text-muted); margin: 0 0 16px; font-size: 15px; }

/* Mobile sticky CTA on detail page */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(15, 42, 74, .1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; align-items: center;
}
.mobile-cta .price { font-size: 19px; flex: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 26, .92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox .gallery-nav { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--primary-dark); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-weight: 500; transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="error"] { background: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field-keyword { grid-column: 1 / -1; }
  .search-bar .btn { grid-column: 1 / -1; }
  /* Single column: photo → title/price/buttons → details → inquiry form */
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-layout > div, .detail-sidebar { display: contents; }
  .gallery { order: 1; min-width: 0; }
  .summary-card { order: 2; }
  .detail-section { order: 3; margin-top: 8px; }
  .inquiry-card { order: 4; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--primary); padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 56px; }
  .hero::after { display: none; }
  .search-bar { grid-template-columns: 1fr; padding: 14px; }
  .section { padding: 40px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr; gap: 18px; }
  .toolbar, .toolbar .select { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-main { border-radius: var(--radius-sm); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gallery-nav { width: 36px; height: 36px; }
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 76px; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 14px; }
}
/* --- Dealer profile photo as logo mark --- */
.logo-mark { overflow: hidden; padding: 0; }
.logo-mark .logo-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  display: block;
}
