/*
 * Weelx - homepage hero slideshow (16 Oct 2026).
 *
 * The hero container's own background becomes the "arrivals" image, so it is what paints first -
 * no flash before the script runs. hero-slider.js then lays the four slides on top of it and
 * cross-fades through them.
 *
 * The arrivals image carries its headline and button on the left, so it is pinned to the left edge:
 * narrower screens crop the car on the right, never the text.
 */
.elementor-216 .elementor-element.elementor-element-a979a69:not(.elementor-motion-effects-element-type-background) {
  background-image: url("/wp-content/uploads/weelx/hero-arrivals-2000.webp?v=20261016c") !important;
  background-position: left center !important;
  background-color: #1a1612;
  position: relative;
  overflow: hidden;
  /* Slide layers get ever-growing z-indexes; keep them inside the hero, under the header menu. */
  isolation: isolate;
}

@media (max-width: 767px) {
  .elementor-216 .elementor-element.elementor-element-a979a69:not(.elementor-motion-effects-element-type-background) {
    background-image: url("/wp-content/uploads/weelx/hero-arrivals-1000.webp?v=20261016c") !important;
  }
}

.weelx-hero-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.weelx-hero-slide.is-visible {
  opacity: 1;
}

/* The hero's own content (empty today) stays above the slides. */
.elementor-element-a979a69 > .e-con-inner {
  position: relative;
  z-index: 100000;
}

/* Invisible hit area over the "Download now" button painted in the arrivals image. */
.weelx-hero-cta {
  position: absolute;
  z-index: 100001;
  border-radius: 999px;
  display: block;
}

.weelx-hero-cta:focus-visible {
  outline: 2px solid #d9b56a;
  outline-offset: 3px;
}

.weelx-hero-cta[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .weelx-hero-slide {
    transition: none;
  }
}
