/*
Theme Name:مساندات - تصميم شركة الصقر   Supports Logistics Theme
Theme URI: https://supports.sa
Author: saqqr.com Dev Team
Description: قالب مخصص لشركة مساندات للخدمات اللوجستية (B2B) - Version: 1.0
Text Domain: supports-logistics
*/

/* =========================================
   1. CSS Variables & Identity Colors
   ========================================= */
:root {
    /* الألوان الأساسية */
    --color-primary: #9B5092;  /* Purple أساسي */
    --color-medium: #A66BAC;   /* Purple متوسط */
    --color-light: #9487C0;    /* Purple فاتح */
    
    /* الألوان المحايدة */
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-gray: #F4F6F8;
    --color-text-dark: #2c3e50;
    
    /* الخطوط */
    --font-ar: 'Cairo', sans-serif; 
    --font-en: 'Inter', sans-serif;
    
    /* إعدادات عامة */
    --container-width: 1280px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(155, 80, 146, 0.08);
}

/* =========================================
   2. Reset & Global Styles
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    outline: none; 
}

html {
    scroll-behavior: smooth; /* تمرير ناعم عند النقر على الروابط */
}

body {
    font-family: var(--font-ar);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl; 
    text-align: right;
}

/* دعم اتجاه اللغة في ووردبريس */
body.rtl { direction: rtl; text-align: right; }
body.ltr { font-family: var(--font-en); direction: ltr; text-align: left; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   3. Utility Classes
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.row { display: flex; flex-wrap: wrap; margin: 0 -24px; align-items: center; }
.col { padding: 0 24px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }

.bg-light { background-color: var(--color-gray); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }

/* Typography */
.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { 
    background-color: var(--color-primary); 
    color: var(--color-white); 
    box-shadow: 0 4px 15px rgba(155, 80, 146, 0.3);
}
.btn-primary:hover { 
    background-color: var(--color-black); 
    transform: translateY(-2px);
    color: #fff;
}

.btn-light { 
    background-color: var(--color-white); 
    color: var(--color-primary); 
}
.btn-light:hover { 
    background-color: #f0f0f0;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 28px;
    border-radius: 50px;
}
.btn-outline:hover { 
    background-color: var(--color-primary); 
    color: var(--color-white); 
}

/* =========================================
   5. Header & Navigation
   ========================================= */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-menu { 
    display: flex; 
    gap: 35px; 
    padding: 0;
    margin: 0;
}

.nav-link { 
    color: var(--color-text-dark); 
    font-weight: 600; 
    font-size: 1rem;
    position: relative;
    display: inline-block;
}
.nav-link:hover { color: var(--color-primary); }

/* الخط المتحرك أسفل الروابط */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-lang {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-lang:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.mobile-toggle { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--color-primary); 
    z-index: 1001;
}

/* =========================================
   6. Sections Styles
   ========================================= */

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--color-gray) 0%, #e8dff0 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

/* خلفية النقاط */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--color-light) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 0;
}

.hero-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    position: relative; 
    z-index: 1; 
}

.hero-content { flex: 1; min-width: 350px; padding-left: 40px; }

.hero-title { 
    font-size: 3.2rem; 
    line-height: 1.3; 
    margin-bottom: 24px; 
    font-weight: 800; 
    color: var(--color-black);
}

.hero-desc { 
    font-size: 1.2rem; 
    margin-bottom: 40px; 
    color: #555;
    font-weight: 400;
    max-width: 650px;
}

.hero-visual { flex: 1; min-width: 350px; display: flex; justify-content: flex-end; }

.hero-img { 
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    max-width: 100%;
    border: 8px solid var(--color-white);
}

