/* Auto Elite — vanilla hero (replaces Slider Revolution).
   Single-slide: static bg + overlay + content.
   Multi-slide: cross-fade carousel via hero.js. */

.ae-hero {
  position: relative;
  width: 100%;
  min-height: 56vw;
  max-height: 900px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Lato', 'Roboto', system-ui, sans-serif;
}
@media (min-width: 1240px) {
  .ae-hero { min-height: 720px; }
}
@media (max-width: 768px) {
  .ae-hero { min-height: 480px; }
}
@media (max-width: 480px) {
  .ae-hero { min-height: 380px; }
}

.ae-hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ae-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}
.ae-hero-slide.is-active { opacity: 1; }

/* Single-slide hero — just show the bg always */
.ae-hero--single .ae-hero-slide { opacity: 1; }

/* Multi-slide hero — per-slide bg + overlay + content all live inside .ae-hero-slide */
.ae-hero--multi .ae-hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
}
.ae-hero--multi .ae-hero-slide .ae-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(60deg, rgba(12,12,12,1) 0%, rgba(12,12,12,1) 15%, rgba(12,12,12,0.5) 60%, rgba(12,12,12,1) 100%);
  pointer-events: none;
}
.ae-hero--multi .ae-hero-slide .ae-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  pointer-events: auto;
}

.ae-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(60deg, rgba(12,12,12,1) 0%, rgba(12,12,12,1) 15%, rgba(12,12,12,0.5) 60%, rgba(12,12,12,1) 100%);
  pointer-events: none;
}

.ae-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  padding: 60px 40px;
  text-align: center;
}
@media (max-width: 768px) {
  .ae-hero-content { padding: 40px 20px; }
}

.ae-hero-content,
.ae-hero-content * { color: #fff !important; }
.ae-hero-content a.ae-hero-btn { color: inherit; }

.ae-hero-title {
  font-size: clamp(36px, 6vw, 120px) !important;
  font-weight: 400 !important;
  letter-spacing: -3px !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
  margin: 0 0 20px !important;
  color: #fff !important;
}

.ae-hero-subtitle {
  font-size: clamp(18px, 2.4vw, 45px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  margin: 0 0 24px !important;
  color: #fff !important;
}

.ae-hero-body {
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 880px;
}

.ae-hero-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.ae-hero-btn {
  display: inline-block !important;
  padding: 14px 32px !important;
  font-size: clamp(14px, 1.2vw, 22px) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.ae-hero-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}
.ae-hero-btn--ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}
.ae-hero-btn--ghost:hover {
  background: #fff;
  color: #000;
}

/* Multi-slide nav */
.ae-hero-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.ae-hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ae-hero-dot:hover { background: rgba(255,255,255,0.7); }
.ae-hero-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.ae-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ae-hero-arrow:hover { background: rgba(0,0,0,0.7); }
.ae-hero-arrow--prev { left: 20px; }
.ae-hero-arrow--next { right: 20px; }
@media (max-width: 768px) {
  .ae-hero-arrow { width: 36px; height: 36px; font-size: 18px; }
}

/* Two-column hero layout when feature_image present */
.ae-hero-content:has(.ae-hero-feature) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1240px;
  width: 100%;
  padding: 60px 40px;
}
.ae-hero-feature {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ae-hero-feature img {
  max-width: 100% !important;
  max-height: 500px !important;
  height: auto !important;
  width: auto !important;
  border-radius: 4px;
  display: block;
}
.ae-hero-text { text-align: left; }
@media (max-width: 768px) {
  .ae-hero-content:has(.ae-hero-feature) {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 30px 20px;
    text-align: center;
  }
  .ae-hero-text { text-align: center; }
  .ae-hero-feature img { max-height: 300px !important; }
}

.ae-hero--multi .ae-hero-slide .ae-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ae-hero--multi .ae-hero-slide .ae-hero-content:has(.ae-hero-feature) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px;
  align-items: center;
  position: absolute;
  inset: 0;
  padding: 60px 40px;
}
