/* R72 — mobile refinement pass.
 * Targets: compact testimonials, redesigned doctor block, footer lockup,
 * and removal of the excess gap before the footer on phones.
 */

@media (max-width:760px){
  /* No artificial strip/gap before the mobile header. */
  body.home{margin-top:0!important;padding-top:0!important}
  body.home .r66-site-header{margin-top:0!important}
  body.home:not(.admin-bar) .r66-site-header{top:0!important}
  body.home .scroll-progress{display:none!important}
  /* Remove the large empty cream area before the footer/contact end. */
  body.home .contact{
    padding-top:42px!important;
    padding-bottom:24px!important;
  }
  body.home .contact-grid{
    gap:10px!important;
  }
  body.home .contact-copy{
    padding:0 0 14px!important;
  }
  body.home .contact h2{
    margin-bottom:14px!important;
  }
  body.home .contact-copy>p:last-child{
    margin-bottom:0!important;
    font-size:13px!important;
    line-height:1.65!important;
  }
  body.home .contact-action,
  body.home .contact-action.primary{
    min-height:96px!important;
    padding:20px 20px!important;
    margin:0!important;
    border-radius:18px!important;
  }
  body.home .contact-action span{font-size:21px!important}
  body.home .contact-action small{font-size:9.5px!important}

  /* Testimonials: compact editorial card instead of a tall empty panel. */
  body.home .voices{
    padding:34px 0 38px!important;
  }
  body.home .voices-layout{
    width:calc(100% - 28px)!important;
    display:block!important;
  }
  body.home .voices-label{
    margin:0 0 10px!important;
  }
  body.home .voices-label .eyebrow{
    font-size:8.5px!important;
    margin-bottom:6px!important;
  }
  body.home .voices h2{
    max-width:330px!important;
    font-size:31px!important;
    line-height:1.01!important;
    margin:6px 0 10px!important;
  }
  body.home .rating{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    margin:0!important;
  }
  body.home .rating>b{
    font-size:27px!important;
    line-height:1!important;
  }
  body.home .rating span{
    font-size:9px!important;
    line-height:1!important;
  }
  body.home .rating small{
    display:block!important;
    margin-top:3px!important;
    font-size:5.8px!important;
    letter-spacing:.08em!important;
  }
  body.home .quote-stage,
  html[dir="rtl"] body.home .quote-stage{
    min-height:0!important;
    height:auto!important;
    margin-top:12px!important;
    padding:13px 0 0!important;
    border-top:1px solid rgba(255,255,255,.13)!important;
  }
  body.home .quote-mark{
    display:block!important;
    height:24px!important;
    margin:0!important;
    font-size:38px!important;
    line-height:.8!important;
  }
  body.home .quote blockquote{
    max-width:100%!important;
    margin:5px 0 11px!important;
    font-size:19px!important;
    line-height:1.28!important;
  }
  body.home .quote p{
    margin:0!important;
    font-size:8px!important;
    line-height:1.2!important;
  }
  body.home .quote p small{font-size:8px!important}
  body.home .quote-controls{
    position:static!important;
    display:flex!important;
    gap:8px!important;
    margin-top:12px!important;
    padding:0!important;
  }
  body.home .quote-controls button{
    width:32px!important;
    height:32px!important;
  }

  /* Full mobile redesign for the doctor section. */
  body.home .doctor,
  html[dir="rtl"] body.home .doctor{
    display:flex!important;
    flex-direction:column!important;
    gap:16px!important;
    min-height:0!important;
    padding:26px 14px 34px!important;
    background:
      radial-gradient(circle at 84% 4%,rgba(59,125,181,.19),transparent 30%),
      linear-gradient(145deg,#082f54 0%,#0a4a76 54%,#07395f 100%)!important;
  }
  body.home .doctor-photo,
  html[dir="rtl"] body.home .doctor-photo{
    order:1!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:1.55/1!important;
    margin:0!important;
    border-radius:22px 46px 22px 22px!important;
    clip-path:none!important;
    overflow:hidden!important;
    box-shadow:0 18px 42px rgba(1,18,34,.22)!important;
  }
  html[dir="rtl"] body.home .doctor-photo{border-radius:46px 22px 22px 22px!important}
  body.home .doctor-photo .doctor-real-photo,
  html[dir="rtl"] body.home .doctor-photo .doctor-real-photo{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:cover!important;
    object-position:40% 25%!important;
    transform:scale(1.025)!important;
    filter:none!important;
  }
  body.home .doctor-content,
  html[dir="rtl"] body.home .doctor-content{
    order:2!important;
    padding:2px 8px 0!important;
    align-self:stretch!important;
  }
  body.home .doctor-content .eyebrow{
    margin:0 0 8px!important;
    font-size:8.5px!important;
  }
  body.home .doctor h2,
  html[dir="rtl"] body.home .doctor h2{
    font-size:36px!important;
    line-height:1.02!important;
    margin:0 0 14px!important;
  }
  body.home .doctor-content .lead,
  html[dir="rtl"] body.home .doctor-content .lead{
    max-width:100%!important;
    margin:0 0 12px!important;
    font-size:17px!important;
    line-height:1.45!important;
  }
  body.home .doctor-content>p:not(.eyebrow):not(.lead),
  html[dir="rtl"] body.home .doctor-content>p:not(.eyebrow):not(.lead){
    margin:0!important;
    font-size:13px!important;
    line-height:1.65!important;
    color:#d1e0ea!important;
  }
  body.home .doctor-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin:18px 0 16px!important;
    padding:0!important;
    border:0!important;
  }
  body.home .doctor-stats span{
    min-height:70px!important;
    padding:11px 8px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.055)!important;
    align-content:center!important;
  }
  body.home .doctor-stats b{font-size:21px!important}
  body.home .doctor-stats small{
    margin-top:5px!important;
    font-size:6.2px!important;
    line-height:1.35!important;
  }
  body.home .doctor-content .button{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
    margin-top:0!important;
  }

  /* Floating booking chip obscured copy in the doctor/testimonial sections. */
  body.home .floating-book{display:none!important}

  /* Footer: one compact, centered brand lockup and tighter social/motto rhythm. */
  .home .site-footer .footer-main{
    padding:28px 0 0!important;
  }
  .home .site-footer .footer-grid{
    grid-template-columns:1fr!important;
    gap:16px!important;
    padding:0 0 20px!important;
  }
  .home .site-footer .footer-brand{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    margin:0!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand{
    width:max-content!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 auto!important;
    gap:12px!important;
    align-items:center!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r69-footer-brand-mark{
    width:58px!important;
    height:58px!important;
    flex:0 0 58px!important;
    margin:0!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .approved-brand-raster{
    inset:5px!important;
    width:48px!important;
    height:48px!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand-copy{
    width:210px!important;
    max-width:210px!important;
    min-width:0!important;
    text-align:left!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-name{
    display:block!important;
    font-size:15.5px!important;
    line-height:1.06!important;
    white-space:nowrap!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-name>span{
    display:inline!important;
    font-size:.70em!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice{
    grid-template-columns:18px auto 18px!important;
    gap:5px!important;
    margin-top:5px!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-practice b{
    font-size:6.6px!important;
    letter-spacing:.13em!important;
  }
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-location{
    margin-top:3px!important;
    font-size:6.2px!important;
    letter-spacing:.18em!important;
  }
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand{
    flex-direction:row-reverse!important;
  }
  html[dir="rtl"] .home .site-footer .footer-brand .r69-footer-brand-copy{
    text-align:right!important;
    direction:rtl!important;
  }

  .home .site-footer .footer-motto{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "label social"
      "smile smile"
      "motive motive"!important;
    align-items:center!important;
    gap:7px 12px!important;
    padding:4px 0 0!important;
    margin:0!important;
  }
  .home .site-footer .footer-motto>strong{
    grid-area:label!important;
    margin:0!important;
    font-size:8.5px!important;
  }
  .home .site-footer .footer-motto .social-links{
    grid-area:social!important;
    margin:0!important;
    justify-content:flex-end!important;
  }
  .home .site-footer .footer-motto .social-links a,
  .home .site-footer .footer-motto .social-links span{
    width:34px!important;
    height:34px!important;
  }
  .home .site-footer .footer-motto>span{
    grid-area:smile!important;
    margin:5px 0 0!important;
    font-size:18px!important;
  }
  .home .site-footer .footer-motto>em{
    grid-area:motive!important;
    margin:0!important;
    font-size:15px!important;
  }
  .home .site-footer .footer-bottom,
  .home .site-footer .footer-bottom-r64{
    width:calc(100% - 28px)!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:14px 0 18px!important;
    gap:8px!important;
    justify-items:center!important;
    text-align:center!important;
  }
  .home .site-footer .footer-copyright{
    width:100%!important;
    justify-content:center!important;
    gap:4px 6px!important;
    font-size:8.7px!important;
    line-height:1.5!important;
  }
  .home .site-footer .footer-legal-nav{
    gap:8px 13px!important;
    font-size:9px!important;
  }
}

@media (max-width:420px){
  body.home .voices h2{font-size:29px!important}
  body.home .quote blockquote{font-size:18px!important}
  body.home .doctor-photo,
  html[dir="rtl"] body.home .doctor-photo{aspect-ratio:1.42/1!important}
  body.home .doctor h2,
  html[dir="rtl"] body.home .doctor h2{font-size:33px!important}
  body.home .doctor-content .lead,
  html[dir="rtl"] body.home .doctor-content .lead{font-size:16px!important}
  .home .site-footer .footer-brand .r69-footer-brand-copy{width:190px!important;max-width:190px!important}
  .home .site-footer .footer-brand .r69-footer-brand .r67-brand-name{font-size:14px!important}
}
