@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #14231f;
  --green: #0a6257;
  --green2: #087d6b;
  --lime: #b8ef35;
  --paper: #f7f8f3;
  --muted: #69746f;
  --line: #e2e8e1;
  --white: #fff;
  --shadow: 0 18px 55px rgba(20, 35, 31, .11);
  --shadow-sm: 0 6px 18px rgba(20, 35, 31, .06);
  --shadow-hover: 0 22px 50px rgba(20, 35, 31, .14);
  --radius: 22px;
  --radius-sm: 14px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a, .btn {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9acb2a;
  outline-offset: 3px;
}

/* Container */
.wrap {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* Topline bar */
.topline {
  background: var(--green);
  color: #eaf7ed;
  font-size: 12px;
  padding: 8px 0;
}

.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topline a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 35, 31, .08);
  transition: box-shadow .2s ease;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(140px, 16vw, 194px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.brandmark {
  width: 42px;
  height: 38px;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--ink);
  font-size: 18px;
}

.brand strong {
  display: block;
  font: 800 19px 'Manrope', sans-serif;
  letter-spacing: -.7px;
  line-height: 1;
}

.brand small {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 700;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.navlinks a {
  white-space: nowrap;
  padding: 6px 2px;
  transition: color .2s ease;
}

.navlinks a:hover, .navlinks a.active {
  color: var(--green2);
}

.navactions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 35, 31, .14);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--lime);
  color: #18251b;
}

.btn-primary:hover {
  background: #c6f64d;
}

.btn-dark {
  background: var(--green);
  color: #fff;
}

.btn-dark:hover {
  background: var(--green2);
}

.btn-outline {
  border-color: #bfcac1;
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--green2);
  color: var(--green2);
}

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
}

.menu-toggle:hover {
  background: #f0f4ee;
  border-color: var(--green2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #e9eee5;
  min-height: 440px;
  border-radius: 0 0 28px 28px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 248, 243, .99) 0%, rgba(247, 248, 243, .94) 34%, rgba(247, 248, 243, .22) 64%, rgba(247, 248, 243, .02) 100%), url('assets/hero/BMW Driving 1.jpg') center 56%/cover;
  transform: scale(1.015);
  animation: heroImageDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-orb {
  display: none !important;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 56px 0 88px;
}

.hero-copy {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 2.3px;
  font-size: 10px;
  font-weight: 800;
  color: var(--green2);
}

.eyebrow::before {
  content: '';
  width: 25px;
  height: 2px;
  background: var(--lime);
  display: inline-block;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
}

h2 {
  font-size: clamp(25px, 3.4vw, 39px);
}

h3 {
  font-size: 19px;
  letter-spacing: -.5px;
}

.hero h1 span {
  color: var(--green2);
}

.hero p {
  max-width: 520px;
  color: #53605a;
  font-size: 17px;
  margin: 0 0 22px;
}

