/* =========================================================
   V42 FINAL CLIENT QA
   Typography, copy rhythm, approved five-member home roster,
   exact desktop logo/grid locks, and responsive safeguards.
   Loaded last so legacy theme files cannot undo these fixes.
   ========================================================= */

/* --- Client-locked desktop values --- */
@media (min-width:1101px){
  #siteHeader .brand-full-logo-img{height:75px!important;max-height:75px!important}
  #siteHeader.is-scrolled .brand-full-logo-img{height:74px!important;max-height:75px!important}
}
.expertise-v7-grid{display:grid!important;grid-template-columns:1.02fr 2fr!important;gap:18px!important;align-items:stretch!important}

/* --- Type scale: clear hierarchy without oversized copy --- */
#main .hero-v7-title{
  font-size:clamp(3.35rem,5.15vw,5.35rem)!important;
  line-height:.99!important;
  max-width:18ch!important;
  margin-block:18px 24px!important;
  text-wrap:balance;
}
#main .page-hero h1,
#main .page-hero .display{
  font-size:clamp(2.7rem,4.25vw,4.35rem)!important;
  line-height:1.08!important;
  max-width:23ch!important;
  text-wrap:balance;
}
#main .section-head h2,
#main .section-head .display,
#main .team-v29-heading h2{
  font-size:clamp(2.15rem,3.15vw,3.45rem)!important;
  line-height:1.12!important;
  max-width:20ch;
  text-wrap:balance;
}
#main .split-copy h2.display,
#main .contact-band h2.display,
#main .map-copy-v5 h2.display,
#main .form-panel-v5 h2.display,
#main .article-subhead h2.display,
#main .legal-blog-consult h2.display{
  font-size:clamp(2rem,2.7vw,3.15rem)!important;
  line-height:1.16!important;
  max-width:24ch;
  text-wrap:balance;
}
#main .article-title{
  font-size:clamp(2.65rem,4.2vw,4.45rem)!important;
  line-height:1.06!important;
  max-width:24ch!important;
  text-wrap:balance;
}
#main .article-title-long{font-size:clamp(2.35rem,3.65vw,3.85rem)!important;max-width:28ch!important}
#main .article-title-xlong{font-size:clamp(2.1rem,3.15vw,3.35rem)!important;max-width:32ch!important}
#main h3{line-height:1.3}

/* --- Paragraph rhythm / readable line lengths --- */
#main .hero-v7-intro{
  max-width:58ch!important;
  font-size:clamp(1rem,.94rem + .18vw,1.08rem)!important;
  line-height:1.78!important;
  text-wrap:pretty;
}
#main .section-head{gap:clamp(28px,4vw,58px)!important}
#main .section-head>div{min-width:0;max-width:760px}
#main .section-head>p{
  width:min(100%,54ch)!important;
  max-width:54ch!important;
  font-size:clamp(.96rem,.93rem + .12vw,1.02rem)!important;
  line-height:1.78!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .page-hero p,
#main .lead,
#main .article-lead,
#main .form-intro-v5,
#main .enquiry-routing-note,
#main .team-profile-bio-v27,
#main .legal-blog-consult p{
  width:min(100%,64ch)!important;
  max-width:64ch!important;
  font-size:clamp(.98rem,.94rem + .16vw,1.06rem)!important;
  line-height:1.8!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .split-copy>p,
#main .practice-panel .summary,
#main .practice-panel .description,
#main .why-box p,
#main .contact-band p,
#main .journal-card-body p,
#main .testimonial-card-v15 p,
#main .goal-box li,
#main .ops-row li{
  line-height:1.75!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
#main .split-copy>p,
#main .practice-panel .description,
#main .why-box p{max-width:62ch}
#main .article-copy{
  max-width:72ch!important;
  font-size:1.02rem!important;
  line-height:1.85!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
}

/* Arabic needs more vertical breathing room while retaining the same hierarchy. */
html[dir="rtl"] #main .hero-v7-title{font-size:clamp(3rem,4.55vw,4.7rem)!important;line-height:1.28!important;max-width:15ch!important}
html[dir="rtl"] #main .page-hero h1,
html[dir="rtl"] #main .page-hero .display{font-size:clamp(2.45rem,3.8vw,3.8rem)!important;line-height:1.42!important;max-width:25ch!important}
html[dir="rtl"] #main .section-head h2,
html[dir="rtl"] #main .section-head .display,
html[dir="rtl"] #main .team-v29-heading h2{line-height:1.42!important}
html[dir="rtl"] #main p,
html[dir="rtl"] #main li{line-height:1.95}

