
/* ==========================================================================
   الصفحة الرئيسية (Home) — اتجاه "Brand Gradient"
   يعتمد بالكامل على متغيرات assets/css/root.css فيستجيب تلقائيًا لتبديل
   الوضع الفاتح/الغامق، بدل ألوان ثابتة مستقلة عن الثيم. النص الافتراضي
   يرث لون body (var(--text-primary)) — نلوّن صراحة بس النصوص الثانوية/المكتومة.
   ========================================================================== */

/* النصوص المتدرجة الفخمة */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 🆕 .btn-brand انتقل لـroot.css (عام لكل الموقع) — كان هون بس، صار مستخدم كمان
   بفورم "اقترح مبادرتك" بصفحة الخدمات، ولازم يشتغل هناك بنفس الشكل بالحرف. */

.btn-outline-brand {
    border: 2px solid var(--accent);
    color: var(--text-primary);
    background: transparent;
    padding: 12px 33px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.4s ease;
}
.btn-outline-brand:hover {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 20px rgba(243, 154, 53, 0.3);
    transform: translateY(-3px);
}

/* ==========================================================================
   الواجهة الرئيسية (Hero) — تبدأ بعد الناف بار الثابت مباشرة، مو تحته
   ========================================================================== */
.hero-section {
    position: relative;
    margin-top: var(--navbar-height, 110px);
    height: calc(100vh - var(--navbar-height, 110px));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1529156069898-49953eb1b5e4?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}
@media (min-width: 992px) {
    .hero-section {
        margin-top: var(--navbar-height, 150px);
        height: calc(100vh - var(--navbar-height, 150px));
    }
}

.hero-video-bg {
    position: absolute;
    top: -180px;
    left: 0;
    width: 100%;
    height: calc(100% + 360px);
    object-fit: cover;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content .badge {
    background: var(--card-glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.hero-content p { color: var(--text-secondary); }

/* قسم الخدمة المميزة بالهوم بيج (محتواه ديناميكي — حاليًا الترجمة المحلفة) */
.spotlight-section {
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
#spotlight p { color: var(--text-secondary); }
#about p { color: var(--text-secondary); }
.check-list li {
    list-style: none;
    margin-bottom: 18px;
    position: relative;
    padding-right: 35px;
    color: var(--text-primary);
    font-size: 1.05rem;
}
.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: rgba(243, 154, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.8rem;
}

/* أقسام متبادلة (خدمات / مبادرات) — نفس منطق البطاقات بالموقع (bg-card فوق bg-body) */
#services, #initiatives {
    background: var(--bg-card);
}
#services p, #initiatives p { color: var(--text-secondary); }

/* خلفية قسم "المبادرات" — صورة من قاعدة البيانات (لو رُفعت من "التعديلات") أو
   الصورة الافتراضية الثابتة بالكود، وبارالاكس فوقها. لو الصورة معطوبة/مفقودة
   (onerror بـindex.php) بينشال كلاس has-bg-image فيرجع القسم للون البسيط
   (var(--bg-card) تحت) بلا أي كسر بصري — شبكة أمان، مو الحالة المتوقعة عادةً. */
#initiatives { position: relative; overflow: hidden; }
.initiatives-bg-img {
    position: absolute;
    top: -180px;
    left: 0;
    width: 100%;
    height: calc(100% + 360px);
    object-fit: cover;
    z-index: 0;
    will-change: transform;
}
.initiatives-bg-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(20, 18, 16, 0.7);
}
#initiatives.has-bg-image .initiatives-bg-overlay { display: block; }
#initiatives.has-bg-image > .container { position: relative; z-index: 2; }
/* العنوان والوصف المباشرين (بدون صندوق) لازم يضلوا مقروئين فوق الصورة — الفورم
   وصندوق "نؤمن بالشراكة" ما بيتأثروا لأنه أصلاً كل وحدة فيهم إلها خلفية خاصة فيها */
#initiatives.has-bg-image .col-lg-5 > h2,
#initiatives.has-bg-image .col-lg-5 > p { color: #fff; }

/* 🐛 صندوق "نؤمن بالشراكة": خلفيته الخاصة شفافة جداً (5%) فما بتكفي وحدها لضمان
   وضوح النص فوق صورة القسم المعتّمة (has-bg-image) — بالوضع الفاتح كانت الفقرة
   تاخد --text-secondary (رمادي غامق مخصص لخلفية فاتحة) فوق خلفية غامقة فعليًا،
   يعني تباين شبه معدوم. لازم لون فاتح ثابت هون بغض النظر عن وضع الموقع، تماماً
   متل العنوان/الفقرة المباشرين فوق (نفس المبدأ). */
#initiatives.has-bg-image .partnership-highlight-box p { color: rgba(255, 255, 255, 0.85); }

/* بطاقات تقييمات غوغل */
#reviews > .container > .text-center p { color: var(--text-secondary); }
.review-card {
    background: var(--card-glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s;
    height: 100%;
    color: var(--text-primary);
}
.review-card:hover { transform: translateY(-5px); border-color: rgba(243, 154, 53, 0.3); }
.review-card .stars { color: var(--accent); font-size: 0.9rem; }

/* رابط "شاهد آراء عملائنا على غوغل" تحت بطاقات التقييمات — قسم عادي (خلفية
   الصفحة العادية، مش غامقة دائماً)، فبيستخدم متغيرات الثيم متل باقي الروابط
   المشابهة (contact-review-badge) بدل ألوان ثابتة. */
.home-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-hover);
    text-decoration: none;
}
.home-review-badge i { color: var(--accent); }
.home-review-badge:hover { color: var(--accent); text-decoration: underline; }

/* 🆕 شارة إحصائية ثقة ("+5000 عميل...") فوق بطاقات التقييمات */
.trust-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(243, 154, 53, 0.08);
    border: 1px solid rgba(243, 154, 53, 0.25);
    border-radius: 50px;
    padding: 12px 26px;
    margin-top: 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}
.trust-stat-badge-icon { font-size: 1.2rem; line-height: 1; }
.trust-stat-badge strong,
.trust-stat-badge .text-gradient { font-weight: 800; }

/* نماذج الإدخال العصرية */
#initiatives .form-control, #initiatives .form-select {
    background-color: var(--card-glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.3s;
}
#initiatives .form-control::placeholder { color: var(--text-secondary); }
#initiatives .form-control:focus, #initiatives .form-select:focus {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(243, 154, 53, 0.2);
}