.hero-proof {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-proof b {
  color: var(--green2);
  font-size: 17px;
}

.hero-proof i {
  font-style: normal;
  color: var(--green2);
  font-size: 15px;
}

.hero-copy [data-hero-eyebrow],
.hero-copy [data-hero-headline] {
  transition: opacity .32s ease, transform .42s cubic-bezier(.2, .75, .25, 1);
}

.hero-copy.is-changing [data-hero-eyebrow],
.hero-copy.is-changing [data-hero-headline] {
  opacity: 0;
  transform: translateX(-24px);
}

.hero-copy [data-hero-headline] {
  min-height: 2.25em;
}

.hero-copy .btn .arrow-nudge {
  display: inline-block;
  transition: transform .2s ease;
}

.hero-copy .btn:hover .arrow-nudge {
  transform: translateX(5px);
}

.hero-slide-dots {
  display: flex;
  gap: 6px;
  margin-top: 19px;
  align-items: center;
}

.hero-slide-dots span {
  height: 4px;
  width: 13px;
  border-radius: 8px;
  background: #cbd5cc;
  transition: width .3s ease, background .3s ease;
}

.hero-slide-dots span.active {
  width: 28px;
  background: var(--green2);
}

@keyframes heroImageDrift {
  from { transform: scale(1.015) translateX(0); }
  to { transform: scale(1.06) translateX(-.8%); }
}

/* ==========================================================================
   Search Panel
   ========================================================================== */
.search-panel {
  position: relative;
  z-index: 10;
  margin: -46px auto 0;
  width: min(1120px, calc(100% - 40px));
  background: #fff;
  border: 1px solid #e7ebe5;
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field:focus-within {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(8, 125, 107, .12);
}

.field label {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
}

.search-panel .btn {
  align-self: stretch;
  min-height: 48px;
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-tight {
  padding: 44px 0;
}

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

.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.section-head h2 {
  margin-bottom: 6px;
}

.text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  border-bottom: 1px solid #94b6a9;
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.text-link:hover {
  color: var(--green2);
  border-color: var(--green2);
  transform: translateX(2px);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Category cards */
.category-card {
  position: relative;
  min-height: 200px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #21352d;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
  display: block;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1), opacity .7s ease;
}

.category-card.has-slider .category-card-img {
  opacity: 0;
  pointer-events: none;
}

.category-card.has-slider .category-card-img.active {
  opacity: 1;
  pointer-events: auto;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 18, 15, .86) 0%, rgba(4, 18, 15, .42) 45%, transparent 80%);
  transition: opacity .3s ease;
  z-index: 2;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card:hover img,
.category-card:hover .category-card-img.active {
  transform: scale(1.06);
}

.category-card div,
.category-card .category-card-info {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  pointer-events: none;
}

.category-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: #ffffff;
}

.category-card p {
  font-size: 12px;
  margin: 0;
  color: #e6ece8;
}

/* ==========================================================================
   CAR CARD & AUTOMATIC IMAGE SLIDERS (Section 4)
   ========================================================================== */
.car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .28s ease, border-color .28s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(10, 98, 87, .25);
}

.car-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef1eb;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

/* Slider container */
.car-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.car-slider-mainlink {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.car-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Smooth crossfade slide images */
.car-slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .45s ease-in-out, transform .45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.car-slider-img.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}

.car-slider-img[src$=".png"] {
  object-fit: contain;
  padding: 10px;
}

/* Manual Navigation Controls Removed — Automatic Transitions */
.slider-nav-btn,
.stage-nav-btn {
  display: none !important;
}

/* Slider Dots Pagination Indicator */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
  background: rgba(10, 35, 29, .28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 6px;
  border-radius: 20px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .6);
  pointer-events: none;
  transition: width .28s cubic-bezier(0.16, 1, 0.3, 1), background .28s ease;
}

.slider-dot.active {
  width: 18px;
  background: var(--lime);
}

/* Slide count badge */
.slider-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(10, 35, 29, .68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: .5px;
  pointer-events: none;
  line-height: 1.3;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #edf7d8;
  color: #416719;
  border-radius: 30px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
}

.car-category-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Car body details */
.car-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.car-body h3 {
  margin: 6px 0 5px;
  font-size: 18px;
}

.car-body h3 a {
  transition: color .2s ease;
}

.car-body h3 a:hover {
  color: var(--green2);
}

.muted {
  color: var(--muted);
}

.car-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.car-meta span {
  background: #f4f6f2;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.car-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.price {
  font: 800 20px 'Manrope', sans-serif;
  color: var(--ink);
}

.price small {
  font: 500 11px 'DM Sans', sans-serif;
  color: var(--muted);
  display: block;
}

.car-bottom .btn {
  padding: 10px 14px;
  font-size: 12px;
}

/* ==========================================================================
   Car Details Hero Gallery (car-details.html)
   ========================================================================== */
.car-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}

.car-detail-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef1eb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}

.stage-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease-in-out;
  will-change: opacity;
}

.stage-img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}


.stage-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 6;
  background: rgba(10, 35, 29, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 10px;
}

.car-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.car-gallery-thumbs button {
  width: 88px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1eb;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.car-gallery-thumbs button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 35, 31, .1);
}

