/* كود أساسي لتحسين استقرار الصفحة */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* حجز مساحة للهيرو عشان الصفحة ما تتهزش */
.hero {
    min-height: 100vh;
    background-color: #0b1f38; /* لون بديل يظهر فوراً قبل الصورة */
}
:root {
    font-display: swap !important;
}

body {
    font-family: 'Cairo', sans-serif;
    /* السطر اللي جاي ده بيخلي المتصفح ما ينتظرش الخط عشان يظهر الكتابة */
    font-display: swap; 
}
/* منع الاهتزاز والمسافات الجانبية في الموبايل */
body, html {
    overflow-x: hidden; /* بيمنع الصفحة تروح يمين وشمال */
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box; /* بيخلي الحواف والمسافات تتحسب صح جوه العرض */
}
/* تمرير ناعم بين الأقسام */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* عشان لما الصفحة تنزل، الهيدر ما يغطيش على عنوان القسم */
}
:root {
    --primary: #f39c12; 
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
}

/* تطبيق خط Cairo على الموقع بالكامل */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6; /* بيخلي الكلام مريح للعين في القراءة */
}

/* تمييز العناوين بوزن أثقل */
h1, h2, h3, .logo {
    font-weight: 700; /* خط عريض وواضح للعناوين */
    letter-spacing: 0; /* الخط العربي مش بيحتاج مسافات بين الحروف */
}

