.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%);
}

.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 {
    margin-top: 70px;
    padding: 40px 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%;
  }
}
.rcg-pillar-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}

.rcg-pillar-service-link {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 22, .1);
  border-radius: 10px;
  color: #1b1b1f;
  text-decoration: none;
  box-shadow: 0 24px 68px rgba(20, 20, 22, .12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.rcg-pillar-service-link::after {
  position: absolute;
  right: -72px;
  bottom: -92px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(204, 48, 48, .32);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.rcg-pillar-service-link:hover,
.rcg-pillar-service-link:focus-visible {
  color: inherit;
  border-color: rgba(204, 48, 48, .34);
  box-shadow: 0 30px 78px rgba(20, 20, 22, .18);
  transform: translateY(-4px);
}

.rcg-pillar-service-link:focus-visible {
  outline: 3px solid rgba(204, 48, 48, .72);
  outline-offset: 4px;
}

.rcg-pillar-service-link--commercial {
  border-color: rgba(255, 255, 255, .1);
  background: radial-gradient(circle at 88% 10%, rgba(204, 48, 48, .3), transparent 30%), #1b1b1f;
  color: #fff !important;
}

.rcg-pillar-service-link--commercial:hover,
.rcg-pillar-service-link--commercial:focus-visible {
  color: #ffffff !important;
}

.rcg-pillar-service-link--commercial:hover strong,
.rcg-pillar-service-link--commercial:focus-visible strong {
  color: #ffffff !important;
}

.rcg-pillar-service-link--commercial:hover p,
.rcg-pillar-service-link--commercial:focus-visible p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.rcg-pillar-service-link--commercial:hover b,
.rcg-pillar-service-link--commercial:focus-visible b {
  color: #ffffff !important;
}

.rcg-pillar-service-link--commercial:hover span,
.rcg-pillar-service-link--commercial:focus-visible span {
  color: #e55555 !important;
}

.rcg-pillar-service-link--concrete {
  background: radial-gradient(circle at 88% 10%, rgba(204, 48, 48, .1), transparent 30%), #f1ece6;
}

.rcg-pillar-service-link span {
  display: block;
  margin-bottom: 10px;
  color: #d84a4a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rcg-pillar-service-link strong {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  font-family: var(--font-1);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
}

.rcg-pillar-service-link p {
  max-width: 52ch;
  margin: 0 0 22px;
  color: #5d5c62;
  line-height: 1.68;
}

.rcg-pillar-service-link--commercial p {
  color: rgba(255, 255, 255, .74);
}

.rcg-pillar-service-link b {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
}

.rcg-pillar-service-link b::after {
  margin-left: 10px;
  color: #d73a3a;
  content: "→";
}

.rcg-service-suite-card__body h3 a {
  color: inherit;
}

.rcg-service-suite-card__body h3 a:hover,
.rcg-service-suite-card__body h3 a:focus-visible {
  color: var(--color-primary);
}

@media only screen and (max-width: 991px) {
  .rcg-pillar-service-links { grid-template-columns: 1fr; }
  .rcg-pillar-service-link { min-height: 270px; }
}

@media only screen and (max-width: 480px) {
  .rcg-pillar-service-link { min-height: 0; padding: 28px 22px; }
}


/* ==========================================================================
   UNIFIED GLOBAL TYPOGRAPHY HIERARCHY (MATCHING HOMEPAGE REFERENCE)
   ========================================================================== */

/* 1. All Headings & Title Symbols (Gantari) */
h1, h2, h3, h4, h5, h6,
.title,
.rcg-commercial-heading h2,
.rcg-exact-copy h2,
.rcg-property-intro__copy h2,
.rcg-editorial-split__copy h2,
.rcg-commercial-scope h3,
.rcg-commercial-intake h3,
.rcg-commercial-control-grid h3,
.rcg-commercial-process-list h3,
.rcg-commercial-closeout h3,
.rcg-service-suite-card__body h3,
.rcg-pillar-service-link strong,
.rcg-reviews-heading,
.single-service-area-3 a .title {
  font-family: "Gantari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 2. All Body Copy, Paragraphs, Lists & Interactive UI Elements (Inter) */
body, p, li, span, a, button, input, select, textarea, label, address, figcaption,
.disc,
.rcg-exact-copy > p,
.rcg-content-disclosure__body,
.rcg-content-disclosure__body p,
.rcg-content-disclosure__body li,
.rcg-commercial-copy > p,
.rcg-commercial-scope p,
.rcg-commercial-control-grid p,
.rcg-commercial-process-list p,
.rcg-commercial-closeout li,
.rcg-commercial-intake li,
.rcg-commercial-faq-list details p,
.rcg-service-suite-card__body p,
.rcg-pillar-service-link p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}


/* ==========================================================================
   HOMEPAGE REFERENCE TYPOGRAPHY SYSTEM (RABEIROCG.COM SOURCE OF TRUTH)
   ========================================================================== */

/* 1. All Headings & Title Symbols (Gantari, sans-serif) */
h1, h2, h3, h4, h5, h6,
.title,
.rcg-reviews-heading,
.rcg-commercial-heading h2,
.rcg-exact-copy h2,
.rcg-property-intro__copy h2,
.rcg-editorial-split__copy h2,
.rcg-commercial-scope h3,
.rcg-commercial-intake h3,
.rcg-commercial-control-grid h3,
.rcg-commercial-process-list h3,
.rcg-commercial-closeout h3,
.rcg-service-suite-card__body h3,
.rcg-pillar-service-link strong,
.single-service-area-3 a .title {
  font-family: "Gantari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 2. All Body Copy, Paragraphs, Lists & Interactive UI Elements (Inter, sans-serif) */
body, p, li, span, a, input, select, textarea, label, address, figcaption,
.disc,
.rcg-exact-copy > p,
.rcg-content-disclosure__body,
.rcg-content-disclosure__body p,
.rcg-content-disclosure__body li,
.rcg-commercial-copy > p,
.rcg-commercial-scope p,
.rcg-commercial-control-grid p,
.rcg-commercial-process-list p,
.rcg-commercial-closeout li,
.rcg-commercial-intake li,
.rcg-commercial-faq-list details p,
.rcg-service-suite-card__body p,
.rcg-pillar-service-link p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 3. All Buttons & Action CTAs (Inter, sans-serif) */
.rts-btn,
button,
.btn-primary,
.btn-white,
.btn-subscribe,
a.rts-btn {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 800 !important;
}


/* White Heading for Dark Fun-Facts & Proof Sections */
.rts-fun-facts-area.bg-dark-2 .title-style-three-center .title,
.rts-fun-facts-area.rcg-dark-line-section .title-style-three-center .title,
.rcg-services-proof .title-style-three-center .title,
.rcg-services-proof .title {
  color: #ffffff !important;
}

.rts-fun-facts-area.bg-dark-2 .title-style-three-center p.disc,
.rts-fun-facts-area.rcg-dark-line-section .title-style-three-center p.disc,
.rcg-services-proof .title-style-three-center p.disc,
.rcg-services-proof p.disc {
  color: rgba(255, 255, 255, 0.82) !important;
}


/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES (SCALING TO 320PX MOBILE SCREENS)
   ========================================================================== */

/* 1. Prevent mid-letter word breaks globally */
h1, h2, h3, h4, h5, h6, .title, p, span, a, li {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

/* 2. Responsive Hero & Section Headings */
@media only screen and (max-width: 991px) {
  .rcg-services-hero .banner-three-content .title,
  .banner-three-content .title,
  .rcg-commercial-heading h2,
  .rcg-exact-copy h2,
  .rcg-property-intro__copy h2 {
    font-size: clamp(28px, 5vw, 38px) !important;
    line-height: 1.2 !important;
  }
}

@media only screen and (max-width: 767px) {
  .rcg-services-hero {
    min-height: auto !important;
    padding: 110px 0 50px !important;
  }

  .rcg-services-hero .banner-three-content {
    margin-top: 0 !important;
    padding: 0 0 30px !important;
  }

  .rcg-services-hero .banner-three-content .title,
  .banner-three-content .title,
  .title-style-two-center .title,
  .title-style-three-center .title,
  .rcg-commercial-heading h2,
  .rcg-exact-copy h2,
  .rcg-property-intro__copy h2 {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.22 !important;
    margin-bottom: 16px !important;
  }

  .rcg-services-hero .hero-credential-panel,
  .hero-credential-panel {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    padding: 20px !important;
  }

  .hero-proof-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .hero-service-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .hero-service-list span {
    font-size: 12px !important;
    padding: 4px 10px !important;
  }

  .button-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .button-wrapper .rts-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 3. Grid Systems Mobile Layout */
  .rcg-services-grid,
  .rcg-pillar-service-links,
  .rcg-service-cards,
  .rcg-commercial-control-grid,
  .rcg-commercial-process-list,
  .rcg-services-dark-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .rcg-pillar-service-link {
    min-height: auto !important;
    padding: 24px !important;
  }

  .rcg-service-suite-card__media {
    height: 200px !important;
    min-height: 200px !important;
  }

  .rcg-service-suite-card__body {
    padding: 20px !important;
  }

  .rcg-service-suite-card__action {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .rcg-service-suite-card__action a {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 4. Section Gaps & Padding on Mobile */
  .rts-section-gap {
    padding: 50px 0 !important;
  }

  .rts-section-gapBottom {
    padding-bottom: 50px !important;
  }

  .rts-section-gapTop {
    padding-top: 50px !important;
  }
}

@media only screen and (max-width: 479px) {
  .rcg-services-hero .banner-three-content .title,
  .banner-three-content .title,
  .rcg-commercial-heading h2 {
    font-size: clamp(22px, 6vw, 26px) !important;
  }

  header.header-three .logo-area {
    width: 135px !important;
    padding: 6px 10px !important;
  }

  header.header-three .logo-area img {
    max-height: 48px !important;
    width: auto !important;
  }
}


/* ==========================================================================
   MOBILE HERO BANNERS & CREDENTIAL PANEL OVERFLOW FIXES (TABLET & MOBILE)
   ========================================================================== */

@media only screen and (max-width: 991px) {
  /* A. Clean Compact Padding on All Top Banners */
  .rcg-services-hero,
  .rts-banner-three,
  .rcg-about-hero,
  .rcg-contact-hero,
  .rcg-commercial-hero {
    min-height: auto !important;
    height: auto !important;
    padding: 105px 0 40px !important;
  }

  .banner-three-content,
  .rcg-services-hero .banner-three-content {
    margin-top: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* B. Fix Info Box / Credential Panel Mobile Overflow */
  .hero-credential-panel,
  .rcg-services-hero .hero-credential-panel,
  .banner-three-content + .hero-credential-panel {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: block !important;
    background: rgba(15, 15, 17, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
  }

  .hero-credential-panel strong {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 6px 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .hero-credential-panel span,
  .hero-credential-panel a {
    font-size: 13px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

@media only screen and (max-width: 767px) {
  .rcg-services-hero,
  .rts-banner-three,
  .rcg-about-hero,
  .rcg-contact-hero,
  .rcg-commercial-hero {
    padding: 95px 0 30px !important;
  }

  .banner-three-content .title,
  .rcg-services-hero .banner-three-content .title {
    font-size: clamp(24px, 6.2vw, 32px) !important;
    line-height: 1.22 !important;
    margin-bottom: 14px !important;
  }

  .hero-proof-row,
  .hero-service-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  .hero-proof-row span,
  .hero-service-list span {
    font-size: 12px !important;
    padding: 5px 11px !important;
  }
}


/* Hide Floating Credential / Address Box on Mobile Screens (< 992px) */
@media only screen and (max-width: 991px) {
  .hero-credential-panel,
  .rcg-services-hero .hero-credential-panel,
  .rcg-about-hero .hero-credential-panel,
  .rcg-contact-hero .hero-credential-panel,
  .banner-three-content + .hero-credential-panel {
    display: none !important;
  }
}


/* ==========================================================================
   FORCE DISABLE OLD DROPDOWN MENU & ENABLE POPUP SLIDE-IN DRAWER
   ========================================================================== */
details.rcg-mobile-menu .rcg-mobile-panel,
.rcg-mobile-panel,
.header-three .rcg-mobile-panel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
