/* =============================================================================
   tasx-site RTL overrides — loaded only when get_locale() === 'ar'
   ============================================================================= */

html { direction: rtl; }
body { text-align: right; }

/* Nav: flow right-to-left (logo stays leading, items follow) */
.site-header-inner { direction: rtl; }
.site-nav { flex-direction: row-reverse; }
.site-cta { flex-direction: row-reverse; }

/* Hero text alignment */
.hero { text-align: right; }
.hero h1, .hero .lead, .hero-meta { text-align: center; } /* hero stays centered like LTR */
.hero-ctas { flex-direction: row-reverse; }

/* Section heads stay centered */
.section-head { text-align: center; }

/* Cards: icon margin flips */
.card-icon { margin-right: 0; margin-left: 0; }

/* Two-column feature rows: reverse */
.two-col { direction: rtl; }
.two-col.reverse { direction: ltr; }

/* Lists */
ul, ol { padding-right: 20px; padding-left: 0; }

/* Numbers stay LTR even within RTL text */
.price-amount, .stat-number, code { unicode-bidi: embed; direction: ltr; }

/* Language toggle: menu anchors to LEFT (mirror) */
.lang-toggle-menu { right: auto; left: 0; }

/* Footer grid keeps default direction; column order natural for RTL */
.footer-grid { direction: rtl; }

/* Misc bidi-aware tweaks */
.btn { flex-direction: row-reverse; }
