/*
 * RTL (Right-To-Left) overrides for Arabic (ar) and other RTL languages.
 * Loaded automatically when the current language is RTL (see functions.php).
 * Refined during visual verification (Phase 5).
 */
html[dir="rtl"] body {
    text-align: right;
}

/* 语言切换器保持从左到右，避免标志/文字错乱 */
.fisto-lang-switcher {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ------------------------------------------------------------------
 * 头部导航保持 LTR 视觉布局（2026-10-21 按客户要求调整）
 * 阿拉伯语虽是 RTL 语言，但头部保持与英文版一致：
 * Logo 在左、Get A Quote 在右，只翻转正文内容方向。
 * ------------------------------------------------------------------ */
html[dir="rtl"] .header {
    direction: ltr;
}

html[dir="rtl"] .header > .logo {
    padding-left: 36px;
    padding-right: 0;
}

html[dir="rtl"] .nav-cta {
    justify-content: flex-end;
    clip-path: polygon(39% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 8px 8px 0;
    padding-right: 40px;
    padding-left: 0;
    margin-right: -1px;
    margin-left: 0;
}

html[dir="rtl"] .nav-cta .arrow {
    display: inline-block;
    transform: none;
}

/* ------------------------------------------------------------------
 * Hero 轮播 RTL：内容区原来只有 padding-left:10%，
 * RTL 下文字右对齐会顶出屏幕右缘（标题/副标题/按钮被裁切）。
 * ------------------------------------------------------------------ */
html[dir="rtl"] .hero-content {
    padding-left: 10%;
    padding-right: 10%;
}

