/* R77 — mobile + Arabic polish based on latest staging review.
   Removes unwanted chips/stats, hardens Arabic typography, fixes header/hero/footer composition. */

/* Safety: if any old markup survives, keep these rows hidden. */
body.home .r66-hero-trust,
body.home .coverage-r69-meta,
body.home .doctor-stats{display:none!important}

/* Phone numbers: keep western digits in correct LTR order inside RTL UI. */
a[href^="tel:"],
a[href^="tel:"] *,
.r67-call-number,
.coverage-r69-call span,
.urgent-panel a b,
.footer-contact a[href^="tel:"]{
  direction:ltr!important;
  unicode-bidi:bidi-override!important;
  font-family:"Plus Jakarta Sans",Arial,sans-serif!important;
  letter-spacing:0!important;
}
html[dir="rtl"] body.home .r67-primary-call,
html[dir="rtl"] body.home .coverage-r69-call,
html[dir="rtl"] body.home .urgent-panel a{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  flex-direction:row!important;
  justify-content:center!important;
  text-align:center!important;
}

/* Arabic micro typography: stop disconnected letters caused by Latin tracking/uppercase rules. */
html[dir="rtl"] :where(
  .eyebrow,
  .r66-hero-eyebrow,
  .coverage-r69-copy .eyebrow,
  .visit-heading .eyebrow,
  .voices-label .eyebrow,
  .doctor-content .eyebrow,
  .footer-motto strong,
  .map-topbar small,
  .map-details p small,
  .urgent-copy span,
  .urgent-panel a small,
  .hours-title p b,
  .r67-brand-practice b,
  .r67-brand-location,
  .footer-legal-nav a,
  .footer-copyright
){
  font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
  text-transform:none!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  line-height:1.45!important;
  font-feature-settings:"liga" 1,"calt" 1!important;
}

/* Arabic headings and paragraph rhythm. */
html[dir="rtl"] body.home .r66-hero-eyebrow{
  font-size:13px!important;
  font-weight:700!important;
  gap:10px!important;
}
html[dir="rtl"] body.home .hero-copy h1{
  font-family:"Noto Naskh Arabic",Tahoma,serif!important;
  font-size:clamp(52px,10.4vw,82px)!important;
  line-height:1.08!important;
  letter-spacing:0!important;
}
html[dir="rtl"] body.home .hero-intro{
  font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  max-width:46rem!important;
}
html[dir="rtl"] .coverage-r69-copy h3,
html[dir="rtl"] body.home .doctor h2,
html[dir="rtl"] .voices h2,
html[dir="rtl"] .visit-heading h2{
  font-family:"Noto Naskh Arabic",Tahoma,serif!important;
  letter-spacing:0!important;
}
html[dir="rtl"] .coverage-r69-copy h3{
  display:block!important;
  font-size:54px!important;
  line-height:1.15!important;
}
html[dir="rtl"] .coverage-r69-copy h3 em{
  display:inline!important;
  font:inherit!important;
  font-size:.9em!important;
  color:#e2b65c!important;
  white-space:normal!important;
}
html[dir="rtl"] .coverage-r69-copy p,
html[dir="rtl"] .urgent-copy small,
html[dir="rtl"] .doctor-content>p:not(.eyebrow):not(.lead){
  font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
  font-size:18px!important;
  line-height:1.9!important;
}
html[dir="rtl"] body.home .doctor h2{
  font-size:58px!important;
  line-height:1.16!important;
  margin-bottom:18px!important;
}
html[dir="rtl"] body.home .doctor h2 em{
  display:block!important;
  margin-top:2px!important;
  color:#efbf60!important;
  line-height:1.14!important;
}
html[dir="rtl"] body.home .doctor-content .lead{
  font-family:"Noto Naskh Arabic",Tahoma,serif!important;
  font-size:30px!important;
  line-height:1.48!important;
  margin-bottom:16px!important;
}

