/* إعدادات عامة وألوان */
:root {
    --dark-brown: #3e2723;
    --light-yellow: #ffca28; /* لون أصفر فاتح ومريح للعين */
    --light-bg: #fdf5e6; /* لون بيج يميل للترابي */
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* شريط الأخبار المتحرك (من اليسار إلى اليمين) */
.news-ticker {
    background-color: var(--dark-brown);
    color: var(--light-yellow);
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: bold;
}

.ticker-content {
    display: inline-block;
    animation: marquee-left-to-right 25s linear infinite;
}

/* تعديل اتجاه الحركة ليبدأ من اليسار ويتجه لليمين */
@keyframes marquee-left-to-right {
    0% { transform: translateX(-100vw); }
    100% { transform: translateX(100vw); }
}

/* القائمة العلوية */
header {
    background-color: var(--dark-brown);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--light-yellow);
    transition: background 0.3s;
}

header .logo h1 {
    color: var(--light-yellow);
    font-family: 'Amiri', serif;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--light-yellow);
}

/* القسم الرئيسي (صورة الغلاف) */
.hero {
    background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(62, 39, 35, 0.7)), url('https://images.unsplash.com/photo-1590059302636-b638927e3661?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-text h2 {
    font-size: 48px;
    font-family: 'Amiri', serif;
    color: var(--light-yellow);
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 24px;
}

/* الأقسام العامة */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    color: var(--dark-brown);
    margin-bottom: 30px;
    font-family: 'Amiri', serif;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    color: #555;
}

.bg-light {
    background-color: #f7ecd5; 
}

/* بطاقات المنتجات وتأثيرات الصور */
.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--light-yellow);
    transition: transform 0.3s;
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-info {
    padding: 20px;
    background-color: var(--dark-brown);
    color: white;
}

.product-info h3 {
    color: var(--light-yellow);
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
}
.main-logo-img {
    height: 100px; /* اضبط الارتفاع الذي تراه مناسباً لشكل القائمة العلوية */
    width: auto;  /* ليحافظ على أبعاد الصورة ولا يمطها */
    vertical-align: middle; /* لمحاذاة الصورة مع النصوص إذا وجدت */
}
/* التذييل وأيقونات التواصل الاجتماعي */
footer {
    background-color: var(--dark-brown);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-top: 5px solid var(--light-yellow);
}

footer h3 {
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #5d4037;
}

.social-icons a:hover {
    transform: translateY(-5px);
}
.social-icons a.facebook:hover { background-color: #1877F2; }
.social-icons a.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icons a.tiktok:hover { background-color: #000000; }
.social-icons a.youtube:hover { background-color: #FF0000; }
.social-icons a.whatsapp:hover { background-color: #25D366; }

footer p {
    color: #ccc;
    font-size: 14px;
}
.btn-product {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--light-yellow);
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-product:hover {
    background-color: #e6b622;
    transform: scale(1.05);
}
/* تنسيق صورة الشعار (اللوغو) */
.logo-img {
    height: 70px; /* هذا هو ارتفاع اللوغو، يمكنك تغييره (مثلاً 60px أو 80px) حسب رغبتك */
    width: auto; /* يحافظ على أبعاد الصورة الأصلية */
    vertical-align: middle;
    transition: transform 0.3s ease; /* حركة ناعمة */
}

/* تأثير جميل عند تمرير الماوس على اللوغو */
.logo-img:hover {
    transform: scale(2.05); /* تكبير خفيف بنسبة 5% */
}
@media (max-width: 768px) {
    /* تعديل القائمة العلوية لتنزل الروابط تحت اسم المزرعة */
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    header nav ul li a {
        font-size: 16px;
    }

    /* تصغير حجم الخط في الواجهة ليناسب شاشة الهاتف */
    .hero-text h2 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
    }

    /* تقليل الهوامش الجانبية للأقسام */
    .section {
        padding: 40px 15px;
    }

    .about-text {
        font-size: 16px;
    }
}