/* =========================================
   1. إعدادات عامة (Global Styles)
   ========================================= */
:root { 
    --primary-gold: #D4AF37; 
    --primary-dark: #000000; 
    --secondary-turquoise: #2A9D8F; 
    --light-bg: #F9F9F9; 
    --text-color: #333; 
    --white: #FFFFFF; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Tajawal', sans-serif; 
    color: var(--text-color); 
    line-height: 1.8; 
    background: var(--white); 
    scroll-behavior: smooth; 
    direction: rtl; 
    overflow-x: hidden; /* يمنع الحركة العرضية المزعجة في الموبايل */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. الهيدر والقائمة (Header & Nav)
   ========================================= */
header { 
    background: var(--primary-dark); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); 
    border-bottom: 2px solid var(--primary-gold);
}
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo h1 { 
    font-size: 1.4rem; /* تصغير الخط قليلاً للموبايل */
    font-weight: 800; 
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.logo span { font-size: 0.7rem; color: #ccc; display: block; margin-top: -3px;}

nav ul { display: flex; gap: 30px; align-items: center; }
nav ul li a { 
    color: var(--white); 
    font-weight: 500; 
    transition: 0.3s; 
    font-size: 1rem;
}
nav ul li a:hover { color: var(--primary-gold); }

.btn-contact { 
    background: linear-gradient(45deg, var(--primary-gold), #F0E68C);
    color: var(--primary-dark) !important; 
    padding: 8px 15px; 
    border-radius: 30px; 
    font-weight: bold !important; 
    font-size: 0.9rem !important;
}
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-gold); }

/* =========================================
   3. قسم الهيرو (Hero Section)
   ========================================= */
.hero { 
    height: 85vh; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../../assets/images/hero.png') center/cover no-repeat; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); 
    /* تحسين للموبايل: يمنع الصورة من التمدد بشكل غريب */
    background-attachment: scroll; 
}
.hero h2 { 
    font-size: 3rem; 
    margin-bottom: 15px; 
    color: var(--primary-gold); 
    font-weight: 800; 
    text-shadow: 2px 2px 4px #000; 
    line-height: 1.3;
}
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.95; text-shadow: 1px 1px 2px #000; }

.btn { padding: 12px 30px; border-radius: 30px; font-weight: bold; margin: 8px; display: inline-block; transition: 0.3s; }
.btn-primary { background: var(--primary-gold); color: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary-gold); color: var(--primary-gold); background: transparent; }

/* =========================================
   4. الأقسام (Sections)
   ========================================= */
.section { padding: 60px 0; } /* تقليل الحواف العلوية والسفلية */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h3 { 
    font-size: 2.2rem; 
    color: var(--primary-dark); 
    display: inline-block; 
    position: relative;
    padding-bottom: 10px;
}
.section-title h3::after {
    content: ''; width: 60px; height: 3px; background: var(--primary-gold);
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 2px;
}
.bg-light { background: var(--light-bg); }

/* =========================================
   5. قسم من نحن (About)
   ========================================= */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}
.about-text { text-align: right; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: #555; }
.values-list li { margin: 10px 0; display: flex; gap: 10px; align-items: center; font-weight: bold; color: var(--primary-dark); }
.values-list i { color: var(--primary-gold); font-size: 1.2rem; }

.store-image {
    width: 100%; 
    height: auto;
    border-radius: 15px;
    box-shadow: 15px 15px 0px rgba(212, 175, 55, 0.2); 
    border: 1px solid #eee;
    object-fit: cover;
}

/* =========================================
   6. قسم المنتجات (Products)
   ========================================= */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.product-card { 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: 0.4s; 
    border: 1px solid #eee;
}

.card-img {
    height: 250px; /* ارتفاع ثابت للصور في الديسك توب */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تملأ المساحة بدون مط */
    transition: transform 0.5s ease;
}

.product-card:hover .card-img img { transform: scale(1.1); }
.card-content { padding: 20px; text-align: center; }
.card-content h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--primary-dark); }
.card-content p { color: #666; font-size: 0.9rem; }

/* =========================================
   7. الفوتر والتواصل
   ========================================= */
.contact-section { background: #111; color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.c-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; }
.c-item i { 
    min-width: 45px; height: 45px; /* min-width مهمة عشان الأيقونة ماتصغرش في الموبايل */
    background: rgba(212, 175, 55, 0.1); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-gold); font-size: 1.1rem; 
}

footer { background: #000; color: #888; text-align: center; padding: 20px 0; font-size: 0.9rem; border-top: 1px solid #222; }

.whatsapp-float { 
    position: fixed; bottom: 20px; right: 20px; 
    width: 60px; height: 60px; 
    background: #25d366; color: #fff; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 30px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    z-index: 999;
}

/* =========================================
   8. تحسينات الموبايل (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    /* القائمة */
    .menu-toggle { display: block; }
    nav ul { 
        display: none; 
        flex-direction: column; 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: rgba(0,0,0,0.95); 
        padding: 20px 0; 
        text-align: center;
        backdrop-filter: blur(10px);
    }
    nav ul.active { display: flex; }
    
    /* الهيدر */
    .logo h1 { font-size: 1.2rem; }
    .logo span { font-size: 0.65rem; }

    /* الهيرو (الخلفية) */
    .hero { 
        height: 70vh; /* تقليل الارتفاع شوية في الموبايل */
        background-position: center; /* توسيط الصورة */
    }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    
    /* الأقسام العامة */
    .container { width: 95%; padding: 0 10px; }
    .section { padding: 50px 0; }
    .section-title h3 { font-size: 1.8rem; }
    
    /* من نحن - الصورة والكلام تحت بعض */
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
    }
    .about-text { text-align: center; }
    .values-list li { justify-content: center; font-size: 0.95rem; }
    .store-image { 
        margin-top: 10px; 
        box-shadow: 10px 10px 0px rgba(212, 175, 55, 0.2); /* تقليل الظل شوية */
    }

    /* المنتجات */
    .products-grid { 
        grid-template-columns: 1fr; /* عمود واحد للمنتجات */
        gap: 25px;
    }
    .card-img { height: 220px; } /* تقليل ارتفاع الصورة شوية */

    /* التواصل */
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .c-item { flex-direction: row; text-align: right; } /* التأكد من اتجاه الكلام */
}