/* ==========================================================================
   تنسيقات الصفحة الرئيسية لشركة ركاز للخدمات المتكاملة - index.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. الألوان الأساسية للهوية (استناداً إلى الشعار المرفق)
   -------------------------------------------------------------------------- */
:root {
    --rekaz-navy: #0b101d;       /* الكحلي الداكن جداً من خلفية الشعار */
    --rekaz-navy-light: #161e35; /* درجة أفتح قليلاً للبطاقات لإعطاء عمق */
    --rekaz-gold: #cca456;       /* اللون الذهبي الأساسي من الرمز */
    --rekaz-gold-hover: #b38d45; /* لون ذهبي أغمق لتأثيرات التمرير (Hover) */
    --rekaz-white: #ffffff;
    --rekaz-text-dark: #2e2e2e;
    --rekaz-text-muted: #666666;
    --rekaz-bg-light: #f7f8fa;   /* رمادي فاتح جداً لخلفيات الأقسام */
}

/* --------------------------------------------------------------------------
   1. إعدادات عامة (Reset & Globals)
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--rekaz-text-dark);
    background-color: var(--rekaz-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* --------------------------------------------------------------------------
   2. الشريط العلوي (Top Bar)
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--rekaz-navy);
    color: #ddd;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-info span { margin-left: 20px; }
.top-bar-info i { color: var(--rekaz-gold); margin-left: 5px; }

.social-icons a {
    color: var(--rekaz-gold);
    margin-right: 15px;
    font-size: 18px;
    transition: 0.3s ease;
}
.social-icons a:hover { color: var(--rekaz-white); }

/* --------------------------------------------------------------------------
   3. شريط التنقل (Header & Navbar)
   -------------------------------------------------------------------------- */
.header {
    background-color: var(--rekaz-white);
    box-shadow: 0 2px 15px rgba(11, 16, 29, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 60px; 
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--rekaz-navy);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--rekaz-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* أزرار عامة */
.btn-gold {
    background: var(--rekaz-gold);
    color: var(--rekaz-navy) !important;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gold:hover { 
    background: var(--rekaz-gold-hover); 
    color: var(--rekaz-white) !important;
}

.btn-outline {
    background: transparent;
    color: var(--rekaz-gold) !important;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--rekaz-gold);
}

.btn-outline:hover {
    background: var(--rekaz-gold);
    color: var(--rekaz-navy) !important;
}

.menu-toggle { display: none; }

/* --------------------------------------------------------------------------
   4. قسم البطل (Hero Section)
   -------------------------------------------------------------------------- */
.hero {
    background-color: var(--rekaz-navy);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--rekaz-white);
    border-bottom: 3px solid var(--rekaz-gold); /* لمسة جمالية تفصل القسم */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: block;
    color: var(--rekaz-gold);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-title {
    font-size: 45px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--rekaz-white);
}

.hero-title .highlight {
    color: var(--rekaz-gold);
}

.hero-desc {
    font-size: 18px;
    color: #cbd0d8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   5. قسم نبذة عن الشركة (About Section)
   -------------------------------------------------------------------------- */
.about-section { background-color: var(--rekaz-white); }

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    color: var(--rekaz-navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 17px;
    color: var(--rekaz-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(11, 16, 29, 0.1);
    background: #f0f0f0;
    min-height: 350px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. قسم الخدمات الأساسية (Services Section)
   -------------------------------------------------------------------------- */
.services-section { background-color: var(--rekaz-bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--rekaz-navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--rekaz-text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--rekaz-navy-light); /* كحلي أفتح قليلاً لإبراز البطاقات */
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--rekaz-gold);
    box-shadow: 0 15px 30px rgba(204, 164, 86, 0.15); /* ظل ذهبي */
}

.service-icon {
    font-size: 45px;
    color: var(--rekaz-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--rekaz-white);
    font-size: 22px;
    font-weight: 700;
}

.service-card p {
    color: #cbd0d8;
}

/* --------------------------------------------------------------------------
   7. تذييل الصفحة (Footer)
   -------------------------------------------------------------------------- */
footer {
    background: var(--rekaz-navy);
    color: #ddd;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: var(--rekaz-navy); /* إذا كان الشعار شفافاً سيظهر بخلفية الفوتر */
    padding: 5px 0;
}

.footer-about p { color: #aaa; margin-bottom: 20px; }

.footer-title {
    color: var(--rekaz-white);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--rekaz-gold);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s ease; }
.footer-links a:hover { color: var(--rekaz-gold); padding-right: 5px; }

.footer-contact li { display: flex; align-items: center; color: #aaa; margin-bottom: 15px;}
.footer-contact i { color: var(--rekaz-gold); margin-left: 10px; font-size: 18px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 15px;
    color: #777;
}

/* --------------------------------------------------------------------------
   8. زر واتساب العائم (WhatsApp Float)
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: var(--rekaz-white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: var(--rekaz-white);
}

/* --------------------------------------------------------------------------
   9. التجاوب مع شاشات الهواتف (Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .nav-menu { display: none; }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }
    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--rekaz-navy);
        transition: 0.3s;
    }
    .hero-title { font-size: 32px; }
    .about-grid { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .top-bar-info span { display: block; margin: 5px 0; }
    .hero-buttons { flex-direction: column; }
}
/* ==========================================================================
   تنسيقات الإضافات الجديدة (اللغة + تحميل الملف)
   ========================================================================== */

/* تنسيق قسم الأزرار في الشريط العلوي */
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* زر تغيير اللغة */
.lang-switch {
    color: var(--rekaz-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.lang-switch:hover {
    color: var(--rekaz-gold);
}

/* زر تحميل البروفايل في الفوتر */
.btn-download-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--rekaz-gold);
    border: 1px solid var(--rekaz-gold);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-profile:hover {
    background-color: var(--rekaz-gold);
    color: var(--rekaz-navy);
}

/* زر التحميل الخفيف في قسم التحفيز (CTA) */
.outline-light {
    border-color: var(--rekaz-white) !important;
    color: var(--rekaz-white) !important;
}

.outline-light:hover {
    background-color: var(--rekaz-white) !important;
    color: var(--rekaz-navy) !important;
}