/* Payless Motorsport — concept preview
   Cientificos Agency · Sept 2026
   Layout model: AutoMan-style dealer homepage, written from scratch.
   Palette: white · Payless orange #F86109 · light grey. Text is a neutral near-black. */

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --grey-050: #f4f5f7;   /* section backgrounds */
  --grey-100: #e9ecef;   /* logo block, search band, footer */
  --line: #dde2e8;
  --ph: #d9dee4;         /* photo placeholder */
  --ink: #1f2328;        /* headings, dark surfaces */
  --text: #4b5560;       /* body copy (7.6:1 on white) */
  --heading: #23292f;
  --orange: #f86109;     /* brand orange, from paylessmotorsport.com theme colour */
  --orange-deep: #bf4304;/* orange for text, links and icons (5.2:1 on white) */
  --orange-soft: #fff1e8;
  --verify-bg: #fff4c2;
  --verify-ink: #5a4500;
  --radius: 2px;
  --container: 75rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(31, 35, 40, 0.14);
  --hatch: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.4) 14px 15px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}
h1, h2, h3 { margin: 0 0 0.5em; color: var(--heading); line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--orange-deep); }
a:hover { color: var(--ink); }
svg { display: block; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 52rem; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--orange-deep); border-color: var(--orange); }
.btn-ghost:hover { background: var(--orange); color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--orange-deep); text-decoration: underline; cursor: pointer; font: inherit; }
.link-btn:hover { color: var(--ink); }

.verify {
  display: inline-block; background: var(--verify-bg); color: var(--verify-ink);
  font-style: normal; font-size: 0.8125rem; font-weight: 500; padding: 0.15rem 0.45rem; border-radius: var(--radius);
}