/* Header lockup: bigger, cleaner and aligned. */
@media(max-width:900px){
  html[dir="rtl"] .home .r67-header-inner,
  html[dir="rtl"] .r67-header-inner{
    width:calc(100% - 24px)!important;
    min-height:78px!important;
    padding:10px 0!important;
    gap:12px!important;
    align-items:center!important;
  }
  html[dir="rtl"] .home .r67-brand,
  html[dir="rtl"] .r67-brand{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 70px!important;
    align-items:center!important;
    gap:14px!important;
    max-width:390px!important;
    margin:0 0 0 auto!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-mark,
  html[dir="rtl"] .r67-brand .r67-brand-mark{
    width:70px!important;
    height:70px!important;
  }
  html[dir="rtl"] .home .r67-brand .approved-brand-raster,
  html[dir="rtl"] .r67-brand .approved-brand-raster{
    inset:6px!important;
    width:58px!important;
    height:58px!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-copy,
  html[dir="rtl"] .r67-brand .r67-brand-copy{
    direction:rtl!important;
    text-align:right!important;
    min-width:0!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-ar,
  html[dir="rtl"] .r67-brand .r67-brand-ar{
    justify-items:end!important;
    gap:4px!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-name,
  html[dir="rtl"] .r67-brand .r67-brand-name{
    font-family:"Noto Naskh Arabic",Tahoma,serif!important;
    font-size:24px!important;
    line-height:1.08!important;
    white-space:normal!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-name > span,
  html[dir="rtl"] .r67-brand .r67-brand-name > span{
    font-size:.66em!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-practice,
  html[dir="rtl"] .r67-brand .r67-brand-practice{
    margin-top:2px!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-practice b,
  html[dir="rtl"] .r67-brand .r67-brand-practice b{
    font-size:14px!important;
    font-weight:700!important;
  }
  html[dir="rtl"] .home .r67-brand .r67-brand-location,
  html[dir="rtl"] .r67-brand .r67-brand-location{
    font-size:13px!important;
    color:#d6dde4!important;
  }

  /* Compact mobile hero and remove space under slider. */
  body.home .r67-hero{padding-top:0!important;padding-bottom:0!important}
  body.home .r66-hero-layout{gap:12px!important;padding-bottom:0!important}
  body.home .r66-hero-copy{padding-bottom:0!important}
  body.home .r66-hero-media{margin-top:8px!important;padding:8px 8px 0!important;border-radius:24px!important}
  body.home .r66-hero-stage.r67-hero-stage{aspect-ratio:1.42/1!important}
  body.home .r66-hero-rail{
    min-height:24px!important;
    height:auto!important;
    padding:8px 0 0!important;
    margin:0!important;
    align-items:center!important;
  }
  body.home .r66-slide-copy{display:none!important}
  body.home .hero-slider-controls.r66-hero-controls{margin-left:auto!important}
  body.home .hero.r66-hero + .services,
  html[dir="rtl"] body.home .hero.r66-hero + .services{
    margin-top:0!important;
    padding-top:22px!important;
  }

  /* Keep CTA row compact after removing benefit chips. */
  body.home .r66-hero-actions{margin-top:18px!important}

  /* Insurance module cleaner after meta removal. */
  body.home .coverage-r69-copy{grid-template-areas:"eyebrow eyebrow" "title title" "text text" "call call"!important}
  body.home .coverage-r69-copy{gap:14px!important}

  /* Doctor section: remove visual clutter after stats removal. */
  body.home .doctor-content{padding-bottom:44px!important}
  body.home .doctor .button{margin-top:14px!important}

  /* Footer: rebuild into compact centered stack with clean Arabic order. */
  .home .site-footer .footer-main{padding:26px 0 0!important}
  .home .site-footer .footer-grid{
    width:calc(100% - 32px)!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:0!important;
    align-items:start!important;
  }
  .home .site-footer .footer-grid > div:nth-child(2),
  .home .site-footer .footer-grid > div:nth-child(3){display:none!important}
  .home .site-footer .footer-brand{
    display:flex!important;
    justify-content:center!important;
    padding:0 0 20px!important;
    margin:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand{
    display:grid!important;
    align-items:center!important;
    gap:14px!important;
    width:min(100%,360px)!important;
    margin:0 auto!important;
  }
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand{
    grid-template-columns:minmax(0,1fr) 78px!important;
  }
  html[dir="ltr"] .home .site-footer .footer-brand .r69-footer-brand,
  html[lang^="de"] .home .site-footer .footer-brand .r69-footer-brand,
  html[lang^="en"] .home .site-footer .footer-brand .r69-footer-brand{
    grid-template-columns:78px minmax(0,1fr)!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand-mark{width:78px!important;height:78px!important;margin:0!important}
  .home .site-footer .footer-brand .r69-footer-brand .approved-brand-raster{inset:6px!important;width:66px!important;height:66px!important}
  .home .site-footer .footer-brand .r69-footer-brand-copy{min-width:0!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand-copy{text-align:right!important;direction:rtl!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-ar{display:grid!important;justify-items:end!important;gap:4px!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-name{
    font-family:"Noto Naskh Arabic",Tahoma,serif!important;
    font-size:22px!important;
    line-height:1.12!important;
    white-space:normal!important;
  }
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-practice b{font-size:13px!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-location{font-size:12px!important}

  .home .site-footer .footer-motto{
    display:grid!important;
    justify-items:center!important;
    align-items:center!important;
    gap:12px!important;
    padding:18px 0 18px!important;
    text-align:center!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
  }
  .home .site-footer .footer-motto strong{margin:0!important;font-size:16px!important;color:#e2b65c!important}
  .home .site-footer .footer-motto .social-links{margin:0!important;display:flex!important;gap:12px!important;justify-content:center!important}
  .home .site-footer .footer-motto > span{margin:0!important;font-size:22px!important;line-height:1.15!important}
  .home .site-footer .footer-motto > em{margin:0!important;font-size:22px!important;line-height:1.15!important}
  .home .site-footer .footer-bottom-r64{
    width:calc(100% - 32px)!important;
    margin:0 auto!important;
    padding:16px 0 22px!important;
    display:grid!important;
    justify-items:center!important;
    gap:12px!important;
    text-align:center!important;
  }
  .home .site-footer .footer-copyright{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:6px 10px!important;
    font-size:12px!important;
    line-height:1.7!important;
  }
  .home .site-footer .footer-legal-nav{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:10px 24px!important;
    font-size:14px!important;
  }
}

@media(max-width:760px){
  html[dir="rtl"] .home .r67-header-inner,
  html[dir="rtl"] .r67-header-inner{min-height:70px!important}
  html[dir="rtl"] .home .r67-brand,
  html[dir="rtl"] .r67-brand{grid-template-columns:minmax(0,1fr) 58px!important;gap:12px!important;max-width:300px!important}
  html[dir="rtl"] .home .r67-brand .r67-brand-mark,
  html[dir="rtl"] .r67-brand .r67-brand-mark{width:58px!important;height:58px!important}
  html[dir="rtl"] .home .r67-brand .approved-brand-raster,
  html[dir="rtl"] .r67-brand .approved-brand-raster{width:48px!important;height:48px!important}
  html[dir="rtl"] .home .r67-brand .r67-brand-name,
  html[dir="rtl"] .r67-brand .r67-brand-name{font-size:20px!important}
  html[dir="rtl"] .home .r67-brand .r67-brand-practice b,
  html[dir="rtl"] .r67-brand .r67-brand-practice b{font-size:11.5px!important}
  html[dir="rtl"] .home .r67-brand .r67-brand-location,
  html[dir="rtl"] .r67-brand .r67-brand-location{font-size:10.5px!important}

  html[dir="rtl"] body.home .hero-copy h1{font-size:clamp(40px,12.6vw,60px)!important}
  html[dir="rtl"] body.home .hero-intro{font-size:15.5px!important;line-height:1.85!important}
  body.home .r67-primary-call{min-height:54px!important;padding:0 18px!important}
  body.home .r66-secondary-link{font-size:11px!important}
  body.home .r66-hero-stage.r67-hero-stage{aspect-ratio:1.22/1!important}
  body.home .r66-hero-media{margin-bottom:0!important}
  body.home .r66-hero-rail{padding-top:6px!important}

  html[dir="rtl"] .coverage-r69-copy h3{font-size:42px!important;line-height:1.2!important}
  html[dir="rtl"] .coverage-r69-copy p{font-size:15.5px!important;line-height:1.85!important}

  html[dir="rtl"] body.home .doctor h2{font-size:44px!important;line-height:1.2!important}
  html[dir="rtl"] body.home .doctor-content .lead{font-size:22px!important;line-height:1.55!important}
  html[dir="rtl"] body.home .doctor-content>p:not(.eyebrow):not(.lead){font-size:15px!important;line-height:1.85!important}

  html[dir="rtl"] .map-details p small,
  html[dir="rtl"] .urgent-copy span,
  html[dir="rtl"] .urgent-panel a small,
  html[dir="rtl"] .coverage-r69-copy .eyebrow,
  html[dir="rtl"] .visit-heading .eyebrow{font-size:14px!important}

  .home .site-footer .footer-brand .r69-footer-brand{width:min(100%,320px)!important}
  .home .site-footer .footer-brand .r69-footer-brand-mark{width:64px!important;height:64px!important}
  .home .site-footer .footer-brand .r69-footer-brand .approved-brand-raster{width:54px!important;height:54px!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-name{font-size:23px!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-practice b{font-size:11.5px!important}
  html[dir="rtl"] .home .site-footer .footer-brand .r67-brand-location{font-size:10.5px!important}
  .home .site-footer .footer-motto > span,
  .home .site-footer .footer-motto > em{font-size:18px!important}
  .home .site-footer .footer-copyright{font-size:10.5px!important}
  .home .site-footer .footer-legal-nav{font-size:12.5px!important}
}
