/* ========================================
   BMW USA — Hero Section
   Source: BUILD_PLAN §3 (Step 3.3), §2
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  margin-top: 0;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero__background img,
.hero__background picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 80px 48px;
  max-width: 1600px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--eyebrow-1-size);
  font-weight: 600;
  letter-spacing: var(--eyebrow-1-ls);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.hero__headline {
  font-size: var(--headline-2-size);
  font-weight: 700;
  color: var(--bmw-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 740px;
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

/* CTA buttons on hero */
.hero__actions .cmp-button--box {
  border-color: var(--bmw-white);
  color: var(--bmw-white);
}

.hero__actions .cmp-button--box:hover {
  background: var(--bmw-white);
  color: var(--bmw-dark-text);
}

.hero__actions .cmp-button--box.cmp-button--fill {
  background: var(--bmw-blue);
  border-color: var(--bmw-blue);
  color: var(--bmw-white);
}

.hero__actions .cmp-button--box.cmp-button--fill:hover {
  background: #005099;
  border-color: #005099;
  color: var(--bmw-white);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hero-bounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Responsive hero */
@media (max-width: 1023px) {
  .hero__content {
    padding: 40px 24px 60px;
    justify-content: flex-end;
  }

  .hero__headline {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero__subheadline {
    font-size: 1rem;
  }

  .hero__actions {
    padding-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 500px;
    max-height: 700px;
  }

  .hero__content {
    padding: 32px 16px 48px;
  }

  .hero__headline {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .cmp-button--box {
    width: 100%;
    justify-content: center;
  }
}

/* Centered hero variant */
.hero--center .hero__content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero--center .hero__headline {
  text-align: center;
}

.hero--center .hero__subheadline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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