.CTABlock {
  --cta-reveal-duration: 1.2s;
  --cta-reveal-ease: ease;
  --cta-content-delay: 0.15s;

  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  position: relative;
  width: 100%;
}

/* Full-bleed by default; the shell just clips the image slide-up. */
.CTABlock__shell {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.CTABlock__media,
.CTABlock__overlay {
  inset: 0;
  position: absolute;
}

/*
 * Scroll-triggered entrance (JS adds `is-revealed` via IntersectionObserver):
 * the image slides up into place while the text slides in from the left and
 * fades. transform/opacity only — compositor friendly, no layout work.
 * The image starts scaled up so its lower start position never exposes a
 * gap above it inside the clipped shell.
 */
.CTABlock--slideReveal .CTABlock__image {
  transform: translateY(6%) scale(1.12);
  transition: transform var(--cta-reveal-duration) var(--cta-reveal-ease);
}

.CTABlock--slideReveal.is-revealed .CTABlock__image {
  transform: translateY(0) scale(1);
}

.CTABlock .CTABlock__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.CTABlock__overlay {
  background: rgba(0, 0, 0, 0.5);
}

.CTABlock__container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 358px;
  padding: 112px 64px;
  position: relative;
  z-index: 1;
}

.CTABlock__content {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 768px;
  text-align: center;
  width: 100%;
}

/* Text slides in from the left and fades in. */
.CTABlock--slideReveal .CTABlock__content {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity var(--cta-reveal-duration) var(--cta-reveal-ease)
      var(--cta-content-delay),
    transform var(--cta-reveal-duration) var(--cta-reveal-ease)
      var(--cta-content-delay);
}

.CTABlock--slideReveal.is-revealed .CTABlock__content {
  opacity: 1;
  transform: translateX(0);
}

.CTABlock__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.CTABlock__title {
  color: #fff;
  font-size: 68px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.35px;
  line-height: 1.2;
  margin: 0;
}

.CTABlock__text {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.CTABlock__text p {
  margin: 0;
}

.CTABlock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 991px) {
  .CTABlock__container {
    min-height: 320px;
    padding: 88px 32px;
  }

  .CTABlock__title {
    font-size: 52px;
  }

  .CTABlock__text {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .CTABlock__container {
    min-height: 300px;
    padding: 72px 20px;
  }

  .CTABlock__content {
    gap: 24px;
  }

  .CTABlock--slideReveal .CTABlock__content {
    transform: translateX(-28px);
  }

  .CTABlock--slideReveal.is-revealed .CTABlock__content {
    transform: translateX(0);
  }

  .CTABlock__title {
    font-size: 40px;
  }

  .CTABlock__text {
    font-size: 16px;
  }

  .CTABlock__actions {
    flex-direction: column;
    width: 100%;
  }

  .CTABlock__actions .bildeveButton {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .CTABlock--slideReveal .CTABlock__image,
  .CTABlock--slideReveal .CTABlock__content {
    transition: none;
  }

  .CTABlock--slideReveal .CTABlock__image,
  .CTABlock--slideReveal.is-revealed .CTABlock__image {
    transform: none;
  }

  .CTABlock--slideReveal .CTABlock__content,
  .CTABlock--slideReveal.is-revealed .CTABlock__content {
    opacity: 1;
    transform: none;
  }
}
