
/* ══════════════════════════════════════════════════════════════
   Font Awesome font-display override
   cdnjs CDN does not set font-display:swap — we override it here
   This prevents FOIT (Flash of Invisible Text) saving ~40ms FCP
   ══════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2') format('woff2');
}
/* === 1-variables.css === */
/* =========================================
   📥 تعريف الخطوط محلياً (Local Fonts - v14)
   ========================================= */

/* 1. الوزن الخفيف (Light - 300) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-300.woff2') format('woff2');
}

/* 2. الوزن العادي (Regular - 400) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-regular.woff2') format('woff2');
}

/* 3. الوزن المتوسط (Medium - 500) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-500.woff2') format('woff2');
}

/* 4. الوزن العريض (Bold - 700) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-700.woff2') format('woff2');
}

/* =========================================
   🌍 المتغيرات العامة (Variables)
   ========================================= */
:root {
    /* 🎨 1. ألوان الهوية (مستوحاة من اللوجو) */
    
    /* الأزرق: تم سحب الدرجة بدقة من كلمة "أنادل" في اللوجو */
    --primary-color: #005691;       /* أزرق أنادل الرسمي */
    --primary-light: #0089C9;       /* أزرق سماوي (مثل أعلى اللوجو) */
    --primary-dark: #003d66;        /* أزرق كحلي عميق (للعناوين والفوتر) */
    
    /* الذهبي: تم استخدام كود #FFD700 كما طلبت، مع ضبط الظلال */
    /* ⭐ بديل عصري */
--secondary-text: #006E96;      /* WCAG AA ✓ 5.1:1 on white — use for TEXT */
    --secondary-color: #00AEEF;
--secondary-dark: #0077A3;
--text-on-gold: #ffffff;
    /* النص الذي يكتب فوق الأزرق يجب أن يكون أبيض */
    --text-on-primary: #ffffff;

    /* 🎨 2. ألوان النصوص والخلفيات */
    --text-main: #2C3E50;           /* لون النصوص (رمادي غامق مزرق) - مريح أكثر من الأسود */
    --text-light: #596575;      /* WCAG AA ✓ 5.4:1 on white */          /* للنصوص الفرعية */
    --bg-light: #F7F9FC;            /* خلفية الصفحات (أبيض مائل للأزرق الخفيف جداً) */
    --bg-white: #ffffff;
    --border-color: #e1e8ed;        /* لون الحدود الفاتح */
    
    --danger: #e74c3c;              /* لون التنبيهات */
    --success: #2ecc71;             /* لون النجاح */

    /* ✒️ 3. الخطوط */
    --main-font: 'IBM Plex Sans Arabic', sans-serif;
    --heading-font: 'IBM Plex Sans Arabic', sans-serif;

    /* 📐 4. الأبعاد والمسافات */
    --container-width: 1240px;      /* تم توسيع العرض قليلاً ليتناسب مع الشاشات الحديثة */
    --header-height: 90px;
    --border-radius: 10px;          /* حواف ناعمة */
    --btn-radius: 50px;             /* حواف دائرية للأزرار */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* حركة ناعمة جداً */
    
    /* ✨ 5. تأثيرات خاصة (Shadows & Gradients) */
    --shadow-sm: 0 2px 8px rgba(0, 86, 145, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 86, 145, 0.15);
    /* تدرج لوني يحاكي اللوجو (من الأزرق الغامق للفاتح) */
    --main-gradient: linear-gradient(135deg, var(--primary-color) 0%, #009fe3 100%);
}

/* === 2-reset.css === */
/* 🧹 Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}
body, html {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

/* === 3-global.css === */

/* ── Font-display swap to prevent FOIT (invisible text) ── */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-regular.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-arabic-v14-arabic-700.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
/* =========================================
   🌍 3. التنسيقات العامة (Global Styles)
   ========================================= */

/* إلغاء تأثير مسافة شريط الأدوات العلوي */
html { margin-top: 0 !important; }
* html body { margin-top: 0 !important; }
@media screen and (max-width: 600px) {
    html { margin-top: 0 !important; }
}

/* إجبار كل العناصر على احترام الحدود لمنع القص */
*, ::before, ::after {
    box-sizing: border-box !important;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    max-width: 100% !important;
}

body {
    font-family: var(--main-font);
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden; /* لمنع السكرول العرضي والقص */
}

/* الحاوية العامة */
.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}

