/* ==========================================================================
   تطوير وتحديث كود CSS - معرض الصعيدي للأدوات الصحية (نسخة خفيفة وسريعة جداً)
   ========================================================================== */

/* 1. استدعاء خط Cairo الاحترافي من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* إعادة ضبط عامة لتحسين الأداء وسرعة التحميل */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* تطبيق خط Cairo على كل عناصر الموقع */
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth; /* انتقال سلس بين الأقسام */
}

body {
    background-color: #121212; /* خلفية داكنة مريحة للعين */
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* شريط التنقل العلوي المتجاوب */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 2000;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #facc15;
}

.brand-name {
    font-weight: 700;
    color: #facc15;
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #facc15;
}

/* الواجهة الرئيسية المضيئة والواضحة */
.hero-section {
    min-height: 100vh;
    padding: 140px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 0.5)), 
                url('assets/IMGE/promo-1.PNG') no-repeat center center/cover;
    background-attachment: scroll; 
}

.hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.main-title {
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* حجم مرن يتغير حسب الشاشة تلقائياً */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.sub-title {
    font-weight: 600;
    font-size: clamp(0.95rem, 3vw, 1.25rem);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    color: #e0e0e0;
}

/* حاوية الكروت المتناسقة للموقع */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    padding: 0 10px;
}

.action-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* حركة الكروت عند مرور الماوس (تعمل بسلاسة ولا تسبب ثقل للموبايل) */
.action-card:hover {
    transform: translateY(-5px);
    border-color: #facc15;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.action-card h3 {
    color: #facc15;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-desc {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 20px;
    min-height: 40px;
}

/* الأزرار الموحدة */
.action-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.group-btn, .calc-btn {
    background: #facc15;
    color: #121212;
}

.action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3);
}

/* تنسيق كروت التواصل الجديدة الخاصة بالإدارة والتوزيع */
.contact-cards-container {
    box-sizing: border-box;
}

.contact-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: #facc15 !important;
}

.contact-card a {
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.contact-card a:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* قسم من نحن */
.about-section {
    background: #1a1a1a;
    padding: 60px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    color: #facc15;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text {
    color: #cccccc;
    font-size: 1rem;
}

.gallery-title {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* شبكة عرض الصور المتجاوبة والذكية */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #222222;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item h4 {
    color: #facc15;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.prod-img {
    width: 100%;
    height: 180px;
    object-fit: contain; 
    border-radius: 8px;
    background: #ffffff; 
    padding: 5px;
}

/* تذييل الموقع */
.site-footer {
    text-align: center;
    padding: 25px;
    background: #121212;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #777777;
}

/* دعم شاشات الموبايل المتكامل وتخفيف الحمل على الأجهزة القديمة */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    .navbar-links {
        gap: 12px;
    }
    .navbar-links a {
        font-size: 0.85rem;
    }
    .navbar-logo {
        width: 35px;
        height: 35px;
    }
    .brand-name {
        font-size: 1rem; /* يظل الاسم ظاهراً بشكل أصغر ومناسب */
    }
    .services-container {
        grid-template-columns: 1fr; /* ترتيب عمودي مريح للموبايل */
    }
    .hero-section {
        padding: 120px 15px 40px; /* تقليص الحواف لراحة العين على الموبايل */
    }
}
