/* ===== المتغيرات الأساسية ===== */
:root {
    --primary-red: #c0392b; 
    --primary-dark: #9e2a1e;
    --accent-gold: #d4af37;
    
    /* خلفية متدرجة حمراء دافئة وأنيقة جداً تريح العين */
    --bg-gradient: linear-gradient(135deg, #fcf2f2 0%, #f4e4e3 100%); 
    --bg-bottom-color: #f4e4e3; 
    
    --header-bg: rgba(255, 255, 255, 0.85); 
    --item-bg: rgba(255, 255, 255, 0.95); 
    
    --text-dark: #2c1e1c; 
    --text-gray: #6d5b59; 
    
    --transition: all 0.3s ease; /* تم تسريع الأنيميشن قليلاً لأداء أفضل */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* تطبيق التدرج اللوني الدافئ على الموقع */
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.pt-scroll { scroll-margin-top: 150px; }

/* ===== زر الواتساب العائم ===== */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: #fff;
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 9999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); }

/* ===== الهيدر والأزرار ===== */
.main-header { 
    background: var(--header-bg); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 30px rgba(0,0,0,0.02); 
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* تنسيق اللوجو والنص بجواره */
.brand-logo-wrapper { display: flex; align-items: center; gap: 12px; transition: var(--transition); text-decoration: none; }
.brand-logo-wrapper:hover { opacity: 0.8; }
.brand-logo-wrapper img { 
    height: 55px !important; 
    max-width: 120px; 
    object-fit: contain; 
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-ar { font-size: 1.3rem; font-weight: 900; color: var(--primary-red); }
.brand-en { font-size: 0.8rem; font-weight: 700; color: var(--text-gray); letter-spacing: 1px; }

.header-contact { display: flex; gap: 10px; align-items: center; }
.btn-outline, .btn-whatsapp { 
    padding: 0.4rem 1.2rem; border-radius: 30px; font-weight: 800; transition: var(--transition); 
    display: flex; align-items: center; gap: 8px; background: #fff; 
}
.btn-outline { border: 2px solid var(--primary-red); color: var(--primary-red); }
.btn-outline:hover { background: var(--primary-red); color: #fff; }
.btn-whatsapp { border: 2px solid #25d366; color: #25d366; }
.btn-whatsapp:hover { background: #25d366; color: #fff; }

/* ===== الناف بار العائم (الكبسولة) ===== */
.nav-container-wrapper {
    position: fixed; top: 95px; width: 100%; z-index: 999;
    display: flex; justify-content: center;
}
.category-nav { 
    background: var(--header-bg); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(192, 57, 43, 0.1); 
    border-radius: 50px; 
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.05);
    padding: 0 1.5rem;
    width: 95%; max-width: 900px;
    position: relative; /* مهم جداً للسهم */
    overflow: hidden; 
}
.nav-scroll { display: flex; overflow-x: auto; white-space: nowrap; padding: 0.8rem 0; gap: 1.8rem; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { font-weight: 800; color: var(--text-gray); font-size: 1.05rem; padding: 0.3rem 0.5rem; transition: var(--transition); position: relative; }
.nav-scroll a::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0%; height: 3px; background: var(--primary-red); transition: var(--transition); border-radius: 5px; }
.nav-scroll a.active::after, .nav-scroll a:hover::after { width: 100%; }
.nav-scroll a.active { color: var(--primary-red); }

/* ===== السهم الإرشادي للتمرير (تم تعديله ليكون قابلاً للضغط) ===== */
.nav-arrow-hint {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px 0 15px;
    background: linear-gradient(to right, rgba(255,255,255,1) 40%, transparent); /* تدرج أبيض قوي */
    color: var(--primary-red);
    font-size: 1.2rem;
    z-index: 10;
    cursor: pointer; /* جعله قابلاً للضغط */
    border-radius: 50px 0 0 50px;
    animation: bounceLeft 1.5s infinite;
    transition: opacity 0.4s ease, color 0.3s;
}
.nav-arrow-hint:hover {
    color: var(--primary-dark);
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* ===== الهيرو مع دمج سلس مع الخلفية ===== */
.hero { margin-top: 85px; height: 75vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;  
    background-image: url('../images/hero-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    transform: scale(1.05); 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(192,57,43,0.4) 100%); }

.hero-fade-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, transparent, var(--bg-bottom-color)); z-index: 1; }

.hero-content-wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; gap: 3rem; }
.hero-text { color: #fff; max-width: 600px; }
.badge-gold { background: var(--accent-gold); color: #fff; padding: 0.3rem 1rem; border-radius: 20px; font-weight: 800; margin-bottom: 1rem; display: inline-block; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-text h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.hero-text h1 span { color: #ffeae8; }
.hero-text p { font-size: 1.4rem; text-shadow: 0 2px 10px rgba(0,0,0,0.6); font-weight: 600; }

.delivery-glass-box { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 2rem; border-radius: 20px; max-width: 650px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.delivery-glass-box h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.3rem; font-weight: 800; text-align: center; }
.delivery-apps { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.luxury-app-btn { flex: 1; min-width: 160px; background: rgba(255,255,255,0.95); border: 1px solid #fff; padding: 0.6rem 1rem; border-radius: 12px; color: var(--text-dark); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,0.2); text-decoration: none; }
.luxury-app-btn:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 10px 25px rgba(192,57,43,0.3); color: var(--primary-red); }
.app-icon { width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; font-size: 1.4rem; }

/* ======================================================= */
/* ===== تصميم القائمة الفاخرة (الدوائر الجانبية) ====== */
/* ======================================================= */

.menu-container { padding: 4rem 0; position: relative; z-index: 5; }
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 3rem; color: var(--primary-red); text-align: center; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-gold); margin: 10px auto 0; border-radius: 2px; }

.luxury-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 2.5rem; }

.fine-item {
    display: flex; align-items: center; gap: 20px; padding: 15px 20px;
    background: var(--item-bg); 
    border-radius: 20px; box-shadow: 0 8px 25px rgba(192,57,43,0.03);
    border: 1px solid rgba(255,255,255,0.8); transition: var(--transition);
}
.fine-item:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(192, 57, 43, 0.12); border-color: rgba(192, 57, 43, 0.2); }

.item-visual {
    width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fdf2f2; 
}
.item-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.fine-item:hover .item-visual img { transform: scale(1.1); }

.item-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.item-header-row { display: flex; align-items: baseline; margin-bottom: 8px; width: 100%; }
.item-title { font-size: 1.25rem; font-weight: 900; color: var(--text-dark); margin: 0; white-space: nowrap; }
.item-dots { flex-grow: 1; border-bottom: 2px dotted #ccc; margin: 0 10px; position: relative; top: -5px; }
.item-price { font-size: 1.3rem; font-weight: 900; color: var(--primary-red); white-space: nowrap; }
.item-price small { font-size: 0.8rem; color: var(--text-gray); }

.item-desc { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 12px; line-height: 1.5; }

.btn-more {
    align-self: flex-start; background: #fff; color: var(--primary-red);
    border: 1px solid rgba(192,57,43,0.2); padding: 0.4rem 1.2rem;
    border-radius: 30px; font-size: 0.9rem; font-weight: 800;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.btn-more:hover { background: var(--primary-red); color: #fff; box-shadow: 0 5px 15px rgba(192,57,43,0.3); }

.tag-cal { display: inline-block; background: #fff; color: var(--primary-red); padding: 3px 10px; border-radius: 12px; font-size: 0.85rem; font-weight: 800; border: 1px solid rgba(192,57,43,0.1); }

.fine-item.text-only { padding: 25px 20px; }

/* ===== النافذة المنبثقة الفاخرة (Modal) ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 99999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-glass { background: #fff; width: 90%; max-width: 450px; max-height: 90vh; border-radius: 25px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.4); transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; display: flex; flex-direction: column; }
.modal-overlay.active .modal-glass { transform: scale(1) translateY(0); }

.close-modal { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.9); border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; color: var(--primary-red); cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; transition: var(--transition); }
.close-modal:hover { background: var(--primary-red); color: #fff; }

.modal-image-wrapper { position: relative; height: 220px; flex-shrink: 0; background: #fdf2f2; }
.modal-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.modal-cal { position: absolute; bottom: 15px; right: 15px; background: #fff; color: var(--primary-red); padding: 0.3rem 1rem; border-radius: 20px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.modal-info { padding: 2rem; overflow-y: auto; } 
.modal-info h3 { font-size: 1.6rem; font-weight: 900; color: var(--text-dark); margin-bottom: 0.5rem; }
.modal-info p { color: var(--text-gray); line-height: 1.6; margin-bottom: 1.5rem; font-size: 1rem; }

.modal-prices-title { font-weight: 800; color: var(--primary-red); margin-bottom: 1rem; font-size: 1.1rem; border-bottom: 2px solid rgba(192,57,43,0.1); padding-bottom: 5px; display: inline-block; }
.modal-prices { display: flex; flex-direction: column; gap: 0.8rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; background: var(--bg-gradient); border-radius: 12px; border: 1px solid rgba(192,57,43,0.05); }
.price-row .p-label { font-weight: 700; color: var(--text-dark); }
.price-row .p-val { font-weight: 900; color: var(--primary-red); font-size: 1.2rem; }

/* ===== الفوتر ===== */
.footer { background: rgba(22, 16, 15, 0.98); color: #fff; padding: 5rem 0 0; margin-top: 5rem; border-top: 8px solid var(--primary-red); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { height: 70px; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-brand p { color: #a19593; margin-bottom: 1.5rem; line-height: 1.6; }

.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background: var(--primary-red); border-color: var(--primary-red); transform: translateY(-3px); }

.footer-contact h3, .footer-map h3 { color: var(--accent-gold); margin-bottom: 1.5rem; font-size: 1.3rem; }
.footer-contact ul { list-style: none; }
.footer-contact li { margin-bottom: 1.2rem; color: #a19593; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.footer-contact i { color: var(--primary-red); font-size: 1.2rem; }
.phone-link { color: #a19593; transition: color 0.3s; }
.phone-link:hover { color: #fff; }

.map-wrapper { height: 220px; border-radius: 15px; overflow: hidden; border: 2px solid rgba(255,255,255,0.1); }
.footer-bottom { background: #0c0808; text-align: center; padding: 1.5rem 0; color: #6d5b59; font-size: 0.95rem; }

.fade-up { opacity: 0; transform: translateY(40px); transition: 0.6s ease-out; }
.fade-up.active { opacity: 1; transform: translateY(0); }

/* ======================================================== */
/* ===== تحسينات فائقة الدقة لشاشات الجوال (Mobile) ===== */
/* ======================================================== */
@media (max-width: 992px) {
    .luxury-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links, .footer-contact li { justify-content: center; }
}

@media (max-width: 768px) {
    /* ضبط الهيدر للجوال ليحتوي اللوجو والاسم بشكل سليم */
    .main-header { padding: 0.5rem 0; }
    .header-content { height: 60px; }
    .brand-logo-wrapper img { height: 35px !important; }
    .brand-ar { font-size: 1.1rem; }
    .brand-en { font-size: 0.7rem; }
    
    .hide-mobile { display: none; }
    .header-contact { gap: 8px; }
    .btn-outline, .btn-whatsapp { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
    
    /* ضبط كبسولة الناف بار */
    .nav-container-wrapper { top: 80px; }
    .category-nav { border-radius: 40px; padding: 0 0.5rem; width: 95%; max-width: 100%; }
    
    /* ضبط الهيرو */
    .hero { height: auto; padding: 4rem 0; margin-top: 100px; }
    .hero-content-wrapper { gap: 2rem; text-align: center; align-items: center; }
    .hero-text h1 { font-size: 2.6rem; }
    .delivery-glass-box { width: 100%; padding: 1.5rem; }
    .luxury-app-btn { width: 100%; }
    
    .section-title { font-size: 2rem; }
    
    /* التصميم الاحترافي للأطباق في الجوال */
    .luxury-list { grid-template-columns: 1fr; gap: 1.2rem; }
    .fine-item { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
    
    .item-visual { width: 85px; height: 85px; }
    
    .item-header-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .item-title { font-size: 1.1rem; white-space: normal; line-height: 1.3; }
    .item-title small { display: inline-block; margin-top: 3px; }
    .item-dots { display: none; } 
    .item-price { font-size: 1.15rem; margin-top: 2px; }
    
    /* قص النص بشكل آمن */
    .item-desc { font-size: 0.85rem; margin-bottom: 8px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; } 
    
    .btn-more { padding: 0.3rem 1rem; font-size: 0.85rem; width: fit-content; }
    
    .fine-item.text-only { padding: 15px; }
}