/* Long translations may wrap without obscuring controls. */
html:not([lang="en"]) .desktop-nav a,
html:not([lang="en"]) .nav-list > li > a {
  white-space: normal;
}
html:not([lang="en"]) h1,
html:not([lang="en"]) h2,
html:not([lang="en"]) h3 {
  overflow-wrap: break-word;
}
.language-menu {
  direction: ltr;
  max-width: calc(100vw - 24px);
}
.language-menu button[aria-busy="true"] { cursor: progress; }
html .language-menu button span[lang] { direction: ltr; text-align: left; }
html .language-menu button span[lang="ar"] { direction: rtl; text-align: right; }

/* Arabic follows the reading direction; technical media and carousel geometry
   retain their own direction so dragging and engineering drawings stay correct. */
html[lang="ar"] body { font-family: Tahoma, Arial, sans-serif; direction: rtl; }
html[dir="rtl"] .hero-copy { direction: rtl; align-items: flex-start; }
html[dir="rtl"] .hero-copy :is(h1, h2, p) { width: 100%; max-width: 100%; }
html[dir="rtl"] main,
html[dir="rtl"] footer,
html[dir="rtl"] .quote-modal,
html[dir="rtl"] .search-panel { text-align: start; }
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .page-banner-content { text-align: start; }
html[dir="rtl"] .site-header,
html[dir="rtl"] .hero-controls,
html[dir="rtl"] .hero-counter,
html[dir="rtl"] .aa-gallery-viewport,
html[dir="rtl"] .related-products-viewport,
html[dir="rtl"] .aa-global-map,
html[dir="rtl"] .product-gallery,
html[dir="rtl"] .product-source-gallery { direction: ltr; }
html[dir="rtl"] .site-header nav,
html[dir="rtl"] .mobile-nav,
html[dir="rtl"] .site-header .nav-dropdown { direction: rtl; text-align: start; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[name="phone"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] th,
html[dir="rtl"] td { text-align: start; }
html[dir="rtl"] ul,
html[dir="rtl"] ol { padding-inline-start: 1.5em; }
@media (min-width: 1100px) {
  html:not([lang="en"]) .nav-list { gap: clamp(10px, 1.5vw, 26px); }
  html[dir="rtl"] .hero-copy { padding-inline-start: 88px; }
}
@media (max-width: 810px) {
  html:not([lang="en"]) .hero { height: clamp(300px, 65vw, 420px); min-height: 300px; }
  html:not([lang="en"]) .hero-copy h1 { width: 100%; font-size: clamp(25px, 7vw, 44px); line-height: 1.2; }
  html:not([lang="en"]) .hero-copy h2 { font-size: clamp(18px, 4.7vw, 28px); line-height: 1.3; }
  html[dir="rtl"] .language-menu { right: -54px; left: auto; }
}
