/*
Theme Name: General Engineering Company (GEC) - RTL Stylesheet
Description: ملف التعديلات والخصائص الخاصة باتجاه اليمين لليسار (RTL) للغة العربية ليعمل بالتوازي بعد ملف style.css الأساسي.
Version: 1.0
Author: Ewebbers Studio
*/

/* ==========================================================================
   0. استيراد الخط العربي وإعدادات الاتجاه العامة
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bs-body-font-family: 'Cairo', 'Noto Sans', sans-serif;
}

html,
body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Noto Sans', sans-serif;
}

/* إلغاء تباعد الحروف (letter-spacing) لأنه يفصل الحروف العربية المتصلة */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.hero-primary-headline,
.hero-secondary-subtext,
.hero-company-name-tag,
.why-sub-badge-green,
.why-title-white,
.cta-headline-white,
.stadium-tag-btn,
.btn-cta-orange-pill,
.btn-hero-pill-more,
.btn-find-more-pill {
    letter-spacing: normal !important;
}

/* ==========================================================================
   1. شريط القمة العلوي (المثلث الأبيض والتاب البرتقالي)
   ========================================================================== */
.gec-top-overlay-bar {
    left: 0;
    right: 0;
}

/* المثلث الأبيض أسفل الشعار: نقله من أعلى اليسار إلى أعلى اليمين مع عكس زاوية القطع */
.gec-white-triangle-corner {
    left: auto;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    padding-left: 0;
    padding-right: 28px;
    justify-content: flex-start;
}

/* التاب البرتقالي للسوشيال ومفتاح القائمة: نقله من أعلى اليمين إلى أعلى اليسار وعكس زاوية القطع */
.gec-orange-corner-tab,
.gec-orange-corner-tab.langswicher {
    right: auto;
    left: 0;
    /* زاوية مشطوفة جهة اليمين بدلاً من اليسار */
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 100%, 0 100%);
    padding: 12px 44px 14px 28px;
    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. قسم الهيرو (HERO BANNER)
   ========================================================================== */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero_caption {
        left: auto;
        right: 0;
    }
}

/* دائرة الهيرو: تخرج جهة اليسار بدلاً من اليمين في التنسيق العربي */
.hero-circle-breakout-right {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 1199.98px) {
    .hero-circle-breakout-right {
        margin-right: 0;
        margin-left: -40px;
    }
}

.hero-horizontal-menu-list {
    padding-right: 0;
}

/* ==========================================================================
   3. قسم من نحن (WHO WE ARE - الدائرة البارزة)
   ========================================================================== */