/* --- تصميم الأزرار الاحترافي (Button System) --- */
.btn-call, .btn-main, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* 🎨 الخلفية: تدرج ذهبي فخم */
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #003d66; /* نص أزرق غامق لتباين مريح */
    
    /* 📐 الأبعاد والشكل */
    padding: 12px 28px;
    border-radius: 50px; /* شكل كبسولة */
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    
    /* ✨ تأثيرات الظل والعمق (3D Effect) */
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* تأثير اللمعة عند التحويم (Hover Shine) */
.btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-call:hover::before {
    left: 100%;
}

/* حركة الزر عند الضغط/الماوس */
.btn-call:hover, .btn-main:hover {
    transform: translateY(-3px); /* يرتفع للأعلى قليلاً */
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6); /* الظل يكبر */
    background: linear-gradient(135deg, #ffe033 0%, #ffca28 100%); /* يفتح لونه */
}

.btn-call:active {
    transform: translateY(1px); /* ينضغط للأسفل عند النقر */
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
}

/* تنسيق الأيقونات داخل الزر */
.btn-call i, .btn-call .dashicons {
    font-size: 18px;
}

/* =========================================
   ❓ تنسيق الأسئلة الشائعة الموحد (Smart FAQs)
   ========================================= */

.anadel-faq-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 0;
}

/* صندوق السؤال */
details.faq-item-smart {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2); /* إطار ذهبي خفيف */
    overflow: hidden;
    transition: 0.3s ease;
}

details.faq-item-smart:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

/* شريط السؤال (زر الضغط) */
summary.faq-question-smart {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* إخفاء سهم المتصفح الافتراضي */
}

/* إخفاء السهم في سفاري ومتصفحات أخرى */
summary.faq-question-smart::-webkit-details-marker {
    display: none;
}

/* الأيقونة الجانبية */
summary.faq-question-smart .icon {
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s;
    flex-shrink: 0; /* منع انكماش الأيقونة */
}

/* تفاعل الأيقونة عند فتح السؤال */
details.faq-item-smart[open] summary.faq-question-smart .icon {
    transform: rotate(180deg);
    background: var(--secondary-color);
    color: #fff;
}

/* لون النص عند الفتح */
details.faq-item-smart[open] summary.faq-question-smart {
    color: var(--secondary-color);
}

/* محتوى الإجابة */
.faq-answer-smart {
    padding: 0 25px 25px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    border-top: 1px dashed #eee;
    margin-top: 5px;
    padding-top: 20px;
    animation: slideDownFAQ 0.4s ease-in-out;
}

/* حركة انسيابية لظهور الإجابة */
@keyframes slideDownFAQ {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تجاوب الموبايل للأسئلة */
@media (max-width: 768px) {
    summary.faq-question-smart {
        font-size: 16px;
        padding: 15px 20px;
    }
    .faq-answer-smart {
        font-size: 15px;
        padding: 0 20px 20px;
    }
}

/* =========================================
   📍 تنسيق شبكة الأحياء (Coverage Grid)
   ========================================= */
.neighborhoods-grid {
    display: grid;
    /* العرض يتجاوب أوتوماتيك: كروت بعرض 200 بيكسل تتوزع على الشاشة */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.hood-card {
    background: #fff;
    border: 1px solid rgba(0, 61, 102, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hood-card i {
    color: var(--secondary-color);
    font-size: 20px;
    transition: 0.3s;
}

.hood-card:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hood-card:hover i {
    color: #fff;
}

@media (max-width: 768px) {
    .neighborhoods-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .hood-card {
        font-size: 14px;
        padding: 12px;
    }
}

/* ==========================================================
   🗺️ إصلاح حجم خريطة جوجل (Google Maps Height Fix) - مخصص فقط
   ========================================================== */
iframe[src*="maps"] {
    width: 100% !important;
    height: 450px !important;
    min-height: 400px !important;
    border: none !important;
    display: block;
}

/* للموبايل: تصغير الطول قليلاً ليتناسب مع الشاشة */
@media (max-width: 768px) {
    iframe[src*="maps"] {
        height: 350px !important;
        min-height: 300px !important;
    }
}

/* === 4-header.css === */
/* =========================================
   🧢 4. تصميم الهيدر (Header Styles)
   ========================================= */

/* --- 1. الإطار العام للهيدر --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-spacer {
    height: 120px;
}

/* --- 2. الشريط العلوي (Top Bar) --- */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.site-header.scrolled .top-bar {
    height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-info .divider {
    margin: 0 10px;
    opacity: 0.5;
}

.top-social a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.top-social a:hover {
    opacity: 1;
}

/* --- 3. الناف بار الرئيسي (Main Navbar) --- */
.main-navbar {
    padding: 15px 0;
    background: #fff;
    transition: 0.3s;
}

.site-header.scrolled .main-navbar {
    padding: 10px 0;
}

/* 📐 توزيع الهيدر بنظام التوسيط المطلق (Absolute Centering) */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important; /* مهم جداً عشان التوسيط المطلق يشتغل جواه */
    width: 100% !important;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    transition: 0.3s;
}

.site-header.scrolled .site-logo img {
    max-height: 45px;
}

.text-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- 4. القائمة (Desktop Menu) --- */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex !important;
        /* السر هنا: فصلنا المنيو عن اللوجو والزرار، وقولنالها اقفي في نص الشاشة بالمللي */
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 5;
    }
    
    .nav-links {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .nav-links > li {
        position: relative;
        padding: 10px 0;
    }

    .nav-links > li > a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 16px;
        position: relative;
        transition: 0.3s;
        display: block;
    }

    .nav-links > li > a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: 0.3s;
    }

    .nav-links > li:hover > a {
        color: var(--primary-color);
    }

    .nav-links > li:hover > a::after {
        width: 100%;
        left: 0;
    }

    /* 🔽 Dropdowns Desktop */
    .nav-links .menu-item-has-children > a::after {
        content: '\f140';
        font-family: 'dashicons';
        margin-right: 5px;
        font-size: 12px;
        vertical-align: middle;
        display: inline-block;
        transition: 0.3s;
    }

    .nav-links .menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }

    .nav-links ul.sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        min-width: 240px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 9999;
        padding: 10px 0;
        border-top: 3px solid var(--secondary-color);
        list-style: none;
    }

    .nav-links li:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links ul.sub-menu li {
        display: block;
        margin: 0;
        text-align: right;
        padding: 0;
    }

    .nav-links ul.sub-menu a {
        display: block;
        padding: 12px 20px;
        color: var(--primary-dark);
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid #f9f9f9;
        transition: 0.3s;
        white-space: nowrap;
    }

    .nav-links ul.sub-menu a::after {
        content: none !important; 
    }

    .nav-links ul.sub-menu a:hover {
        background: var(--bg-light);
        color: var(--secondary-color);
        padding-right: 25px;
    }
}

