/* تم إضافة خط Alexandria المودرن والفخم */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #eb5a2a;
    --primary-dark: #cc491f;
    --bg-color: #ffffff; 
    --text-dark: #222222;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Alexandria', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; transition: direction 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-right { text-align: right; } .text-center { text-align: center; }

.pattern-divider { width: 100%; height: 40px; background-image: url('pattern.svg'); background-repeat: repeat-x; background-position: center; background-size: contain; margin: 60px 0; opacity: 0.8; }

/* الترويسة */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; z-index: 1000; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 12px 5%; }
.navbar-logo { height: 50px; transition: var(--transition); }
.navbar.scrolled .navbar-logo { height: 40px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; margin-left: 25px; font-weight: 500; transition: var(--transition); font-size: 0.95rem; cursor: pointer; }
.nav-links a:hover { color: var(--primary-color); }
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.header-action { display: flex; align-items: center; }

/* الأزرار (بأحجام أرقى) */
.btn-primary { background-color: var(--primary-color); color: var(--white); border: none; padding: 10px 24px; border-radius: 50px; font-weight: 500; cursor: pointer; transition: var(--transition); font-size: 1rem;}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(235, 90, 42, 0.3); }
.btn-small { padding: 8px 20px; font-size: 0.85rem; font-weight: 500; } /* الزر الصغير كما طلبت */

/* زر اللغات */
.lang-switcher { position: relative; margin-left: 15px; margin-right: 15px; display: flex; align-items: center; cursor: pointer; color: var(--white); font-weight: 500; font-size: 0.95rem; }
.navbar.scrolled .lang-switcher { color: var(--text-dark); }
.lang-switcher i { margin: 0 6px; font-size: 0.8rem; transition: transform 0.3s; }
.lang-dropdown { position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 80px; opacity: 0; visibility: hidden; transition: var(--transition); }
.lang-switcher:hover .lang-dropdown { opacity: 1; visibility: visible; top: 100%; }
.lang-switcher:hover i { transform: rotate(180deg); }
.lang-dropdown a { color: var(--text-dark) !important; padding: 10px 15px; text-align: center; text-decoration: none; transition: background 0.3s; display: block; width: 100%; font-weight: 500; font-size: 0.9rem;}
.lang-dropdown a:hover { background: #f9f9f9; color: var(--primary-color) !important; }

/* === تعديلات الاتجاه باللغة الإنجليزية (LTR Mode) === */
body.en-mode .nav-links a { margin-left: 0; margin-right: 25px; }
body.en-mode .text-right { text-align: left; }
body.en-mode .about-text-clean h2, body.en-mode .about-text-clean p { text-align: left; }
body.en-mode .btn-clean-outline { float: left; }
body.en-mode .feedback-content { text-align: left; }
body.en-mode .feedback-close { right: 20px; left: auto; }
body.en-mode .category-title { border-right: none; border-left: 3px solid var(--primary-color); }
body.en-mode .storyModal .feedback-content { text-align: left !important; }
body.en-mode .storyModal ul { margin-right: 0; margin-left: 20px; }

/* الواجهة المطورة (الشعار في النص) */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; color: var(--white); overflow: hidden; padding-top: 60px; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 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; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slider-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; 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; max-width: 800px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }

/* الشعار والنص الجديد في الـ Hero */
.hero-center-logo { max-width: 250px; width: 80%; margin-bottom: 15px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.hero-new-subtitle { font-size: 1.4rem; font-weight: 400; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); opacity: 0.95; }

.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; background-color: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: var(--transition); }
.dot.active { background-color: var(--primary-color); transform: scale(1.3); }

/* الشريط الإخباري */
.ticker-section { padding: 10px 0; }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 40px; color: var(--text-dark); }
.ticker-container { width: 100%; overflow: hidden; padding: 15px 0; background-color: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.02); }
.ticker-wrapper { display: flex; gap: 30px; width: max-content; animation: scrollTicker 40s linear infinite; }
.ticker-wrapper:hover { animation-play-state: paused; }
body[dir="ltr"] .ticker-wrapper { animation: scrollTickerEn 40s linear infinite; } 
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(3400px); } }
@keyframes scrollTickerEn { 0% { transform: translateX(0); } 100% { transform: translateX(-3400px); } }
.product-card { flex: 0 0 280px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: scale(1.02); }
.product-img { width: 100%; height: 280px; object-fit: cover; display: block; }

