/**
 * Standard bottom content CTA — parallax image band.
 * v1.0.0
 */

.ae-bottom-cta {
  --ae-cta-red: #cc2229;
  --ae-cta-black: #161616;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 1.25rem;
}

.ae-bottom-cta__bg {
  position: absolute;
  inset: -12% 0;
  background-color: var(--ae-cta-black);
  background-image: var(--ae-cta-image);
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

.ae-bottom-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.75);
  z-index: 1;
}

.ae-bottom-cta__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin-inline: auto;
}

.ae-bottom-cta__title {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}

.ae-bottom-cta__text {
  margin: 0 auto 1.5rem;
  color: #f0f0f0;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.ae-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ae-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.ae-bottom-cta__btn--primary {
  background: var(--ae-cta-red);
  color: #fff;
  border: 1px solid var(--ae-cta-red);
}

.ae-bottom-cta__btn--primary:hover,
.ae-bottom-cta__btn--primary:focus-visible {
  background: #b01c22;
  border-color: #b01c22;
  color: #fff;
}

.ae-bottom-cta__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.ae-bottom-cta__btn--ghost:hover,
.ae-bottom-cta__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 900px) {
  .ae-bottom-cta__bg {
    background-attachment: scroll;
    inset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-bottom-cta__bg {
    background-attachment: scroll;
    transform: none !important;
  }
}
