/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.nm-cta {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 405px;
  padding: 45px 28px 105px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.nm-cta--tone-dark {
  background-color: #253c33;
}

/* Light band (We are here to make an impact): dark text on light green,
   buttons become the green pill */
.nm-cta--tone-light {
  background-color: #e6ece9;
  color: #18141e;
}

.nm-cta--tone-light .nm-cta__button {
  background: #3dbf7b;
  color: #18141e;
}

.nm-cta--tone-light .nm-cta__button:hover {
  filter: brightness(1.04);
  background: #3dbf7b;
}

/* Double-title variant: bottom padding equals the top */
.nm-cta--double {
  padding-bottom: 45px;
}

/* Background video/image; grade is baked into the asset (no CSS overlay).
   Absolute is unavoidable for a video background. */
.nm-cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Title left, content column right. Default split: left dominant, right
   column fixed at 480px. The 50/50 split is a variant. */
.nm-cta__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  column-gap: 86px;
  align-items: start;
  width: min(1380px, 100%);
  margin-inline: auto;
}

.nm-cta--half .nm-cta__content {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nm-cta__title {
  margin: 0;
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 0;
}

.nm-cta__column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nm-cta--double .nm-cta__column {
  gap: 0;
}

.nm-cta--double .nm-cta__description {
  margin-top: 32px;
}

.nm-cta--double .nm-cta__buttons {
  margin-top: 40px;
}

.nm-cta__description {
  margin: 0;
  font-size: 27px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Small description paired with the second title */
.nm-cta--double .nm-cta__description {
  max-width: 336px;
  font-size: 16px;
  line-height: 20px;
}

.nm-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nm-cta__button {
  display: inline-block;
  padding: 6px 19px;
  border-radius: 81.25px;
  background: #fcfcfc;
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nm-cta__button:hover {
  background: #e6ece9;
}

/* ---------- Same breakpoint as the navbar: columns stack ---------- */

@media (max-width: 1280px) {
  .nm-cta__content,
  .nm-cta--half .nm-cta__content {
    grid-template-columns: 1fr;
    row-gap: 21px;
  }

  /* Titles read as one heading when stacked */
  .nm-cta--double .nm-cta__content {
    row-gap: 0;
  }

  /* Stacked column spans the band; the desktop-column cap comes off */
  .nm-cta--double .nm-cta__description {
    max-width: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .nm-cta {
    min-height: 344px;
    padding: 32px 24px 64px;
  }

  .nm-cta--double {
    padding-bottom: 32px;
  }

  .nm-cta__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .nm-cta__column {
    gap: 29px;
  }

  .nm-cta__description,
  .nm-cta--double .nm-cta__description {
    max-width: none;
    margin-top: 0;
    font-size: 20px;
    line-height: 1.2;
  }

  .nm-cta--double .nm-cta__description {
    margin-top: 21px;
  }

  .nm-cta--double .nm-cta__buttons {
    margin-top: 29px;
  }

  .nm-cta__buttons {
    gap: 15px;
  }
}


@keyframes nm-cta-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nm-cta-reveal .nm-cta__content {
  opacity: 0;
}

.nm-cta-reveal.is-revealed .nm-cta__content {
  animation: nm-cta-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

@media (prefers-reduced-motion: reduce) {
  .nm-cta-reveal .nm-cta__content {
    opacity: 1;
    animation: none;
  }
}