/* --- 5. زر الاتصال --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10; /* عشان يفضل قابل للضغط فوق القائمة لو الشاشة صغرت */
}

.btn-call {
    font-size: 15px;
    padding: 10px 24px;
}

@media (max-width: 991px) {
    .btn-call .text { display: none; }
    .btn-call { padding: 0; width: 45px; height: 45px; border-radius: 50%; justify-content: center; }
    .btn-call i { margin: 0; }
}

/* --- 6. هامبرغر منيو --- */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
}

@media (min-width: 992px) {
    .mobile-toggle { display: none; }
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   📱 7. القائمة الجانبية (Mobile Drawer & Accordion)
   ========================================= */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-drawer.active { right: 0; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* --- Overlay --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.drawer-overlay.active { opacity: 1; visibility: visible; }

/* -------------------------------------------
   ✨ تنسيق الأكورديون (القوائم المنسدلة بالموبايل)
   ------------------------------------------- */

.mobile-menu-drawer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-drawer ul li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.mobile-menu-drawer ul li.menu-item-has-children > a::after {
    content: '\f140';
    font-family: 'dashicons';
    font-size: 20px;
    color: #aaa;
    transition: transform 0.3s ease;
}

.mobile-menu-drawer ul li.menu-item-has-children > a.open {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.mobile-menu-drawer ul li.menu-item-has-children > a.open::after {
    transform: rotate(180deg);
    color: #fff;
}

.mobile-menu-drawer ul.sub-menu {
    display: none;
    background: #fff;
    margin-top: -5px !important;
    margin-right: 15px !important;
    border-right: 3px solid var(--secondary-color);
    border-radius: 0 0 8px 8px;
    gap: 0;
}

.mobile-menu-drawer ul.sub-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f9f9f9;
    border-radius: 0;
    padding: 12px 15px;
    justify-content: flex-start;
}

.mobile-menu-drawer ul.sub-menu li a::after {
    display: none !important;
}

.mobile-menu-drawer ul.sub-menu li a:hover {
    color: var(--primary-color);
    background: #fafafa;
    padding-right: 20px;
}

/* =========================================
   🏗️ تنسيق اللوجو والبراندينج
   ========================================= */

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10; /* عشان يفضل قابل للضغط فوق القائمة لو الشاشة صغرت */
}

/* الخط الذهبي الطولي */
.header-v-line {
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
}

/* حاوية النصوص */
.company-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    white-space: nowrap !important; /* حماية النص من العصر والانقسام */
}

