/* الألوان والخطوط */
:root {
    --gold: #D4AF37;
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
    --text-muted: #b0b0b0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* شريط التنقل */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ربط صورة الواجهة الرئيسية */
.hero-home {
    height: 100vh;
    background-image: url('our-restaurant.jpg'); 
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* --- شريط الصور المتحرك --- */
.scrolling-gallery {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background-color: #0d0d0d;
    white-space: nowrap;
}

.scrolling-track {
    display: inline-block;
    animation: scrollGallery 25s linear infinite;
}

.scrolling-track img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 15px;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

.scrolling-track img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- أنيميشن الظهور --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; } 

.active-reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- شبكة الكروت (المنيو) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.card {
    background: var(--dark-grey);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover img { transform: scale(1.1); }

/* تنسيق الكروت العادية (المشروبات) */
.card-info { 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- التنسيق الجديد للأصناف مع الوصف (الوجبات) --- */
.card-info-detailed {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.card-info-detailed h3 {
    font-size: 1.2rem;
    color: var(--gold);
}

.card-info-detailed p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 45px; /* لضمان تساوي الكروت */
}

.card-info-detailed span {
    font-weight: bold;
    color: var(--white);
    font-size: 1.1rem;
    align-self: flex-end; /* وضع السعر في الركن الأسفل */
}

/* التذييل */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
    margin-top: 50px;
}

/* صفحة التواصل */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 60px 8%;
}

.contact-info-box {
    background: var(--dark-grey);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

.booking-form {
    background: #151515;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--gold);
}

.booking-form input, .booking-form select, .booking-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}

.booking-form input:focus {
    border-color: var(--gold);
    outline: none;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid #333;
}

/* تنسيق عام للأزرار */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--black);
}/* --- تنسيقات خاصة للهواتف (Responsive Design) --- */
@media (max-width: 600px) {
    /* تصغير حجم العنوان الكبير ليناسب شاشة الجوال */
    .hero-home h1 {
        font-size: 3rem !important; 
    }

    /* جعل الأزرار تترتب فوق بعضها بدلاً من جانب بعضها */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center;
        gap: 15px !important;
    }

    /* جعل الأزرار عريضة وسهلة الضغط باللمس */
    .hero-buttons .btn {
        width: 90%; 
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* تصغير حجم الشعار قليلاً في الجوال */
    .hero-content img {
        width: 130px !important;
    }
}
/* --- تنسيقات نظام الطلبات والسلة --- */

/* أيقونة السلة العائمة */
#cart-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

#cart-icon:hover {
    transform: scale(1.1);
    background-color: #e67e22 !important;
}

/* نافذة السلة (Modal) */
#cart-container {
    font-family: 'Arial', sans-serif;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* أزرار الطلب داخل الكروت */
.order-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
    display: inline-block;
}

.order-btn:hover {
    background-color: #e68a00;
}

/* تنسيق قائمة الوجبات داخل السلة */
#cart-items-list div {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

/* تعديلات لتحسين المظهر على الجوال */
@media (max-width: 600px) {
    #cart-container {
        width: 95%;
        padding: 15px;
    }
}/* --- التعديلات الجديدة لزر الحذف وواجهة السلة --- */

/* تنسيق زر الحذف داخل السلة */
.remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background-color: #cc0000;
}

/* تنسيق عناصر السلة لجعلها مرتبة */
#cart-items-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #333; /* لون النص داخل السلة لأن خلفيتها بيضاء */
}

/* تحسين شكل مدخلات السلة (رقم الطاولة والملاحظات) */
#cart-container input, 
#cart-container select, 
#cart-container textarea {
    border: 1px solid #ddd !important;
    background-color: #f9f9f9 !important;
    color: #333 !important;
    margin-top: 5px;
}

/* زر إرسال الطلب وزر الـ PDF */
.send-btn {
    background-color: #28a745;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.pdf-btn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}