/* =========================================================
   Arabic / RTL overrides — loaded only on /ar/ pages
   ========================================================= */
:root{--ar-sans:"IBM Plex Sans Arabic",Arial,Tahoma,sans-serif;--ar-serif:"Noto Naskh Arabic","IBM Plex Sans Arabic",Georgia,serif}

/* Typography: Arabic must never use letter-spacing (it breaks letter joining) */
html[dir=rtl] *{letter-spacing:0!important}
html[dir=rtl] body,
html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea,html[dir=rtl] button{font-family:var(--ar-sans)}
html[dir=rtl] body{line-height:1.85}
html[dir=rtl] :is(h1,h2,h3,blockquote,summary,.statement,.lead,.service-lead,.message-lead,.article-lead,.legal-intro,.vision-statement,
 .cta-number,.consultation-phone,.contact-lines a,.contact-hours,.footer-office strong,.mega-links strong,.contact-strip strong,
 .related-links a,.experience-grid strong,.service-detail-num,.drop-menu a,.team-mini strong,.aside-box strong,.aside-related a,
 .aside-phone,.header-phone,.footer-v5 .footer-contact-col .contact-value,.established strong,.contact-strip a span){font-family:var(--ar-serif)}
html[dir=rtl] :is(.email-value,[dir=ltr]){font-family:Arial,Helvetica,sans-serif}
html[dir=rtl] .header-phone [dir=ltr]{font-family:Georgia,"Times New Roman",serif}
html[dir=rtl] :is(h1,h2,h3){line-height:1.35;font-weight:600}
html[dir=rtl] .hero h1{line-height:1.25;font-size:clamp(3rem,6vw,5.6rem)}
html[dir=rtl] .inner-hero h1{line-height:1.25;font-size:clamp(2.8rem,5.5vw,5.4rem)}
html[dir=rtl] .post-hero h1{font-size:clamp(2.1rem,4vw,3.8rem)}
html[dir=rtl] :is(.hero h1 span,.inner-hero h1 span){font-style:normal}
html[dir=rtl] .eyebrow,html[dir=rtl] .footer-label,html[dir=rtl] .contact-name,html[dir=rtl] .member-role,html[dir=rtl] .team-role,
html[dir=rtl] .team-speciality,html[dir=rtl] .member-speciality,html[dir=rtl] .post-meta{font-size:.8rem!important}
html[dir=rtl] .btn{font-size:.85rem}
html[dir=rtl] .text-link{font-size:.85rem}
html[dir=rtl] .nav{font-size:.92rem}
html[dir=rtl] .mega-links strong{font-size:1.05rem}
html[dir=rtl] .faq-list summary{font-size:1.2rem}
html[dir=rtl] .footer-v5 .footer-col>a{font-size:.88rem}
html[dir=rtl] .member-summary,html[dir=rtl] .team-bio,html[dir=rtl] .member-facts p{font-size:.86rem!important}