.car-gallery-thumbs button.active {
  border-color: var(--green2);
  box-shadow: 0 4px 14px rgba(8, 125, 107, .25);
}

.car-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-pad {
  padding: 24px 0 0;
}

.detail-pad h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 8px;
}

.catalogue-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.catalogue-meta span {
  background: #f1f5ef;
  border: 1px solid #e2e8e1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.car-price-request {
  font-size: 27px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  margin: 6px 0 2px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: max-content;
}

/* ==========================================================================
   Catalogue Toolbar & Filters
   ========================================================================== */
.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(20, 35, 31, .04);
  font-size: 13px;
  color: var(--muted);
}

.catalogue-toolbar .field {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.catalogue-toolbar input,
.catalogue-toolbar select {
  min-height: 44px;
}

.catalogue-status {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.catalogue-fallback-note {
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 12px;
  border-radius: 10px;
}

.catalogue-fallback-note[hidden] {
  display: none !important;
}

/* ==========================================================================
   Stats & Marquee
   ========================================================================== */
.stats {
  background: var(--green);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
}

.stats-marquee {
  display: block;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.stats-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: max-content;
  animation: stats-scroll 34s linear infinite;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .stats:hover .stats-track,
  .stats-marquee:hover .stats-track {
    animation-play-state: paused;
  }
}

.stats-track .stat {
  flex: 0 0 auto;
  min-width: 210px;
  min-height: 48px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-track .stat > div:first-child {
  font-size: 24px;
  color: var(--lime);
  line-height: 1;
}

.stats-track .stat strong {
  font: 800 20px 'Manrope', sans-serif;
  color: #fff;
  display: block;
  white-space: nowrap;
}

.stats-track .stat span {
  font-size: 11px;
  color: #d3e5dd;
  display: block;
  white-space: nowrap;
}

@keyframes stats-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Steps, Location Cards & Split Layout
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #edf7d8;
  border-radius: 50%;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 16px;
  font-size: 14px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.location-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .24s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.location-card img {
  height: 156px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #07261f;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.location-card div {
  padding: 14px;
}

.location-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.location-card span {
  font-size: 11px;
  color: var(--muted);
}

.partner-band {
  background: #e9e9fb;
  border-radius: 22px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}

.partner-band p {
  color: #53605a;
  max-width: 520px;
}

.partner-art {
  font-size: 70px;
  min-width: 120px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split img {
  border-radius: 22px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.check-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  align-items: flex-start;
}

.check-list li::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  background: #e9f6d5;
  color: var(--green);
  border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  border-color: #c9d4c7;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green);
  line-height: 1;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(90deg, rgba(7, 54, 47, .94), rgba(7, 54, 47, .65)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 58px 0;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  max-width: 820px;
}

.page-hero p {
  max-width: 700px;
  color: #e1ece6;
  margin: 0;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  padding: 18px 0;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 700;
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 35px rgba(20, 35, 31, .06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card label, .side-card label {
  font-size: 12px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-card input, .form-card select, .form-card textarea,
.side-card input, .side-card select, .side-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.side-card input:focus, .side-card select:focus, .side-card textarea:focus {
  border-color: var(--green2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 125, 107, .12);
}

.form-card textarea, .side-card textarea {
  min-height: 100px;
  resize: vertical;
}

.form-card .full, .form-grid .full {
  grid-column: 1 / -1;
}

.notice {
  padding: 14px 18px;
  background: #edf7d8;
  border-radius: 12px;
  color: #395e17;
  font-size: 13px;
  line-height: 1.5;
}

/* City Directory */
.city-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.location-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-link:hover {
  transform: translateY(-2px);
  border-color: var(--green2);
  box-shadow: 0 8px 24px rgba(10, 45, 35, .08);
}

.location-link strong {
  color: var(--ink);
  font-size: 14px;
}

.location-link span:not(.text-link) {
  color: var(--muted);
  font-size: 12px;
}

.location-link .text-link {
  font-size: 12px;
  margin-top: 3px;
}

.homepage-city-directory {
  background: linear-gradient(180deg, #f7faf7 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.homepage-city-directory .city-directory-grid {
  margin-top: 24px;
}

.directory-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.directory-note a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: relative;
  background: #fff;
  color: var(--ink);
  margin-top: 60px;
  box-shadow: 0 -1px 0 rgba(20, 35, 31, .06);
}

footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--green);
}

.footer-cta {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.footer-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-cta h3 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

.footer-cta p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-main {
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green);
  margin: 0 0 13px;
}

.footer-grid a {
  display: block;
  font-size: 12px;
  color: #4f5d56;
  margin: 9px 0;
  transition: color .2s ease, transform .2s ease;
}

.footer-grid a:hover {
  color: var(--green2);
  transform: translateX(2px);
}

.footer-about p {
  font-size: 12px;
  color: #64716b;
  max-width: 270px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.socials a {
  display: grid;
  place-items: center;
  border: 1px solid #dce5dd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--green);
  background: #f8faf7;
  font-size: 11px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.socials a:hover {
  background: #edf7d8;
  color: var(--green);
}

.copyright {
  border-top: 1px solid #e7ece7;
  padding: 18px 0;
  font-size: 11px;
  color: #6d7871;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.copyright a {
  color: #4f5d56;
}

/* Floating Action Bars & Attention-Grabbing Glow/Flash */
.desktop-contact-rail {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-call, .btn-whatsapp {
  position: relative;
  overflow: hidden;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  white-space: nowrap;
  font-size: 13px !important;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease;
  will-change: transform, box-shadow;
}

/* Light gleam/flash sweep across both buttons */
.btn-call::before,
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: buttonLightFlash 3.2s infinite ease-in-out;
}

.btn-whatsapp::before {
  animation-delay: 1.6s;
}

@keyframes buttonLightFlash {
  0% {
    left: -90%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  35% {
    left: 140%;
    opacity: 1;
  }
  36%, 100% {
    left: 140%;
    opacity: 0;
  }
}

/* Call button pulsing glow & flash */
.btn-call {
  background: linear-gradient(135deg, #0099f7 0%, #007bc2 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  animation: callGlowPulse 2.8s infinite ease-in-out;
}

.btn-call:hover {
  background: linear-gradient(135deg, #0ba2ff 0%, #0087d4 100%) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 143, 224, .55), 0 0 20px rgba(0, 162, 255, .6) !important;
  animation-play-state: paused;
}

@keyframes callGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 153, 247, 0.75), 0 8px 24px rgba(0, 123, 194, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 153, 247, 0), 0 10px 28px rgba(0, 153, 247, 0.6), 0 0 22px rgba(0, 180, 255, 0.55);
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 247, 0), 0 8px 24px rgba(0, 123, 194, 0.35);
    transform: scale(1);
  }
}

/* WhatsApp button pulsing glow & flash */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #169c46 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  animation: whatsappGlowPulse 2.8s infinite ease-in-out 1.4s;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae36f 0%, #17a84b 100%) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .55), 0 0 20px rgba(37, 211, 102, .6) !important;
  animation-play-state: paused;
}

@keyframes whatsappGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8), 0 8px 24px rgba(22, 156, 70, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, 0.6), 0 0 22px rgba(46, 230, 114, 0.55);
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(22, 156, 70, 0.35);
    transform: scale(1);
  }
}

.mobile-bottom {
  display: none;
}

/* ==========================================================================
   UI Animations & Scroll Reveals
   ========================================================================== */
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1), transform .5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger-index, 0) * 0.05s);
  will-change: opacity, transform;
}

.reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints Optimization (Section 3)
   Tested across 320px to 1600px+
   ========================================================================== */

/* 1. Ultra-wide screens (>1600px) */
@media (min-width: 1600px) {
  .wrap {
    width: min(1360px, calc(100% - 64px));
  }
  .hero-inner {
    min-height: 480px;
  }
}

/* 2. Large desktop (1440px - 1599px) */
@media (max-width: 1599px) {
  .wrap {
    width: min(1200px, calc(100% - 48px));
  }
}

/* 3. Small desktop (1024px - 1279px) */
@media (max-width: 1279px) {
  .navlinks {
    gap: 14px;
    font-size: 12.5px;
  }
  .phone {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* 4. Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-panel {
    grid-template-columns: 1fr 1fr;
    margin-top: -60px;
    padding: 14px;
  }
  .search-panel .field:first-child,
  .search-panel .btn {
    grid-column: 1 / -1;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .desktop-contact-rail {
    display: none;
  }
  .navactions .btn-outline {
    display: none;
  }
}

/* Mobile Navigation Breakpoint (<=900px) */
@media (max-width: 900px) {
  .nav {
    min-height: 68px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 0;
  }
  .brand-logo {
    width: 168px;
    max-height: 52px;
  }
  .menu-toggle {
    display: inline-flex;
    order: 3;
  }
  .navactions {
    order: 2;
    margin-left: auto;
  }
  .navlinks {
    display: none;
    order: 4;
    width: 100%;
    margin: 8px 0 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open {
    display: flex;
    animation: menuSlideDown .24s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .navlinks a {
    padding: 13px 4px;
    border-bottom: 1px solid #eef0eb;
    font-size: 14px;
  }
  .navlinks a:last-child {
    border-bottom: 0;
  }
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Small tablet (576px - 767px) */
@media (max-width: 767px) {
  .wrap {
    width: min(100% - 32px, 640px);
  }
  .topline {
    font-size: 11px;
  }
  .topline .wrap {
    justify-content: center;
    text-align: center;
  }
  .topline .desktop-only {
    display: none;
  }
  .hero, .hero-inner {
    min-height: 480px;
  }
  .hero-inner {
    align-items: flex-start;
    padding: 44px 0 100px;
  }
  .hero h1 {
    font-size: clamp(34px, 8vw, 46px);
  }
  .hero p {
    font-size: 15px;
  }
  .search-panel {
    grid-template-columns: 1fr;
    margin-top: -68px;
    gap: 10px;
  }
  .search-panel .field,
  .search-panel .field:first-child,
  .search-panel .btn {
    grid-column: 1;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .car-detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .car-detail-stage {
    aspect-ratio: 4/3;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split img {
    max-height: 280px;
  }
  .partner-band {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .partner-art {
    display: none;
  }
  .city-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .footer-cta .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .catalogue-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .catalogue-toolbar .field {
    width: 100%;
    flex: none;
  }
  .mobile-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .09);
  }
  .mobile-bottom .btn {
    flex: 1;
    min-height: 44px;
  }
  .copyright {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* 6. Standard mobile (360px - 430px) */
@media (max-width: 430px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .brand-logo {
    width: 146px;
    max-height: 46px;
  }
  .navactions .btn-primary {
    padding: 9px 12px;
    font-size: 11.5px;
  }
  .hero-inner {
    padding: 38px 0 96px;
  }
  .hero h1 {
    font-size: clamp(32px, 9.5vw, 40px);
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 14px;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .car-bottom {
    flex-direction: row;
    align-items: center;
  }
  .car-gallery-thumbs {
    gap: 8px;
  }
  .car-gallery-thumbs button {
    width: 76px;
    height: 56px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* 7. Small mobile (320px - 359px) */
@media (max-width: 359px) {
  .wrap {
    width: calc(100% - 18px);
  }
  .brand-logo {
    width: 128px;
  }
  .navactions .btn-primary {
    padding: 8px 10px;
    font-size: 11px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .search-panel {
    padding: 10px;
    margin-top: -64px;
  }
  .city-directory-grid {
    grid-template-columns: 1fr;
  }
  .car-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .car-bottom .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .car-gallery-thumbs button {
    width: 66px;
    height: 50px;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion Parity
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .hero-bg {
    animation: none !important;
  }

  .stats-track {
    animation-duration: 90s !important;
  }

  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .car-slider-img, .stage-img {
    transition: none !important;
  }

  .btn-call, .btn-whatsapp, .btn-call::before, .btn-whatsapp::before {
    animation: none !important;
    transform: none !important;
  }
}
