﻿/* ===== 1. الألوان والهوية البصرية الموحدة ===== */
:root {
    --gold: #ff8800; /* اللون البرتقالي المشرق للخط السفلي */
    --gold-hover: #e67a00;
    --blue-dashboard: #007bff; /* الأزرق الموحد من لوحة التحكم */
    --blue-royal: #0d47a1; /* أزرق ملكي فخم لاسم الشركة */
    --text-muted: #607d8b;
    --bg-light: #fdfdfd;
}

body {
    background-color: var(--bg-light);
    /* دعم الخطوط العربية والإنجليزية باحترافية */
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

/* ===== 2. الهيدر الممتد (Full Width) والتنسيق العائم ===== */
.navbar {
    position: relative;
    padding: 0.5rem 2rem !important; /* مسافات جانبية متوازنة للامتداد الكامل */
    background-color: #fff !important;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

    /* الخط البرتقالي المميز أسفل الهيدر */
    .navbar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: var(--gold);
        z-index: 10;
    }

.navbar-brand {
    position: relative;
    z-index: 15;
    margin-bottom: -20px; /* اللوجو يتجاوز الخط البرتقالي ليعطي العمق المطلوب */
}

.main-logo {
    height: 85px; /* حجم مثالي للوجو ليكون بارزاً */
    width: auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.08));
    transition: transform 0.3s ease;
}

/* ===== 3. تنسيق اسم الشركة (بدون ملامسة اللوجو) ===== */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-inline-start: 25px; /* مسافة بعد الخط الفاصل */
    margin-inline-start: 35px; /* مسافة أمان لمنع ملامسة اللوجو نهائياً [طلبك] */
}

    /* الخط الفاصل العائم (Floating Divider) */
    .brand-text::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        height: 65%; /* الخط أقصر من النص ليعطي شكلاً جمالياً */
        width: 2px;
        background-color: #dee2e6;
        top: 17.5%; /* تمركز عمودي دقيق */
    }

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-royal);
    line-height: 1.1;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ===== 4. روابط القائمة والتمييز الأزرق ===== */
.nav-link {
    color: #444 !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

    /* حالة الرابط النشط (المطابقة للداشبورد) */
    .nav-link.active-page {
        color: var(--blue-dashboard) !important;
    }

        .nav-link.active-page::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 25%;
            width: 50%;
            height: 3px;
            background-color: var(--blue-dashboard);
            border-radius: 10px;
            z-index: 20;
        }

    .nav-link:hover {
        color: var(--blue-dashboard) !important;
    }

/* ===== 5. كبسولة اللغة والسلة ===== */
.lang-capsule {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    transition: 0.3s;
}

    .lang-btn.active {
        background-color: var(--blue-dashboard);
        color: white !important;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
    }

.cart-icon-wrapper {
    transition: transform 0.2s;
    color: var(--blue-royal) !important;
}

    .cart-icon-wrapper:hover {
        transform: scale(1.15);
    }

/* ===== 6. العناصر الخلفية والخدمات ===== */
.bg-watermark {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
}

    .bg-watermark img {
        width: 35vw;
        height: auto;
    }

.service-item-transparent {
    background: transparent !important;
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    padding: 2.5rem;
}

    .service-item-transparent:hover {
        background: rgba(255, 255, 255, 0.7) !important;
        transform: translateY(-10px);
        border-color: var(--gold);
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    }

/* ===== 7. تحسينات الهواتف ===== */
@media (max-width: 991px) {
    .brand-text {
        margin-inline-start: 15px;
        padding-inline-start: 15px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 0.5rem 1rem !important;
    }
}

.social-icon {
    color: #6c757d; /* لون رمادي افتراضي */
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-icon:hover {
        transform: translateY(-3px);
    }

.facebook:hover {
    color: #1877F2;
}

.instagram:hover {
    color: #E4405F;
}

.linkedin:hover {
    color: #0A66C2;
}
