/* ------------------ تضمين خط Cairo من المجلد المحلي ------------------ */
@font-face {
    font-family: 'Cairo';
    src: local('Cairo'), url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: local('Cairo'), url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: local('Cairo'), url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------ المتغيرات ------------------ */
:root {
    --primary: #de0000;
    --bg: #f8fafc;
    --font: 'Cairo', sans-serif;
}

/* ------------------ قواعد عامة ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: #1f2937;
    line-height: 1.7;
}

/* الحاويات */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ------------------ الهيدر ------------------ */
.header {
    height: 70px; /* ارتفاع ثابت */
    border-bottom: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.phone {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ------------------ قسم البطل ------------------ */
.hero {
    background: var(--bg);
    min-height: 400px; /* حجز مساحة للنصوص */
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.hero h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* ------------------ الأزرار ------------------ */
.btn {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/* ------------------ الخدمات ------------------ */
.services {
    padding: 60px 0;
    min-height: 600px; /* يثبت ارتفاع القسم بالكامل */
}

.services h2,
.why h2,
.about h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* تثبيت ارتفاع البطاقات داخل الـ services */
.services .card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-height: 180px; /* يثبت ارتفاع كل بطاقة */
}

/* تثبيت ارتفاع العناوين داخل البطاقات */
.card h3 {
    min-height: 40px;
}

/* ------------------ لماذا نحن ------------------ */
.why {
    background: var(--bg);
    padding: 50px 0;
    min-height: 300px; /* يثبت ارتفاع القسم */
}

.why ul {
    list-style: none;
    max-width: 600px;
    margin: auto;
}

.why li {
    padding: 10px 0;
    font-size: 18px;
}

/* ------------------ حول ------------------ */
.about {
    padding: 50px 0;
    min-height: 300px; /* يثبت ارتفاع القسم */
}

/* ------------------ الفوتر ------------------ */
.footer {
    background: #000;
    color: #aaa;
    text-align: center;
    min-height: 150px; /* يثبت ارتفاع الفوتر */
    padding: 30px 20px 80px;
}

.disclaimer {
    font-size: 14px;
    margin-bottom: 15px;
}

/* ------------------ زر الاتصال الثابت ------------------ */
.fixed-call {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
}

/* ------------------ تحسين CLS للصور ------------------ */
img {
    display: block;
    max-width: 100%;
    height: auto; /* يمنع قفزات الصور */
}
.floating-call {
    position: fixed;
    bottom: 90px;
    left: 20px; /* شمال الموقع */
    width: 70px;
    height: 70px;
    background: #de0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    text-decoration: none;
}

.floating-call svg {
    width: 26px;
    height: 26px;
    fill: #fff; /* أيقونة بيضاء */
}

/* Hover خفيف */
.floating-call:hover {
    transform: scale(1.05);
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .floating-call {
        bottom: 100px;
    }
}
