/* ==========================================================================
   QUICK MARKETING - CUSTOM CSS
   Extracted from Blade views for clean architecture
   ========================================================================== */

/* --- 0. GLOBAL VIEWPORT OVERFLOW LOCK --- */
html,
body,
.page-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
}

/* ==========================================================================
   HERO SECTION (ARABIC NEXIN THEME FIX)
   ========================================================================== */
.arabic-hero-section {
    direction: rtl;
    text-align: right;
    padding-top: 150px;
    overflow: hidden;
}

/* Disable LTR absolute positioning from Nexin theme */
.arabic-hero-section .banner-one__big-title-one,
.arabic-hero-section .banner-one__big-title-two,
.arabic-hero-section .banner-one__content-two-single {
    position: static !important;
    float: none !important;
    transform: none !important;
    margin: 0 !important;
}

/* Hero title row */
.arabic-hero-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.badge-and-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero bottom row */
.arabic-hero-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.hero-content-box p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 500px;
    color: var(--thm-text, #666);
}

.hero-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

/* WhatsApp inline hero button */
.whatsapp-btn {
    background-color: #25D366 !important;
    color: #ffffff !important;
}

.whatsapp-btn::before {
    background-color: #128C7E !important;
}

.whatsapp-btn i {
    margin-left: 8px;
    font-size: 18px;
}

/* Review box static override */
.hero-review-box {
    margin-right: 0 !important;
    position: static !important;
}

