/* REALPRO V41 — final smartphone hero alignment and title uniformity */

/* Remove accent color from internal hero titles on services/process/about/contact. */
html body.rp-page-about .rp-unified-hero-title,
html body.rp-page-about .rp-unified-hero-title *,
html body.rp-page-services .rp-unified-hero-title,
html body.rp-page-services .rp-unified-hero-title *,
html body.rp-page-process .rp-unified-hero-title,
html body.rp-page-process .rp-unified-hero-title *,
html body.rp-page-contact .rp-contact-title-final,
html body.rp-page-contact .rp-contact-title-final *,
html body.rp-page-contact .rp-contact-title-final .rp-contact-word{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-weight:700 !important;
}

html body.rp-page-services .rp-unified-hero-title .rp-hero-emphasis,
html body.rp-page-services .rp-unified-hero-title .rp-hero-emphasis--brands,
html body.rp-page-services .rp-unified-hero-title .rp-hero-emphasis--growth,
html body.rp-page-services .rp-unified-hero-title .rp-hero-word,
html body.rp-page-process .rp-unified-hero-title .rp-hero-emphasis,
html body.rp-page-process .rp-unified-hero-title .rp-hero-word,
html body.rp-page-about .rp-unified-hero-title .rp-hero-emphasis,
html body.rp-page-about .rp-unified-hero-title .rp-hero-word{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

html body.rp-page-services .rp-unified-hero-title *::before,
html body.rp-page-services .rp-unified-hero-title *::after,
html body.rp-page-process .rp-unified-hero-title *::before,
html body.rp-page-process .rp-unified-hero-title *::after,
html body.rp-page-about .rp-unified-hero-title *::before,
html body.rp-page-about .rp-unified-hero-title *::after,
html body.rp-page-contact .rp-contact-title-final *::before,
html body.rp-page-contact .rp-contact-title-final *::after{
  display:none !important;
  content:none !important;
}

@media (max-width:760px){
  :root{
    --rp-mobile-hero-height:calc(100svh - var(--rp-final-header-height-mobile, 86px));
  }

  /* Internal pages: fit full hero on the first smartphone screen. */
  html body.rp-standardized-page:not(.rp-page-contact) main#main > section.rp-page-hero{
    min-height:var(--rp-mobile-hero-height) !important;
    height:var(--rp-mobile-hero-height) !important;
    align-items:flex-end !important;
    overflow:hidden !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__content{
    width:calc(100% - 52px) !important;
    min-height:var(--rp-mobile-hero-height) !important;
    height:var(--rp-mobile-hero-height) !important;
    padding:18px 0 24px !important;
    align-items:flex-end !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy{
    min-height:100% !important;
    justify-content:flex-end !important;
    gap:0 !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .eyebrow{
    margin:0 0 14px !important;
    font-size:12px !important;
    letter-spacing:.18em !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy h1,
  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .rp-unified-hero-title{
    margin:0 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-weight:700 !important;
    line-height:.93 !important;
    letter-spacing:-.045em !important;
    text-wrap:balance !important;
  }

  html body.rp-page-about .rp-page-hero__copy h1,
  html body.rp-page-about .rp-page-hero__copy .rp-unified-hero-title{
    max-width:8.2ch !important;
    font-size:clamp(40px, 11.1vw, 52px) !important;
  }

  html body.rp-page-services .rp-page-hero__copy h1,
  html body.rp-page-services .rp-page-hero__copy .rp-unified-hero-title{
    max-width:10.6ch !important;
    font-size:clamp(34px, 9.85vw, 46px) !important;
  }

  html body.rp-page-process .rp-page-hero__copy h1,
  html body.rp-page-process .rp-page-hero__copy .rp-unified-hero-title{
    max-width:9ch !important;
    font-size:clamp(38px, 10.7vw, 49px) !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .lead,
  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy > p:not(.eyebrow){
    max-width:33ch !important;
    margin:16px 0 0 !important;
    color:rgba(255,255,255,.86) !important;
    -webkit-text-fill-color:rgba(255,255,255,.86) !important;
    font-size:clamp(14px, 3.95vw, 16px) !important;
    line-height:1.46 !important;
    font-weight:560 !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .button-row{
    width:100% !important;
    margin-top:18px !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .button-row .btn{
    width:100% !important;
    min-height:54px !important;
    font-size:clamp(13px,3.5vw,15px) !important;
  }

  /* Contact hero: same first-fold discipline with CTA and full details visible. */
  html body.rp-page-contact main#main > section.rp-contact-hero[data-rp-surface="dark"]{
    min-height:var(--rp-mobile-hero-height) !important;
    height:var(--rp-mobile-hero-height) !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  html body.rp-page-contact .rp-contact-hero__media,
  html body.rp-page-contact .rp-contact-hero__media img{
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  html body.rp-page-contact .rp-contact-hero__content{
    width:calc(100% - 52px) !important;
    min-height:var(--rp-mobile-hero-height) !important;
    height:var(--rp-mobile-hero-height) !important;
    margin:0 auto !important;
    padding:18px 0 24px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-end !important;
    align-items:flex-start !important;
    gap:0 !important;
  }

  html body.rp-page-contact .rp-contact-hero .eyebrow{
    margin:0 0 14px !important;
    font-size:12px !important;
    letter-spacing:.18em !important;
  }

  html body.rp-page-contact .rp-contact-title-final,
  html body.rp-page-contact h1#rp-contact-title{
    width:100% !important;
    max-width:10.6ch !important;
    margin:0 !important;
    font-size:clamp(33px, 9.7vw, 46px) !important;
    line-height:.93 !important;
    letter-spacing:-.045em !important;
  }

  html body.rp-page-contact .rp-contact-title-final .rp-contact-line{
    white-space:normal !important;
  }

  html body.rp-page-contact .rp-contact-hero__content > p:not(.eyebrow){
    max-width:33ch !important;
    margin:16px 0 0 !important;
    font-size:clamp(14px,3.95vw,16px) !important;
    line-height:1.46 !important;
    color:rgba(255,255,255,.86) !important;
    -webkit-text-fill-color:rgba(255,255,255,.86) !important;
  }

  html body.rp-page-contact .rp-contact-mobile-cta{
    width:100% !important;
    margin-top:18px !important;
  }

  html body.rp-page-contact .rp-contact-mobile-cta .btn{
    width:100% !important;
    min-height:54px !important;
    justify-content:center !important;
    font-size:clamp(13px,3.5vw,15px) !important;
  }

  html body.rp-page-contact .rp-contact-hero__details{
    width:100% !important;
    gap:12px !important;
    margin-top:18px !important;
    padding-top:14px !important;
    border-top:1px solid rgba(255,255,255,.28) !important;
    grid-template-columns:1fr !important;
  }

  html body.rp-page-contact .rp-contact-hero__details a{
    gap:4px !important;
  }

  html body.rp-page-contact .rp-contact-hero__details span{
    font-size:11px !important;
    letter-spacing:.18em !important;
  }

  html body.rp-page-contact .rp-contact-hero__details strong{
    font-size:14px !important;
    line-height:1.24 !important;
    word-break:break-word !important;
  }
}

@media (max-width:390px){
  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__content,
  html body.rp-page-contact .rp-contact-hero__content{
    width:calc(100% - 40px) !important;
  }

  html body.rp-page-about .rp-page-hero__copy h1,
  html body.rp-page-about .rp-page-hero__copy .rp-unified-hero-title{font-size:clamp(36px,10.5vw,47px) !important;}
  html body.rp-page-services .rp-page-hero__copy h1,
  html body.rp-page-services .rp-page-hero__copy .rp-unified-hero-title{font-size:clamp(31px,9.15vw,42px) !important;}
  html body.rp-page-process .rp-page-hero__copy h1,
  html body.rp-page-process .rp-page-hero__copy .rp-unified-hero-title{font-size:clamp(35px,10vw,45px) !important;}
  html body.rp-page-contact .rp-contact-title-final,
  html body.rp-page-contact h1#rp-contact-title{font-size:clamp(30px,9vw,41px) !important;}
}

@media (max-width:760px) and (max-height:760px){
  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__content,
  html body.rp-page-contact .rp-contact-hero__content{
    padding-top:14px !important;
    padding-bottom:20px !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .lead,
  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy > p:not(.eyebrow),
  html body.rp-page-contact .rp-contact-hero__content > p:not(.eyebrow){
    margin-top:14px !important;
    font-size:14px !important;
    line-height:1.4 !important;
  }

  html body.rp-standardized-page:not(.rp-page-contact) .rp-page-hero__copy .button-row,
  html body.rp-page-contact .rp-contact-mobile-cta,
  html body.rp-page-contact .rp-contact-hero__details{margin-top:14px !important;}
}