/* العناوين الرئيسية جداً (الوزن الأقصى) */
.hero h1 {
    font-weight: 900;
}
body { direction: rtl; background: var(--bg); color: var(--text); line-height: 1.7; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* الهيدر */
header { background: rgba(0,0,0,0.95); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid #333; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; }
.highlight { color: var(--primary); }
nav ul { display: flex; list-style: none; }
/* --- أنيميشن المنيو الاحترافي --- */
nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    padding: 8px 18px;
    border-radius: 25px; /* شكل بيضاوي شيك */
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--accent-color);
    border-radius: 25px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav ul li a:hover {
    color: var(--white); /* الكلمة تقلب أبيض */
}

nav ul li a:hover::before {
    transform: scaleX(1); /* الخلفية البرتقالي تملى الزرار بنعومة */
    transform-origin: left;
}
.nav-call { background: var(--primary); color: #000; padding: 8px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; }

/* الهيرو */
.hero { height: 90vh; background: linear-gradient(rgba(0,0,0,0.6), #0f0f0f), url('../images/شراء سيارات تشليح ومصدومه بالرياض.webp') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; }
.top-label { color: var(--primary); font-weight: bold; letter-spacing: 2px; }
.hero h1 { font-size: 3.5rem; margin: 20px 0; }
.hero p { max-width: 700px; margin: auto; font-size: 1.2rem; color: #ccc; }
.hero-btns { margin-top: 40px; }
.btn-main, .btn-wa { padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; margin: 10px; font-size: 18px; }
.btn-main { background: var(--primary); color: #000; }
.btn-wa { background: #25d366; color: #fff; }

/* العدادات */
.stats-section { padding: 50px 0; background: var(--card); border-top: 2px solid var(--primary); }
.stats-section .container { display: flex; justify-content: space-around; }
.stat-item { text-align: center; }
.stat-item h2 { font-size: 3rem; color: var(--primary); }

/* كروت الخطوات */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary); }
.how-to { padding: 100px 0; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.step-card { background: var(--card); padding: 40px; border-radius: 20px; position: relative; transition: 0.3s; }
.step-card:hover { transform: translateY(-10px); background: #222; }
.step-num { font-size: 4rem; position: absolute; top: -20px; left: 20px; color: rgba(243, 156, 18, 0.1); font-weight: 800; }

/* المقال */
.article-section { padding: 100px 0; background: #050505; }
.article-content { max-width: 900px; margin: auto; color: #bbb; text-align: justify; }
.article-content h3 { color: var(--primary); margin: 30px 0 15px; }
.article-content p { margin-bottom: 20px; }

/* الأنيميشن */
.pulse { animation: pulse-anim 2s infinite; }
@keyframes pulse-anim { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
/* آراء العملاء */
.testimonials { padding: 80px 0; background: #111; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.test-card { background: #1a1a1a; padding: 30px; border-radius: 15px; border: 1px solid #333; }
.stars { color: var(--primary); margin-bottom: 15px; }
.user-info { display: flex; align-items: center; margin-top: 20px; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; margin-left: 15px; background: #333; }

/* الفوتر */
.main-footer { background: #0a0a0a; padding: 60px 0 20px; border-top: 2px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-about h3 { font-size: 24px; margin-bottom: 20px; }
.footer-links h4, .footer-social h4 { color: var(--primary); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-links ul li a:hover { color: var(--primary); padding-right: 5px; }

/* أيقونات السوشيال ميديا */
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: 0.3s; background: #222; }
.s-fb:hover { background: #1877F2; }
.s-tw:hover { background: #000000; }
.s-ins:hover { background: #E4405F; }
.s-snap:hover { background: #FFFC00; color: #000; }
.s-yt:hover { background: #FF0000; }

.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; color: #666; font-size: 14px; }

/* الأزرار العائمة */
.floating-btns { position: fixed; bottom: 30px; left: 30px; z-index: 1000; display: flex; flex-direction: column; gap: 15px; }
.f-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: 0.3s; }
.f-whatsapp { background: #25d366; animation: pulse-green 2s infinite; }
.f-phone { background: var(--primary); color: #000; animation: pulse-gold 2s infinite; animation-delay: 1s; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}
/* --- إعدادات التجاوب مع الشاشات (Media Queries) --- */

/* 1. للشاشات المتوسطة (التابلت - أقل من 992px) */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; padding: 0 20px; }
    
    .stats-section .container {
        flex-wrap: wrap;
        gap: 30px;
    }
    .stat-item { flex: 1 1 45%; } /* بيخلي العدادات تظهر 2 في كل صف */
}

/* 2. للشاشات الصغيرة (الموبايل - أقل من 768px) */
@media (max-width: 767px) {
    /* الهيدر: بنخفي القائمة العادية وبنركز على زر الاتصال */
    /* تعديل المنيو للموبايل */
@media (max-width: 767px) {
    nav {
        display: block !important; /* بنظهره تاني */
        margin-top: 10px;
    }
    nav ul {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap; /* لو الكلمات كتير ينزلوا تحت بعض بشياكة */
        padding: 0;
    }
    nav ul li a {
        font-size: 12px; /* نصغر الخط شوية عشان يكفي */
        padding: 5px 8px;
        background: #1a1a1a;
        border-radius: 5px;
        border: 1px solid #333;
    }
    
    /* تصغير اللوجو شوية عشان المنيو ياخد مكان */
    .logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    header .container {
        flex-direction: column; /* اللوجو فوق والمنيو تحته */
        padding: 10px 0;
    }
} 
    header .container { justify-content: center; position: relative; }
    .nav-call { position: absolute; left: 15px; font-size: 13px; padding: 6px 15px; }
    
    /* الهيرو (Hero Section) */
    .hero { height: 80vh; }
    .hero h1 { font-size: 2rem; padding: 0 10px; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; padding: 0 30px; }
    .btn-main, .btn-wa { margin: 5px 0; width: 100%; text-align: center; }

    /* العدادات: تظهر واحد في كل صف */
    .stat-item { flex: 1 1 100%; }

    /* كروت الخدمات وكيف تبيع: تظهر واحد في كل صف */
    .step-grid, .test-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .section-title { font-size: 1.8rem; padding: 0 10px; }
    
    /* المقال: بنقلل الهوامش عشان القراءة تكون مريحة */
    .article-content { padding: 0 15px; text-align: right; }
    .article-content h3 { font-size: 1.4rem; }

    /* الأزرار العائمة: بنصغرها شوية للموبايل */
    .f-btn { width: 50px; height: 50px; font-size: 25px; }
    .floating-btns { bottom: 20px; left: 20px; }
}

/* 3. للشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 479px) {
    .hero h1 { font-size: 1.6rem; }
    .logo { font-size: 20px; }
}
/* تأثير اللمعان للوجو */
.logo .highlight {
    position: relative;
    display: inline-block;
    color: var(--primary);
    overflow: hidden;
    background: linear-gradient(to right, var(--primary) 0%, #fff 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* تحسين شكل الهيدر للموبايل عشان يكون مريح */
@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    .nav-call {
        position: static !important;
        width: 100%;
        text-align: center;
    }
}
/* تنسيق شبكة الـ 10 آراء */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 كروت في الصف للكمبيوتر و1 للموبايل */
    gap: 25px; /* المسافة بين الكروت */
    margin-top: 40px;
}

.test-card {
    background: #1a1a1a; /* خلفية الكارت داكنة */
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: 0.4s ease; /* نعومة عند الحركة */
}

.test-card:hover {
    border-color: var(--primary); /* يلمع باللون الذهبي عند الوقوف عليه */
    transform: translateY(-5px); /* يرتفع للأعلى قليلاً */
}

.user-tag {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}
/* --- تنسيق شريط الماركات المتحرك --- */
.brands-marquee {
    background: var(--white);
    padding: 25px 0;
    overflow: hidden;
    border-bottom: 1px solid #e0e5ec;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    direction: ltr; /* بنخليه من اليسار لليمين عشان الأنيميشن يظبط على كل الشاشات */
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-brands 30s linear infinite; /* حركة ناعمة ومستمرة */
}

.marquee-track span {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-muted);
    padding: 0 40px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: default;
    opacity: 0.6;
}

/* لما الزبون يجيب الماوس على اسم ماركة تنور باللون البرتقالي/الذهبي */
.marquee-track span:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

/* كود الحركة اللانهائية */
@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* تظبيط مقاس الخط في الموبايل عشان ما يبقاش ضخم */
@media (max-width: 768px) {
    .marquee-track span {
        font-size: 1.3rem;
        padding: 0 25px;
    }
}
/* --- تنسيق فوتر الشركات --- */
.corporate-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .footer-logo {
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-col p {
    color: #b0c4de;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0c4de;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-right: 10px; /* حركة سهم وهمية لليسار */
}

.footer-bottom {
    background-color: #061224; /* لون أغمق سنة لحقوق النشر */
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 14px;
}
/* تصميم اسم "تشليح الخبير" بشكل ملكي */
.navbar-brand, .logo-text {
    font-family: 'Cairo', sans-serif; /* تأكد إنك مستدعي خط كايرو */
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* ده اللي بيخلي التدرج الذهبي يظهر جوه الكتابة */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    transition: all 0.5s ease;
    display: inline-block;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2); /* بيخلي الدهب يلمع لما تقرب منه */
}

/* تأكد إن الـ body واخد خلفية واضحة */
body {
    background-color: #0b1f38; /* لو خلفيتك غامقة، الأبيض فوقها هيكون تباينه 100% */
    
    /* تنسيق أزرار الاتصال العائمة */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* مسافة ثابتة بين الزرارين عشان ما يتداخلوش */
    z-index: 9999;
}
/* تصميم الكبسولة الذهبية الفاخرة */
.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px; /* شكل الكبسولة */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.3); /* إطار ذهبي خفيف */
    min-width: 140px; /* عرض ثابت عشان النص */
}

/* زر الواتساب - أخضر زمردي فخم */
.btn-whatsapp {
    background: linear-gradient(135deg, #1ebea5 0%, #00a884 100%);
}

/* زر الاتصال - ذهبي ملكي */
.btn-phone {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    animation: luxury-glow 3s infinite;
}

.floating-btn i {
    margin-left: 10px; /* مسافة بين الأيقونة والنص */
    font-size: 18px;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* أنيميشن التوهج الذهبي */
@keyframes luxury-glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}
/* تنسيق الفقاعة الذهبية (Tooltip) */
.floating-btn {
    position: relative; /* ضروري عشان الفقاعة تظهر فوقه بالظبط */
}

.floating-btn::after {
    content: "0559394214"; /* رقم تليفونك هنا يا بطل */
    position: absolute;
    bottom: 125%; /* تظهر فوق الزرار */
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: linear-gradient(135deg, #d4af37, #b8860b); /* ذهبي فخم */
    color: #000; /* نص أسود عشان يوضح على الذهبي */
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0; /* مخفية في العادي */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* سهم صغير أسفل الفقاعة */
.floating-btn::before {
    content: "";
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #d4af37 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* إظهار الفقاعة عند تمرير الماوس */
.floating-btn:hover::after, 
.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}