/* Arabic adaptation: retain assets, dimensions, grids and breakpoints. */
html[lang="ar"], :host { direction: rtl; }
html[lang="ar"] body, :host {
  font-family: Arial, Tahoma, "Noto Sans Arabic", sans-serif;
}
html[lang="ar"] :is(h1,h2,h3,h4,p,a,button,label,span,div,input,textarea,select),
:host :is(h1,h2,h3,h4,p,a,button,label,span,div,input,textarea,select) {
  letter-spacing: normal;
}
html[lang="ar"] :is(p,label,input,textarea,select,li),
:host :is(p,label,input,textarea,select,li) { text-align: start; }
html[lang="ar"] :is(a[href^="tel:"],a[href^="mailto:"],input[type="email"],input[type="tel"]),
:host :is(a[href^="tel:"],a[href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] :is(.spec-value,.metric-value,.stat-value,.diameter,.number),
:host :is(.spec-value,.metric-value,.stat-value,.diameter,.number) { unicode-bidi: isolate; }
:host :is(.ds-nav,.ds-mobile-nav,.ds-search-wrap,.ds-search-results) { direction: rtl; }
:host :is(.ds-search-input,.ds-search-result,.ds-nav-dropdown,.ds-nav-panel) { text-align: start; }
html[lang="ar"] :is(h1,h2,h3), :host :is(h1,h2,h3) { line-height: 1.2; }
:host .ds-actions { margin-left: 0; margin-right: auto; }
:host .ds-nav-menu a { text-align: right; }
:host .ds-nav-submenu { left: auto; right: calc(100% + 1px); }
:host .ds-nav-submenu:not(.is-open) { transform: translateX(-8px); }
:host .ds-search-close { right: auto; left: 0; }
@media(max-width:760px) {
  :host .ds-search-toggle { margin-left: 3px!important; margin-right: auto!important; }
}
html[lang="ar"] :is(img,video,svg), :host :is(img,video,svg) { direction: ltr; }

/* Preserve the original physical layout. RTL belongs to text blocks, not
   to the parent grids or to containers with right-anchored video/images. */
html[lang="ar"] body { direction: ltr; }
html[lang="ar"] :is(h1,h2,h3,h4,p,label,li,textarea,select),
html[lang="ar"] :is(.copy,.hero-content,.hero-copy,.herocopy,.panel-copy,.building-copy,.case-copy-clean,.footer-text) {
  direction: rtl;
}
html[lang="ar"] :is(p,label,li,textarea,select) { text-align: right; }
html[lang="ar"] :is(.copy,.hero-content,.hero-copy,.herocopy,.panel-copy,.building-copy,.case-copy-clean,.footer-text) { text-align: right; }
html[lang="ar"] :is(a[href^="tel:"],a[href^="mailto:"],input[type="email"],input[type="tel"]) { direction: ltr; }
html[lang="ar"] :is(input:not([type="email"]):not([type="tel"]),textarea) { unicode-bidi: plaintext; }
html[lang="ar"] :is(.hero-content,.copy,.hero-copy,.herocopy) h1 {
  line-height: 1.2!important;
  letter-spacing: normal!important;
}
html[lang="ar"] .hero-content { margin-left: 0!important; margin-right: auto!important; }
html[lang="ar"] :is(.step,.material-label-clean) { direction: rtl; }
/* Original flow arrows remain left-to-right with the original step order. */
html[lang="ar"] .step:after { direction: ltr; }
@media(min-width:901px) {
  html[lang="ar"] section.hero#stone .hero-content { width: 46%!important; }
  html[lang="ar"] section.hero#stone h1 { font-size: clamp(42px,4.1vw,60px)!important; }
}
@media(max-width:900px) {
  html[lang="ar"] section.hero#stone .hero-content { width: 100%!important; }
  html[lang="ar"] section.hero#stone h1 { font-size: clamp(34px,6vw,50px)!important; }
}
