/**
 * Standard bottom content CTA — parallax image band.
 * v1.1.0 — full-bleed background on WPBakery row
 */

/* Kill Impreza/WPBakery gutters on the CTA row */
.l-section.ae-bottom-cta-row,
.l-section.ae-bottom-cta-row.height_medium,
.l-section.ae-bottom-cta-row.height_large,
.l-section.ae-bottom-cta-row.height_huge {
  position: relative;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

.ae-bottom-cta-row > .l-section-h,
.ae-bottom-cta-row .g-cols,
.ae-bottom-cta-row .vc_column_container,
.ae-bottom-cta-row .vc_column-inner,
.ae-bottom-cta-row .wpb_wrapper,
.ae-bottom-cta-row .wpb_text_column,
.ae-bottom-cta-row .wpb_text_column > .wpb_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.ae-bottom-cta {
  --ae-cta-red: #cc2229;
  --ae-cta-black: #161616;
  position: relative;
  overflow: visible;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  box-sizing: border-box;
}

/* Background lives on the full-canvas WPBakery row */
.l-section.ae-bottom-cta-row.ae-bottom-cta-row--has-bg {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: var(--ae-cta-black, #161616) !important;
  background-image: var(--ae-cta-image) !important;
  background-size: cover !important;
  background-position: center 60% !important;
  background-repeat: no-repeat !important;
  background-clip: border-box !important;
}

.l-section.ae-bottom-cta-row.ae-bottom-cta-row--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(22, 22, 22, 0.75);
}

.l-section.ae-bottom-cta-row.ae-bottom-cta-row--has-bg > .l-section-h {
  position: relative;
  z-index: 1;
}

.ae-bottom-cta-row--has-bg .ae-bottom-cta__bg,
.ae-bottom-cta-row--has-bg .ae-bottom-cta__overlay {
  display: none !important;
}

.ae-bottom-cta__bg {
  position: absolute;
  inset: -12% 0;
  left: 0;
  right: 0;
  width: 100%;
  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: scroll;
  z-index: 0;
}

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

.ae-bottom-cta__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.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 (prefers-reduced-motion: reduce) {
  .ae-bottom-cta__bg {
    transform: none !important;
  }
}
