/*
 * RTL Overrides — Neria Bashchakim
 * Applied automatically when WordPress direction is RTL (Hebrew)
 */

/* ============================================
   RTL LAYOUT CORRECTIONS
   ============================================ */

/* Sub-menu opens from right in RTL */
.sub-menu,
.nb-nav__list .sub-menu {
    right: 0;
    left: auto;
}

/* Footer links arrow direction */
.footer-links a::before {
    content: '→';
    transform: none;
}

.footer-links a:hover {
    padding-right: 0;
    padding-left: 0.5rem;
}

/* Breadcrumb separator */
.breadcrumbs .sep {
    transform: none;
}

/* Mobile drawer — new nb-drawer opens from right (RTL = correct default) */
.nb-drawer {
    right: -340px;
    left: auto;
}

.nb-drawer.is-open {
    right: 0;
    left: auto;
}

/* Float WA tooltip */
.nb-float-wa__tip {
    left: calc(100% + 10px);
    right: auto;
}

.nb-float-wa__tip::after {
    left: -5px;
    right: auto;
    border-right: 5px solid white;
    border-left: none;
}

/* Float buttons — RTL sides */
.nb-float-wa { right: 1.5rem; left: auto; }
.nb-float-call { left: 1.5rem; right: auto; }

/* WhatsApp tooltip direction (legacy) */
.whatsapp-tooltip {
    left: calc(100% + 12px);
    right: auto;
}

.whatsapp-tooltip::after {
    left: -6px;
    right: auto;
    border-right: 6px solid white;
    border-left: none;
}

/* Mobile menu opens from right (legacy) */
.mobile-menu {
    right: -320px;
    left: auto;
}

.mobile-menu.active {
    right: 0;
    left: auto;
}

/* Service card link arrow */
.service-card-link .icon {
    transform: rotate(0deg);
}

/* Process step numbers */
.step-num {
    flex-shrink: 0;
}

/* Why feature item hover direction */
.why-feature-item:hover {
    transform: translateX(4px);
}

/* FAQ toggle rotation */
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* FAQ question text align */
.faq-question {
    text-align: right;
}

/* Contact item text */
.contact-item-text {
    text-align: right;
}

/* Pagination arrows */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Blog card link arrow */
.blog-card-link {
    direction: rtl;
}

/* Hero trust items */
.hero-trust-item {
    direction: rtl;
}

/* Mobile menu close button */
.mobile-menu-close {
    margin-right: auto;
    margin-left: 0;
}

/* Sidebar services list */
.sidebar-services-list a {
    direction: rtl;
}

/* Input placeholders */
input::placeholder,
textarea::placeholder {
    direction: rtl;
    text-align: right;
}

/* Select direction */
select {
    direction: rtl;
    text-align: right;
}

/* Footer bottom inner */
.footer-bottom-inner {
    direction: rtl;
}

/* About image secondary position */
.about-image-secondary {
    left: auto;
    right: -2rem;
}

/* Floating buttons */
.floating-call-btn {
    left: 2rem;
    right: auto;
}

.floating-whatsapp-btn {
    right: 2rem;
    left: auto;
}

/* Alignments */
.alignleft {
    float: right;
    margin-right: 0;
    margin-left: 2rem;
}

.alignright {
    float: left;
    margin-left: 0;
    margin-right: 2rem;
}

/* Post content lists */
.post-content ul,
.post-content ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

.post-content blockquote {
    border-right: 4px solid var(--color-primary);
    border-left: none;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* ============================================
   RESPONSIVE RTL
   ============================================ */
@media (max-width: 768px) {
    .floating-call-btn {
        left: 1rem;
        right: auto;
        bottom: 6rem;
    }

    .floating-whatsapp-btn {
        right: 1rem;
        left: auto;
    }

    .about-image-secondary {
        right: 0;
        left: auto;
    }
}