/* --- Our Team: all five approved people visible on wide desktop --- */
@media (min-width:1320px){
  .team-v29-slider{grid-template-columns:minmax(0,1fr)!important}
  .team-v29-slider>.team-v29-nav{display:none!important}
  .team-v29-viewport{overflow:visible!important;padding-inline:0!important}
  .team-v29-slider .team-v29-grid{
    grid-auto-flow:unset!important;
    grid-auto-columns:unset!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:clamp(12px,1.1vw,18px)!important;
  }
  #main .team-v29-card-copy h3{font-size:clamp(1.02rem,.9rem + .38vw,1.34rem)!important;line-height:1.26!important}
  #main .team-v29-card-copy p{font-size:.74rem!important;line-height:1.45!important}
  .team-v29-card-body{padding-inline:16px!important}
  .team-v29-view-button{min-height:50px!important;padding:10px 14px!important;font-size:12.5px!important}
}

/* --- Responsive typography / paragraph widths --- */
@media (max-width:900px){
  #main .section-head{display:block!important;margin-bottom:30px!important}
  #main .section-head>p{margin-top:14px!important;width:100%!important;max-width:58ch!important}
  .expertise-v7-grid{grid-template-columns:1fr!important}
}
@media (max-width:767px){
  #main .hero-v7-title{
    font-size:clamp(2.2rem,10.4vw,3.05rem)!important;
    line-height:1.02!important;
    max-width:12ch!important;
    margin-block:12px 16px!important;
  }
  html[dir="rtl"] #main .hero-v7-title{font-size:clamp(2.05rem,9.1vw,2.75rem)!important;line-height:1.34!important;max-width:12ch!important}
  #main .page-hero h1,#main .page-hero .display{
    font-size:clamp(1.95rem,8.4vw,2.65rem)!important;
    line-height:1.14!important;
    max-width:100%!important;
  }
  html[dir="rtl"] #main .page-hero h1,html[dir="rtl"] #main .page-hero .display{font-size:clamp(1.9rem,7.8vw,2.48rem)!important;line-height:1.5!important}
  #main .section-head h2,#main .section-head .display,#main .team-v29-heading h2,
  #main .split-copy h2.display,#main .contact-band h2.display,#main .map-copy-v5 h2.display,
  #main .form-panel-v5 h2.display,#main .article-subhead h2.display,#main .legal-blog-consult h2.display{
    font-size:clamp(1.72rem,7.4vw,2.25rem)!important;
    line-height:1.2!important;
    max-width:100%!important;
  }
  html[dir="rtl"] #main .section-head h2,html[dir="rtl"] #main .section-head .display,
  html[dir="rtl"] #main .team-v29-heading h2{line-height:1.48!important}
  #main .article-title,#main .article-title-long,#main .article-title-xlong{
    font-size:clamp(1.9rem,8.2vw,2.55rem)!important;
    line-height:1.12!important;
    max-width:100%!important;
  }
  #main .hero-v7-intro,#main .section-head>p,#main .page-hero p,#main .lead,#main .article-lead,
  #main .form-intro-v5,#main .enquiry-routing-note,#main .team-profile-bio-v27,#main .legal-blog-consult p{
    width:100%!important;
    max-width:100%!important;
    font-size:.94rem!important;
    line-height:1.72!important;
  }
  html[dir="rtl"] #main .hero-v7-intro,html[dir="rtl"] #main .section-head>p,html[dir="rtl"] #main .page-hero p,
  html[dir="rtl"] #main .lead,html[dir="rtl"] #main .article-lead{line-height:1.92!important}
  #main .article-copy{max-width:100%!important;font-size:.96rem!important;line-height:1.78!important}
  #main .practice-panel .summary,#main .practice-panel .description,#main .why-box p{max-width:100%!important}
}
@media (max-width:420px){
  #main .hero-v7-title{font-size:clamp(2.02rem,10vw,2.58rem)!important}
  #main .page-hero h1,#main .page-hero .display{font-size:clamp(1.78rem,8vw,2.2rem)!important}
  #main .section-head h2,#main .section-head .display,#main .team-v29-heading h2{font-size:clamp(1.58rem,7vw,1.98rem)!important}
  #main .hero-v7-intro,#main .section-head>p,#main .page-hero p,#main .lead,#main .article-lead{font-size:.9rem!important}
}
