/*
 * Divenire pre-footer.
 * The background image is decorative and supplied by the rendered component.
 */

.pre-footer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 8vw, 6rem);
  background-color: var(--divenire-color-dark);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--divenire-color-light);
  text-align: center;
}

.pre-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--divenire-color-overlay);
}

.pre-footer--without-image::before {
  background: rgba(39, 38, 33, 0.94);
}

.pre-footer__content {
  width: min(100%, 47.5rem);
  margin-inline: auto;
}

.pre-footer__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--divenire-color-primary);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pre-footer__title {
  margin-bottom: 1rem;
  color: var(--divenire-color-light);
  text-transform: none;
}

.pre-footer__text {
  margin-inline: auto;
  color: var(--divenire-color-light);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.65;
}

.pre-footer__cta {
  margin-top: 0.75rem;
}

.pre-footer__cta:hover {
  border-color: var(--divenire-color-dark);
  background: var(--divenire-color-dark);
  color: var(--divenire-color-light);
}

.pre-footer :where(a, button):focus-visible {
  outline-color: var(--divenire-color-light);
}

@media (max-width: 767px) {
  .pre-footer {
    padding-block: clamp(3.5rem, 15vw, 4.5rem);
    background-position: 58% 50%;
  }
}
