/* ============================================
   AL-QAND EXCHANGE — ARABIC LANGUAGE SUPPORT (RTL)
   ============================================ */

/* ============================================
   ARABIC LANGUAGE SUPPORT
   ============================================ */

/* Arabic text styling */
html[lang="ar"] {
    font-family: var(--font-arabic);
}

html[lang="ar"] body {
    font-family: var(--font-arabic);
}

html[lang="ar"] .hero-title,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .display,
html[lang="ar"] .nav-links a,
html[lang="ar"] .mobile-menu a,
html[lang="ar"] .accordion-header,
html[lang="ar"] .chip h4 {
    font-family: var(--font-arabic);
}

/* Force Almarai everywhere on the Arabic page (overrides mono/display/primary fonts) */
html[lang="ar"] * {
    font-family: var(--font-arabic) !important;
}

/* RTL adjustments for Arabic */
html[lang="ar"] .eyebrow .line {
    margin-left: 10px;
    margin-right: 0;
}

html[lang="ar"] .hero-actions .btn-primary svg {
    transform: scaleX(-1);
}

html[lang="ar"] .btn-ghost {
    flex-direction: row-reverse;
}

html[lang="ar"] .contact-item {
    flex-direction: row-reverse;
}

html[lang="ar"] .contact-item svg {
    margin-left: 12px;
    margin-right: 0;
}

html[lang="ar"] .accordion-header .tag {
    order: 1;
}

html[lang="ar"] .accordion-header span:first-child {
    order: 2;
    text-align: right;
}

html[lang="ar"] .accordion-icon {
    order: 3;
}

html[lang="ar"] .accordion-content ul li {
    padding: 6px 20px 6px 0;
}

html[lang="ar"] .accordion-content ul li::before {
    left: auto;
    right: 0;
}

/* Language switcher button */
.lang-switch {
    background: transparent !important;
    color: #ff6d00 !important;
    padding: 8px 16px !important;
    font-size: 18px !important;
    min-width: auto !important;
    box-shadow: none !important;
}

.lang-switch:hover {
    background: transparent !important;
    color: #ffffff !important;
}

html[lang="ar"] .lang-switch {
    font-family: var(--font-arabic);
}

/* Mobile menu language switch */
.mobile-menu .lang-switch {
    background: transparent !important;
    border: 2px solid var(--orange) !important;
    color: var(--ink) !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 10px !important;
}

.mobile-menu .lang-switch:hover {
    background: var(--orange) !important;
    color: #000 !important;
}

/* Hero stats in Arabic */
html[lang="ar"] .hero-stats .num {
    direction: rtl;
}

/* Use Eastern Arabic numerals for stats */
html[lang="ar"] .hero-stats .num[data-count-to] {
    font-feature-settings: "numr";
}

/* Footer in Arabic */
html[lang="ar"] .footer-col a {
    text-align: center;
}

/* Responsive adjustments for Arabic */
@media (max-width: 768px) {
    html[lang="ar"] .contact-item {
        flex-direction: row-reverse;
        justify-content: center;
    }
    
    html[lang="ar"] .contact-item svg {
        margin-left: 12px;
        margin-right: 0;
    }
}
