@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #eb5a2a;
    --primary-dark: #cc491f;
    --white: #ffffff;
    --text-dark: #222222;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Alexandria', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* الترويسة */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; z-index: 1000; background: var(--white); box-shadow: var(--shadow); }
.navbar-logo { height: 40px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-dark); text-decoration: none; margin-left: 25px; font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); font-weight: 700; }
.header-action { display: flex; align-items: center; }
.lang-switcher { position: relative; margin-left: 15px; margin-right: 15px; display: flex; align-items: center; cursor: pointer; font-weight: 500; }
.lang-dropdown { position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background: var(--white); box-shadow: var(--shadow); border-radius: 8px; display: none; flex-direction: column; min-width: 80px; }
.lang-switcher:hover .lang-dropdown { display: flex; top: 100%; }
.lang-dropdown a { padding: 10px 15px; text-align: center; text-decoration: none; color: var(--text-dark); display: block; }
.lang-dropdown a:hover { background: #f9f9f9; color: var(--primary-color); }
.btn-primary { background-color: var(--primary-color); color: var(--white); border: none; padding: 10px 24px; border-radius: 50px; font-weight: 500; text-decoration: none; display: inline-block; transition: var(--transition); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* أيقونة البحث في الترويسة */
.header-search-icon { color: var(--text-dark); font-size: 1.1rem; margin: 0 5px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); width: 35px; height: 35px; border-radius: 50%; }
.header-search-icon:hover { color: var(--white); background-color: var(--primary-color); transform: translateY(-3px) scale(1.1); box-shadow: 0 5px 15px rgba(235, 90, 42, 0.3); }

/* الواجهة */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; color: var(--white); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4)); z-index: 2; }
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.slider-item { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }
.slider-item.active { opacity: 1; }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero-center-logo { max-width: 250px; margin-bottom: 15px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }

.pattern-divider { width: 100%; height: 40px; background-image: url('../images/pattern.svg'); background-repeat: repeat-x; background-position: center; background-size: contain; margin: 60px 0; opacity: 0.8; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 40px; }

/* شريط الصور المتحرك المستمر */
.ticker-section { padding: 10px 0; overflow: hidden; }
.ticker-container { width: 100%; overflow: hidden; padding: 15px 0; }
.ticker-wrapper { display: flex; width: max-content; animation: scrollTicker 40s linear infinite; }
.ticker-wrapper:hover { animation-play-state: paused; }
.ticker-track { display: flex; gap: 30px; padding-right: 30px; }
.product-card { width: 280px; height: 280px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* قسم قصتنا في الرئيسية */
.about-section { padding: 40px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text-clean p { line-height: 1.8; margin: 20px 0; color: #555; }
.btn-clean-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 10px 20px; border-radius: 50px; text-decoration: none; display: inline-block; transition: var(--transition); }
.btn-clean-outline:hover { background-color: var(--primary-color); color: var(--white); }
.about-img-clean img { width: 100%; border-radius: 15px; box-shadow: var(--shadow); }

/* التطبيقات */
.delivery-apps { padding: 30px 0 60px; }
.apps-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.app-logo { width: 130px; height: 130px; object-fit: contain; background: var(--white); padding: 15px; border-radius: 20px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid transparent; }
.app-logo:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #f0f0f0; }

/* الفوتر وتعديلات الأيقونات */
.footer { background-color: #111; color: rgba(255, 255, 255, 0.7); padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }

/* התعديل الجديد: ضبط المسافة بين العنوان والايميل وتلوين الأيقونات */
.footer-contact p { 
    margin-bottom: 12px; 
    font-size: 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
}
.footer-contact p:last-child { margin-bottom: 0; }
.footer-contact i { 
    color: var(--primary-color); 
    margin-left: 10px; 
    font-size: 1.2rem; 
}

.social-icons { display: flex; gap: 15px; }
.social-icon { 
    width: 45px; 
    height: 45px; 
    background-color: #222; 
    color: var(--white); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: var(--transition); 
}
.social-icon:hover {
    background-color: var(--primary-color); 
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 10px 20px rgba(235, 90, 42, 0.4); 
    color: #fff;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; font-size: 0.85rem; text-align: center; }

/* حركة أيقونة الواتساب العائمة */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 55px; 
    height: 55px; 
    background-color: #25d366; 
    color: var(--white); 
    border-radius: 50%; 
    font-size: 1.8rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-decoration: none; 
    z-index: 100; 
    box-shadow: var(--shadow); 
    transition: var(--transition); 
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebe58;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* تنسيقات صفحات المنيو والقصة والآراء */
.page-header { padding: 120px 0 40px; text-align: center; background-color: #fcfcfc; border-bottom: 1px solid #eee; margin-bottom: 40px; }
.page-title { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.menu-category { margin-bottom: 40px; }
.category-title { background: #fdfdfd; padding: 12px 20px; border-right: 4px solid var(--primary-color); font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 18px; border: 1px solid #eaeaea; border-radius: 15px; background: #fff; transition: var(--transition); }
.menu-item:hover { border-color: var(--primary-color); box-shadow: var(--shadow); transform: translateY(-3px); }
.item-name { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; }
.item-price { color: var(--primary-color); font-weight: 700; }
.item-desc { display: block; font-size: 0.85rem; color: #888; margin-top: 5px; }

/* زر الواتساب لمنع الانكماش */
.btn-wa-order { 
    background: #25d366; 
    color: #fff; 
    border: none; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    font-size: 1.3rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    margin-right: 10px; 
    transition: var(--transition); 
}

.btn-wa-order:hover { 
    transform: scale(1.1); 
    background-color: #1ebe58;
}

/* دعم الانجليزية */
body.en-mode { direction: ltr; }
body.en-mode .nav-links a { margin-left: 0; margin-right: 25px; }
body.en-mode .category-title { border-right: none; border-left: 4px solid var(--primary-color); }
body.en-mode .ticker-wrapper { animation: scrollTickerEn 40s linear infinite; }
body.en-mode .btn-wa-order { margin-right: 0; margin-left: 10px; } 
body.en-mode .footer-contact i { margin-left: 0; margin-right: 10px; }
@keyframes scrollTickerEn { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* =========================================
   تجاوب الشاشات الصغيرة (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    /* تقليل المساحات حول الترويسة */
    .navbar {
        padding: 12px 2%;
    }

    /* تصغير الشعار ليتناسب مع الجوال */
    .navbar-logo {
        height: 26px; 
    }

    /* تصغير حجم خط الروابط وتقليل المسافة بينها */
    .nav-links a {
        margin-left: 8px; 
        font-size: 0.75rem; 
    }

    /* تصغير أيقونة البحث */
    .header-search-icon {
        font-size: 0.85rem;
        width: 25px;
        height: 25px;
        margin: 0 4px;
    }

    /* تصغير زر تغيير اللغة (AR/EN) */
    .lang-switcher {
        margin-left: 5px;
        margin-right: 5px;
        font-size: 0.75rem;
    }

    /* تصغير زر "اطلب الآن" */
    .header-action .btn-primary {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* دعم إضافي للشاشات الصغيرة جداً */
@media (max-width: 400px) {
    .nav-links a {
        margin-left: 5px;
        font-size: 0.65rem;
    }
    .navbar-logo {
        height: 22px;
    }
    .header-action .btn-primary {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}