/* =====================================================================
   ASES — Right-to-Left (Arabic) layout overlay.
   Active only when <html dir="rtl">. Load AFTER brand.css.
   ===================================================================== */

/* Base direction / alignment ---------------------------------------- */
html[dir="rtl"] body { text-align: right; }

/* Keep Latin-only / numeric content rendering left-to-right inside RTL */
html[dir="rtl"] .ltr,
html[dir="rtl"] a[href^="tel"],
html[dir="rtl"] a[href^="mailto"],
html[dir="rtl"] .ul-banner-stat .number,
html[dir="rtl"] .ases-num,
html[dir="rtl"] .odometer,
html[dir="rtl"] time {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Directional arrow icons (buttons, links, sliders) should point with
   the reading direction -> mirror them in RTL */
html[dir="rtl"] .ul-btn > i,
html[dir="rtl"] .ul-arrow-link i,
html[dir="rtl"] .ases-flip-x {
  transform: scaleX(-1);
}

/* Header: logo on the right, nav flows right-to-left (handled by dir),
   make sure the actions sit on the far left */
html[dir="rtl"] .ul-header-submenu { text-align: right; }

/* Lists: bullets / check icons on the right */
html[dir="rtl"] .block-list,
html[dir="rtl"] ul.ases-check { padding-right: 0; }

/* Section sub-title decorative vector flips to the right */
html[dir="rtl"] .ul-section-sub-title img,
html[dir="rtl"] .ul-section-sub-title-vector { transform: scaleX(-1); }

/* Buttons keep icon-then-text feel; gap already symmetric (flex) */

/* Forms: labels / inputs align right, icons swap side */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }

/* Cards / blocks that used left-anchored absolute decals: let flex/dir
   handle ordering; specific fixes added during QA below. */

/* Quote / testimonial marks */
html[dir="rtl"] .quote-icon { transform: scaleX(-1); }

/* Footer columns flow right-to-left automatically via dir; ensure social
   icons and bottom bar align right */
html[dir="rtl"] .ul-footer-bottom { text-align: center; }

/* Breadcrumb separators */
html[dir="rtl"] .ul-breadcrumb i { transform: scaleX(-1); }
