/* ===========================
   RTL Support for Hebrew
   =========================== */

/* Update font family for Hebrew */
body {
    font-family: 'Rubik', 'Heebo', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.nav-link,
.btn,
.section-subtitle {
    font-family: 'Heebo', 'Rubik', sans-serif;
}

/* RTL Direction adjustments */
.hero-buttons {
    flex-direction: row-reverse;
}

/* Fix arrow directions for RTL */
.service-link i.fa-arrow-left {
    margin-right: 0.5rem;
    margin-left: 0;
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* Navigation adjustments */
.nav-menu {
    gap: 2rem;
}

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

/* Logo adjustments */
.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 200px;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, #ff9800 0%, #9c27b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Rubik', sans-serif;
    text-transform: uppercase;
    font-size: 1.75rem;
    font-weight: 800;
}

/* Form adjustments for RTL */
.form-group label {
    right: 15px;
    left: auto;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    right: 10px;
}

/* Newsletter form RTL */
.newsletter-form {
    flex-direction: row-reverse;
}

/* Social links RTL */
.member-social,
.social-links,
.footer-links {
    flex-direction: row-reverse;
}

/* About features RTL */
.about-feature i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Info cards RTL */
.info-card {
    flex-direction: row-reverse;
}

/* Testimonial author RTL */
.testimonial-author {
    flex-direction: row-reverse;
}

/* Mobile menu RTL */
@media (max-width: 768px) {
    .nav-menu {
        right: auto;
        left: -280px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        width: 280px;
        max-width: 80vw;
    }
    
    .nav-menu.active {
        left: 0;
        right: auto;
    }
}

/* Grid adjustments for RTL */
.features-grid,
.services-grid,
.team-grid,
.testimonials-grid {
    direction: ltr;
}

.features-grid > *,
.services-grid > *,
.team-grid > *,
.testimonials-grid > * {
    direction: rtl;
}

/* Footer columns RTL */
.footer-content {
    direction: ltr;
}

.footer-content > * {
    direction: rtl;
}

/* Hero wave fix for RTL */
.hero-wave {
    transform: scaleX(-1);
    width: 100%;
    overflow: hidden;
}

/* Stats card position for RTL */
.stats-card {
    right: auto;
    left: 30px;
}

/* Hamburger menu position */
.hamburger {
    margin-right: 1rem;
}

/* Contact form animations for RTL */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 

/* Contact section RTL styles */
.info-text {
    text-align: right;
}

.info-text h4 {
    text-align: right;
}

.info-text p {
    text-align: right;
    direction: rtl;
}

/* Ensure proper display of phone numbers and emails in RTL */
.info-text p a[href^="tel:"] {
    direction: ltr;
    display: inline-block;
}

/* Contact form labels for RTL */
.contact-form {
    direction: rtl;
}

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

/* Nav social RTL adjustments */
.nav-social {
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile social links RTL */
@media (max-width: 768px) {
    .nav-social-mobile {
        margin-left: 0.5rem;
        margin-right: auto;
    }
}