/* Arabic RTL Styles for Oreedo Website */

/* Arabic Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* RTL Base Styles */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Navigation RTL Adjustments - Keep desktop layout */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

/* Hero Section RTL - Preserve desktop grid */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

/* About Section RTL - Keep desktop grid layout */
[dir="rtl"] .mission-vision-card {
    text-align: right;
}

[dir="rtl"] .benefit-card {
    text-align: right;
}

/* Team Section RTL */
[dir="rtl"] .member-info {
    text-align: right;
}

/* Products Section RTL */
[dir="rtl"] .product-card-detailed {
    text-align: right;
    border-right: 4px solid transparent;
    border-left: none;
}

[dir="rtl"] .product-card-detailed[data-color="#473F2C"] {
    border-right-color: var(--primary-dark-brown);
    border-left-color: transparent;
}

[dir="rtl"] .product-card-detailed[data-color="#96A4B8"] {
    border-right-color: var(--secondary-blue-light);
    border-left-color: transparent;
}

[dir="rtl"] .product-card-detailed[data-color="#5A4F3A"] {
    border-right-color: var(--primary-brown-light);
    border-left-color: transparent;
}

[dir="rtl"] .product-card-detailed[data-color="#728294"] {
    border-right-color: var(--secondary-blue-dark);
    border-left-color: transparent;
}

[dir="rtl"] .product-card-detailed[data-color="#D2D4D6"] {
    border-right-color: var(--secondary-gray-dark);
    border-left-color: transparent;
}

[dir="rtl"] .product-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-features {
    justify-content: flex-end;
}

/* Contact Section RTL - Keep desktop grid */
[dir="rtl"] .contact-card {
    text-align: right;
}

/* Footer RTL - Keep desktop layout */
[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-list {
    text-align: right;
}

/* Stats Section RTL */
[dir="rtl"] .stat-box {
    text-align: center;
}

/* Floating Products RTL Positioning */
[dir="rtl"] .product-card.floating[data-product="rentek"] {
    left: auto;
    right: 10%;
}

[dir="rtl"] .product-card.floating[data-product="convera"] {
    right: auto;
    left: 10%;
}

[dir="rtl"] .product-card.floating[data-product="consultene"] {
    left: auto;
    right: 10%;
}

[dir="rtl"] .product-card.floating[data-product="facility"] {
    right: auto;
    left: 15%;
}

/* WhatsApp Link RTL */
[dir="rtl"] .whatsapp-link img {
    margin-right: 0;
    margin-left: 8px;
}

/* Arabic Typography Improvements */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-weight: 600;
    line-height: 1.4;
}

[dir="rtl"] p {
    line-height: 1.8;
}

/* Button RTL Alignment */
[dir="rtl"] .btn {
    text-align: center;
}

/* Section Header RTL */
[dir="rtl"] .section-header {
    text-align: center;
}

/* Gradient text RTL */
[dir="rtl"] .gradient-text {
    display: inline-block;
}

/* Mobile RTL Adjustments - Only apply on mobile */
@media (max-width: 768px) {
    /* Fix floating navigation links issue in Arabic mobile view */
    [dir="rtl"] .nav-menu {
        text-align: center;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
    }
    
    [dir="rtl"] .nav-menu.active {
        left: 0;
    }
    
    /* Ensure all nav-links are contained properly */
    [dir="rtl"] .nav-link {
        position: relative;
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin: 0;
    }
    
    /* Fix language switcher positioning */
    [dir="rtl"] .lang-switch {
        position: relative;
        display: block;
        width: auto;
        margin: 0 auto;
    }
    
    [dir="rtl"] .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    [dir="rtl"] .about-content {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .contact-content {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .footer-content {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Hamburger menu RTL - only on mobile */
    [dir="rtl"] .hamburger {
        order: -1;
    }
    
    /* Mobile RTL positioning for floating products */
    [dir="rtl"] .product-card.floating[data-product="rentek"] {
        right: -10%;
        left: auto;
    }

    [dir="rtl"] .product-card.floating[data-product="convera"] {
        left: -10%;
        right: auto;
    }

    [dir="rtl"] .product-card.floating[data-product="consultene"] {
        right: -10%;
        left: auto;
    }

    [dir="rtl"] .product-card.floating[data-product="facility"] {
        left: -10%;
        right: auto;
    }
}
