/* 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-card-grid-section {
  width: 100%;
  padding: 60px 30px;
  box-sizing: border-box;
  background: #fcfcfc;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.nm-card-grid-section__inner {
  width: min(1380px, 100%);
  margin-inline: auto;
}

.nm-card-grid-section__header {
  margin-bottom: 51px;
}

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

.nm-card-grid-section__description {
  max-width: 452px;
  margin: 22px 0 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* Two-column grid; in Webflow the cards arrive through a slot whose wrapper
   is collapsed so the card islands become the grid items. */
.nm-card-grid,
.nm-card-grid slot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}

.nm-card-grid slot {
  grid-column: 1 / -1;
}

.nm-card-grid slot::slotted(*) {
  display: contents;
}

/* Green variant (no badges in the design): stronger gradient, 34/18 gaps */
.nm-card-grid-section--green {
  --nm-grid-card-bg: linear-gradient(155.46deg, #fcfcfc 0%, #a9c9a5 100%);
}

.nm-card-grid-section--green .nm-card-grid,
.nm-card-grid-section--green .nm-card-grid slot {
  gap: 18px 34px;
}

/* Three-column variant (What life looks like here): 29px gaps and the
   design's 352px card height, passed into the card shadow roots via var.
   These cards use a much gentler gradient than the two-column ones
   (sampled from the comp) — no bright white corner. */
.nm-card-grid-section--cols-3 {
  --nm-grid-card-min-h: 352px;
  --nm-grid-card-bg: linear-gradient(155.46deg, #f4f6f5 0%, #e9eeeb 100%);
}

.nm-card-grid-section--cols-3 .nm-card-grid,
.nm-card-grid-section--cols-3 .nm-card-grid slot {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 29px;
}

/* 100% so cards in a row match heights even when the Webflow host element
   is the grid item */
.nm-grid-card {
  height: 100%;
  min-height: var(--nm-grid-card-min-h, 0);
  padding: 33px;
  box-sizing: border-box;
  border-radius: 20px;
  background: var(
    --nm-grid-card-bg,
    linear-gradient(155.46deg, #fcfcfc 0%, #e6ece9 100%)
  );
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Icon above the text (What life looks like here) */
.nm-grid-card__icon {
  display: block;
  max-width: 140px;
  max-height: 110px;
  margin-bottom: 25px;
  object-fit: contain;
}

.nm-grid-card__badge {
  display: inline-block;
  margin-bottom: 23px;
  padding: 3.5px 17.5px;
  border-radius: 81.25px;
  background: #d0dad5;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

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

.nm-grid-card__description {
  max-width: 553px;
  margin: 22px 0 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* ---------- Same breakpoint as the navbar: one column ---------- */

@media (max-width: 1280px) {
  .nm-card-grid,
  .nm-card-grid slot,
  .nm-card-grid-section--cols-3 .nm-card-grid,
  .nm-card-grid-section--cols-3 .nm-card-grid slot {
    grid-template-columns: 1fr;
  }

  .nm-card-grid-section--cols-3 {
    --nm-grid-card-min-h: 0px;
  }

  /* Stacked cards span the section; the desktop-column cap comes off */
  .nm-grid-card__description {
    max-width: none;
  }
}

/* ---------- Mobile (derived from sibling components) ---------- */

@media (max-width: 767px) {
  .nm-card-grid-section {
    padding: 32px 15px;
  }

  .nm-card-grid-section__header {
    margin-bottom: 35px;
  }

  .nm-card-grid-section__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .nm-card-grid-section__description {
    margin-top: 19px;
    font-size: 14px;
    line-height: 18px;
  }

  .nm-grid-card {
    padding: 19px;
  }

  .nm-grid-card__badge {
    margin-bottom: 19px;
  }

  .nm-grid-card__title {
    font-size: 25px;
  }

  .nm-grid-card__description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 18px;
  }
}


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

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

.nm-card-grid-section-reveal .nm-card-grid-section__inner {
  opacity: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .nm-card-grid-section-reveal .nm-card-grid-section__inner {
    opacity: 1;
    animation: none;
  }
}


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

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

.nm-grid-card--reveal {
  opacity: 0;
}

.nm-grid-card--reveal.is-revealed {
  animation: nm-grid-card-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both;
}

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

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-nm-grid-card */
:host(:nth-child(2)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-nm-grid-card: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .nm-grid-card--reveal.is-revealed,
.nm-grid-card--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