/* ---------- Preview ribbon ---------- */
.ribbon { background: var(--ink); color: #fff; font-size: 0.75rem; text-align: center; padding: 0.45rem 1rem; }
.ribbon p { margin: 0; }
.ribbon span { opacity: 0.75; display: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-bar { display: flex; align-items: stretch; height: 4rem; position: relative; }

.logo {
  display: flex; align-items: center;
  background: var(--grey-100); padding: 0 1.25rem; margin-left: -1.25rem;
  text-decoration: none; color: var(--ink);
}
.logo-img { display: block; height: 2.75rem; width: auto; max-width: 12rem; object-fit: contain; }
.logo-mark { display: none; flex-direction: column; justify-content: center; }
.logo.no-logo .logo-img { display: none; }
.logo.no-logo .logo-mark { display: flex; }
.logo-main { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.logo-sub {
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; white-space: nowrap;
  font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text); line-height: 1;
}
.logo-sub::before, .logo-sub::after { content: ""; width: 0.75rem; height: 1px; background: currentColor; }

.nav-toggle {
  margin-left: auto; align-self: center;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 5rem); overflow: auto;
}
.site-header.nav-open .site-nav { display: block; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-list { padding: 0.5rem 0; }
.nav-link {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.35rem;
  padding: 0.85rem 1.25rem; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.nav-link:hover, .nav-link.is-active { color: var(--orange-deep); }
.icon-chev { width: 1rem; height: 1rem; transition: transform 0.2s; }
.has-sub.open > .nav-link .icon-chev { transform: rotate(180deg); }
.sub { display: none; background: var(--grey-050); padding: 0.25rem 0; }
.has-sub.open > .sub { display: block; }
.sub a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 2rem; color: var(--ink); text-decoration: none; font-size: 0.9375rem;
}
.sub a:hover { color: var(--orange-deep); }
.count { color: var(--text); font-size: 0.8125rem; }

.call-wrap { position: relative; display: flex; align-items: center; margin-left: 0.6rem; }
.btn-call { padding: 0; width: 2.75rem; height: 2.75rem; background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-call:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.phone-tab {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--orange-deep);
}
.phone-tab::before { content: ""; width: 2px; height: 1.6rem; background: rgba(255, 255, 255, 0.85); }
.tab-sq {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: transform 0.15s;
}
.phone-tab:hover .tab-sq { transform: translateY(2px); }
.site-header.nav-open .phone-tab { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #1a1c1f; color: #fff; overflow: hidden; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
/* Photo layer: gradients on top, the slide's --photo in the middle, a drawn skyline underneath as the offline fallback. */
.slide-photo {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(12, 12, 14, 0.45) 0%, rgba(12, 12, 14, 0.15) 40%, rgba(12, 12, 14, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 12, 14, 0.6) 0%, rgba(12, 12, 14, 0.15) 55%, rgba(12, 12, 14, 0) 100%),
    var(--photo, none),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Crect x='0' y='200' width='70' height='120'/%3E%3Crect x='90' y='150' width='50' height='170'/%3E%3Crect x='150' y='230' width='90' height='90'/%3E%3Crect x='260' y='120' width='60' height='200'/%3E%3Crect x='340' y='190' width='40' height='130'/%3E%3Crect x='400' y='90' width='70' height='230'/%3E%3Crect x='490' y='170' width='110' height='150'/%3E%3Cpolygon points='620,60 645,10 670,60'/%3E%3Crect x='620' y='60' width='50' height='260'/%3E%3Crect x='690' y='140' width='80' height='180'/%3E%3Crect x='790' y='210' width='60' height='110'/%3E%3Crect x='870' y='110' width='90' height='210'/%3E%3Crect x='980' y='180' width='50' height='140'/%3E%3Crect x='1050' y='80' width='60' height='240'/%3E%3Crect x='1130' y='160' width='100' height='160'/%3E%3Crect x='1250' y='220' width='70' height='100'/%3E%3Crect x='1340' y='130' width='100' height='190'/%3E%3C/g%3E%3Crect x='0' y='318' width='1440' height='2' fill='%23ffffff' fill-opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 75% 30%, #3a3d42 0%, #26282c 45%, #141517 100%);
  background-position: center, center, center, center bottom, center;
  background-size: cover, cover, cover, cover, cover;
  background-repeat: no-repeat;
}
.slide-photo-note {
  position: absolute; right: 1.25rem; bottom: 3.5rem;
  font-size: 0.6875rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7);
  background: rgba(12, 12, 14, 0.55); padding: 0.2rem 0.5rem;
}
.hero-container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 7rem; padding-inline: 3.5rem; }

