/* === Earthy Luxury V2 (Compact Cards & Splash Screen) === */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #F8F5F0; /* Soft creamy paper */
    --text-main: #2A1F1A; /* Deep roasted brown */
    --text-muted: #7A6960; /* Soft taupe */
    --accent: #B86B4D; /* Warm Terracotta */
    --gold: #C29B62; /* Copper Gold */
    --gold-light: rgba(194, 155, 98, 0.2);
    --border-color: #E2DCD3; /* Soft sepia line */
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Luxurious Splash Screen === */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--text-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo-container {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    background: var(--bg-color);
}

.golden-ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation: spinRing 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    z-index: 1;
}

.golden-ring::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.splash-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.splash-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--bg-color);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Ultra-Luxurious Hero Section === */
.hero-wrapper {
    padding: 20px;
    background-color: var(--bg-color);
}

.hero-section {
    height: 40vh;
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(42, 31, 26, 0.15);
    border: 1px solid var(--gold);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(194, 155, 98, 0.5);
    border-radius: 16px;
    z-index: 2;
    pointer-events: none;
}

.hero-image {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.7) contrast(1.1);
    animation: slowPan 30s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes slowPan {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-3%, -3%) scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(42, 31, 26, 0.3) 0%, rgba(42, 31, 26, 0.8) 100%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gold) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.15;
    animation: floatingDust 15s linear infinite;
    pointer-events: none;
}

@keyframes floatingDust {
    0% { background-position: 0 0; }
    100% { background-position: 150px -150px; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    margin-top: 5vh;
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.hero-title span {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* === UNPRECEDENTED Floating Vertical Sidebar === */
.nav-container {
    position: fixed;
    top: 50%;
    right: 15px; /* Stick to the right edge */
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(42, 31, 26, 0.4);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 5px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    /* Sideways Arabic Text (Unprecedented) */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 2px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 50%; right: -10px;
    width: 2px; height: 0;
    background: var(--gold);
    transition: all 0.4s ease;
    transform: translateY(-50%);
    border-radius: 2px;
}

.tab-btn.active {
    color: var(--text-main);
    transform: rotate(180deg) translateX(-5px);
    background: transparent;
    text-shadow: 0 4px 10px rgba(194, 155, 98, 0.3);
}

.tab-btn.active::after {
    height: 100%;
}

/* === Fine Dining Layout (NO CARDS) === */
.menu-section {
    display: none;
    padding: 20px 70px 100px 20px; /* Space on right for the sidebar */
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInSection 0.6s ease forwards;
}

.menu-section.active {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@keyframes fadeInSection {
    to { opacity: 1; }
}

/* Fine Dining Floating Item */
.fine-dining-item {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: slideUpFade 0.8s ease forwards;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px;
    border-radius: 60px 15px 15px 60px;
}

.fine-dining-item:hover {
    transform: translateX(8px);
    background: rgba(194, 155, 98, 0.05); /* Soft gold background */
    box-shadow: -5px 10px 25px rgba(194, 155, 98, 0.1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fd-img-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fine-dining-item:hover .fd-img-box {
    transform: scale(1.1) rotate(5deg);
}

.fd-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fd-badge {
    position: absolute;
    top: 0; right: -5px;
    background: var(--gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(194, 155, 98, 0.4);
}

.fd-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fd-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 5px;
    width: 100%;
}

.fd-title {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.fd-dotted-line {
    flex: 1;
    border-bottom: 2px dotted rgba(194, 155, 98, 0.5);
    margin-bottom: 6px;
    min-width: 20px;
    transition: all 0.4s ease;
}

.fine-dining-item:hover .fd-dotted-line {
    border-bottom: 2px solid var(--gold);
    opacity: 0.8;
}

.fd-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.fd-price small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fd-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fd-add-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fine-dining-item:hover .fd-add-btn {
    background: var(--gold);
    color: #fff;
    transform: rotate(90deg);
}

.item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.item-title {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--text-main);
}

.item-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.item-meta, .item-desc {
    display: none; /* Hide for ultra-compact look */
}

.item-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.item-price {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.currency {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.order-btn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.item-card:hover .order-btn-icon {
    background: var(--gold);
    color: #fff;
}

/* === Elegant Minimalist Modal === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(42, 31, 26, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.modal-box {
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
}

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

.modal-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.branch-btn ion-icon {
    font-size: 20px;
    color: var(--gold);
}

.branch-btn:hover {
    background: var(--gold);
    color: #fff;
}

.branch-btn:hover ion-icon {
    color: #fff;
}

.close-modal {
    position: absolute;
    top: -50px; right: 0;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Mobile specific fixes */
@media (max-width: 480px) {
    .menu-section.active {
        grid-template-columns: 1fr; /* 1 card per row on small phones */
    }
    .hero-title { font-size: 2.8rem; }
}
