/* ==========================================
   GREEN RIVER — RTL OVERRIDES (ARABIC)
   Applied on top of styles.css for dir="rtl"
   ========================================== */

/* ---------- Arabic Typography ---------- */
:root {
    --font-arabic: 'Noto Kufi Arabic', 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .cta-title,
[dir="rtl"] .vm-card-title,
[dir="rtl"] .product-category-title {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

[dir="rtl"] .section-label,
[dir="rtl"] .hero-badge,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn,
[dir="rtl"] .mobile-nav-link,
[dir="rtl"] .footer-heading,
[dir="rtl"] .pillar-title,
[dir="rtl"] .sub-group-title,
[dir="rtl"] .whyus-card h4,
[dir="rtl"] .commitment-card h4,
[dir="rtl"] .market-item h4,
[dir="rtl"] .about-feature strong,
[dir="rtl"] .about-floating-card strong,
[dir="rtl"] .haccp-badge strong,
[dir="rtl"] .contact-item strong,
[dir="rtl"] .form-group label,
[dir="rtl"] .bulk-supply-ribbon,
[dir="rtl"] .product-tab,
[dir="rtl"] .stat-label,
[dir="rtl"] .pillar-number {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

/* ---------- General RTL Direction ---------- */
[dir="rtl"] {
    text-align: right;
}

/* ---------- Section Label ---------- */
[dir="rtl"] .section-label {
    padding-left: 0;
    padding-right: 32px;
}

[dir="rtl"] .section-label::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .section-header .section-label {
    padding-right: 0;
}

/* ---------- Navbar ---------- */
[dir="rtl"] .navbar-inner {
    flex-direction: row-reverse;
}

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

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

/* ---------- Mobile Menu ---------- */
[dir="rtl"] .navbar-toggle {
    order: -1;
}

/* ---------- Hero ---------- */
[dir="rtl"] .hero-pattern-accent {
    right: auto;
    left: 0;
    mask-image: linear-gradient(to top right, black, transparent);
    -webkit-mask-image: linear-gradient(to top right, black, transparent);
}

[dir="rtl"] .hero-cta-group {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .btn .btn-icon {
    transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .btn-icon {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .btn-icon-left {
    transform: scaleX(-1);
}

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

/* ---------- About ---------- */
[dir="rtl"] .about-grid {
    direction: rtl;
}

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

[dir="rtl"] .about-feature:hover {
    transform: translateX(-8px);
}

[dir="rtl"] .about-floating-card {
    left: auto;
    right: -32px;
    flex-direction: row-reverse;
}

[dir="rtl"] .about-image-accent {
    right: auto;
    left: -20px;
}

[dir="rtl"] .floating-card-icon + div {
    text-align: right;
}

/* ---------- Vision & Mission ---------- */
[dir="rtl"] .vm-bg-pattern {
    right: auto;
    left: 0;
    mask-image: linear-gradient(to right, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent 80%);
}

[dir="rtl"] .vm-mission-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .vm-card-line {
    background: linear-gradient(270deg, var(--gold-600), var(--gold-400), transparent);
}

/* ---------- Positioning Pillars ---------- */
[dir="rtl"] .pillar::before {
    background: linear-gradient(270deg, var(--green-600), var(--gold-500));
}

/* ---------- Products ---------- */
[dir="rtl"] .product-tabs {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-panel-grid {
    direction: rtl;
}

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

[dir="rtl"] .sub-group-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .sub-group-title::before {
    order: 1;
}

[dir="rtl"] .product-list {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .product-list li {
    padding-left: 0;
    padding-right: 16px;
}

[dir="rtl"] .product-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .product-list-large li {
    flex-direction: row-reverse;
    text-align: right;
    padding-right: 16px;
    padding-left: 16px;
}

[dir="rtl"] .product-list-large li:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .bulk-supply-ribbon {
    flex-direction: row-reverse;
}

[dir="rtl"] .flowers-highlight {
    flex-direction: row-reverse;
    text-align: right;
}

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

/* ---------- Quality ---------- */
[dir="rtl"] .quality-bg-pattern {
    left: auto;
    right: 0;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

[dir="rtl"] .quality-grid {
    direction: rtl;
}

[dir="rtl"] .haccp-badge {
    flex-direction: row-reverse;
    text-align: right;
}

/* ---------- Why Choose Us ---------- */
[dir="rtl"] .whyus-card::before {
    background: linear-gradient(270deg, var(--green-600), var(--gold-500));
}

/* ---------- Markets ---------- */
[dir="rtl"] .markets-banner::before {
    right: auto;
    left: 0;
    mask-image: linear-gradient(to right, black, transparent);
    -webkit-mask-image: linear-gradient(to right, black, transparent);
}

/* ---------- Contact ---------- */
[dir="rtl"] .contact-grid {
    direction: rtl;
}

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

[dir="rtl"] .contact-item:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .contact-form {
    direction: rtl;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

[dir="rtl"] .form-group select {
    background-position: left 14px center;
    padding-left: 40px;
    padding-right: 18px;
}

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

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

[dir="rtl"] .footer-link:hover {
    transform: translateX(-4px);
}

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

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

/* ---------- Back to Top ---------- */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 32px;
}

/* ---------- Scroll Animations RTL ---------- */
[dir="rtl"] .animate-on-scroll {
    transform: translateY(40px);
}

[dir="rtl"] .animate-on-scroll.visible {
    transform: translateY(0);
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    padding: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled .lang-switcher {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.lang-btn {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.6);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
    background: none;
    letter-spacing: 0.05em;
}

.navbar.scrolled .lang-btn {
    color: var(--gray-500);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: var(--green-900);
}

.navbar.scrolled .lang-btn.active {
    color: var(--green-900);
}

.lang-btn:hover:not(.active) {
    color: var(--white);
}

.navbar.scrolled .lang-btn:hover:not(.active) {
    color: var(--green-700);
}

/* RTL Language Switcher Position */
[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 16px;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.mobile-lang-btn {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    background: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.mobile-lang-btn.active {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: var(--green-900);
    border-color: transparent;
}

.mobile-lang-btn:hover:not(.active) {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

/* ---------- RTL Responsive ---------- */
@media (max-width: 768px) {
    [dir="rtl"] .hero-cta-group {
        flex-direction: column;
    }

    [dir="rtl"] .hero-stats {
        flex-direction: row;
    }

    [dir="rtl"] .about-floating-card {
        right: auto;
        left: auto;
    }

    [dir="rtl"] .product-tabs {
        flex-direction: row;
        justify-content: flex-start;
    }

    [dir="rtl"] .product-image-badge {
        right: 12px;
    }

    [dir="rtl"] .product-list {
        padding-right: 12px;
    }

    [dir="rtl"] .product-list li {
        padding-right: 14px;
    }

    [dir="rtl"] .flowers-highlight {
        flex-direction: column;
        text-align: center;
    }

    [dir="rtl"] .bulk-supply-ribbon {
        text-align: right;
    }

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

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

    [dir="rtl"] .back-to-top {
        left: 16px;
    }

    [dir="rtl"] .contact-form {
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .section-label {
        padding-right: 0;
        padding-left: 0;
    }

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

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

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

    [dir="rtl"] .contact-info {
        text-align: center;
    }

    [dir="rtl"] .quality-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .market-item {
        flex-direction: row-reverse;
        text-align: right;
    }

    [dir="rtl"] .product-list-large li {
        flex-direction: row-reverse;
        text-align: right;
    }

    [dir="rtl"] .back-to-top {
        left: 14px;
    }
}
