/* ==========================================================================
   ملف التنسيق الخاص بصفحة الخدمات - ركاز (services.css)
   ========================================================================== */

/* 1. المتغيرات الأساسية للهوية البصرية (البراند) */
:root {
    --primary-color: #0D1B2A;       /* أزرق داكن فاخر (كحلي) */
    --accent-gold: #C5A880;         /* ذهبي هادئ */
    --accent-gold-hover: #A88F68;   /* ذهبي داكن عند التمرير */
    --text-dark: #2F3E46;           /* لون النصوص الأساسية */
    --text-muted: #6C757D;          /* لون النصوص الفرعية */
    --bg-light: #F8F9FA;            /* لون خلفية فاتح للأقسام */
    --white: #FFFFFF;               
    --transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   2. قسم الهيرو (الواجهة العلوية للخدمات)
   ========================================================================== */
.services-hero {
    /* دمج تدرج لوني داكن مع صورة الخلفية لضمان وضوح النص */
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(20, 39, 61, 0.85)), 
                url('assets/images/rkazgroub.jpg') no-repeat center center/cover;
    padding: 120px 0 80px 0; /* مسافة علوية لاستيعاب الهيدر */
    text-align: center;
    color: var(--white);
    position: relative;
}

.services-hero .subtitle {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.services-hero .title {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.services-hero .description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ==========================================================================
   3. قسم التبويبات (Tabs Navigation)
   ========================================================================== */
.tabs-section {
    padding: 90px 0;
    background-color: var(--bg-light);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    border-bottom: 2px solid rgba(13, 27, 42, 0.08);
    padding-bottom: 35px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    color: var(--primary-color);
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.tab-btn .icon {
    font-size: 22px;
}

/* تأثير التمرير على أزرار التبويبات */
.tab-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

/* حالة الزر النشط */
.tab-btn.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(13, 27, 42, 0.2);
}

/* ==========================================================================
   4. محتوى التبويبات (Tabs Content) وتفاصيل الخدمات
   ========================================================================== */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.6s ease-in-out forwards;
}

.tab-panel.active {
    display: block;
}

/* شبكة العرض (Grid) للمحتوى والصورة */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-info .lead {
    font-size: 19px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* تنسيق القوائم (Bullet Points) للغة العربية RTL */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.service-list li {
    position: relative;
    padding-right: 35px; /* ترك مساحة للأيقونة على اليمين */
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* أيقونة الصح الذهبية بدلاً من النقطة التقليدية */
.service-list li::before {
    content: "\f00c"; /* كود أيقونة الصح من FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 4px;
    color: var(--accent-gold);
    font-size: 18px;
}

.service-list li strong {
    color: var(--primary-color);
}

/* ==========================================================================
   5. الصور والمؤثرات البصرية
   ========================================================================== */
.service-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.15);
}

/* إطار جمالي مائل خلف الصورة للمسة احترافية */
.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.5;
    transition: var(--transition);
}

.service-feature-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-image-wrapper:hover .service-feature-img {
    transform: scale(1.06);
}

/* ==========================================================================
   6. الأزرار (Buttons) في صفحة الخدمات
   ========================================================================== */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.2);
}

/* ==========================================================================
   7. قسم الدعوة للاتصال (CTA Section)
   ========================================================================== */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

/* زخرفة خلفية لقسم الـ CTA */
.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(197, 168, 128, 0.05); /* لون ذهبي شفاف جداً */
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.cta-section h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.btn-large {
    display: inline-block;
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--accent-gold);
    color: var(--primary-color);
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
    transition: var(--transition);
}

.btn-large:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   8. حركات الظهور (Animations)
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   9. التجاوب مع الشاشات (Responsive Design)
   ========================================================================== */

/* للشاشات المتوسطة (التابلت) */
@media (max-width: 991px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-info {
        order: 2; /* النص يظهر أسفل الصورة في الشاشات الصغيرة */
        text-align: center;
    }

    /* تعديل القوائم لتتوسط الشاشة في الجوال */
    .service-list li {
        text-align: right;
    }

    .service-image-wrapper {
        order: 1; /* الصورة تظهر أولاً */
    }
    
    .services-hero .title {
        font-size: 36px;
    }
}

/* للشاشات الصغيرة (الجوال) */
@media (max-width: 576px) {
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-hero {
        padding: 100px 0 60px 0;
    }
    
    .services-hero .title {
        font-size: 28px;
    }

    .service-title {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}