/* artiMedia — Arabic (RTL) layer. Loaded only on Arabic pages. */

/* Arabic type: Madani carries Arabic; no letter-spacing (it breaks Arabic letter joining) */
html:lang(ar) body,
html:lang(ar) body :is(h1, h2, h3, h4, h5, h6, p, span, a, li, label, button, input, select, textarea, div, strong, em, small, blockquote, figcaption, td, th, dt, dd) {
	font-family: Madani, "Segoe UI", Tahoma, sans-serif !important;
	letter-spacing: 0 !important;
}
/* Body text: English uses Inter, whose letters sit ~10% taller than Madani's Arabic at the same size.
   font-size-adjust scales Madani to match, so paragraphs, buttons, labels and the footer read at the same visual size.
   Headings already use Madani in English, so they are left as designed. */
html:lang(ar) body :is(p, li, a, label, button, input, select, textarea, small, td, th, dd, dt, figcaption, blockquote, span):not(:is(h1, h2, h3, h4, h5, h6) *):not(:is(h1, h2, h3, h4, h5, h6)) {
	font-size-adjust: 0.6;
}
/* Headlines: Madani's Arabic letters stand ~20% taller than its Latin letters at the same size
   (ascent 85% vs 71% of the em). Scaling them to ~78% gives the Arabic headings the same visual size and
   block height as the English design, while the computed font-size and line-height stay as designed. */
html:lang(ar) body :is(h1, h2, h3, h4, h5, h6),
html:lang(ar) body :is(h1, h2, h3, h4, h5, h6) *,
html:lang(ar) body .am-headline * {
	font-size-adjust: 0.39;
}

/* things that must stay left-to-right */
html:lang(ar) :is(input[type="email"], input[type="tel"], input[type="url"]) { direction: ltr; text-align: right; }

/* drawings that read left-to-right in the English design */
html:lang(ar) .am-process-line,
html:lang(ar) .am-hero-wave { transform: scaleX(-1); }
html:lang(ar) .am-hands-anim { transform: scaleX(-1); }

/* logo marquee keeps its LTR track so the loop stays seamless */
html:lang(ar) .am-marquee-pad, html:lang(ar) .clients-logo, html:lang(ar) [class*="clients-logo"] { direction: ltr; }

/* arrows that point "forward" */
html:lang(ar) .amb-pg svg, html:lang(ar) .amcs-ar:not([aria-hidden="true"]) { transform: scaleX(-1); }

/* header: mobile menu headings */
html:lang(ar) .amch-mm .main-header-menu > .menu-item > .menu-link { font-size: 28px; }
html:lang(ar) .main-header-menu .sub-menu { text-align: right; }

/* footer */
html:lang(ar) .amch-col a { align-self: flex-start; }
html:lang(ar) .amch-nl input[type="email"] { text-align: right; }

/* language switcher in the menus */
.menu-item.lang-item > a { font-weight: 600; }
.menu-item.lang-item > a::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e8c38f; margin-inline-end: 8px; vertical-align: middle; }

html:lang(ar) .ast-header-button-1 .ast-custom-button { white-space: nowrap; }

/* Arabic menu labels run wider than English: keep one line, tighten spacing on narrower desktops */
html:lang(ar) .ast-builder-menu-1 .main-header-menu { flex-wrap: nowrap; }
html:lang(ar) .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { white-space: nowrap; }
@media (max-width: 1240px) {
	html:lang(ar) .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-inline: 9px; font-size: 14px; }
}

/* Circular ring text (About badges): keep LTR so textPath renders like English */
html[dir="rtl"] svg.ring, html[dir="rtl"] svg.ring text, html[dir="rtl"] svg.ring textPath { direction: ltr !important; unicode-bidi: isolate; }

