/* ====================================
   Marjan Software House - RTL Styles
   Arabic Right-to-Left Overrides
   ==================================== */

/* Google Fonts - Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* RTL Base Styles */
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

p {
    font-size: 1.15rem;
    line-height: 2;
}

/* Navbar RTL */
.navbar-brand {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    margin: 0 15px;
}

.language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

/* Hero Section RTL */
.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.4;
}

.hero-content .lead {
    line-height: 1.9;
}

/* Service Card RTL */
.service-card .btn-link {
    text-align: right;
}

/* About Features RTL */
.about-features li i {
    margin-right: 0;
    margin-left: 15px;
}

/* Contact Item RTL */
.contact-item i {
    margin-right: 0;
    margin-left: 20px;
}

/* Footer RTL */
.footer ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Testimonial Author RTL */
.testimonial-author img {
    margin-right: 0;
    margin-left: 15px;
}

/* Buttons RTL Spacing */
.hero-buttons .btn {
    margin: 10px 5px;
}

/* Form Elements RTL */
.contact-form .form-control,
.contact-form .form-select {
    text-align: right;
}

/* Enhanced Arabic Typography */
h1 {
    font-size: 3.2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.6rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 2.1rem;
}

/* Better line height for Arabic text */
.testimonial-text {
    line-height: 2.2;
    font-size: 1.15rem;
}

.about-content p {
    line-height: 2;
}

/* Section Title RTL */
.section-title h2::after {
    left: 50%;
    right: auto;
}

/* Stat Items - Better spacing for Arabic numbers */
.stat-item .stat-label {
    font-size: 1.25rem;
    line-height: 1.8;
    color: white;
}

.stat-item .stat-symbol {
    margin-left: 0;
    margin-right: 2px;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
    h1 { 
        font-size: 2.2rem;
        line-height: 1.4;
    }
    
    h2 { 
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1.15rem;
        line-height: 1.8;
    }
    
    p {
        font-size: 1.05rem;
    }
}
