/* Homepage SEO content extensions.
   These rules intentionally reuse the site's existing palette, type, spacing,
   buttons, containers, and surface treatments. */

.hero-seo-subheadline {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.7;
}

.banner-three-content .hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
}

.banner-three-content .hero-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.42);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.single-facts-three .inner .bottom {
  display: block;
  max-width: 210px;
  line-height: 1.45;
}

.rcg-section-heading {
  max-width: 820px;
  margin: 0 auto clamp(34px, 4vw, 56px);
  text-align: center;
}

.rcg-section-heading--left {
  max-width: none;
  margin: 0;
  text-align: left;
}

.rcg-section-heading .pre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(204, 48, 48, 0.22);
  border-radius: 999px;
  background: rgba(204, 48, 48, 0.08);
  color: #cc3030;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rcg-section-heading h2 {
  margin-bottom: 18px;
  color: #141416;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
}

.rcg-section-heading p {
  max-width: 780px;
  margin: 0 auto;
  color: #626268;
  font-size: 17px;
  line-height: 1.75;
}

.rcg-section-heading--left p {
  margin-left: 0;
}

.rcg-section-heading--light .pre {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.rcg-section-heading--light h2 {
  color: #ffffff;
}

.rcg-section-heading--light p {
  color: rgba(255, 255, 255, 0.74);
}

.rcg-process-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 20, 22, 0.98), rgba(35, 21, 21, 0.96)),
    url("../images/rcg-decor/bg-line1.png") center / cover no-repeat;
}

.rcg-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.rcg-process-card {
  position: relative;
  min-height: 310px;
  padding: 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.rcg-process-card::after {
  position: absolute;
  content: "";
  right: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(204, 48, 48, 0.2);
  border-radius: 50%;
}

.rcg-process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 48, 48, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.rcg-process-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  border-radius: 50%;
  background: #cc3030;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.rcg-process-card h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.16;
}

.rcg-process-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.72;
}

.rcg-local-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 235, 231, 0.97), rgba(255, 255, 255, 0.95)),
    url("../images/rcg-decor/bg-line1.png") center bottom / cover no-repeat;
}

.rcg-service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.rcg-service-area-list li {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid rgba(20, 20, 22, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #141416;
  font-size: 14px;
  font-weight: 750;
}

.rcg-local-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 20, 22, 0.98), rgba(35, 21, 21, 0.95)),
    url("../images/rcg-decor/bg-line1.png") center / cover no-repeat;
  box-shadow: 0 28px 80px rgba(20, 20, 22, 0.18);
}

.rcg-local-card::before {
  position: absolute;
  content: "";
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  pointer-events: none;
}

.rcg-local-card__eyebrow {
  position: relative;
  display: block;
  margin-bottom: 18px;
  color: #e86c6c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rcg-local-card h3 {
  position: relative;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.rcg-local-card address {
  position: relative;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  font-style: normal;
  line-height: 1.7;
}

.rcg-local-card .rts-btn {
  position: relative;
}

.rcg-faq-section {
  background: #f8f5f1;
}

.rcg-faq-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid rgba(20, 20, 22, 0.14);
}

.rcg-faq-item {
  border-bottom: 1px solid rgba(20, 20, 22, 0.14);
}

.rcg-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 22px 60px 22px 0;
  color: #141416;
  font-family: var(--font-primary, "Gantari", sans-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 750;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.rcg-faq-item summary::-webkit-details-marker {
  display: none;
}

.rcg-faq-item summary::before,
.rcg-faq-item summary::after {
  position: absolute;
  content: "";
  right: 12px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #cc3030;
  transform: translateY(-50%);
  transition: transform 220ms ease;
}

.rcg-faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.rcg-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.rcg-faq-item summary:focus-visible {
  outline: 3px solid rgba(204, 48, 48, 0.38);
  outline-offset: 5px;
}

.rcg-faq-item p {
  max-width: 820px;
  margin: -4px 0 26px;
  color: #626268;
  font-size: 16px;
  line-height: 1.75;
}

.rcg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rcg-footer-nap {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-style: normal;
  line-height: 1.8;
}

.rcg-footer-nap a {
  color: rgba(255, 255, 255, 0.82);
}

.rcg-footer-nap a:hover {
  color: #ffffff;
}

.rcg-ghl-form-embed iframe {
  height: 497px;
  border-radius: 0;
}

.rcg-map-strip iframe {
  display: block;
  width: 100%;
  border: 0;
}

.rcg-mobile-callbar {
  display: none;
}

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

  .rcg-process-card {
    min-height: 280px;
  }
}

@media only screen and (max-width: 767px) {
  .hero-seo-subheadline {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }

  .banner-three-content .hero-proof-row {
    gap: 8px;
  }

  .banner-three-content .hero-proof-row span {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .rcg-process-grid {
    grid-template-columns: 1fr;
  }

  .rcg-process-card {
    min-height: 0;
    padding: 26px 22px;
  }

  .rcg-process-card__number {
    margin-bottom: 28px;
  }

  .rcg-local-card {
    margin-top: 32px;
    border-radius: 12px;
  }

  .rcg-faq-item summary {
    min-height: 72px;
    padding-right: 50px;
  }

  .rcg-values-cta__copy .rcg-cta-actions .rts-btn {
    width: 100%;
    justify-content: center;
  }
}

@media only screen and (max-width: 479px) {
  body {
    padding-bottom: 72px;
  }

  .rcg-mobile-callbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: #cc3030;
    box-shadow: 0 16px 40px rgba(20, 20, 22, 0.32);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
  }

  .rcg-mobile-callbar:hover,
  .rcg-mobile-callbar:focus {
    background: #a91f1f;
    color: #ffffff;
  }

  .progress-wrap {
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcg-process-card,
  .rcg-faq-item summary::after {
    transition: none;
  }

  .rcg-process-card:hover {
    transform: none;
  }
}


/* ==========================================================================
   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;
}


/* ==========================================================================
   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;
  }
}

/* Homepage blog preview cards */
.rcg-home-blog-section .row.g-24 > [class*="col-"] {
  display: flex;
}

.rcg-home-blog-section .single-blog-three {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.rcg-home-blog-section .single-blog-three .thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9d5d1;
}

.rcg-home-blog-section .single-blog-three .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcg-home-blog-section .single-blog-three .inner-content-area {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.rcg-home-blog-section .single-blog-three .bottom-area {
  margin-top: auto;
}

.rcg-home-blog-section .rts-btn {
  min-height: 44px;
}

.rcg-home-blog-section .single-blog-three a:focus-visible,
.rcg-home-blog-cta a:focus-visible {
  outline: 3px solid #141416;
  outline-offset: 4px;
}

.rcg-blog-card-placeholder {
  cursor: default;
}

.rcg-blog-card-placeholder .inner-content-area > .title {
  color: #141416;
}

.rcg-blog-card-placeholder__status {
  border-color: #4d4d52;
  background: #4d4d52;
  cursor: default;
  pointer-events: none;
}

.rcg-home-blog-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .rcg-home-blog-section .single-blog-three,
  .rcg-home-blog-section .single-blog-three a {
    transition: none !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;
  }
}
