/* ============================================
   PCX Pest Control - RTL (Right-to-Left) Support
   For Arabic Language
   ============================================ */

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

/* Typography adjustments for Arabic */
body.rtl {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

/* Restore RTL text direction inside the physical LTR-locked navbar */
body.rtl .navbar .nav-links,
body.rtl .navbar .nav-cta {
    direction: rtl !important;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 116, 190, 0.1);
    border: 1px solid rgba(0, 116, 190, 0.2);
    border-radius: 2rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(0, 116, 190, 0.15);
    border-color: rgba(0, 116, 190, 0.3);
}

.lang-toggle svg {
    width: 18px;
    height: 18px;
}



body.rtl .lang-toggle {
    margin-right: 0;
    margin-left: 1rem;
}

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

body.rtl .hero-buttons {
    justify-content: center;
}

body.rtl .hero-stats {
    justify-content: flex-start;
}

body.rtl .hero-badge {
    justify-self: flex-start;
}

/* Cards RTL */
body.rtl .service-card,
body.rtl .feature-item,
body.rtl .cert-card,
body.rtl .testimonial-card {
    text-align: right;
}

body.rtl .feature-item {
    flex-direction: row-reverse;
}

body.rtl .feature-content {
    text-align: right;
}

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

body.rtl .contact-method>div:not(.contact-icon) {
    text-align: right;
}

body.rtl .contact-form {
    text-align: right;
}

body.rtl .contact-form input,
body.rtl .contact-form textarea,
body.rtl .contact-form select {
    text-align: right;
}

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

body.rtl .footer-about,
body.rtl .footer-links-col {
    text-align: right;
}

body.rtl .footer-contact li {
    flex-direction: row-reverse;
}

body.rtl .footer-contact svg {
    margin-right: 0;
    margin-left: 0.75rem;
}

body.rtl .footer-social {
    justify-content: flex-start;
}

/* Grid and Layout RTL */
body.rtl .grid {
    direction: rtl;
}

/* Section Headers RTL */
body.rtl .section-header {
    text-align: center;
}

/* Mobile Menu RTL */
body.rtl .mobile-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
    text-align: right;
}

body.rtl .mobile-menu.active {
    transform: translateX(0);
}

body.rtl .mobile-menu .close-menu {
    left: auto;
    right: 1.5rem;
}

/* Testimonials RTL */
body.rtl .testimonial-author {
    flex-direction: row-reverse;
}

body.rtl .testimonial-author>div:last-child {
    text-align: right;
}

body.rtl .testimonial-avatar-placeholder {
    margin-right: 0;
    margin-left: 1rem;
}

/* WhatsApp Float RTL */
body.rtl .whatsapp-float {
    left: 1.5rem;
    right: auto;
}

/* Form Row RTL */
body.rtl .form-row {
    flex-direction: row-reverse;
}

/* Button Icons RTL */
body.rtl .btn svg {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive RTL Adjustments */
@media (max-width: 768px) {
    body.rtl .hero-content {
        text-align: center;
    }

    body.rtl .hero-buttons {
        justify-content: center;
    }

    body.rtl .hero-stats {
        justify-content: center;
    }

    body.rtl .contact-grid {
        direction: rtl;
    }
}

/* Add Tajawal font for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* Override text-left for RTL */
body.rtl .text-left {
    text-align: right;
}