/* cs-features-band — solid colored band with 3 icon+text columns.
   All rem values follow BB Theme's html { font-size: 10px } base — 1.8rem = 18px. */

/* Strip BB's default row padding / module margins around the band so
   adjacent sections (and their decorations) butt up against its edges. */
.fl-row-content-wrap:has(.cs-features-band) {
  padding-block: 0;
}
.fl-module-content:has(.cs-features-band) {
  margin-block: 0;
}

/* The band's padding sits inside its coloured area, so it contributes no gap
   to whatever follows. Sections after it normally supply their own top
   padding; cs-faq deliberately does not ("the preceding section's bottom
   padding sets the gap"), so it would start flush against the band edge.
   Restore the 96px section gap for that pairing. */
.fl-row:has(.cs-features-band) + .fl-row:has(.cs-faq) {
  margin-top: var(--cs-space-2xl);
}

.cs-features-band {
  /* Full-bleed break-out of BB row constraint */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-block: var(--cs-space-2xl); /* aligned to the 96px section standard (was 64px) */
  color: var(--cs-white);
  font-family: var(--cs-font-body);
}

.cs-features-band__inner {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.cs-features-band__item {
  position: relative;
  padding-inline: var(--cs-space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-sm);
}

/* Vertical divider between columns — 3px, ~80% of the band height and
   vertically centered per Figma (extends past the content into the
   band's padding), not a full-height border. */
.cs-features-band__item + .cs-features-band__item::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: calc(100% + 5.4rem);
  background: var(--cs-features-divider, var(--cs-blue-dark));
}

.cs-features-band__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.cs-features-band__item-icon img {
  display: block;
  max-height: 4.8rem; /* 48px */
  width: auto;
  object-fit: contain;
}

/* Doubled-up class specificity so the title survives BB Global Styles'
   `.fl-builder-content h3` color & font rules. */
.cs-features-band .cs-features-band__item-title {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: 2.4rem; /* 24px */
  font-style: normal;
  line-height: 1.212;
  letter-spacing: var(--cs-tracking-tight);
  color: var(--cs-white);
}

.cs-features-band__item-body {
  font-family: var(--cs-font-display);
  font-size: 1.8rem; /* 18px */
  line-height: 1.5;
  color: var(--cs-white);
  text-transform: none;
  max-width: 40rem;
}

.cs-features-band__item-body p {
  margin: 0 0 var(--cs-space-sm);
}

.cs-features-band__item-body p:last-child {
  margin-bottom: 0;
}

.cs-features-band__item-body strong,
.cs-features-band__item-body b {
  font-weight: 800;
}

/* Underlined text link — doubled-up class specificity so the color
   survives BB Global Styles' `.fl-builder-content a` rules. */
.cs-features-band .cs-features-band__item-link,
.cs-features-band .cs-features-band__item-link:link,
.cs-features-band .cs-features-band__item-link:visited {
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: 1.8rem; /* 18px — body-copy floor */
  line-height: 1.5;
  color: #EFF3FD;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
  /* Pin to the column bottom — the grid stretches all three columns to the
     same height, so every link sits on the same baseline regardless of how
     long the body copy above it is. */
  margin-top: auto;
  /* align-self keeps the box hugging its text rather than stretching across
     the column, so the underline still ends with the words — but it has to be
     `center`, not `flex-start`, or the link alone sits left while the icon,
     title and body above it are centred. The min-height lifts a 27px tap
     target to the 24px+ minimum with room to spare. */
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
  padding-top: 0.4rem;
}

.cs-features-band .cs-features-band__item-link.cs-features-band__item-link:hover,
.cs-features-band .cs-features-band__item-link.cs-features-band__item-link:focus-visible {
  color: var(--cs-white);
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-features-band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cs-space-lg);
  }
  .cs-features-band__item + .cs-features-band__item {
    border-top: 3px solid var(--cs-features-divider, var(--cs-blue-dark));
    padding-top: var(--cs-space-lg);
  }
  .cs-features-band__item + .cs-features-band__item::before {
    display: none;
  }
}
