html[lang^="ar"]{direction:rtl}
html[lang^="ar"] body{font-family:Tahoma,Arial,sans-serif;line-height:1.9}
html[lang^="ar"] :is(h1,h2,h3,h4,p,button,a,label){letter-spacing:normal!important}
html[lang^="ar"] :is(.ag-hero,.article-body,.ag-sector-caption,.ag-service-card,.ag-work-field){text-align:right}
html[lang^="ar"] .site-header{direction:ltr}
html[lang^="ar"] :is(.menu-panel,.site-footer,.ag-about-page .article-body){direction:rtl;text-align:right}
html[lang^="ar"] .ag-hero{align-items:flex-end}
html[lang^="ar"] .ag-hero h1{font-size:clamp(38px,5vw,70px);line-height:1.45}
html[lang^="ar"] .ag-hero :is(p,.wp-block-buttons){align-self:flex-end}
html[lang^="ar"] .ag-work-phone{direction:ltr}
html[lang^="ar"] :is(input[type="email"],input[type="tel"],a[href^="tel:"],a[href^="mailto:"]){direction:ltr;unicode-bidi:isolate}
html[lang^="ar"] .ag-work-fields :is(input:not([type="email"]):not([type="tel"]),textarea){text-align:right}
html[lang^="ar"] .ag-cycle svg{direction:ltr}
html[lang^="ar"] .ag-cycle svg text{font-family:Tahoma,Arial,sans-serif;letter-spacing:0}
html[lang^="ar"] .ag-about-section ul{padding-right:22px;padding-left:0}
html[lang^="ar"] .ag-footer-documents a::before{content:'‹'}
html[lang^="ar"] .ag-sector-arrow,html[lang^="ar"] .ag-contact-path-arrow{transform:scaleX(-1)}
html[lang^="ar"] .ag-work-tabs{direction:rtl}
@media(max-width:760px){html[lang^="ar"] .ag-hero h1{font-size:38px}html[lang^="ar"] .ag-sector-tabs button{flex-basis:220px}}

html[lang^="ar"] body.home .ag-hero>:is(h1,p,.wp-block-buttons){align-self:flex-start!important;text-align:right;max-width:650px}
html[lang^="ar"] body.home .ag-hero h1{max-width:15ch;line-height:1.5}
html[lang^="ar"] body.home .ag-hero:has(.ag-hero-image)::after{background:linear-gradient(270deg,rgba(9,26,41,.65),rgba(9,26,41,.12))}

/* Keep anti-spam fields offscreen-accessible without expanding RTL scroll bounds. */
html[lang^="ar"] .ag-work-form>div[aria-hidden="true"],html[lang^="ar"] .ag-hp{left:0!important;right:auto!important;top:0;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