/* الدائرة تبرز جهة اليمين بدلاً من اليسار */
.about_fluid_img {
    left: auto;
    right: 50%;
    transform: translateX(800px);
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .about_fluid_img {
        transform: translateX(650px);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .about_fluid_img {
        transform: translateX(550px);
    }
}

@media (max-width: 1199.98px) {
    .about-circle-breakout-left {
        margin-left: 0;
        margin-right: -50px;
    }
}

/* ==========================================================================
   4. قسم العملاء وقادة الصناعة (TRUSTED LEADERS - الدائرة البارزة)
   ========================================================================== */
/* صورة الدائرة تبرز جهة اليسار بدلاً من اليمين */
.clients_circle_img {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: 200px;
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .clients_circle_img {
        margin-left: 0;
        margin-right: 100px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .clients_circle_img {
        margin-left: 0;
        margin-right: 50px;
    }
}

.trusted-circle-breakout-right {
    margin-left: -100px;
    margin-right: auto;
}

@media (max-width: 1199.98px) {
    .trusted-circle-breakout-right {
        margin-left: -40px;
        margin-right: 0;
    }
}

/* ==========================================================================
   5. قسم الحلول الصناعية المتكاملة (SOLUTIONS)
   ========================================================================== */
/* العلامة المائية للدوائر تبرز جهة اليسار بدلاً من اليمين */
.solutions-breakout-arcs-watermark {
    right: auto;
    left: -100px;
}

.solution-grid-anchor {
    text-align: right;
}

/* ==========================================================================
   6. قسم الآراء ودعوة العمل (TESTIMONIALS & CTA)
   ========================================================================== */
.testimonials-content-box {
    text-align: right;
}

.testimonial-quote-para {
    font-style: normal;
    text-align: right;
}

.cta-factory-card {
    text-align: right;
}

/* عكس اتجاه الأسهم الدائرية لتشير لليسار (الاتجاه الطبيعي للتقدم في العربية) */
.btn-arrow-circle svg,
.btn-arrow-circle i,
.btn-news-arrow svg,
.btn-news-arrow i {
    transform: scaleX(-1);
    display: inline-block;
}

/* ==========================================================================
   7. قسم الوظائف (CAREERS - صورة الفني الدائرية)
   ========================================================================== */
.technician-circle-breakout-left {
    margin-left: 0;
    margin-right: -100px;
}

@media (max-width: 1199.98px) {
    .technician-circle-breakout-left {
        margin-left: 0;
        margin-right: -50px;
    }
}

.careers_floated_img {
    left: auto;
    right: 50%;
    transform: translate(750px, -50%);
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .careers_floated_img {
        transform: translate(600px, -50%);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .careers_floated_img {
        transform: translate(450px, -50%);
    }
}

/* ==========================================================================
   8. قسم شريط الأخبار (LATEST NEWS TICKER)
   ========================================================================== */
.news-horizontal-strip {
    text-align: right;
}

.news-pill-orange {
    margin-left: 12px;
    margin-right: 0;
}

.news-headline-link {
    text-align: right;
}

/* ==========================================================================
   9. قسم اتصل بنا والفوتر (CONTACT US & FOOTER)
   ========================================================================== */
.gec-contact-section-grid,
.contact-header-title,
.contact-summary-text,
.contact-nav-link {
    text-align: right;
}

/* أرقام الهواتف والإيميل تظل اتجاه LTR للحفاظ على ترتيب الأرقام والرموز */
.contact-phone,
a[href^="tel:"],
a[href^="mailto:"] {
    direction: ltr !important;
    display: inline-block;
    text-align: right;
}

/* ==========================================================================
   10. الزخارف والأشكال الخلفية (DECORATIVE BACKGROUNDS)
   ========================================================================== */
/* عكس خلفية الدوائر */
.circles_page_bg::before {
    left: auto;
    right: -30%;
    background-position: right top;
    transform: scaleX(-1);
}

.circles_page_bg::after {
    right: auto;
    left: -15%;
    background-position: left bottom;
    transform: scaleX(-1);
}

.circles_page_bg.about_circles::before {
    display: block;
}

.circles_page_bg.about_circles::after {
    display: none;
}

/* عكس التروس والذراع الآلية في سكشن كروت العملاء */
.clients_cards::before {
    left: auto;
    right: 0;
    background-position: right bottom;
    transform: scaleX(-1);
}

.clients_cards::after {
    right: auto;
    left: 0;
    background-position: left bottom;
    transform: scaleX(-1);
}

/* ==========================================================================
   11. نماذج المراسلة CONTACT FORM 7
   ========================================================================== */
.wpcf7 form {
    direction: rtl;
    text-align: right;
}

.wpcf7 form label {
    text-align: right;
}

.wpcf7 form input[type="text"],
.wpcf7 form input[type="url"],
.wpcf7 form input[type="number"],
.wpcf7 form select,
.wpcf7 form textarea {
    text-align: right;
    direction: rtl;
}

.wpcf7 form input[type="tel"],
.wpcf7 form input[type="email"] {
    text-align: right;
    direction: ltr;
}

.wpcf7 form select {
    background-position: left 15px center;
}

.wpcf7 form .wpcf7-response-output,
.wpcf7-not-valid-tip {
    text-align: right;
    direction: rtl;
}

/* ==========================================================================
   12. تجاوب الهيدر وقائمة الموبايل (RESPONSIVE & MOBILE MENU)
   ========================================================================== */
@media (max-width: 991.98px) {
    #gecStickyNavMenu {
        text-align: right;
    }

    #gecStickyNavMenu .hero-horizontal-menu-list {
        text-align: right;
    }

    #gecStickyNavMenu .hero-horizontal-menu-list li a.hero-menu-item {
        justify-content: flex-start;
        text-align: right;
    }

    .technician-circle-breakout-left {
        margin: 0 auto 20px;
    }
}