/* Numbered Reasons -- icon cards with an oversized ghost number. */

.numberedreasons-block {
  background: var(--bellco-bg);
  border-top: 1px solid var(--bellco-divider);
  padding: 128px 0;
}

.numberedreasons-block--center .numberedreasons-head {
  text-align: center;
}

.numberedreasons-block--center .numberedreasons-head .bellco-eyebrow {
  justify-content: center;
}

.numberedreasons-block--center .numberedreasons-head .bellco-sechead-intro {
  margin-left: auto;
  margin-right: auto;
}

.numberedreasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--bellco-gap);
}

.numberedreasons-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.numberedreasons-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.numberedreasons-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.numberedreasons-grid[data-count="1"] { grid-template-columns: 1fr; }

.numberedreasons-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--bellco-bg-card);
  border: 1px solid var(--bellco-hairline);
  border-radius: var(--bellco-radius);
  overflow: hidden;
}

.numberedreasons-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font1);
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(139, 217, 186, 0.06);
  pointer-events: none;
}

.numberedreasons-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--bellco-radius-sm);
  margin-bottom: 28px;
  background: rgba(139, 217, 186, 0.08);
  border: 1px solid rgba(139, 217, 186, 0.18);
  color: var(--bellco-mint);
}

/* Steps variant: no icon, and the number stops being a watermark and becomes
   the anchor of the card. Same 52px tile the icon occupied, so both shapes sit
   on the same grid and nothing below them shifts. */
.numberedreasons-step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--bellco-radius-sm);
  margin-bottom: 28px;
  background: rgba(139, 217, 186, 0.08);
  border: 1px solid rgba(139, 217, 186, 0.18);
  font-family: var(--font1);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--bellco-mint);
}

.numberedreasons-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
}

.numberedreasons-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bellco-muted);
  margin: 0;
  flex-grow: 1;
}

/* List layout: one step per row, number in its own column so titles line up.
   Width is capped because a step description set across the full container is
   an unreadable line length. */
.numberedreasons-block--list .numberedreasons-grid,
.numberedreasons-block--list .numberedreasons-grid[data-count="1"],
.numberedreasons-block--list .numberedreasons-grid[data-count="2"],
.numberedreasons-block--list .numberedreasons-grid[data-count="3"],
.numberedreasons-block--list .numberedreasons-grid[data-count="4"] {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.numberedreasons-block--list .numberedreasons-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 24px;
  align-items: start;
  padding: 28px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bellco-hairline);
  border-radius: 0;
}

.numberedreasons-block--list .numberedreasons-item:first-child { padding-top: 0; }

.numberedreasons-block--list .numberedreasons-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* The badge is the first column of the row, so the card-mode bottom margin
   would only push the number away from the title it labels. */
.numberedreasons-block--list .numberedreasons-step { margin-bottom: 0; }

.numberedreasons-block--list .numberedreasons-title,
.numberedreasons-block--list .numberedreasons-desc { grid-column: 2; }

.numberedreasons-block--list .numberedreasons-title { margin-top: 14px; }

@media (max-width: 767px) {
  .numberedreasons-block--list .numberedreasons-item {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }

  .numberedreasons-block--list .numberedreasons-title { margin-top: 10px; }
}

@media (max-width: 1199px) {
  .numberedreasons-block {
    padding: 88px 0;
  }

  .numberedreasons-grid,
  .numberedreasons-grid[data-count="4"],
  .numberedreasons-grid[data-count="3"],
  .numberedreasons-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .numberedreasons-block {
    padding: 64px 0;
  }

  .numberedreasons-grid,
  .numberedreasons-grid[data-count="4"],
  .numberedreasons-grid[data-count="3"],
  .numberedreasons-grid[data-count="2"] {
    grid-template-columns: 1fr;
  }

  .numberedreasons-item {
    padding: 32px 24px;
  }

  .numberedreasons-num {
    font-size: 60px;
  }
}
