@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700;800;900&display=swap');

:root {
    --red: #c0392b;
    --gold: #d4af37;
    --black: #0a0a0a;
    --dark: #161616;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    /* نقشة هندسية إسلامية (تعشيق ماشرابية بنجمة ثمانية) بألوان اللوجو - ذهبي/أصفر + لمسة حمراء */
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(-45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(0deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        linear-gradient(180deg, #000000 0%, #1c1c1c 35%, #1c1c1c 65%, #000000 100%);
    background-attachment: fixed, fixed, fixed, fixed, scroll;
    color: white;
    direction: rtl;
    position: relative;
    min-height: 100vh;
}

/* خطوط ذهبية رفيعة على حواف الصفحة - تضيف طابع راقي للخلفية الجانبية */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.55) 12%,
        rgba(212, 175, 55, 0.9) 50%,
        rgba(212, 175, 55, 0.55) 88%,
        transparent 100%);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
    pointer-events: none;
    z-index: 1;
}

body::before { right: 0; }
body::after { left: 0; }

a {
    text-decoration: none;
}

/* Navigation */
nav {
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(-45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(0deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        linear-gradient(var(--dark), var(--dark));
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 15px 10px;
    gap: 25px;
}

nav ul li a {
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--red);
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    background-size: cover;
    padding: 20px;
}

/* شعار الاسم الرئيسي - هوية بصرية احترافية لسلسلة مطاعم */
header {
    text-align: center;
    padding: 22px 0 16px;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(-45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(0deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        linear-gradient(180deg, #000 0%, var(--dark) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.neon-text {
    display: inline-block;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #f7e7b4 0%, var(--gold) 45%, #9c7a1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 6px;
    position: relative;
    padding-bottom: 10px;
}

.neon-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* داخل الهيرو بالصفحة الرئيسية، الخط أكبر وبدون الخلفية الداكنة المنفصلة */
.hero .neon-text {
    font-size: 3.4rem;
}

/* تجميع الشعار + الاسم في الصفحة الرئيسية بشكل منظم */
.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 150px;
    width: auto;
    margin-bottom: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #eee;
    margin: 0;
}

/* Animated logo */
.animated-logo {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Buttons */
.btn-primary, .btn-outline {
    padding: 18px 45px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
}

.btn-primary {
    background: var(--red);
    color: white;
    border: 2px solid var(--red);
}

.btn-outline {
    border: 3px solid white;
    color: white;
}

/* زرار الإضافة للسلة/الطلب - يستخدم في المنيو والعروض والجزارة وصفحة الوظائف */
.btn-order {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: 0.25s ease;
}

.btn-order:hover {
    background: var(--gold);
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Generic page sections (menu, offers, branches, jobs, butchery) */
.page-header {
    text-align: center;
    padding: 50px 20px 20px;
}

.page-header h1 {
    color: var(--gold);
    font-size: 4.3rem;
}

.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--dark);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.card h3 {
    color: var(--gold);
    margin-top: 0;
}

.price {
    color: var(--red);
    font-weight: bold;
    font-size: 1.2rem;
}

form.job-form, form.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

form input, form textarea, form select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: var(--dark);
    color: white;
    font-family: inherit;
}

form button {
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: var(--red);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 25px;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(-45deg, rgba(255, 209, 0, 0.13) 0px, rgba(255, 209, 0, 0.13) 2px, transparent 2px, transparent 36px),
        repeating-linear-gradient(0deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        repeating-linear-gradient(90deg, rgba(192, 57, 43, 0.09) 0px, rgba(192, 57, 43, 0.09) 1.5px, transparent 1.5px, transparent 36px),
        linear-gradient(var(--dark), var(--dark));
    color: #999;
    margin-top: 40px;
}

/* عدّاد الكمية (+/-) داخل بطاقات المنتجات وجدول السلة */
.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.qty-btn {
    background: var(--red);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.qty-btn.small {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
}

.qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: bold;
    color: #1a1a1a;
}

.order-table .qty-val {
    color: var(--red);
}

/* ===== بطاقة الصنف الموحدة (المنيو / الجزارة / العروض) ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--gold);
    text-align: center;
    color: #1a1a1a;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.item-card h3, .item-card h4 {
    color: var(--red);
    margin: 12px 0 6px;
}

.item-card input.note-in,
.item-card select.rice-sel {
    width: 100%;
    padding: 8px 10px;
    margin: 6px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: white;
}

.item-card select.rice-sel {
    cursor: pointer;
    font-weight: bold;
    border-color: var(--gold);
}

.item-card .offer-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    margin: 8px 0;
    height: 55px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* عداد العرض المحدود (تايمر) */
.timer-box {
    background: var(--black);
    color: var(--gold);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px;
    border-radius: 8px;
    margin: 8px 0;
}

/* ===== أيقونة السلة العائمة الموحدة (تظهر في كل الصفحات) ===== */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--red);
    color: white;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 9999;
    text-decoration: none;
    border: 2px solid var(--gold);
    visibility: hidden;
}

.floating-cart .fcart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--gold);
    color: black;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* تنبيه الإضافة للسلة (Toast) */
#toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: none;
    z-index: 3000;
}

/* جدول استعراض السلة - يسمح بالتمرير الأفقي على الشاشات الصغيرة بدل تكسير التصميم */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================== توافق الموبايل (أندرويد/آيفون) ===================== */
@media (max-width: 600px) {
    body::before,
    body::after {
        display: none;
    }

    nav ul {
        gap: 12px;
        padding: 10px 6px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    .neon-text {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }

    .hero .neon-text {
        font-size: 2.3rem;
    }

    .hero-logo {
        height: 100px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .btn-primary, .btn-outline {
        padding: 14px 26px;
        font-size: 0.95rem;
    }

    .page-header h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 20px 12px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .item-card img {
        height: 160px;
    }

    .floating-cart {
        width: 60px;
        height: 60px;
        bottom: 14px;
        right: 14px;
    }

    .floating-cart .fcart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .order-table {
        font-size: 0.75rem;
    }

    .order-table th, .order-table td {
        padding: 6px 4px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }
}
