/**
 * Seenmarks Smart Home Theme - RTL Styles
 * For Arabic language support
 * @version 1.0.0
 */

/* Base RTL Styles */
body {
    direction: rtl;
    text-align: right;
}

/* Header RTL */
.header-inner {
    flex-direction: row-reverse;
}

.nav-menu {
    flex-direction: row-reverse;
}

.lang-switcher {
    flex-direction: row-reverse;
}

/* Hero Section RTL */
.hero-content {
    text-align: right;
}

.hero-cta {
    flex-direction: row-reverse;
}

.hero-stats {
    direction: rtl;
}

/* About Section RTL */
.about-grid {
    direction: rtl;
}

.about-features li {
    flex-direction: row-reverse;
}

.about-features li::before {
    margin-left: 0;
    margin-right: 0;
}

/* Contact Section RTL */
.contact-item {
    flex-direction: row-reverse;
}

.contact-text {
    text-align: right;
}

/* FAQ Section RTL */
.faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

.faq-question::after {
    margin-left: 0;
    margin-right: auto;
}

/* Service Card RTL */
.service-link {
    flex-direction: row-reverse;
}

/* Project Card RTL */
.project-meta {
    flex-direction: row-reverse;
}

/* Footer RTL */
.footer-grid {
    direction: rtl;
}

.footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-bottom {
    flex-direction: row-reverse;
}

/* Social Sidebar RTL */
.social-sidebar {
    left: auto;
    right: 0;
    border-left: 1px solid var(--glass-border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* WhatsApp Float RTL */
.whatsapp-float {
    right: auto;
    left: 30px;
}

/* Form RTL */
.form-group label {
    text-align: right;
}

.form-group input,
.form-group textarea,
.form-group select {
    text-align: right;
}

/* Navigation Dropdown RTL */
.nav-menu .sub-menu {
    left: auto;
    right: 0;
}

/* Breadcrumb RTL */
.breadcrumb {
    direction: rtl;
}

/* Pagination RTL */
.pagination {
    direction: rtl;
}

/* Filter Buttons RTL */
.services-filter {
    flex-direction: row-reverse;
}

/* Tech Card RTL */
.tech-card {
    direction: rtl;
}

/* Highlight Card RTL */
.highlight-card {
    direction: rtl;
}

/* Mobile Menu RTL */
@media (max-width: 992px) {
    .main-nav {
        right: auto;
        left: -100%;
    }
    
    .main-nav.active {
        left: 0;
        right: auto;
    }
    
    .menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Responsive RTL Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        left: 20px;
        right: auto;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-grid {
        direction: ltr;
    }
    
    .about-grid > * {
        direction: rtl;
    }
}

/* Typography Adjustments for Arabic */
body[dir="rtl"] {
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.4;
}

/* Number Display in Arabic */
.stat-number,
.counter {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* Phone Numbers and Emails */
a[href^="tel:"],
a[href^="mailto:"] {
    direction: ltr;
    display: inline-block;
}

/* Price Display */
.price {
    direction: ltr;
    display: inline-block;
}

/* Date Display */
.date {
    direction: ltr;
    display: inline-block;
}

/* List Styling for Arabic */
ul, ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* Checkbox and Radio RTL */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Select Dropdown RTL */
select {
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

/* Scrollbar Styling for WebKit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        direction: rtl;
    }
    
    .social-sidebar,
    .whatsapp-float,
    .site-header {
        display: none !important;
    }
}
