/* ============================================================
   REALPRO CLIENT FINAL · R1.2
   Visual repair layer
   ============================================================ */

/* ------------------------------------------------------------
   01. Restore official logos
   ------------------------------------------------------------ */
.site-header .header-logo,
.site-footer .brand--footer{
  display:flex !important;
  align-items:center !important;
  gap:0 !important;
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  overflow:visible !important;
}

.site-header .header-logo img,
.site-footer .brand--footer img{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important;
}

.site-header .header-logo img{
  max-height:48px !important;
}

.site-footer .brand--footer img{
  max-height:58px !important;
}

.site-header .header-logo .rp-client-wordmark-mark,
.site-footer .brand--footer .rp-client-wordmark-mark{
  display:none !important;
  visibility:hidden !important;
}

.site-header .header-logo.rp-client-wordmark::before,
.site-header .header-logo.rp-client-wordmark::after,
.site-footer .brand--footer.rp-client-wordmark::before,
.site-footer .brand--footer.rp-client-wordmark::after{
  content:none !important;
  display:none !important;
}

/* ------------------------------------------------------------
   02. Trusted logos marquee repair
   ------------------------------------------------------------ */
body.rp-page-index .trusted-hero{
  background:transparent !important;
}

body.rp-page-index .trusted-window{
  overflow:hidden !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

body.rp-page-index .trusted-track{
  display:flex !important;
  align-items:center !important;
  gap:24px !important;
  width:max-content !important;
  will-change:transform;
}

body.rp-page-index .trusted-arrow,
body.rp-page-index .trusted-dots,
body.rp-page-index .trusted-counter,
body.rp-page-index [data-trusted-prev],
body.rp-page-index [data-trusted-next],
body.rp-page-index [data-trusted-dot]{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

body.rp-page-index .logo-card{
  flex:0 0 auto !important;
  min-width:210px !important;
  min-height:96px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px 24px !important;
}

body.rp-page-index .logo-card img,
body.rp-page-index .logo-card svg,
body.rp-page-index .logo-card picture{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  max-width:150px !important;
  max-height:42px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}

body.rp-page-index .logo-card picture img{
  max-width:150px !important;
  max-height:42px !important;
}

/* ------------------------------------------------------------
   03. Final section image polish
   ------------------------------------------------------------ */
body.rp-page-index .cta-section img,
body.rp-page-index .final-cta img,
body.rp-page-index .section--cta img{
  object-fit:cover !important;
  object-position:center !important;
}

/* ------------------------------------------------------------
   04. Footer lockup safety
   ------------------------------------------------------------ */
.site-footer .brand--footer{
  position:relative !important;
  white-space:nowrap !important;
}

.site-footer .brand--footer > *{
  flex-shrink:0 !important;
}

/* ------------------------------------------------------------
   05. Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px){
  .site-header .header-logo img{
    max-height:42px !important;
  }

  .site-footer .brand--footer img{
    max-height:52px !important;
  }

  body.rp-page-index .logo-card{
    min-width:180px !important;
    min-height:84px !important;
    padding:14px 18px !important;
  }

  body.rp-page-index .logo-card img,
  body.rp-page-index .logo-card svg,
  body.rp-page-index .logo-card picture,
  body.rp-page-index .logo-card picture img{
    max-width:132px !important;
    max-height:36px !important;
  }
}