/* اسم "نجم الصيانة" */
.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

/* جملة "للمقاولات العامة" */
.brand-subtext {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    display: block;
}

/* لمسة جمالية عند الهوفر على منطقة اللوجو */
.logo-container:hover .header-v-line {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    transition: 0.3s;
}

/* التجاوب مع الموبايل */
@media (max-width: 991px) {
    .brand-name { font-size: 18px; }
    .brand-subtext { font-size: 11px; }
    .header-v-line { height: 35px; }
    .company-branding { display: none !important; } /* إخفاء النص في التابلت والموبايل لتوفير مساحة للوجو والزرار */
}

/* =========================================
   🎯 تعديل خاص لإلغاء هوامش الكونتينر في الهيدر
   ========================================= */

/* هذا الكود يجبر الكونتينر داخل الناف بار الرئيسي على إلغاء الهوامش الجانبية */
.main-navbar .container.header-container {
    padding-right: 0 !important; /* إلغاء الفراغ الأيمن عشان اللوجو يلزق */
    padding-left: 0 !important;  /* إلغاء الفراغ الأيسر بالمرة عشان الزرار يلزق برضه */
    max-width: 100% !important;  /* اختياري: لو عايزه ياخد عرض الشاشة بالكامل حتى في الشاشات الكبيرة جداً */
}

/* لو عايز الزرار اللي ع الشمال يفضل سايب مسافة، واللوجو بس اللي يلزق يمين، استخدم الكود ده بدلاً من اللي فوق:
.main-navbar .container.header-container {
    padding-right: 0 !important;
}
*/

/* ==========================================================
   ✨ إضافة مسافة راحة العين (5px) في حواف الهيدر لجميع الشاشات
   ========================================================== */
/* ==========================================================
   ✨ التحكم الذكي في حواف الهيدر (راحة العين)
   ========================================================== */

/* 1. للموبايل والتابلت: مسافة 5 بيكسل تكفي حتى لا تضيق الشاشة */
.main-navbar .container.header-container {
    padding-right: 5px !important; 
    padding-left: 5px !important;  
}

/* 2. للشاشات الكبيرة (الكمبيوتر): زيادة المسافة من اليمين للوجو واليسار للزرار */
@media (min-width: 992px) {
    .main-navbar .container.header-container {
        padding-right: 25px !important; /* زيادة ممتازة للوجو من اليمين */
        padding-left: 15px !important;  /* مسافة متناسقة لزر الاتصال من اليسار */
    }
}

/* === 5-footer.css === */
/* =========================================
   🦶 5. تصميم الفوتر (Footer Styles)
   ========================================= */

.site-footer {
    background-color: var(--primary-dark); /* كحلي غامق */
    color: #b0c4de; /* لون نص فاتح مريح للعين (Light Steel Blue) */
    font-size: 15px;
    position: relative;
    margin-top: auto; /* يخلي الفوتر ينزل تحت خالص لو الصفحة فاضية */
}

/* --- تقسيم الشبكة (Grid System) --- */
.footer-widgets {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; /* العمود الأول أعرض شوية */
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* عمودين في التابلت */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: center;
    }
}

/* --- العناوين واللوجو --- */
.footer-brand {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.widget-title {
    color: var(--secondary-color); /* العنوان ذهبي */
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* خط صغير تحت العنوان */
.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .widget-title::after {
        margin: 10px auto 0; /* توسيط الخط في الموبايل */
    }
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 350px;
}

/* --- أيقونات السوشيال ميديا (Social Media Icons) - تم التحديث 🎨 --- */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* عشان لو الشاشة ضيقة ينزلوا سطر جديد */
    margin-top: 15px;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: center; /* توسيط الأيقونات في الموبايل */
    }
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.93); /* لون افتراضي شفاف */
    color: #fff;
    border-radius: 50%; /* دائرة */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة نطاطة */
    font-size: 16px;
}

/* حركة عند الوقوف بالماوس: تكبير بسيط */
.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff;
}

/* --- 🎨 ألوان البراندات الأصلية (Brand Colors) --- */

/* Facebook (Blue) */
.social-btn.facebook:hover {
    background-color: #1877F2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.5);
}

/* Twitter / X (Black) */
.social-btn.twitter:hover {
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Instagram (Gradient) */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 0 10px rgba(214, 36, 159, 0.5);
}

/* LinkedIn (Blue) */
.social-btn.linkedin:hover {
    background-color: #0A66C2;
    box-shadow: 0 0 10px rgba(10, 102, 194, 0.5);
}