/* قسم القصة */
.about-section { padding: 30px 0; background-color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text-clean h2 { font-size: 2.5rem; font-weight: 700; color: #222; margin-bottom: 20px; text-align: right; }
.about-text-clean p { font-size: 1.05rem; line-height: 1.8; color: #666; margin-bottom: 30px; text-align: right; font-weight: 300;}
.btn-clean-outline { background: transparent; border: 1px solid #333; color: #333; padding: 10px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: var(--transition); float: right; }
.btn-clean-outline:hover { background: #333; color: #fff; }
.about-img-clean img { width: 100%; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* قسم التطبيقات */
.delivery-apps { padding: 30px 0 60px; }
.apps-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.app-logo { width: 130px; height: 130px; object-fit: contain; background: var(--white); padding: 15px; border-radius: 20px; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.app-logo:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid #eee; }

/* الفوتر */
.footer { background-color: #111; color: rgba(255, 255, 255, 0.7); padding: 60px 0 20px; margin-top: 20px;}
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-contact p { margin-bottom: 10px; font-size: 0.95rem; font-weight: 300;}
.footer-contact i { color: var(--primary-color); margin: 0 8px; }
.social-icons { display: flex; gap: 15px; }
.social-icon { display: inline-flex; justify-content: center; align-items: center; width: 45px; height: 45px; background-color: #222; color: var(--white); border-radius: 50%; font-size: 1.2rem; text-decoration: none; transition: var(--transition); }
.social-icon:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; font-size: 0.85rem; font-weight: 300;}

.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; box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3); z-index: 100; transition: var(--transition); }
body.en-mode .whatsapp-float { right: auto; left: 30px; } 
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1) translateY(-3px); }

/* النوافذ المنبثقة */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: var(--transition); padding: 15px; backdrop-filter: blur(3px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.feedback-content { background-color: #ffffff; padding: 35px; border-radius: 16px; width: 100%; position: relative; transform: translateY(-30px); transition: var(--transition); text-align: right; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.modal-overlay.active .feedback-content { transform: translateY(0); }
.feedback-close { position: absolute; top: 15px; left: 15px; background-color: #f8f8f8; color: #888; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10; }
.feedback-close:hover { background-color: #ffeeb; color: #ff4d4d; }
.feedback-content h3 { font-size: 1.8rem; color: #111; text-align: center; margin-bottom: 15px; font-weight: 700; }
.feedback-hr { border: 0; height: 1px; background: #f0f0f0; margin-bottom: 20px; }

/* تصميم المنيو */
.menu-scroll-area { max-height: 65vh; overflow-y: auto; padding-left: 8px; padding-right: 8px; }
.menu-scroll-area::-webkit-scrollbar { width: 5px; }
.menu-scroll-area::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.menu-category { margin-bottom: 25px; }
.category-title { background: #fafafa; padding: 10px 15px; border-right: 3px solid var(--primary-color); font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 12px; border-radius: 4px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; transition: var(--transition); gap: 12px; }
.menu-item:hover { border-color: #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.item-details { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-name { font-size: 1rem; font-weight: 700; color: #222; }
.item-price { font-size: 0.95rem; color: var(--primary-color); font-weight: 700; }
.item-desc { font-size: 0.85rem; color: #888; line-height: 1.4; margin-top: 3px; font-weight: 300;}

.btn-wa-order { flex-shrink: 0; background: #25d366; color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); box-shadow: 0 3px 8px rgba(37,211,102,0.2); }
.btn-wa-order:hover { background: #1ebe58; transform: scale(1.08); }

/* نافذة إرسال الآراء */
.feedback-content p { color: #666; font-size: 1rem; margin-bottom: 15px; font-weight: 300;}
.feedback-content textarea { width: 100%; height: 120px; border: 1px solid #eee; border-radius: 10px; padding: 12px; font-size: 0.95rem; resize: none; margin-bottom: 20px; outline: none; font-weight: 300;}
.feedback-content textarea:focus { border-color: #25d366; }
.btn-whatsapp-send { background-color: #25d366; color: #ffffff; border: none; width: 100%; padding: 14px; border-radius: 10px; font-size: 1.1rem; font-weight: 500; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: var(--transition); }
.btn-whatsapp-send:hover { background-color: #1ebe58; }

/* إعدادات الشاشات الصغيرة */
@media (max-width: 992px) {
    .menu-grid { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; padding: 12px 5%; }
    .logo { order: 1; }
    .header-action { order: 2; }
    .nav-links { order: 3; display: flex !important; flex-direction: row; width: 100%; justify-content: center; gap: 15px; margin-top: 12px; overflow-x: auto; white-space: nowrap; }
    .nav-links a { font-size: 0.9rem !important; margin: 0 !important; }
    
    .hero { padding-top: 110px; }
    .hero-center-logo { max-width: 200px; }
    .hero-new-subtitle { font-size: 1.1rem; }
    
    .section-title { font-size: 1.6rem; margin-bottom: 25px; }
    .about-grid { grid-template-columns: 1fr; gap: 25px; }
    .about-text-clean h2 { font-size: 2.2rem; text-align: center; }
    .about-text-clean p { text-align: center; font-size: 0.95rem; }
    .btn-clean-outline { float: none !important; display: block; margin: 0 auto; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .pattern-divider { margin: 30px 0; height: 25px; }
    .feedback-content { padding: 25px 15px; }
    .feedback-content h3 { font-size: 1.5rem; }
    .feedback-close { top: 10px; left: 10px; width: 30px; height: 30px; font-size: 1rem; }
}