@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #4A2C2A;
    --secondary: #D9A066;
    --accent: #FF8C00;
    --bg-light: #FFFDF9;
    --text-dark: #2D1B1A;
    --text-light: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px 0 rgba(74, 44, 42, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(74, 44, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(74, 44, 42, 0.4);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #FFFDF9 0%, #F5E6DA 100%);
    position: relative;
    padding: 60px 20px;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out, float 4s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-btns {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Menu Page Styles */
.menu-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 15px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.menu-header-logo {
    height: 50px;
    width: auto;
}

.menu-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px 100px 15px;
    /* Bottom padding for mobile thumb space */
}

.menu-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 100%;
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }

    50% {
        background-color: #e0e0e0;
    }

    100% {
        background-color: #f0f0f0;
    }
}

.menu-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    animation: pulse 1.5s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-img {
    height: 100%;
    /* Height becomes width when rotated */
    width: auto;
    object-fit: contain;
    /* Key to not cutting off the image */
    transform: rotate(90deg) scale(1.35);
    /* Zoom in to make it look larger */
    transition: var(--transition);
}

.menu-info {
    padding: 20px;
}

.menu-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    background: #FFF5EC;
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
}

.ingredients {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
    margin-top: 10px;
}

/* Contact Section (Home Page) */
.contact-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border-radius: 15px;
    background: #FFFDF9;
    border: 1px solid rgba(74, 44, 42, 0.05);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-item i {
    width: 20px;
    height: 20px;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Tabbed Navigation (Menu Page) */
.tab-container {
    position: sticky;
    top: 114px;
    /* Matches header height */
    z-index: 99;
    padding: 15px 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(74, 44, 42, 0.15);
    background: white;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.menu-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.menu-section.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-select {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(74, 44, 42, 0.2);
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* RTL Support (Arabic) */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-subtitle,
[dir="rtl"] .ingredients {
    text-align: right;
}

[dir="rtl"] .menu-item-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .price {
    margin-right: 10px;
    margin-left: 0;
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: auto;
    /* Pushes footer down in flex container */
}

.footer-content {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Base Responsive */
@media (min-width: 769px) {

    .menu-grid,
    .menu-section {
        max-width: 500px;
        margin: 0 auto;
    }
}