/* Hero & overlays: mirror gradient direction */
html[dir=rtl] .hero-overlay{background:linear-gradient(270deg,rgba(7,15,35,.94),rgba(9,20,45,.72) 55%,rgba(9,20,45,.38))}
html[dir=rtl] .inner-hero-overlay{background:linear-gradient(270deg,rgba(7,15,35,.94),rgba(9,20,45,.64),rgba(9,20,45,.25))}
html[dir=rtl] .hero-content:before{left:auto;right:-35px}
html[dir=rtl] .footer-v5 .footer-accent{background:linear-gradient(270deg,var(--gold) 0 22%,#1a2947 22% 100%)}
html[dir=rtl] .footer:before{background:linear-gradient(270deg,var(--gold),transparent 70%)}

/* Header */
html[dir=rtl] .nav .lang{padding-left:0;border-left:0;padding-right:15px;border-right:1px solid rgba(255,255,255,.25);font-family:Arial,Helvetica,sans-serif}
html[dir=rtl] .header-phone{padding-left:0;border-left:0;padding-right:18px;border-right:1px solid rgba(255,255,255,.22)}
html[dir=rtl] .footer-lang{font-family:Arial,Helvetica,sans-serif}
html[dir=rtl] .mega-menu{transform:translateX(-54%)}
html[dir=rtl] .mega-links>a{border-right:0;border-left:1px solid #e7e2d8}
html[dir=rtl] .mega-links>a:nth-child(even){border-left:0}
@media(max-width:1000px){
 html[dir=rtl] .header-phone{border-right:0;padding-right:0}
 html[dir=rtl] .mega-menu{transform:none}
 html[dir=rtl] .mega-links>a{border-left:0}
}

/* Eyebrow numbers & small labels */
html[dir=rtl] .eyebrow span{margin-right:0;margin-left:12px}
html[dir=rtl] .contact-strip .mini-label{padding-right:0;border-right:0;padding-left:22px;border-left:1px solid rgba(16,27,56,.3)}
html[dir=rtl] .contact-strip a span{margin-left:0;margin-right:12px}
@media(max-width:650px){html[dir=rtl] .contact-strip .mini-label{border-left:0;padding-left:0}}

/* Framed images: mirror decorative offset borders */
html[dir=rtl] .image-frame:before{inset:20px 20px -20px -20px}
html[dir=rtl] .vision-image:after{inset:24px 24px -24px -24px}
html[dir=rtl] .founder-photo:after,html[dir=rtl] .about-founder .founder-photo:after{inset:22px 22px -22px -22px}
html[dir=rtl] .about-vision .vision-image:after{inset:20px 20px -20px -20px}
html[dir=rtl] .message-portrait:after{inset:16px 16px -16px -16px}
html[dir=rtl] .established{right:auto;left:-35px}
html[dir=rtl] .about-vision .vision-content{padding-left:0;padding-right:15px}
@media(max-width:700px){
 html[dir=rtl] .about-founder .founder-photo:after,html[dir=rtl] .about-vision .vision-image:after,html[dir=rtl] .founder-photo:after{inset:12px 10px -12px -10px}
 html[dir=rtl] .vision-image:after{inset:14px 10px -14px -10px}
}

/* Cards, arrows & hover motion */
html[dir=rtl] .service-card .arrow{right:auto;left:30px}
html[dir=rtl] .service-card:hover .arrow{transform:translateX(-5px)}
html[dir=rtl] .service-card:before{left:auto;right:0}
html[dir=rtl] .text-link:hover span{transform:translateX(-6px)}
html[dir=rtl] .footer-col>a:hover,html[dir=rtl] .footer-v5 .footer-col>a:hover{transform:translateX(-3px)}
html[dir=rtl] .services-all-link,html[dir=rtl] .team-more{text-align:left}
@media(max-width:650px){html[dir=rtl] .services-all-link,html[dir=rtl] .team-more{text-align:right}}

/* Principles / vision / grids with one-sided padding or borders */
html[dir=rtl] .principle-grid article{padding:35px 0 10px 30px;border-right:0;border-left:1px solid rgba(255,255,255,.16)}
html[dir=rtl] .principle-grid article:not(:first-child){padding-left:30px;padding-right:30px}
html[dir=rtl] .principle-grid article:last-child{border-left:0}
@media(max-width:650px){html[dir=rtl] .principle-grid article,html[dir=rtl] .principle-grid article:not(:first-child){padding:30px 0;border-left:0}}
html[dir=rtl] .vision article+article{border-left:0;border-right:1px solid #c9c1b1;padding-left:0;padding-right:8%}
html[dir=rtl] .about-facts div+div{border-left:0;border-right:1px solid var(--line);padding-left:0;padding-right:22px}
html[dir=rtl] .insight-placeholder>div+div{border-left:0;border-right:1px solid var(--line)}
html[dir=rtl] .related-links>a:nth-child(odd){padding-right:0;border-right:0;padding-left:30px;border-left:1px solid var(--line)}
html[dir=rtl] .related-links>a:nth-child(even){padding-left:0;padding-right:30px}
@media(max-width:650px){html[dir=rtl] .related-links>a:nth-child(odd),html[dir=rtl] .related-links>a:nth-child(even){padding:20px 0;border-left:0}}

/* Messages & CTAs */
html[dir=rtl] .kefah-message .message-copy{border-left:0;padding-left:0;border-right:1px solid rgba(255,255,255,.18);padding-right:55px}
html[dir=rtl] .refined-cta-actions{padding-left:0;border-left:0;padding-right:45px;border-right:1px solid rgba(255,255,255,.17)}
@media(max-width:1000px){html[dir=rtl] .kefah-message .message-copy{border-right:0;padding:35px 0 0}}
@media(max-width:850px){html[dir=rtl] .refined-cta-actions{border-right:0;padding:35px 0 0}}

/* FAQ accordions */
html[dir=rtl] .faq-list summary{padding:25px 0 25px 48px}
html[dir=rtl] .faq-list summary:after{right:auto;left:4px}
html[dir=rtl] .faq-list details p{padding:0 0 25px 50px}
html[dir=rtl] .about-faq .faq-category summary{padding:19px 0 19px 34px}
html[dir=rtl] .about-faq .faq-category summary:after{right:auto;left:3px}
html[dir=rtl] .about-faq .faq-category details p{padding:0 0 20px 30px}

/* Phone numbers & emails stay LTR but align with RTL flow */
html[dir=rtl] [dir=ltr]{unicode-bidi:isolate}
html[dir=rtl] .contact-lines a[dir=ltr],html[dir=rtl] .cta-number,html[dir=rtl] .consultation-phone,html[dir=rtl] .aside-phone{text-align:right}
html[dir=rtl] .contact-form-card input[dir=ltr]{text-align:right}
html[dir=rtl] .contact-form-card input[dir=ltr]::placeholder{text-align:right}
