/* Al Mohanad Arabic Font */
@font-face {
    font-family: 'Al Mohanad';
    src: url('../../fonts/al-mohanad.woff') format('woff'),
         url('../../fonts/al-mohanad.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Al Mohanad';
    src: url('../../fonts/al-mohanad-bold.woff') format('woff'),
         url('../../fonts/al-mohanad-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* RTL Support for Arabic Pages */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Al Mohanad', 'Tajawal', sans-serif !important;
}

/* Apply Al Mohanad to all elements */
h1, h2, h3, h4, h5, h6,
p, a, span, li, div, button, input, textarea, select,
.hero-subtitle, .hero-tagline, .section-title,
.card h3, .card p, .card-link,
.deliverable-card h3, .deliverable-card p,
.process-step-block h3, .process-step-block p,
.ethics-point h4, .ethics-point p,
.trust-item h3, .trust-item p,
.stat-number, .stat-label,
.lead-text, .cta-button, .btn-outline,
.footer-column, .footer-column h4, .footer-column a, .footer-column p,
.commitment-card h3, .commitment-card p,
.value-text h2, .value-text p,
.cta-content h2, .cta-content p,
.service-hero h1, .service-hero .subtitle,
.service-intro h2, .service-intro p,
.feature-card h3, .feature-card p,
.deliverables-box h2, .deliverables-box li,
.deliverable-item h3, .deliverable-item p,
.limits-section h3, .limits-section p,
.disclosure-box h2, .disclosure-box p,
.nav-menu a, .dropbtn, .dropdown-content a {
    font-family: 'Al Mohanad', 'Tajawal', sans-serif !important;
}

/* Adjust navigation for RTL */
.nav-container {
    flex-direction: row-reverse;
}

.nav-menu {
    flex-direction: row;
}

.nav-menu li {
    text-align: right;
}

/* Language switch inside nav-menu should be at the end (left side in RTL) */
.nav-menu .lang-switch {
    order: 99;
    margin-right: auto;
}

/* Dropdown position for RTL */
.dropdown-content {
    left: auto;
    right: 0;
}

/* Desktop language switcher RTL */
.nav-container>.lang-switch {
    order: 0;
}

/* Adjust card layout */
.card-link,
.btn-outline,
.cta-button {
    text-align: center;
}

/* Cards grid RTL - card 1 starts from right */
.cards-grid {
    direction: rtl;
}

.cards-grid .card {
    direction: rtl;
}

/* Card border flip: left → right */
.card {
    border-left: none;
    border-right: 4px solid var(--accent);
}

/* Card number position flip */
.card-number {
    left: auto;
    right: 30px;
}

/* Process timeline RTL */
.process-timeline {
    direction: rtl;
}

.process-arrow {
    transform: none;
}

/* Process number position flip */
.process-number,
.deliverable-icon {
    left: auto;
    right: 30px;
}

/* Ethics section RTL */
.ethics-point {
    text-align: right;
}

/* Trust section RTL */
.trust-item {
    text-align: center;
}

/* Value section RTL */
.value-text {
    text-align: right;
}

/* Footer RTL */
.footer-content {
    direction: rtl;
    text-align: right;
}

.footer-column a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Service pages RTL: deliverable items border flip */
.deliverable-item {
    border-left: none;
    border-right: 4px solid #1A4D3A;
}

/* Boundary section RTL */
.boundary-col li {
    padding-left: 0;
    padding-right: 30px;
}

.boundary-col li::before {
    left: auto;
    right: 0;
}

/* Commitment cards RTL (ethics page) */
.commitment-card {
    text-align: right;
    border-left: none;
    border-right: 4px solid #1A4D3A;
}

/* Disclosure box RTL */
.disclosure-box {
    text-align: right;
}

/* Feature cards RTL */
.feature-card {
    text-align: right;
    border-left: none;
    border-right: 4px solid transparent;
}

.feature-card:hover {
    border-left-color: transparent;
    border-right-color: #1A4D3A;
}

/* Process box RTL (service pages) */
.process-box li {
    padding-left: 0;
    padding-right: 30px;
}

.process-box li span {
    left: auto;
    right: 0;
}

/* Deliverables box RTL */
.deliverables-box li {
    padding-left: 0;
    padding-right: 35px;
}

.deliverables-box li::before {
    left: auto;
    right: 0;
}

/* Limits section RTL */
.limits-section {
    text-align: right;
}

/* Service intro RTL */
.service-intro {
    text-align: right;
}

/* General list items RTL */
ul, ol {
    padding-left: 0;
    padding-right: 20px;
}

/* WhatsApp button RTL */
.whatsapp-float {
    right: auto;
    left: 30px;
}

/* Mobile menu RTL */
@media (max-width: 768px) {
    .nav-menu {
        right: auto !important;
        left: -100% !important;
        transition: left 0.3s ease !important;
    }

    .nav-menu.mobile-active {
        left: 0 !important;
        right: auto !important;
    }

    /* Mobile dropdown RTL */
    .dropdown-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dropdown-content a {
        padding: 14px 40px 14px 24px !important;
    }

    .nav-menu li a {
        text-align: right !important;
    }

    .nav-menu .lang-switch a {
        text-align: right !important;
    }

    .footer-content {
        text-align: right;
    }

    .footer-column a:hover {
        padding-left: 0;
        padding-right: 0;
    }
}
