/* ================================
   EWAVE AI - RTL (Hebrew) Styles
   ================================ */

/* RTL Base */
body.rtl {
    font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Navigation RTL */
html[dir="rtl"] .navbar,
body.rtl .navbar {
    direction: rtl !important;
}

html[dir="rtl"] .nav-container,
body.rtl .nav-container {
    direction: rtl !important;
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .nav-links,
body.rtl .nav-links {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .logo,
body.rtl .logo {
    direction: ltr;
}

html[dir="rtl"] .lang-switch,
body.rtl .lang-switch {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .nav-cta,
body.rtl .nav-cta {
    direction: ltr;
}

/* Hero RTL */
body.rtl .hero .container {
    direction: rtl;
}

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

body.rtl .hero-badge {
    flex-direction: row-reverse;
}

body.rtl .hero-cta {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

body.rtl .hero-stats {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

body.rtl .stat {
    align-items: flex-end;
    text-align: right;
}

body.rtl .stat-number,
body.rtl .stat-label {
    display: block;
    text-align: right;
    width: 100%;
}

/* SVG arrows are already correct in Hebrew HTML - no flip needed */

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

body.rtl .about-card {
    text-align: right;
}

/* Services RTL */
body.rtl .services-grid {
    direction: rtl;
}

body.rtl .service-card {
    text-align: right;
}

body.rtl .service-features {
    align-items: flex-end;
    width: 100%;
}

body.rtl .service-features li {
    justify-content: flex-end;
    padding-right: 20px;
    padding-left: 0;
    position: relative;
    text-align: right;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

body.rtl .service-features li::before {
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Nick Section RTL */
body.rtl .nick-wrapper {
    direction: rtl;
}

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

body.rtl .nick-content .section-tag {
    text-align: right;
}

body.rtl .nick-content .section-title {
    text-align: right;
}

body.rtl .nick-description {
    text-align: right;
}

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

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

body.rtl .nick-content > .btn {
    margin-right: 0;
    margin-left: auto;
}

/* Chat Interface RTL */
body.rtl .interface-header {
    flex-direction: row-reverse;
}

body.rtl .interface-dots {
    flex-direction: row-reverse;
}

body.rtl .chat-message {
    flex-direction: row-reverse;
}

body.rtl .chat-message.user {
    flex-direction: row;
}

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

body.rtl .message-badge {
    flex-direction: row-reverse;
}

/* Trust Section RTL */
body.rtl .tech-stack {
    flex-direction: row-reverse;
}

/* Contact Section RTL */
body.rtl .contact-wrapper {
    direction: rtl;
}

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

body.rtl .contact-info .section-tag {
    text-align: right;
}

body.rtl .contact-info .section-title {
    text-align: right;
}

body.rtl .contact-info > p {
    text-align: right;
}

body.rtl .contact-details {
    align-items: flex-start;
}

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

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

body.rtl .contact-form select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 20px;
}

/* Footer RTL */
body.rtl .footer {
    direction: rtl;
    text-align: right;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .footer-brand {
    text-align: right !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

body.rtl .footer-brand .logo {
    display: flex;
}

body.rtl .footer-brand p {
    text-align: right !important;
    margin-right: 0;
    margin-left: auto;
}

body.rtl .footer-links {
    direction: rtl;
    text-align: right;
}

body.rtl .footer-column {
    text-align: right;
}

body.rtl .footer-column a {
    text-align: right;
}

body.rtl .footer-bottom {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .footer-bottom p {
    text-align: right;
}

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

/* Glow positions RTL */
body.rtl .glow-1 {
    right: auto;
    left: -100px;
}

body.rtl .glow-2 {
    left: auto;
    right: -50px;
}

/* Mobile Menu RTL */
body.rtl .mobile-menu-content .nav-links {
    flex-direction: column;
}

/* Responsive RTL adjustments */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    body.rtl .hero .container {
        text-align: center;
    }

    body.rtl .hero-content {
        text-align: center;
    }

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

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

    body.rtl .nick-content .section-title,
    body.rtl .nick-content .section-tag,
    body.rtl .nick-description {
        text-align: center;
    }

    body.rtl .nick-content > .btn {
        margin: 0 auto;
    }

    body.rtl .contact-info .section-title,
    body.rtl .contact-info .section-tag,
    body.rtl .contact-info > p {
        text-align: center;
    }

    body.rtl .contact-details {
        align-items: center;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Footer RTL mobile */
    body.rtl .footer-brand {
        text-align: center;
    }

    body.rtl .footer-brand .logo {
        justify-content: center;
    }

    body.rtl .footer-brand p {
        margin: 16px auto 0;
    }

    body.rtl .footer-column a {
        justify-content: center;
    }

    /* About cards mobile RTL */
    body.rtl .about-card {
        text-align: center;
    }

    /* Services mobile RTL */
    body.rtl .service-card {
        text-align: center;
    }

    body.rtl .service-features {
        align-items: center;
    }

    body.rtl .service-features li {
        justify-content: center;
        padding-right: 0;
        flex-direction: row;
    }

    body.rtl .service-features li::before {
        position: relative;
        right: auto;
        left: auto;
        margin-right: 12px;
        transform: none;
    }

    /* Contact RTL mobile */
    body.rtl .contact-item {
        flex-direction: row;
        justify-content: center;
    }

    /* Section headers center on mobile */
    body.rtl .section-header {
        text-align: center;
    }

    body.rtl .section-tag {
        text-align: center;
    }

    body.rtl .section-title {
        text-align: center;
    }

    body.rtl .section-subtitle {
        text-align: center;
    }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
    body.rtl .hero-cta {
        flex-direction: column;
    }

    body.rtl .nick-feature {
        flex-direction: column;
        text-align: center;
    }

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

    body.rtl .footer-links {
        text-align: center;
    }

    body.rtl .footer-column {
        text-align: center;
    }

    body.rtl .footer-column a {
        justify-content: center;
    }

    /* Legal pages RTL mobile */
    body.rtl .legal-content .section-title {
        text-align: center;
    }

    body.rtl .accessibility-list li {
        padding-right: 0;
        text-align: center;
    }

    body.rtl .accessibility-list li::before {
        display: none;
    }
}