/* --- About Intro --- */
.about-intro { position: relative; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: #444; text-align: justify; }
.about-highlight {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 30px;
    display: block;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* الخط الملون العلوي عند التحويم */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px; height: 60px;
    background-color: rgba(155, 80, 146, 0.08);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-icon svg { width: 28px; height: 28px; }

.service-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-black); font-weight: 700; }
.service-desc { 
    color: #555; 
    font-size: 1rem; 
    margin-bottom: 20px; 
    flex-grow: 1;
}
.service-additional {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.service-link { 
    color: var(--color-primary); 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.95rem; 
    align-self: flex-start;
}

/* --- Why Us --- */
.why-us { align-items: center; }
.check-list { margin-top: 30px; }

.check-item { display: flex; gap: 20px; margin-bottom: 30px; }
.check-icon {
    width: 40px; height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(155, 80, 146, 0.2);
}
.check-content strong { display: block; margin-bottom: 8px; color: var(--color-black); font-size: 1.1rem; font-weight: 700; }
.check-content p { color: #666; font-size: 1rem; line-height: 1.6; margin: 0; }

/* --- Process Steps --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.step-item { text-align: center; flex: 1; min-width: 160px; position: relative; z-index: 1; }

.step-number {
    width: 70px; height: 70px;
    background-color: var(--color-white);
    border: 2px solid var(--color-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.4rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step-item:hover .step-number {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.step-arrow {
    color: #ddd;
    display: flex; align-items: center;
    flex-grow: 1; min-width: 20px; justify-content: center;
    margin-top: 35px;
}

.step-item h4 { margin-bottom: 12px; font-size: 1.1rem; color: var(--color-black); }
.step-item p { font-size: 0.9rem; color: #777; padding: 0 10px; }

/* --- Contact / Map Section --- */
.contact-wrapper {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    padding: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    min-width: 350px;
}

.contact-map {
    flex: 1;
    min-width: 350px;
    height: 500px;
    background-color: #eee;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; }

.info-item { margin-bottom: 35px; display: flex; gap: 20px; align-items: flex-start; }
.info-icon { font-size: 1.5rem; margin-top: 5px; }
.info-text h5 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }
.info-text p { opacity: 0.9; font-size: 1rem; line-height: 1.6; }

/* --- CTA Section --- */
/* ملاحظة: خلفية الصورة تم تعيينها في ملف PHP */
.cta-main {
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white);
    text-align: center;
}
.cta-main::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: rgba(155, 80, 146, 0.9);
}
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: 3rem; margin-bottom: 20px; color: var(--color-white); font-weight: 800; }
.cta-desc { color: rgba(255,255,255,0.9); font-size: 1.3rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* =========================================
   7. Footer
   ========================================= */
footer { background-color: #1a1a1a; color: #bbb; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { color: var(--color-white); font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; display: block; }
.footer-logo span { color: var(--color-medium); }
.footer-desc { font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; max-width: 300px; }

.footer-heading { color: var(--color-white); font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: #bbb; font-size: 0.95rem; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--color-primary); padding-inline-start: 5px; }

.footer-contact li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.footer-contact svg { color: var(--color-primary); width: 20px; margin-top: 3px; flex-shrink: 0; }

/* Social Icons */
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--color-white);
}
.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}
.social-link svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid #333; padding-top: 30px; text-align: center; font-size: 0.9rem; color: #777; }

/* =========================================
   8. Floating Actions (Buttons)
   ========================================= */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.fab-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.fab-whatsapp { background-color: #25D366; }
.fab-call { background-color: var(--color-primary); }

/* =========================================
   9. Animations
   ========================================= */
.fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* =========================================
   10. Mobile Responsive
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 2.4rem; }
    .hero-wrapper { flex-direction: column-reverse; text-align: center; }
    .hero-content { padding-left: 0; margin-top: 40px; }
    .hero-desc { margin: 0 auto 32px; text-align: center; }
    .process-steps { flex-direction: column; align-items: center; gap: 0; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
    .contact-wrapper { flex-direction: column; }
    .contact-map { height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
    .footer-desc { margin: 0 auto 24px; }
    .btn-lang { display: none; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 100px; left: 0; right: 0; 
        background: var(--color-white); 
        flex-direction: column; 
        padding: 20px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        gap: 20px;
        text-align: center;
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .col-md-6, .col-md-5, .col-md-7 { flex: 100%; max-width: 100%; }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 2rem; }
    .contact-info { padding: 40px 24px; }
    .logo img { height: 50px; }
    
    /* تعديل للأزرار العائمة في الموبايل */
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .fab-btn { width: 50px; height: 50px; }
    .fab-btn svg { width: 24px; height: 24px; }
}



/* =========================================
   Partners & Certifications Section
   ========================================= */
.partners-section {
    background-color: #fcfcfc; /* خلفية فاتحة جداً لتمييز القسم */
}

.partners-grid {
    display: grid;
    /* عرض 4 شعارات في الصف للشاشات الكبيرة، وتتجاوب تلقائياً */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px; /* ارتفاع ثابت لتوحيد الشكل */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة مرنة (Bouncy) */
    position: relative;
    overflow: hidden;
}

/* تنسيق الصورة */
.partner-img-wrapper img {
    max-width: 100%;
    max-height: 80px; /* أقصى ارتفاع للشعار */
    width: auto;
    filter: grayscale(100%); /* تحويل للأبيض والأسود */
    opacity: 0.7; /* شفافية خفيفة */
    transition: all 0.4s ease;
    display: block;
}

/* --- Hover Effects (الماوس فوق العنصر) --- */
.partner-card:hover {
    transform: translateY(-8px); /* يرتفع الكارت للأعلى */
    box-shadow: 0 15px 30px rgba(155, 80, 146, 0.15); /* ظل بنفسجي خفيف */
    border-color: var(--color-light); /* حدود بنفسجي فاتح */
}

.partner-card:hover .partner-img-wrapper img {
    filter: grayscale(0%); /* استعادة الألوان الطبيعية */
    opacity: 1;
    transform: scale(1.1); /* تكبير طفيف للشعار */
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* شعارين في الصف للموبايل */
        gap: 15px;
    }
    .partner-card {
        padding: 15px;
        height: 120px;
    }
}