/* YouTube (Red) */
.social-btn.youtube:hover {
    background-color: #FF0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* TikTok (Black/Pink/Cyan) */
.social-btn.tiktok:hover {
    background-color: #000000;
    text-shadow: 2px 2px 0px #FF0050, -2px -2px 0px #00F2EA; /* تأثير التيك توك */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Pinterest (Red) */
.social-btn.pinterest:hover {
    background-color: #BD081C;
    box-shadow: 0 0 10px rgba(189, 8, 28, 0.5);
}

/* --- الروابط (Links) --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0c4de;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

/* حركة السهم عند الوقوف على الرابط */
.footer-links a::before {
    content: '\f139'; /* كود سهم من Dashicons */
    font-family: 'dashicons';
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.5;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color); /* يتحول لذهبي */
    padding-right: 5px; /* يتحرك لليمين */
}

.footer-links a:hover::before {
    opacity: 1;
    color: var(--secondary-color);
}

/* --- قائمة الاتصال (Contact List) --- */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-list li {
        justify-content: center;
    }
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 3px;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-list a:hover {
    color: var(--secondary-color);
}

/* --- الشريط السفلي (Copyright) --- */
.footer-bottom {
    background-color: rgba(0,0,0,0.2); /* أغمق سنة من الخلفية */
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .bottom-flex {
        flex-direction: column;
        gap: 10px;
    }
}

.developer a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

/* --- زر الصعود للأعلى (Scroll Top) --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: #003d66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0; /* مخفي افتراضياً */
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px; /* حركة ظهور */
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* === 8-floating.css === */
/* =========================================
   📞 تنسيق الأزرار العائمة (Floating Buttons)
   ========================================= */

.floating-container {
    position: fixed;
    bottom: 30px; /* المسافة من الأسفل */
    left: 30px;   /* المسافة من اليسار */
    z-index: 99999; /* رقم عالي جداً عشان يظهر فوق كل العناصر */
    display: flex;
    flex-direction: column; /* الأزرار فوق بعض */
    gap: 15px; /* مسافة بين الزرين */
}

/* التنسيق العام للزر */
.float-btn {
    width: 60px;
    height: 60px;
    background-color: #333;
    color: #fff;
    border-radius: 50%; /* دائرة كاملة */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px; /* حجم الأيقونة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* ظل */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
    contain: layout style;
}

/* --- ألوان الأزرار --- */

/* لون الواتساب الرسمي */
.whatsapp-btn {
    background-color: #25D366;
}

/* لون الاتصال (يأخذ من لون الموقع الأساسي أو لون مخصص) */
.call-btn {
    background-color: var(--primary-color, #007bff); /* لو المتغير مش موجود هياخد الأزرق */
}

/* --- تأثيرات الحركة (Hover) --- */
.float-btn:hover {
    transform: scale(1.1); /* تكبير بسيط */
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* أنيميشن نبض لزر الاتصال لجذب الانتباه */
.call-btn {
    /* Pulse via pseudo-element — GPU composited (transform+opacity only) */
    position: relative;
    overflow: visible;
}
.call-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary-color, #005691);
    opacity: 0.6;
    transform: scale(1);
    animation: pulse-composited 2.2s ease-out infinite;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: -1;
}
@keyframes pulse-composited {
    0%   { transform: scale(1);    opacity: 0.5; }
    70%  { transform: scale(1.7);  opacity: 0;   }
    100% { transform: scale(1.7);  opacity: 0;   }
}

/* --- التلميح الجانبي (Tooltip) - اختياري --- */
.tooltip-text {
    position: absolute;
    left: 70px; /* يظهر يمين الزر */
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    white-space: nowrap;
}

/* سهم صغير للتلميح */
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.float-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    left: 75px; /* حركة بسيطة */
}

/* --- تحسين للموبايل --- */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    /* إخفاء التلميح في الموبايل عشان المساحة */
    .tooltip-text {
        display: none;
    }
}
/* ── Performance: prevent forced reflow from floating buttons ── */
.floating-container {
    contain: layout style;
    will-change: auto;
}
.float-btn {
    will-change: transform;
    contain: layout style paint;
    transform: translateZ(0); /* promote to compositor layer */
}
.float-btn:hover {
    transform: translateY(-3px) translateZ(0); /* keep on compositor */
}
/* Fix non-composited animation (likely the pulse/bounce) */
@keyframes float-pulse {
    0%, 100% { transform: scale(1) translateZ(0); opacity: 1; }
    50%       { transform: scale(1.05) translateZ(0); opacity: 0.9; }
}
