/* NEXT RISE ARC v1.19.20 | Mobile-only refinements. Desktop untouched. */
.nra-mobile-heading{display:none}
@media (max-width:980px) {
  /* On the public-facing mobile view, keep the header flush with the top edge. 
     WordPress adds a 46px top offset for logged-in admins; suppress its front-end
     toolbar on small screens rather than leaving a blank strip above the header. */
  html, html:has(body.admin-bar) { margin-top:0 !important; padding-top:0 !important; }
  body { margin-top:0 !important; padding-top:0 !important; }
  body.admin-bar #wpadminbar {display:none !important;}
  body .site-header, body.admin-bar .site-header {
    top:0 !important;
    margin:0 !important;
    padding-top:0 !important;
  }
  body .site-header .header-cta,
  body .site-header .mobile-menu-cta,
  body .site-header #mobile-navigation .mobile-menu-cta {display:none !important;}
}
@media (max-width:700px) {
  body .site-header {min-height:67px;}
  body .site-header .header-inner {min-height:67px;margin-top:0;padding-top:0;}
  /* Visible heading alternates only on mobile; the exact desktop wording is preserved. */
  .home .nra-desktop-heading {display:none !important;}
  .home .nra-mobile-heading {display:inline !important;}
  .home #pain-title {text-wrap:pretty;line-height:1.34;}
  /* Center all text and CTA labels in the homepage services section. */
  .home #services .section-title {text-align:center;text-wrap:balance;font-size:clamp(24px,6.9vw,30px);line-height:1.45;}
  .home #services .service-card {text-align:center;align-items:center;}
  .home #services .service-card h3,
  .home #services .service-card p {text-align:center;width:100%;max-width:none;margin-left:auto;margin-right:auto;}
  .home #services .service-card .card-link {align-self:center;display:inline-flex;justify-content:center;align-items:center;text-align:center;}
  .home #services .service-card .service-icon {margin-inline:auto;}
  /* Controlled heading breaks for case studies, with no orphaned fragments. */
  .home #works .section-heading-row {align-items:stretch;}
  .home #works .section-title {text-wrap:balance;line-height:1.4;overflow-wrap:normal;word-break:normal;}
  .home #works .section-note {max-width:100%;line-height:1.6;}
  .home #works .case-img h3 {
    font-size:clamp(17px,5vw,22px) !important;
    max-width:calc(100% - 24px);
    white-space:nowrap;
    line-height:1.45;
  }
  .home #works .case-content {min-width:0;}
  .home #works .case-content p {overflow-wrap:break-word;line-height:1.65;}
  /* Representative heading stays together; message breaks at a natural phrase. */
  .home #representative #representative-title {white-space:nowrap;font-size:clamp(25px,7.4vw,34px);}
  .home #representative .representative-content h3 {font-size:clamp(19px,5.8vw,24px);line-height:1.55;overflow-wrap:normal;word-break:normal;text-wrap:pretty;}
  .home #representative .representative-content p {line-height:1.8;overflow-wrap:break-word;}
}
