/* Swidian public site — automotive charcoal / off-white / red accent */

:root {
  --primary-color: #121212;
  --secondary-color: #4a4a45;
  --accent-color: #c8102e;
  --background-color: #f3f2ef;
  --text-color: #2c2c28;
  --text-dark-color: #0e0e0c;
  --header-color: #ffffff;
  --footer-color: #0e0e0c;
  --button-color: #c8102e;
  --button-text-color: #ffffff;
  --max-content-width: 1180px;
  --border-radius: 2px;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --surface: #ffffff;
  --muted: var(--secondary-color);
  --line: rgba(18, 18, 18, 0.1);
  --shadow-soft: 0 18px 50px rgba(14, 14, 12, 0.09);
  --header-h: 4.5rem;
  --space: clamp(1rem, 2.5vw, 2rem);
  --atmosphere:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(200, 16, 46, 0.08), transparent 52%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(18, 18, 18, 0.06), transparent 48%),
    linear-gradient(180deg, #ebeae5 0%, var(--background-color) 38%, #e6e5e0 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--atmosphere);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-color);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container,
.site-header__inner,
.hero__content,
.site-footer__inner,
.site-footer__bottom,
.flash-stack {
  width: min(100% - 2 * var(--space), var(--max-content-width));
  margin-inline: auto;
}

.site-main {
  min-height: 50vh;
}

/* —— Banner —— */
.site-banner {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 0.65rem var(--space);
  font-size: 0.9375rem;
}

/* —— Header —— */
.site-header {
  background: color-mix(in srgb, var(--header-color) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(14, 14, 12, 0.06);
  background: color-mix(in srgb, var(--header-color) 96%, transparent);
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-logo {
  text-decoration: none;
  color: var(--text-dark-color);
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.site-logo__img {
  height: 2.75rem;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.primary-nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-dark-color);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
}

.primary-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav__link:hover::after,
.primary-nav__link.is-active::after {
  transform: scaleX(1);
}

.primary-nav__link--btn {
  background: var(--button-color);
  color: var(--button-text-color) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--border-radius);
}

.primary-nav__link--btn::after {
  display: none;
}

.primary-nav__link--btn:hover {
  filter: brightness(1.08);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--button-color);
  color: var(--button-text-color);
  border-color: var(--button-color);
}

.btn--primary:hover {
  color: var(--button-text-color);
  filter: brightness(1.06);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--outline:hover {
  background: #fff;
  color: var(--primary-color);
}

.section .btn--outline,
.form-narrow .btn--outline,
.vehicle-summary .btn--outline {
  color: var(--text-dark-color);
  border-color: var(--primary-color);
}

.section .btn--outline:hover,
.vehicle-summary .btn--outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark-color);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

/* —— Hero (full-bleed) —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #2a2a28 0%, #1a1a1a 40%, #3a2024 100%);
}

.hero__media[data-no-image="1"] {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200, 16, 46, 0.35), transparent 55%),
    linear-gradient(145deg, #1f1f1d 0%, #121210 50%, #2c181c 100%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero ken 18s ease-in-out infinite alternate;
}

@keyframes heroKen {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, calc(var(--hero-overlay, 45) / 100 + 0.25)) 0%,
    rgba(10, 10, 10, calc(var(--hero-overlay, 45) / 100 * 0.55)) 45%,
    rgba(10, 10, 10, calc(var(--hero-overlay, 45) / 100 * 0.25)) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: clamp(3.25rem, 9vh, 6rem) 0 clamp(3.75rem, 10vh, 6.5rem);
  max-width: 40rem;
  animation: fadeUp 1s var(--ease-out) both;
}

.hero--pos-center .hero__content {
  text-align: center;
  margin-inline: auto;
  max-width: 42rem;
}

.hero--pos-right .hero__content {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.hero--pos-right .hero__actions {
  justify-content: flex-end;
}

.hero--pos-center .hero__actions {
  justify-content: center;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
  max-width: 28rem;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero--pos-center .hero__subtitle {
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-title--sm {
  font-size: 1.35rem;
}

.section-lead {
  color: var(--muted);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.04), transparent),
    var(--atmosphere);
}

.page-hero__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin: 0 0 0.65rem;
}

.page-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.page-hero__lead {
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
}

/* —— Intro / USP —— */
.intro-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.intro-section__grid--solo {
  grid-template-columns: 1fr;
  max-width: 40rem;
}

.intro-section__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.usp-section {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
}

.usp-section .usp-item__title {
  color: #fff;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.usp-item {
  padding: 0.25rem 0;
  border-top: 2px solid var(--accent-color);
  padding-top: 1rem;
  animation: fadeUp 0.7s ease both;
}

.usp-item:nth-child(2) { animation-delay: 0.08s; }
.usp-item:nth-child(3) { animation-delay: 0.16s; }
.usp-item:nth-child(4) { animation-delay: 0.24s; }
.usp-item:nth-child(5) { animation-delay: 0.32s; }
.usp-item:nth-child(6) { animation-delay: 0.4s; }

.usp-item__title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.usp-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* —— Vehicle grid / cards —— */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vehicle-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.vehicle-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.vehicle-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #d8d7d2;
  overflow: hidden;
}

.vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.vehicle-card:hover .vehicle-card__media img {
  transform: scale(1.05);
}

.vehicle-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4d4d0, #b8b8b2);
}

.vehicle-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  color: #fff;
}

.vehicle-card__badge--sold { background: #666; }
.vehicle-card__badge--reserved { background: #d97706; }
.vehicle-card__badge--new { background: #059669; }

.vehicle-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.vehicle-card__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.vehicle-card__title a {
  color: var(--text-dark-color);
  text-decoration: none;
}

.vehicle-card__title a:hover {
  color: var(--accent-color);
}

.vehicle-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.vehicle-card__meta li:not(:last-child)::after {
  content: '·';
  margin-left: 0.75rem;
  opacity: 0.5;
}

.vehicle-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-color);
  margin: 0;
}

/* —— CTA —— */
.cta-section {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--primary-color);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: 0.5rem;
}

