/* =============================================
   RTL & ARABIC LANGUAGE SUPPORT
   ============================================= */

/* Language Switcher Button */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    background: rgba(199,164,106,0.2);
    border-color: rgba(199,164,106,0.4);
    color: var(--sand-light);
}

.lang-switch i {
    font-size: 14px;
    color: var(--sand);
}

header.scrolled .lang-switch {
    background: rgba(255,255,255,0.06);
    border-color: rgba(199,164,106,0.15);
}

/* Mobile language switch */
.mobile-lang-switch {
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(199,164,106,0.1);
    border-color: rgba(199,164,106,0.25);
}

.mobile-lang-switch:hover {
    background: rgba(199,164,106,0.2);
}

/* =============================================
   RTL MODE — Activated via html[dir="rtl"]
   ============================================= */

html[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', 'Inter', Arial, sans-serif;
}

html[dir="rtl"] .nav-cta {
    margin-left: 0;
    margin-right: 6px;
}

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

html[dir="rtl"] .logo .brand-name {
    letter-spacing: 0;
}

/* Hero RTL */
html[dir="rtl"] .hero-content {
    direction: rtl;
}

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

html[dir="rtl"] .hero-benefits {
    justify-content: flex-end;
    direction: ltr;
}

html[dir="rtl"] .hero-benefits li {
    direction: rtl;
}

html[dir="rtl"] .hero-features {
    align-items: stretch;
}

html[dir="rtl"] .hero-feature-item {
    direction: ltr;
    flex-direction: row-reverse;
    text-align: right;
}

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

html[dir="rtl"] .hero-partners-list {
    justify-content: flex-end;
    direction: ltr;
}

html[dir="rtl"] .hero-partners-list span {
    direction: rtl;
}

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

/* About RTL */
html[dir="rtl"] .about-header {
    text-align: right;
}

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

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

html[dir="rtl"] .about-feature {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .about-image-badge {
    left: auto;
    right: 20px;
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .about-carousel-prev {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .about-carousel-next {
    right: auto;
    left: 12px;
}

/* Centers RTL */
html[dir="rtl"] .center-card-content {
    text-align: right;
}

html[dir="rtl"] .center-features {
    justify-content: flex-start;
}

html[dir="rtl"] .center-feature-tag {
    flex-direction: row-reverse;
}

html[dir="rtl"] .center-card-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .center-card-link i {
    transform: scaleX(-1);
}

/* Services RTL */
html[dir="rtl"] .service-card {
    text-align: right;
}

/* Seasons / How It Works RTL */
html[dir="rtl"] .season-card-content {
    text-align: right;
}

html[dir="rtl"] .season-step {
    left: auto;
    right: 20px;
}

/* Technology RTL */
html[dir="rtl"] .tech-pillar {
    text-align: right;
}

html[dir="rtl"] .tech-detail-card {
    flex-direction: row-reverse;
    text-align: right;
}

/* Events RTL */
html[dir="rtl"] .event-card {
    text-align: right;
}

html[dir="rtl"] .event-meta {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* CTA RTL */
html[dir="rtl"] .cta-content {
    text-align: center;
}

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

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

/* Footer RTL */
html[dir="rtl"] .footer-grid {
    direction: rtl;
}

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

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

html[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

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

html[dir="rtl"] .footer-column ul {
    padding-right: 0;
}

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

html[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

html[dir="rtl"] .footer-bottom {
    direction: rtl;
}

html[dir="rtl"] .footer-bottom-links {
    flex-direction: row-reverse;
}

/* Mobile Nav RTL */
html[dir="rtl"] .mobile-nav {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    border-left: none;
    border-right: 1px solid rgba(199, 164, 106, 0.1);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
}

html[dir="rtl"] .mobile-nav.active {
    transform: translateX(0);
}

html[dir="rtl"] .mobile-nav-links .nav-cta {
    text-align: center;
    justify-content: center;
}

/* Back link RTL */
html[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .back-link i {
    transform: scaleX(-1);
}

/* Hero badge RTL */
html[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

/* Testimonials RTL */
html[dir="rtl"] .testimonial-card {
    text-align: right;
}

html[dir="rtl"] .testimonial-card::before {
    right: auto;
    left: 28px;
}

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

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

/* Pricing RTL */
html[dir="rtl"] .pricing-features li {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .pricing-card-header {
    text-align: center;
}

/* FAQ RTL */
html[dir="rtl"] .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

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

/* Trusted RTL */
html[dir="rtl"] .trusted-logo-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .trust-badge-item {
    flex-direction: row-reverse;
}

/* CTA Guarantee RTL */
html[dir="rtl"] .cta-guarantee {
    flex-direction: row-reverse;
}

/* Scroll to top RTL */
html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

/* =============================================
   RTL RESPONSIVE OVERRIDES
   ============================================= */

@media (max-width: 1024px) {
    html[dir="rtl"] .hero-text {
        text-align: center;
    }

    html[dir="rtl"] .hero-benefits {
        justify-content: center;
    }

    html[dir="rtl"] .hero-partners {
        text-align: center;
    }

    html[dir="rtl"] .hero-partners-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .footer-grid {
        text-align: center;
    }

    html[dir="rtl"] .footer-brand {
        text-align: center;
    }

    html[dir="rtl"] .footer-brand p {
        text-align: center;
    }

    html[dir="rtl"] .footer-column {
        text-align: center;
    }

    html[dir="rtl"] .footer-social {
        justify-content: center;
    }

    html[dir="rtl"] .footer-logo {
        justify-content: center;
    }

    html[dir="rtl"] .about-header {
        text-align: center;
    }

    html[dir="rtl"] .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
