/* ICV Home — image service cards (before testimonials) */
.icv-feature-cards {
  --icv-feature-primary: #007dc5;
  --icv-feature-dark: #1a2332;
  --icv-feature-muted: #6b7280;
  --icv-feature-border: #e3e8ef;
  --icv-feature-panel-border: #eceff4;
  /* Equal gap: inner panel ↔ outer card (left, right, bottom) */
  --icv-feature-panel-gutter: 20px;
  --icv-feature-fill-height: 58%;
  --icv-feature-media-h: clamp(190px, 21vw, 230px);

  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  background-color: #f9fafb;
  background-image: url(../img/banners/bg.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.icv-feature-cards .container {
  position: relative;
  z-index: 1;
}

.icv-feature-cards__header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.icv-feature-cards__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--icv-feature-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.icv-feature-cards__eyebrow-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.icv-feature-cards__eyebrow-icon::before,
.icv-feature-cards__eyebrow-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 14px;
  background: var(--icv-feature-primary);
  border-radius: 1px;
  transform: skewX(-18deg);
}

.icv-feature-cards__eyebrow-icon::before {
  left: 0;
}

.icv-feature-cards__eyebrow-icon::after {
  left: 8px;
}

.icv-feature-cards__title {
  margin: 0;
  color: var(--icv-feature-dark);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.22;
}

.icv-feature-cards__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 3vw, 36px);
  max-width: 920px;
  margin: 0 auto;
}

.icv-feature-card {
  flex: 1 1 320px;
  max-width: 420px;
  min-width: min(100%, 280px);
}

.icv-feature-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

/* Outer card */
.icv-feature-card__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--icv-feature-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Blue fill — bottom to top, stays inside outer card */
.icv-feature-card__shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: var(--icv-feature-fill-height);
  background: var(--icv-feature-primary);
  border-radius: 0 0 7px 7px;
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.icv-feature-card__link:hover .icv-feature-card__shell::before,
.icv-feature-card__link:focus-visible .icv-feature-card__shell::before {
  transform: scaleY(1);
}

.icv-feature-card__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

.icv-feature-card__img {
  display: block;
  width: 100%;
  height: var(--icv-feature-media-h);
  object-fit: cover;
}

/* Inner card — overlaps image bottom */
.icv-feature-card__panel {
  position: relative;
  z-index: 2;
  margin: -42px var(--icv-feature-panel-gutter) var(--icv-feature-panel-gutter);
  padding: 26px 22px 24px;
  text-align: center;
  border: 1px solid var(--icv-feature-panel-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.icv-feature-card__title {
  margin: 0 0 12px;
  color: var(--icv-feature-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.icv-feature-card__text {
  margin: 0 0 20px;
  color: var(--icv-feature-muted);
  font-size: 14px;
  line-height: 1.75;
}

.icv-feature-card__divider {
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  border-top: 1px solid #dfe4ea;
}

.icv-feature-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--icv-feature-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.icv-feature-card__cta i {
  font-size: 16px;
}

.icv-feature-cards + .icv-testimonials {
  margin-top: 0;
}

@media (max-width: 767px) {
  .icv-feature-cards {
    padding: 48px 0 40px;
  }

  .icv-feature-cards__header {
    margin-bottom: 36px;
  }

  .icv-feature-cards__grid {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
  }

  .icv-feature-card {
    max-width: none;
  }

  .icv-feature-card__panel {
    margin: -36px var(--icv-feature-panel-gutter) var(--icv-feature-panel-gutter);
    padding: 22px 18px 20px;
  }
}