.banner-one__review-text-count-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.plus-sign {
    font-size: 24px;
    font-weight: bold;
    color: var(--thm-primary, #f06339);
    margin-right: 5px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-wa 2s infinite;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    color: #fff;
}

@keyframes pulse-wa {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section-container {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    text-align: center;
}

.cta-section-title {
    color: #f06339;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section-subtitle {
    color: #f06339;
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.cta-section-btn {
    font-size: 1.05rem;
    padding: 15px 45px;
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.section-process {
    padding: 100px 0;
    background: #f9fafc;
}

.process-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.process-card__number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f06339, #6366f1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.process-card__label {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e2a3b;
    margin: 0;
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */
.section-partners {
    padding: 80px 0;
    background: #fff;
}

.partner-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.partner-badge {
    background: linear-gradient(135deg, #f0f0ff, #e8eafb);
    border: 1px solid #d4d6f5;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3730a3;
    text-align: center;
    min-width: 160px;
}

/* ==========================================================================
   CONTACT / LEAD FORM SECTION
   ========================================================================== */
.section-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.contact-tagline-shape {
    background: #a5b4fc !important;
}

.contact-tagline-text {
    color: #a5b4fc !important;
}

.contact-form-title {
    color: #fff;
}

.contact-form-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-label {
    color: #c7d2fe;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.contact-form-required {
    color: #f87171;
}

.contact-form-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-form-error {
    color: #f87171;
}

.contact-form-submit {
    font-size: 1.05rem;
    padding: 16px 50px;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.features-list-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.features-list-item i {
    margin-top: 3px;
    flex-shrink: 0;
}

.features-list-item span {
    font-weight: 600;
}

.why-us-img-mt {
    margin-top: 30px;
}

.why-us-features-mt {
    margin-top: 30px;
}

.why-us-cta-mt {
    margin-top: 30px;
}

/* ==========================================================================
   MODERN SERVICES SECTION (Phase 27)
   ========================================================================== */
.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-modern-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.service-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(240, 99, 57, 0.1);
    border-color: rgba(240, 99, 57, 0.2);
}

.service-modern-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(240, 99, 57, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-modern-icon-box span,
.service-modern-icon-box i,
.service-modern-icon-box img {
    font-size: 32px;
    color: #f06339;
    transition: all 0.4s ease;
}

.service-modern-card:hover .service-modern-icon-box {
    background: #f06339;
    transform: rotate(-5deg) scale(1.1);
}

.service-modern-card:hover .service-modern-icon-box span,
.service-modern-card:hover .service-modern-icon-box i {
    color: #fff;
}

.service-modern-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e2a3b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-modern-text {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: auto;
}

.service-modern-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: #f06339;
    font-weight: 700;
    font-size: 15px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-modern-cta i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.service-modern-card:hover .service-modern-cta i {
    transform: translateX(-5px);
    /* Move left for RTL */
}

.service-modern-card:hover .service-modern-cta {
    color: #d84b22;
}

/* ==========================================================================
   RTL UI/UX SURGERY (Phase 30)
   ========================================================================== */

/* --- 1. NUKE THEMELOCK WATERMARKS --- */
a[href*="themelock"],
[class*="themelock"],
.themelock-watermark,
body::before,
body::after,
.mobile-nav__wrapper::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
}

/* --- 2. FORCE CONNECTED ARABIC TEXT GLOBALLY --- */
.split-inner,
.word,
.char,
[style*="direction: ltr"] {
    direction: rtl !important;
    unicode-bidi: normal !important;
    letter-spacing: 0 !important;
}

/* --- 3. LTR NUMBER ISOLATION (ODOMETER FIX) --- */
.odometer-wrapper-ltr {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center;
    unicode-bidi: isolate;
}

.odometer.odometer-auto-theme,
.odometer-inside {
    direction: ltr !important;
}

/* --- 4. REVIEW IMAGES FIT --- */
.banner-one__review-img {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border-radius: 50%;
}

.banner-one__review-img img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border-radius: 50%;
}

/* ==========================================================================
   ARABIC TYPOGRAPHY FIXES (Phase 28)
   ========================================================================== */
.section-title__title,
.section-title__tagline,
.banner-one__big-title-one,
.banner-one__big-title-two,
h1,
h2,
h3,
h4,
h5,
h6 {
    direction: rtl !important;
    text-align: right !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    display: block !important;
    /* Ensure it stays as a block for AOS */
}

/* Prevent any theme span splitting from affecting rendering */
.section-title__title span,
.section-title__tagline span {
    display: inline !important;
    letter-spacing: normal !important;
}

.text-center .section-title__title,
.text-center .section-title__tagline,
.text-center .section-title__tagline-box {
    text-align: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .arabic-hero-bottom-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {

    /* Fluid Typography & Word Breaking */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .section-title__title,
    .banner-one__big-title-one,
    .banner-one__big-title-two,
    .service-modern-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    .section-title__title {
        font-size: 28px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .section-title__tagline-box {
        flex-wrap: wrap !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    /* Neutralize Hostile RTL Margins/Padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .section-title,
    .why-choose-one__left,
    .service-one__top {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .arabic-hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* 1. Typography & Title Wrapper */
    .arabic-hero-title-wrapper {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin: 30px 0 !important;
    }

    .arabic-hero-section .banner-one__big-title-one,
    .arabic-hero-section .banner-one__big-title-two {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .badge-and-icon {
        transform: scale(0.7);
        margin: 0 5px;
        justify-content: center;
    }

    /* 2. Bottom Wrapper Layout */
    .arabic-hero-bottom-wrapper {
        flex-direction: column !important;
        gap: 50px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-content-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-content-box p {
        font-size: 16px;
        margin: 0 auto;
        text-align: center !important;
    }

    /* 3. Action Buttons */
    .hero-action-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-action-btns .thm-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 18px 20px !important;
        font-size: 16px !important;
    }

    /* 4. Review Box */
    .hero-review-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 !important;
    }

    .banner-one__review-list {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px;
        margin-bottom: 15px;
    }

    .banner-one__review-text {
        flex-direction: column !important;
    }

    .banner-one__review-text-box {
        text-align: center !important;
    }

    .banner-one__review-text-count-box {
        justify-content: center !important;
    }
}

/* ==========================================================================
   MOBILE MENU RTL & PREMIUM STYLING
   ========================================================================== */
/* --- إعدادات الحاوية العامة --- */
.mobile-nav__content {
    direction: rtl !important;
    text-align: right !important;
     background-color: #ffffff !important;

/* زر الإغلاق */
.mobile-nav__close {
    left: 20px !important;
    right: auto !important;
    color: #333333 !important; /* لون داكن ليظهر على الأبيض */
}

/* --- تنسيق القائمة والروابط --- */
.mobile-nav__container .main-menu__list {
    display: block !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.mobile-nav__container .main-menu__list>li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; /* خط فاصل رمادي خفيف */
}

.mobile-nav__container .main-menu__list>li>a {
    display: block !important;
    padding: 15px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000000 !important; /* نص أسود */
    text-align: right !important;
    transition: all 0.3s ease;
}

/* تأثير التمرير (Hover) */
.mobile-nav__container .main-menu__list>li>a:hover {
    color: #3730a3 !important; /* لون براند (نيلي مثلاً) عند الحوم */
    padding-right: 15px !important; /* تأثير الإزاحة */
}

/* --- معلومات التواصل --- */
.mobile-nav__contact li {
    text-align: right !important;
    color: #444444 !important; /* لون رمادي غامق للنصوص الثانوية */
}

.mobile-nav__contact li i {
    margin-left: 10px !important;
    margin-right: 0 !important;
    color: #000000 !important; /* لون الأيقونات أسود */
}

/* --- اللوجو --- */
.mobile-nav__logo img {
    /* حذف الـ filter invert لأن الخلفية أصبحت بيضاء واللوجو الأصلي غالباً ملون */
    filter: none !important; 
}

/* --- حاوية زرار الـ CTA (اختياري) --- */
.mobile-nav__cta-box {
    margin-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}