/* =====================================================
   مؤسسة الجيل – Style CSS
   Bootstrap 5 RTL Compatible
   SEO + Performance Optimized
   ===================================================== */

/* ---------- Global ---------- */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #198754;
}

/* ---------- Logo ---------- */
.site-logo {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #198754;
}

/* ---------- Header ---------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.site-header nav a {
    font-weight: 600;
    margin-inline: 8px;
    color: #212529;
}

.site-header nav a:hover {
    color: #198754;
}

/* ---------- Buttons ---------- */
.btn-call {
    background-color: #198754;
    color: #fff;
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 14px;
}

.btn-call:hover {
    background-color: #157347;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 14px;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: #fff;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #0f5132, #198754);
    color: #ffffff;
    padding: 70px 15px;
    text-align: center;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.95;
}

/* ---------- Service Cards ---------- */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

/* ---------- Page Content ---------- */
.page-content h1 {
    font-weight: 800;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 16px;
}

/* ---------- Contact Form ---------- */
.contact-form input,
.contact-form textarea {
    border-radius: 10px;
    padding: 12px;
}

.contact-form button {
    background: #198754;
    color: #fff;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

.contact-form button:hover {
    background: #157347;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer strong {
    color: #198754;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .site-header nav {
        display: none;
    }
}
/* === FIX MOBILE NAV OVERFLOW (RTL) === */
/* =================================================
   MOBILE NAV ≠ DESKTOP NAV (RTL FIX)
   ================================================= */

/* منع أي سحب أفقي نهائيًا */
html, body {
    overflow-x: hidden;
}

/* ---------- Desktop (افتراضي) ---------- */
.navbar-nav {
    flex-direction: row;
    gap: 12px;
}

.navbar-nav .nav-link {
    white-space: nowrap;
    font-weight: 600;
}

/* ---------- Mobile Layout ---------- */
@media (max-width: 991px) {

    /* القائمة تصبح عمودية */
    .navbar-collapse {
        background: #ffffff;
        padding: 10px 0;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        white-space: normal;
        text-align: right;
    }

    /* أزرار الاتصال للجوال */
    .nav-cta {
        display: flex;
        gap: 10px;
        padding: 12px 16px;
        justify-content: space-between;
    }

    .nav-cta a {
        flex: 1;
        text-align: center;
    }
}

