/* 
* Degla.tn - RTL Stylesheet (for Arabic)
* Version: 1.0
*/

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

/* RTL direction and text alignment */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

/* Reset text alignment utility classes */
html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

/* Header */
html[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

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

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

/* Icons */
html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-details {
    text-align: right;
}

/* Forms */
html[dir="rtl"] .form-label {
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
    text-align: right;
}

/* About Section */
html[dir="rtl"] .about-container {
    flex-direction: row-reverse;
}

/* Contact Items */
html[dir="rtl"] .contact-icon {
    margin-left: 0;
    margin-right: var(--spacing-md);
}

/* Footer */
html[dir="rtl"] .footer-bottom {
    text-align: center;
}

/* Mobile nav adjustments */
@media (max-width: 767.98px) {
    html[dir="rtl"] .main-nav a {
        text-align: right;
    }
    
    html[dir="rtl"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Additional typography adjustments for Arabic */
html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6 {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.4;
}

html[dir="rtl"] p, 
html[dir="rtl"] a, 
html[dir="rtl"] span, 
html[dir="rtl"] li, 
html[dir="rtl"] button {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.7;
}

/* Adjust font weights for better Arabic readability */
html[dir="rtl"] h1 {
    font-weight: 700;
}

html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
    font-weight: 600;
}

html[dir="rtl"] p, 
html[dir="rtl"] a, 
html[dir="rtl"] span {
    font-weight: 400;
}

/* Adjust spacing for better Arabic text flow */
html[dir="rtl"] p {
    letter-spacing: 0;
}