/* ==========================================================================
   Import Fonts & Global Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    /* Color Palette - Modern & Clean */
    --primary: #C8102E; /* أحمر المطعم - فاتح للشهية وجذاب */
    --primary-hover: #A00D25;
    --secondary: #111111; /* أسود فخم للنصوص والعناوين */
    --bg-main: #FDFDFD; /* أوف وايت فاتح جداً لراحة العين */
    --bg-surface: #FFFFFF; /* لون البطاقات */
    --text-muted: #666666;
    --border-light: #EEEEEE;
    
    /* Shadows - Soft and Modern */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(200, 16, 46, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

body {
    background-color: var(--bg-main);
    color: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--secondary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 12px auto 0;
    border-radius: var(--radius-pill);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: var(--primary);
    color: var(--bg-surface);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-surface);
}

/* ==========================================================================
   Navbar (Glassmorphism effect)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-smooth);
}

.logo img {
    height: 55px;
    transition: transform var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary);
    color: var(--bg-surface);
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    border: 2px solid var(--bg-surface);
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--bg-surface);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.4rem;
    color: #E0E0E0;
    margin-bottom: 40px;
}

/* ==========================================================================
   Cards (Menu & Services) - The Clean Look
   ========================================================================== */
.grid-container {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.modern-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(200, 16, 46, 0.1);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background-color: var(--border-light); /* Placeholder color */
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.modern-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.add-btn {
    background-color: var(--bg-main);
    color: var(--secondary);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-btn:hover {
    background-color: var(--primary);
    color: var(--bg-surface);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* For cards with multiple sizes */
.size-options {
    display: flex;
    gap: 10px;
    width: 100%;
}

.size-btn {
    flex: 1;
    padding: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.size-btn span.s-price {
    color: var(--primary);
    font-size: 1.1rem;
}

.size-btn:hover {
    border-color: var(--primary);
    background-color: rgba(200, 16, 46, 0.05);
}

/* ==========================================================================
   Menu Filtering Tabs
   ========================================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-tab {
    padding: 10px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background-color: var(--primary);
    color: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

/* ==========================================================================
   Side Cart (Sleek Drawer)
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: -450px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-surface);
    z-index: 2000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: left var(--transition-smooth);
}

.cart-drawer.active {
    left: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    transition: all var(--transition-fast);
}

.close-cart:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    animation: fadeUp 0.3s ease forwards;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 900;
}

.remove-item {
    color: #FF4444;
    cursor: pointer;
    padding: 5px;
    transition: transform var(--transition-fast);
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-main);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 900;
}

.whatsapp-checkout {
    width: 100%;
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-checkout:hover {
    background-color: #1EBE5D;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Modals (Clean Popup Windows)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background-color: var(--bg-surface);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all var(--transition-smooth);
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.modal.active .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.modal-body {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.contact-info-card {
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.info-box {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--bg-main);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: var(--bg-surface);
    padding: 80px 5% 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: #AAAAAA;
}

.footer-title {
    color: var(--bg-surface);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #AAAAAA;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.social-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--bg-surface);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    margin-top: 15px;
}

.social-circle:hover {
    background-color: #1877F2;
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #AAAAAA;
    font-size: 0.95rem;
}

.dev-credit a {
    color: var(--bg-surface);
    font-weight: 800;
    letter-spacing: 1px;
}

.dev-credit a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 85px; /* ارتفاع النافبار */
        right: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right var(--transition-smooth);
        box-shadow: inset 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; }
    .nav-links li a { font-size: 1.3rem; }
    
    .hero { height: auto; padding: 120px 20px 80px; }
    .hero h1 { font-size: 2.5rem; }
    
    .grid-container { padding: 60px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}