.cta-section__title {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Extra section —— */
.extra-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.extra-section--right .extra-section__copy {
  order: 2;
}

.extra-section__figure img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* —— Inventory —— */
.inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.inventory-filters {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.filter-form__group {
  margin-bottom: 0.9rem;
}

.filter-form__group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-dark-color);
}

.filter-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.filter-form input,
.filter-form select,
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--text-dark-color);
}

.filter-form input:focus,
.filter-form select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 45%, transparent);
  border-color: var(--accent-color);
}

.filter-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.inventory-toolbar {
  margin-bottom: 1rem;
}

.inventory-toolbar__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border-radius: var(--border-radius);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
  justify-content: center;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-dark-color);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
}

.pagination__link.is-active,
.pagination__link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* —— Vehicle detail —— */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-color);
}

.vehicle-detail__layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.vehicle-gallery__main {
  background: #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.vehicle-gallery__main-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: none;
}

.vehicle-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.vehicle-gallery__thumb {
  flex: 0 0 5.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.7;
}

.vehicle-gallery__thumb.is-active,
.vehicle-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--accent-color);
}

.vehicle-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-gallery__placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d4d4d0, #b8b8b2);
  border-radius: var(--border-radius);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.gallery-lightbox__close { top: 1rem; right: 1rem; }
.gallery-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

.vehicle-summary {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.vehicle-summary__status {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin: 0 0 0.35rem;
}

.vehicle-summary__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.vehicle-summary__price {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 0 0.35rem;
}

.vehicle-summary__vat {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.vehicle-summary__specs {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.vehicle-summary__specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vehicle-summary__specs span {
  color: var(--muted);
}

.vehicle-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vehicle-block {
  margin-bottom: 2.5rem;
}

.vehicle-block__title {
  font-size: 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  margin-bottom: 1rem;
}

.vehicle-block__lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-group__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-group__list li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  font-size: 0.9375rem;
}

.feature-group__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent-color);
  border-radius: 1px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
}

.spec-grid__item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-grid__item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.spec-grid__item dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark-color);
}

/* —— Forms —— */
.form-narrow {
  max-width: 40rem;
}

.form-intro {
  margin-bottom: 2rem;
}

.form-vehicle-ref {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.form-vehicle-ref img {
  width: 7.5rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.form-vehicle-ref__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

.form__group {
  margin-bottom: 1rem;
}

.form__group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form__fieldset legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding: 0;
}

.form__error {
  color: var(--accent-color);
  font-size: 0.8125rem;
  margin: 0.35rem 0 0;
}

.form__group.has-error input,
.form__group.has-error textarea {
  border-color: var(--accent-color);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
}

.contact-info__address {
  font-style: normal;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.contact-info__hours-title {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
}

.contact-form-wrap {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* —— Content page —— */
.content-page {
  max-width: 48rem;
}

.content-page__figure {
  margin: 0 0 2rem;
}

.content-page__figure img {
  width: 100%;
  border-radius: var(--border-radius);
}

.prose {
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-color);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 3rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__name,
.site-footer__heading {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.site-footer__logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.85rem;
}

.site-footer__text {
  font-size: 0.9375rem;
  margin: 0;
}

.site-footer__address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.hours-list__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.site-footer__copy {
  margin: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* —— Flash —— */
.flash-stack {
  margin: 1rem auto 0;
  display: grid;
  gap: 0.5rem;
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary-color);
  animation: fadeUp 0.4s ease both;
}

.flash p { margin: 0; }

.flash--success { border-left-color: #059669; }
.flash--error { border-left-color: var(--accent-color); }
.flash--info { border-left-color: #2563eb; }

.flash__close {
  background: none;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: var(--muted);
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding: 1rem var(--space);
}

.cookie-banner__inner {
  width: min(100%, var(--max-content-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.9375rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— Mobile sticky CTA —— */
.mobile-sticky-cta {
  display: none;
}

/* —— Forms polish —— */
.form__group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}

.form__group--checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.was-validated :invalid {
  border-color: #b91c1c;
}

.was-validated :valid {
  border-color: #15803d;
}

/* —— Reveal motion —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-color);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--space) 1.25rem;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .primary-nav__link {
    display: block;
    padding: 0.75rem 0.25rem;
  }

  .primary-nav__link--btn {
    text-align: center;
    margin-top: 0.5rem;
  }

  .site-header {
    position: relative;
  }

  .site-header--sticky {
    position: sticky;
  }

  .intro-section__grid,
  .extra-section__grid,
  .contact-layout,
  .vehicle-detail__layout,
  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .inventory-filters {
    position: static;
  }

  .vehicle-summary {
    position: static;
  }

  .feature-groups {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(78vh, 640px);
  }

  .hero__brand {
    font-size: clamp(1.85rem, 8vw, 2.65rem);
  }
}

@media (max-width: 640px) {
  .vehicle-grid,
  .usp-grid,
  .site-footer__inner,
  .spec-grid,
  .form__row,
  .filter-form__row {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  body.site.has-sticky-cta {
    padding-bottom: 4.25rem;
  }

  body.site.has-sticky-cta .cookie-banner {
    bottom: 3.75rem;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--primary-color);
  }

  .mobile-sticky-cta__btn {
    flex: 1;
    text-align: center;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
  }

  .mobile-sticky-cta__btn--call {
    background: var(--primary-color);
  }

  .mobile-sticky-cta__btn--wa {
    background: #128c7e;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__img {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

