/* ========================================
   BMW USA — Teaser / Feature Sections
   Source: BUILD_PLAN §3 (Step 3.6)
   ======================================== */

.teaser-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  width: 100%;
}

.teaser-section__image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.teaser-section__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.teaser-section:hover .teaser-section__image img {
  transform: scale(1.03);
}

.teaser-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}

.teaser-section__eyebrow {
  font-size: var(--eyebrow-1-size);
  font-weight: var(--eyebrow-1-weight);
  letter-spacing: var(--eyebrow-1-ls);
  text-transform: uppercase;
  color: var(--bmw-light-text);
  margin-bottom: 12px;
}

.teaser-section__title {
  font-size: var(--headline-3-size);
  font-weight: var(--headline-3-weight);
  color: var(--bmw-dark-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.teaser-section__description {
  font-size: var(--body-default-size);
  color: var(--bmw-medium-text);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

.teaser-section__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Dark Theme Variant ===== */
.teaser-section--dark {
  background: var(--bmw-black);
}

.teaser-section--dark .teaser-section__title {
  color: var(--bmw-white);
}

.teaser-section--dark .teaser-section__description {
  color: rgba(255, 255, 255, 0.7);
}

.teaser-section--dark .teaser-section__eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Image Left Variant (default) ===== */
.teaser-section--image-left {
  /* image is first child */
}

.teaser-section--image-left .teaser-section__image {
  order: 0;
}

.teaser-section--image-left .teaser-section__content {
  order: 1;
}

/* ===== Image Right Variant ===== */
.teaser-section--image-right .teaser-section__image {
  order: 1;
}

.teaser-section--image-right .teaser-section__content {
  order: 0;
}

/* ===== Vehicle Teaser Row (2-3 vehicles) ===== */
.vehicle-teaser-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.vehicle-teaser-row__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.vehicle-teaser-row__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vehicle-teaser-row__item:hover img {
  transform: scale(1.05);
}

.vehicle-teaser-row__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-teaser-row__title {
  font-size: var(--headline-5-size);
  font-weight: 700;
  color: var(--bmw-white);
}

.vehicle-teaser-row__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-teaser-row__actions .cmp-button {
  color: var(--bmw-white);
  font-size: var(--label-3-bold-size);
}

.vehicle-teaser-row__actions .cmp-button:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .teaser-section {
    grid-template-columns: 1fr;
  }

  .teaser-section__image {
    min-height: 300px;
    order: 0 !important;
  }

  .teaser-section__content {
    padding: 40px 24px;
    order: 1 !important;
  }

  .vehicle-teaser-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .vehicle-teaser-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .teaser-section__content {
    padding: 32px 16px;
  }

  .vehicle-teaser-row__overlay {
    padding: 16px;
  }
}
