/* Right-to-left adjustments for the Arabic site. */
html[dir="rtl"] body {
  font-family: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  text-align: right;
}

html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }

html[dir="rtl"] .lang-picker::after { right: auto; left: 11px; }
html[dir="rtl"] .ls-menu { right: auto; left: 0; }

/* header + hero copy */
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .v2-hero-copy { text-align: right; }

/* generic icon spacing */
html[dir="rtl"] .btn svg,
html[dir="rtl"] .nav-link svg { margin-right: 0; margin-left: 0; }

/* lists and check marks */
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-right: 18px; padding-left: 0; }
html[dir="rtl"] .cl-region-points p,
html[dir="rtl"] .cl-card-copy p { display: flex; align-items: center; gap: 8px; }

/* forms */
html[dir="rtl"] select,
html[dir="rtl"] input,
html[dir="rtl"] textarea { text-align: right; direction: rtl; }
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* product cards */
html[dir="rtl"] .v2-product-actions,
html[dir="rtl"] .ps-item { direction: rtl; }

/* footer */
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-quote-form { direction: rtl; }

/* keep latin numbers and codes readable inside Arabic text */
html[dir="rtl"] .ls-code { direction: ltr; unicode-bidi: embed; }

@media (max-width: 768px) {
  html[dir="rtl"] .lang-picker { margin-left: 0; margin-right: auto; }
}

/* the LTR "visually hidden" helper would push RTL pages 9999px to the left */
html[dir="rtl"] .hp.hp{left:0!important;right:auto!important;clip-path:inset(50%)}
html[dir="rtl"] select[name="code"]{direction:ltr;text-align:center}
html[dir="rtl"] a[href^="tel"]{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* hero banner: the LTR layout keeps the photo on the right behind a left-to-right
   white fade. Mirror both, otherwise the copy card lands on top of the photo and
   the whole left half of the banner stays blank. */
html[dir="rtl"] .v2-hero-bg img{object-position:left center}
html[dir="rtl"] .v2-hero-bg::after{background:linear-gradient(270deg,#f6f6f3 0%,#f6f6f3 32%,rgba(246,246,243,.96) 42%,rgba(246,246,243,.72) 57%,rgba(246,246,243,.22) 76%,rgba(246,246,243,0) 100%)}

/* alloy grades like 6063-T5 / 3003-H14 must stay LTR inside Arabic text,
   otherwise the hyphen splits the run and reads "T5-6063" */
html[dir="rtl"] .v2-material strong{direction:ltr;unicode-bidi:isolate;text-align:right}
