/* ═══════════════════════════════════════════════════════
   RTL OVERRIDES — Arabic Version
   ═══════════════════════════════════════════════════════ */

/* Typography — switch to Arabic fonts */
:root {
    --font-heading: 'Cairo', 'Outfit', sans-serif;
    --font-body: 'Tajawal', 'Inter', sans-serif;
}

/* General RTL direction fix */
body {
    direction: rtl;
    text-align: right;
}

/* ── Hero title fix for Arabic script ── */
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.6;
    word-spacing: 0.05em;
}

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

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

.nav-link::after {
    left: auto;
    right: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
}

/* Language switcher */
.lang-switcher {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    transition: var(--transition-base);
    letter-spacing: 0.05em;
}

.lang-switcher:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}

/* Hero badge icon */
.hero-badge {
    flex-direction: row-reverse;
}

/* Buttons icon order */
.btn {
    flex-direction: row-reverse;
}

/* Hero stats */
.hero-stats-mini {
    direction: rtl;
}

/* Section headers */
.section-header {
    text-align: center;
}

.section-tag {
    flex-direction: row-reverse;
}

/* Service cards */
.service-card {
    text-align: right;
}

.featured-badge {
    right: auto;
    left: 1rem;
}


/* Portfolio overlay */
.portfolio-overlay {
    text-align: right;
}

/* About section — swap image/text column order */
.about-grid {
    direction: rtl;
}

.about-content .section-tag {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .about-content .section-tag {
        justify-content: center;
    }
}

.about-image-decoration {
    right: auto;
    left: -12px;
}

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



/* Form */
.contact-form {
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    text-align: right;
}

.form-group select {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
}

/* ── Footer (توسيط الفوتر بالكامل) ── */
.footer-grid {
    direction: rtl;
    text-align: center;
}

/* توسيط اللوجو */
.footer-brand .nav-logo {
    justify-content: center;
}

/* توسيط النص تحت اللوجو */
.footer-brand p {
    margin-left: auto;
    margin-right: auto;
}

/* توسيط الروابط وتعديل حركتها عند المرور عليها */
.footer-links {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.footer-links a:hover {
    padding-left: 0;
    padding-right: 0;
    color: var(--purple-light);
    transform: translateY(-2px);
}

/* تعديل عرض الأعمدة ليصبح متناسقاً مع التوسيط */
@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* ── Mobile nav — RTL adjustments ── */
@media (max-width: 767px) {
    .nav-links {
        text-align: center;
        flex-direction: column;
        /* Clip-path origin from left side for RTL hamburger */
        clip-path: circle(0% at 40px 30px);
    }

    .nav-links.open {
        clip-path: circle(150% at 40px 30px);
    }

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

    .hamburger {
        order: -1;
    }

    .nav-logo {
        order: 1;
    }
}

/* تنسيقات الموبايل - توسيط كروت الخدمات */
@media (max-width: 768px) {

    /* توسيط النص داخل الكارد */
    .service-card {
        text-align: center;
    }

    /* توسيط الأيقونة في المنتصف */
    .service-card .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* توسيط رابط "عرض الأعمال" والسهم الخاص به */
    .service-card .service-link {
        justify-content: center;
        width: 100%;
    }
}