/* استدعاء خطوط Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* تعريف المتغيرات لتسهيل تغيير الألوان لاحقاً في كل الموقع */
:root {
    --primary-color: #8B5A2B;
    --primary-hover: #6b4521;
    --primary-gradient: linear-gradient(135deg, #8B5A2B 0%, #A0522D 100%);
    --secondary-color: #f4e8d3;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --white-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}

/* ==============================
   الوضع الليلي (Dark Mode)
   ============================== */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --secondary-color: #1e293b;
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --white: #1e293b;
    --white-glass: rgba(30, 41, 59, 0.85);
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}


/* Reset: تصفير إعدادات المتصفح الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* إعدادات الجسم الأساسية */
body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl; /* الأهم: تحديد اتجاه الموقع من اليمين لليسار */
}
html[dir="ltr"] body, body:lang(en) {
    font-family: var(--font-en);
}

/* ==============================
   Hero Slider (Premium Global Look)
   ============================== */
.hero-container {
    height: 80vh; /* يغطي 80% من طول الشاشة */
    position: relative;
    overflow: hidden;
    background-color: #2c3e50;
    margin-top: -20px; /* لدمجه مع الهيدر إذا أردنا */
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: scale(1.1); /* تأثير زووم خفيف */
}
.slide.active { 
    opacity: 1; 
    z-index: 1; 
    transform: scale(1); 
}
.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* طبقة تعتيم خفيفة لإبراز النص */
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.slide-content h2 {
    color: white;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}
.slide-content .btn-primary {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تنسيق الروابط لتكون بدون خط تحتها */
a {
    text-decoration: none;
    color: inherit;
}

/* إزالة النقاط من القوائم */
ul {
    list-style: none;
}

/* حاوية مركزية تمنع المحتوى من التمدد بشكل مبالغ فيه في الشاشات الكبيرة */
.container {
    width: 100%;
    max-width: 1200px; /* أقصى عرض للصفحة */
    margin: 0 auto; /* توسيط الحاوية */
    padding: 0 20px; /* مسافة داخلية من الجوانب للشاشات الصغيرة */
}

/* فئات مساعدة (Utility Classes) */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* مساحات الأقسام (Sections) */
.section-padding { padding: 60px 0; }

/* ==============================================================
   تحسينات التجاوب العامة (General Responsive Adjustments)
   ============================================================== */

@media (max-width: 768px) {
    /* تقليل ارتفاع قسم الـ Hero Slider لتسهيل التصفح للجوال */
    .hero-container {
        height: 50vh !important;
        margin-top: 0px;
    }
    
    /* ضبط حجم النصوص والـ animation داخل السلايدر */
    .slide-content {
        max-width: 90%;
        padding: 10px;
    }
    .slide-content h2 {
        font-size: 26px !important;
        margin-bottom: 15px !important;
        line-height: 1.3;
    }
    .slide-content p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    .slide-content .btn-primary {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }

    /* تقليص الـ Padding الكبيرة للأقسام على الهواتف والأجهزة اللوحية */
    .section-padding {
        padding: 35px 0 !important;
    }

    .container {
        padding: 0 15px !important;
    }
    
    /* تحسين تصميم عناوين الأقسام للهاتف */
    .section-header {
        margin-bottom: 20px !important;
        flex-direction: row;
        font-size: 0.9rem;
    }
    .section-header h2 {
        font-size: 1.3rem !important;
    }
    .section-header a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: 42vh !important;
    }
    .slide-content h2 {
        font-size: 20px !important;
    }
}