.rcg-services-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #141416;
}

.rcg-services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 20, 22, .94), rgba(20, 20, 22, .62) 54%, rgba(20, 20, 22, .88)),
    url("../images/services/cinder-blocks-lie-ground-dried-cinder-block-production-plant-min-1024x1024.jpg") right center / cover no-repeat;
}

.rcg-services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 20%, rgba(204, 48, 48, .24), transparent 30%),
    url("../images/rcg-decor/bg-line1.png") center bottom / cover no-repeat;
}

.rcg-services-hero .banner-three-content {
  max-width: 820px;
  padding-top: 90px;
}

.rcg-services-hero .banner-three-content .title {
  max-width: 820px;
}

.rcg-services-hero .hero-credential-panel {
  right: 42px;
  bottom: 34px;
}

.rcg-services-proof .single-facts-three {
  min-height: 100%;
}

.rcg-services-grid-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 235, 231, .97), rgba(246, 243, 239, .95)),
    url("../images/rcg-decor/bg-line1.png") center bottom / cover no-repeat;
}

.rcg-services-grid-section .title-style-two-center {
  max-width: 820px;
  margin: 0 auto 44px;
}

.rcg-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.rcg-service-suite-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #171719;
  box-shadow: 0 22px 58px rgba(20, 20, 22, .18);
  border: 1px solid rgba(255, 255, 255, .08);
  isolation: isolate;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.rcg-service-suite-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(.28);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.rcg-service-suite-card:hover {
  transform: translateY(-7px);
  border-color: rgba(204, 48, 48, .42);
  box-shadow: 0 34px 82px rgba(20, 20, 22, .26);
}

.rcg-service-suite-card:hover::before {
  transform: scaleX(1);
}

.rcg-service-suite-card__media {
  position: relative;
  height: 230px;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141416;
}

.rcg-service-suite-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 20, 22, .02), rgba(20, 20, 22, .72)),
    radial-gradient(circle at 84% 18%, rgba(204, 48, 48, .22), transparent 30%);
}

.rcg-service-suite-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(.9) contrast(1.08);
  transition: transform 520ms ease, opacity 260ms ease;
}

.rcg-service-suite-card:hover .rcg-service-suite-card__media img {
  transform: scale(1.045);
  opacity: .9;
}

.rcg-service-suite-card__number {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 3px;
  color: rgba(255, 255, 255, .86);
  background: rgba(20, 20, 22, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.rcg-service-suite-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)),
    #171719;
}

.rcg-service-suite-card__body h3 {
  min-height: 56px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.16;
}

.rcg-service-suite-card__body p {
  flex: 1;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.62;
  margin-bottom: 20px;
}

.rcg-service-suite-card__action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.rcg-service-suite-card__action span {
  max-width: 150px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.rcg-service-suite-card__action a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 12px 28px rgba(204, 48, 48, .22);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 220ms ease, transform 220ms ease;
}

.rcg-service-suite-card__action a:hover {
  color: #ffffff;
  background: #a92727;
  transform: translateY(-1px);
}

.rcg-services-dark {
  position: relative;
  overflow: hidden;
}

.rcg-services-dark-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.rcg-services-dark-item {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.rcg-services-dark-item strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
}

.rcg-services-dark-item span {
  color: rgba(255, 255, 255, .72);
  line-height: 1.6;
}

.rcg-services-cta {
  margin-bottom: 0;
}

@media only screen and (max-width: 1199px) {
  .rcg-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rcg-services-dark-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 991px) {
  .rcg-services-hero {
    min-height: auto;
  }

  .rcg-services-hero .banner-three-content {
    padding: 150px 0 120px;
  }

  .rcg-services-hero .hero-credential-panel {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 430px;
    margin: -80px 24px 36px;
  }
}

@media only screen and (max-width: 767px) {
  .rcg-services-hero::before {
    background:
      linear-gradient(180deg, rgba(20, 20, 22, .96), rgba(20, 20, 22, .82)),
      url("../images/services/cinder-blocks-lie-ground-dried-cinder-block-production-plant-min-1024x1024.jpg") center / cover no-repeat;
  }

  .rcg-services-hero .banner-three-content {
    padding: 130px 0 110px;
  }

  .rcg-services-hero .banner-three-content .title {
    font-size: 46px;
  }

  .rcg-services-hero .hero-credential-panel {
    margin-left: 15px;
    margin-right: 15px;
  }

  .rcg-services-grid,
  .rcg-services-dark-list {
    grid-template-columns: 1fr;
  }

  .rcg-service-suite-card__body {
    padding: 24px;
  }

  .rcg-service-suite-card__body h3 {
    min-height: 0;
  }

  .rcg-service-suite-card__media {
    height: 220px;
    min-height: 220px;
  }

  .rcg-service-suite-card__action {
    align-items: flex-start;
    flex-direction: column;
  }

  .rcg-service-suite-card__action a {
    width: 100%;
  }
}