.slide-caption {
  position: relative; display: block;
  background: var(--orange); padding: 1rem 1.25rem 1.1rem; max-width: 34rem; margin-top: 2.5rem;
}
.slide-title {
  margin: 0; color: #fff; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.375rem, 2.2vw + 0.75rem, 2.125rem); line-height: 1.15; letter-spacing: 0.01em;
}
.slide-badge {
  position: absolute; right: 0; bottom: 100%;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 1.1875rem; line-height: 1;
  padding: 0.6rem 0.9rem; white-space: nowrap;
}
.slide-text { max-width: 32rem; margin: 1rem 0 1.25rem; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 2.75rem; height: 2.75rem; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(12, 12, 14, 0.55); color: #fff; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.slide-arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.slide-arrow.prev { left: 0; }
.slide-arrow.next { right: 0; }
.slide-arrow .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Search band ---------- */
.search-band { position: relative; z-index: 10; background: var(--grey-100); color: var(--ink); padding-bottom: 1.5rem; }
.search-tabs { display: flex; margin-top: -2.75rem; }
.search-tab {
  flex: 1 1 0; min-height: 2.75rem; padding: 0.4rem 0.75rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 0; border-top: 3px solid transparent; background: var(--orange); color: var(--ink); cursor: pointer;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15;
}
.search-tab.is-active { background: #fff; color: var(--ink); border-top-color: var(--orange); }
.search-tab:focus-visible { outline-offset: -3px; }

.search-panel { display: grid; gap: 0.85rem; padding-top: 1.25rem; margin: 0; }
.field label, .price-label { display: block; font-size: 0.75rem; color: var(--text); margin-bottom: 0.3rem; }
.price-label { display: flex; justify-content: space-between; align-items: baseline; }
.price-label output { color: var(--ink); font-weight: 700; font-size: 0.875rem; }
select, .input {
  width: 100%; height: 2.875rem; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; font-size: 0.9375rem;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
}
.input::placeholder { color: #8a97a4; }
.btn-search { height: 2.875rem; padding-inline: 2rem; }
.panel-note { margin: 0; font-size: 0.8125rem; color: var(--text); }

.range { position: relative; height: 2.875rem; display: flex; align-items: center; }
.range-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #cfd5dc; }
.range-fill { position: absolute; top: 0; height: 100%; background: var(--orange); border-radius: 2px; }
.range input[type="range"] {
  position: absolute; left: 0; width: 100%; margin: 0; height: 1.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; appearance: none; -webkit-appearance: none; pointer-events: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.range input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  width: 1.25rem; height: 1.25rem; margin-top: -0.5rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.range input[type="range"]:focus-visible { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ink); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-title { font-weight: 300; font-size: clamp(1.75rem, 3vw + 0.5rem, 2.375rem); text-align: center; letter-spacing: -0.01em; margin: 0; }
.section-title.left { text-align: left; }
.rule { display: block; width: 3rem; height: 3px; background: var(--orange); margin: 1rem auto 1.25rem; }
.rule.left { margin-inline: 0; }
.section-lead { max-width: 40rem; margin: 0 auto; }
.section-cta { text-align: center; margin: 2.5rem 0 0; }
.section-cta.small { font-size: 0.9375rem; margin-top: 2rem; }

.welcome { text-align: center; padding-top: 4rem; }
.welcome .lead { font-size: 1.0625rem; margin: 0; }

/* Featured vehicles */
.featured { background: var(--grey-050); }
.results { font-size: 0.875rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.car-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.car { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.ph {
  position: relative; aspect-ratio: 4 / 3; display: grid; align-content: center; justify-items: center; gap: 0.35rem;
  padding: 1rem; text-align: center; color: var(--heading); overflow: hidden;
  background: var(--hatch), var(--ph);
}
.ph-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.ph-icon { width: 3.5rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: 0.55; margin-bottom: 0.25rem; }
.ph-name { font-size: 0.875rem; font-weight: 600; }
.ph-note { font-size: 0.6875rem; letter-spacing: 0.04em; opacity: 0.75; }
.car-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.car-title { font-size: 1.0625rem; margin: 0 0 0.15rem; }
.car-title a { color: var(--ink); text-decoration: none; }
.car-title a:hover { color: var(--orange-deep); }
.car-trim { margin: 0; font-size: 0.875rem; }
.car-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6rem 0 1rem; }
.car-price { color: var(--orange-deep); font-size: 1.25rem; font-weight: 800; }
.car-miles { font-size: 0.875rem; }
.car .btn { margin-top: auto; align-self: flex-start; }
.empty { background: #fff; border: 1px dashed var(--line); padding: 2rem 1.25rem; text-align: center; margin-top: 1rem; }
.empty p:last-child { margin: 0; }

/* Why Payless */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.why-card { background: var(--grey-050); border-top: 3px solid var(--orange); padding: 1.75rem 1.5rem; }
.why-icon { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--orange-deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.0625rem; color: var(--ink); }
.why-card p { margin: 0; font-size: 0.9375rem; }

/* Body styles */
.style-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.style-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.75rem 0.75rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.style-tile:hover { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-soft); }
.style-icon { width: 4rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 0.5rem; }
.style-name { font-weight: 600; }
.style-count { font-size: 0.8125rem; color: var(--text); }
.styles-note { text-align: center; font-size: 0.9375rem; margin: 1.5rem 0 0; }

/* Financing band */
.finance-band { background: var(--orange); color: var(--ink); }
.finance-inner { display: grid; gap: 1.5rem; }
.finance-band h2 { color: var(--ink); font-weight: 300; font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.125rem); }
.finance-band p { color: var(--ink); max-width: 36rem; margin: 0; }
.finance-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Reviews */
.rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.75rem; margin: 0 0 2rem; }
.rating-num { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stars { color: var(--orange); font-size: 1.25rem; letter-spacing: 0.08em; line-height: 1; }
.rating-link { font-weight: 600; }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.review { background: var(--grey-050); border-left: 3px solid var(--orange); padding: 1.5rem; }
.review-text { margin: 0 0 1rem; font-style: italic; }
.review-by { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }

/* Visit us */
.visit-grid { display: grid; gap: 2rem; }
address { font-style: normal; margin: 0 0 1.5rem; }
.visit-row { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 0.9rem; }
.visit-row .icon { color: var(--orange-deep); margin-top: 0.2rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.map-ph {
  min-height: 18rem; display: grid; align-content: center; justify-items: center; gap: 0.35rem;
  background: var(--hatch), var(--ph); color: var(--heading); text-align: center; padding: 1.5rem;
}
.map-icon { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-100); color: var(--text); border-top: 4px solid var(--orange); padding: 3rem 0 1.5rem; font-size: 0.9rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo { display: block; margin: 0 0 1rem; color: var(--ink); }
.footer-logo .logo-img { height: 2.5rem; }
.footer-logo .logo-mark { display: none; flex-direction: column; gap: 0.3rem; }
.footer-logo.no-logo .logo-img { display: none; }
.footer-logo.no-logo .logo-mark { display: flex; }
.footer-brand p { margin: 0 0 0.75rem; }
.footer-col h3 { color: var(--ink); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid #d3d9e0; margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }
.footer-credit { flex-basis: 100%; font-size: 0.75rem; }

/* ---------- Chat mock ---------- */
.chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.chat-bubble {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--orange); color: var(--ink); border: 0; border-radius: 999px;
  padding: 0.7rem 0.9rem 0.7rem 1.1rem; font-weight: 700; font-size: 0.875rem; line-height: 1.2;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.35); cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.chat-bubble:hover { background: var(--ink); color: #fff; }
.chat-bubble .icon { width: 1.35rem; height: 1.35rem; }
.chat-bubble-text { display: none; }
.chat-panel {
  width: min(22rem, calc(100vw - 2rem)); background: #fff; color: var(--ink);
  border-radius: 8px; box-shadow: 0 16px 48px rgba(31, 35, 40, 0.32); overflow: hidden;
}
.chat-head { background: var(--ink); color: #fff; padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.chat-head strong { display: block; font-size: 0.9375rem; }
.chat-status { font-size: 0.75rem; opacity: 0.85; }
.chat-status::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); margin-right: 0.35rem; }
.chat-close { background: none; border: 0; color: #fff; width: 2rem; height: 2rem; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.chat-close:hover { background: rgba(255, 255, 255, 0.15); }
.chat-log { list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; max-height: 14rem; overflow: auto; font-size: 0.9rem; line-height: 1.45; }
.msg { padding: 0.55rem 0.8rem; border-radius: 12px; max-width: 88%; }
.msg.bot { background: var(--grey-050); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--orange); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-form { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; }
.chat-form .input { height: 2.5rem; border-color: var(--line); flex: 1; min-width: 0; }
.chat-note { margin: 0; padding: 0.6rem 1rem; background: var(--verify-bg); color: var(--verify-ink); font-size: 0.75rem; line-height: 1.4; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--ink); color: #fff; padding: 0.8rem 0.75rem 0.8rem 1.25rem; border-radius: 6px;
  box-shadow: 0 12px 32px rgba(31, 35, 40, 0.35); max-width: calc(100vw - 2rem); width: max-content; font-size: 0.9rem;
}
.toast p { margin: 0; }
.toast-close { background: none; border: 0; color: #fff; width: 2rem; height: 2rem; display: grid; place-items: center; cursor: pointer; border-radius: 50%; flex: none; }
.toast-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Tablet (768px) ---------- */
@media (min-width: 48em) {
  .ribbon span { display: inline; margin-left: 0.5rem; }
  .slide-caption { display: inline-block; }
  .chat-bubble-short { display: none; }
  .chat-bubble-text { display: inline; }
  .btn-call { width: auto; height: 2.75rem; padding: 0 1.1rem; }
  .btn-call-text { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .hero-container { padding-top: 7rem; padding-bottom: 8rem; padding-inline: 4.5rem; }
  .slide-caption { padding: 1.25rem 1.75rem 1.4rem; }
  .slide-arrow { width: 3.5rem; height: 3.5rem; }
  .search-tab { flex: 0 0 auto; padding: 0 1.75rem; font-size: 0.8125rem; }
  .search-panel { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 1.25rem; }
  .search-panel .field-price, .search-panel .btn-search, .search-panel .panel-note { grid-column: 1 / -1; }
  .section { padding: 4.5rem 0; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .style-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .finance-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .finance-actions { justify-content: flex-end; }
}

/* ---------- Desktop (1024px) ---------- */
@media (min-width: 64em) {
  .header-bar { height: 4.5rem; }
  .logo { margin-left: 0; padding: 0 1.75rem; }
  .logo-img { height: 3.25rem; max-width: 15rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; margin-left: auto; background: none; border: 0; box-shadow: none;
    max-height: none; overflow: visible;
  }
  .nav-list { display: flex; align-items: stretch; gap: 0; padding: 0; height: 100%; }
  .nav-list > li { display: flex; }
  .has-sub { position: relative; }
  .nav-link { width: auto; height: 100%; padding: 0 0.9rem; justify-content: center; }
  .nav-link.is-active { box-shadow: inset 0 -3px 0 var(--orange); }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 14rem; z-index: 40;
    background: #fff; border-top: 3px solid var(--orange); box-shadow: var(--shadow); padding: 0.5rem 0;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .sub a { padding: 0.55rem 1.1rem; }
  .sub a:hover { background: var(--grey-050); }
  .call-wrap { margin-left: 1rem; }
  .phone-tab::before { height: 2rem; }
  .tab-sq { width: 2.75rem; height: 2.75rem; }
  .hero-container { padding-top: 7.5rem; padding-bottom: 9rem; }
  .slide-arrow { width: 4rem; height: 4rem; }
  .slide-photo-note { bottom: 4rem; }
  .search-band { padding-bottom: 1.25rem; }
  .search-panel { grid-template-columns: 1fr 1fr 1fr 1.5fr auto; column-gap: 0; padding-top: 1.25rem; }
  .search-panel .field { padding-inline: 1.25rem; border-left: 1px solid #d3d9e0; }
  .search-panel .field:first-child { padding-left: 0; border-left: 0; }
  .search-panel .field-price { grid-column: auto; }
  .search-panel .btn-search { grid-column: auto; margin-left: 1.25rem; }
  .sell-panel { grid-template-columns: repeat(4, 1fr) auto; }
  .sell-panel .panel-note { grid-column: 1 / -1; margin-top: 0.75rem; }
  .car-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; }
  .chat { right: 1.5rem; bottom: 1.5rem; }
}

/* ---------- Wide (1440px+): arrows sit outside the container ---------- */
@media (min-width: 90em) {
  .hero-container { padding-inline: 1.25rem; }
}

/* ---------- Hero photo sources (demo only, Wikimedia Commons; credits in HANDOFF.md) ---------- */
.slide-1 { --photo: url("https://commons.wikimedia.org/wiki/Special:FilePath/Mercedes-Benz_W213_FL_E_350_4MATIC_AMG_Line_Obsidian_Black_Metallic_(14).jpg?width=1600"); }
.slide-2 { --photo: url("https://commons.wikimedia.org/wiki/Special:FilePath/2020_Mercedes-Benz_GLE_350_4Matic_front_6.16.19.jpg?width=1600"); }
.slide-3 { --photo: url("https://commons.wikimedia.org/wiki/Special:FilePath/Mercedes-AMG_X254_1X7A7416_(cropped).jpg?width=1600"); }
