/* --- 1. LOCAL FONT DECLARATION --- */
/* ASSUMPTION: You have your font files (e.g., .woff2) 
    in a folder named 'fonts/' relative to this style.css file.
*/
/* Font 1: Used for general body and menu items */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
/* Font 2: Used for Hero Title */
@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
/* Font 3: Used for Arabic Nav Links */
@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}


/* --- 2. GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #5C3A21; /* Dark Coffee Brown */
    --accent-color: #E0C7A6;  /* Cream/Tan */
    --link-hover-color: #f59e0b; /* Amber-600 equivalent */
    --light-bg: #F9F7F5;      /* Off-White Background */
    --dark-text: #333;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 6px 18px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- 3. TOP NAVIGATION BAR (New Section) --- */

.top-nav {
    background-color: white;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 50; /* Higher than category tabs */
}

.nav-container {
    max-width: 1200px; /* max-w-6xl equivalent */
    margin: 0 auto; /* mx-auto */
    padding: 0 16px; /* px-4 sm:px-6 lg:px-8 equivalent */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px; /* h-16 equivalent */
}

.nav-logo-area {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 64px; /* w-16 equivalent */
    height: 64px; /* h-16 equivalent */
    margin-right: auto;
    margin-bottom: 0; 
    padding: 8px; /* p-2 equivalent */
    border-radius: 13px; /* rounded-[13px] equivalent */
}

.nav-links-desktop {
    display: none; /* hidden by default */
    align-items: center;
    gap: 24px; /* space-x-6 equivalent */
}

.nav-link {
    font-family: 'Cairo', sans-serif; 
    text-decoration: none;
    color: var(--dark-text);
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--link-hover-color);
}

.nav-mobile-toggle {
    display: block; /* Shown by default */
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #4a5568; /* gray-600 equivalent */
}

/* Mobile Dropdown Menu */
.mobile-menu-dropdown {
    display: none;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eee;
}

.mobile-menu-dropdown.active {
    display: flex;
}

.mobile-nav-link {
    font-family: 'Cairo', sans-serif; 
    text-decoration: none;
    color: var(--dark-text);
    padding: 12px 20px;
    border-bottom: 1px solid #f7f7f7;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--accent-color);
}

/* Display desktop links and hide mobile button on medium screens and up */
@media (min-width: 768px) { /* md equivalent */
    .nav-links-desktop {
        display: flex;
    }
    .nav-mobile-toggle {
        display: none;
    }
}

/* --- 4. HERO HEADER (New Section) --- */

.hero-header {
    position: relative;
}

.hero-wood {
    height: 320px; /* h-80 equivalent */
    background-image: url('/assets/bg_image.jpg'); /* Example placeholder background image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* bg-black bg-opacity-40 equivalent */
    border-radius: 12px; /* rounded-xl equivalent */
    padding: 32px; /* p-8 equivalent */
    text-align: center;
    max-width: 90%;
}

.hero-logo {
    width: 112px; /* w-28 equivalent */
    height: 112px; /* h-28 equivalent */
    margin: 0 auto 16px; /* mx-auto mb-4 equivalent */
    background-color: white;
    padding: 8px; /* p-2 equivalent */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* shadow-lg equivalent */
    border-radius: 13px; /* rounded-[13px] equivalent */
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 2.25em; /* 4xl equivalent */
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    margin-top: 12px; /* mt-3 equivalent */
    color: white;
    font-size: 1.125em; /* text-lg equivalent */
}

@media (min-width: 768px) { /* md equivalent */
    .hero-title {
        font-size: 3em; /* 5xl equivalent */
    }
}

/* --- 5. CATEGORY TABS NAVIGATION (Modified existing section) --- */

.category-tabs-container {
    position: sticky;
    top: 64px; /* Stick below the main nav bar (which is 64px high) */
    z-index: 40;
    background-color: white;
    box-shadow: var(--shadow-deep);
    padding: 10px 0;
    border-bottom: 2px solid var(--accent-color);
}
/* ... rest of the existing category tabs and menu styles follow ... */

/* --- 6. MENU CONTENT SECTIONS (Existing Section) --- */

.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* ... rest of the menu-content styling ... */


/* --- 1. LOCAL FONT DECLARATION --- */
/*
    ASSUMPTION: You have your font files (e.g., 'Montserrat-Regular.woff2') 
    in a folder named 'fonts/' relative to this style.css file.
*/
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2'),
         url('fonts/montserrat-v31-latin-regular') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Bold Weight */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2'),
         url('fonts/montserrat-v31-latin-regular.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* --- 2. GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #5C3A21; /* Dark Coffee Brown */
    --accent-color: #E0C7A6;  /* Cream/Tan */
    --light-bg: #F9F7F5;      /* Off-White Background */
    --dark-text: #333;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 6px 18px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- 3. HEADER & MAIN LAYOUT --- */
.menu-header {
    text-align: center;
    padding: 30px 20px 10px;
    background-color: var(--primary-color);
    color: white;
}

.menu-header h1 {
    font-size: 2.5em;
    font-weight: 700;
}

main.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 4. HORIZONTAL TABS NAVIGATION --- */

/* Container for tabs (Fixed at the top on scroll) */
.category-tabs-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: var(--shadow-deep);
    padding: 10px 0;
}

.category-tabs {
    list-style: none;
    display: flex; /* Horizontal layout */
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 0 10px;
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for aesthetics */
}

.tab-item {
    flex-shrink: 0; /* Prevent tabs from shrinking */
    scroll-snap-align: start;
    margin: 0 5px;
}

.tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--dark-text);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

/* Active and Hover States */
.tab-link:hover {
    background-color: var(--accent-color);
}

.tab-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.tab-link.active .tab-icon {
    /* Change icon color for active state if using pseudo-elements */
    color: white; 
}

/* Tab Icon Styling */
.tab-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
    /* Use a symbol/emoji or a custom font icon here */
    display: inline-block;
}

/* Pseudo-element Icons (Simple approach, can use custom fonts like FontAwesome instead) */
/* Example using emojis/symbols for simple icons */
.icon-hot::before { content: '🔥'; }
.icon-cold::before { content: '🧊'; }
.icon-soda::before { content: '🥤'; }
.icon-frappe::before { content: '🍦'; }
.icon-kids::before { content: '🧸'; }
.icon-sweet::before { content: '🍰'; }
.icon-pastry::before { content: '🥐'; }
.icon-default::before { content: '⭐'; }

/* Text Styling */
.tab-text, .tab-text-ar {
    font-size: 0.8em;
    white-space: nowrap;
    text-align: center;
}

.tab-text-ar {
    font-size: 0.7em;
    color: rgba(0, 0, 0, 0.6); /* Slightly muted for secondary language */
}

.tab-link.active .tab-text-ar {
    color: rgba(255, 255, 255, 0.8);
}

/* --- 5. MENU CONTENT SECTIONS --- */

.category-section {
    display: none; /* Hide all sections by default */
    padding-top: 20px;
}

.category-section.active {
    display: block; /* Show the active section */
}

.category-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.menu-items-grid {
    display: grid;
    /* Two columns by default on larger screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

/* Menu Item Card */
.menu-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    padding: 15px;
    gap: 15px;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--accent-color); /* Placeholder color */
}

.item-details {
    flex-grow: 1;
    min-width: 0; /* Allows content to shrink */
}

.item-name {
    /* --- MODIFIED START --- */
    display: block; /* Change from flex to block for vertical stacking */
    /* Remove 'justify-content: space-between;' */
    /* --- MODIFIED END --- */
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 5px;
}

.item-name span:last-child {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-left: 10px;
}

.item-description {
    font-size: 0.9em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.item-price {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary-color);
    padding-left: 10px;
    flex-shrink: 0;
}

/* --- 6. MEDIA QUERIES (For Responsiveness) --- */

/* Adjust grid for smaller screens (e.g., tablets/mobile) */
@media (max-width: 768px) {
    .menu-items-grid {
        /* Single column layout on mobile */
        grid-template-columns: 1fr; 
    }

    .menu-item {
        flex-direction: row; /* Keep the item layout horizontal */
    }

    .category-tabs {
        padding: 0 5px;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .menu-header h1 {
        font-size: 2em;
    }
    
    .tab-link {
        padding: 8px 10px;
    }
    
    /* Make the text smaller on tiny screens */
    .tab-text {
        font-size: 0.75em;
    }
    .tab-text-ar {
        display: none; /* Hide Arabic text in tabs on smallest screens */
    }
    
    .item-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .item-price {
        font-size: 1em;
    }
}


/* --- 7. MENU CONTENT STYLES (Existing Section) --- */
/* ... existing styles for .category-section, .menu-items-grid, .menu-item, etc. ... */
/* NOTE: The styling for these sections remains mostly the same as the previous response. */

.category-section {
    display: none; 
    padding-top: 20px;
}

.category-section.active {
    display: block; 
}

.category-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

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

/* --- 8. FOOTER STYLES --- */

.site-footer {
    background-color: #5C3A21; /* bg-gray-900 equivalent */
    color: white;
    margin-top: 48px; /* mt-12 equivalent */
    padding-top: 32px; /* py-8 top padding */
}

.footer-container {
    max-width: 1200px; /* max-w-6xl equivalent */
    margin: 0 auto; /* mx-auto */
    padding: 0 16px; /* px-4 */
    display: flex;
    flex-direction: column; /* flex-col by default */
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px; /* py-8 bottom padding */
}

.footer-info {
    text-align: center; /* text-center by default */
}

.footer-title {
    font-size: 1.125em; /* text-lg equivalent */
    font-weight: 600; /* font-semibold equivalent */
}

.footer-contact {
    color: #9ca3af; /* text-gray-400 equivalent */
}

.footer-link {
    color: #9ca3af; /* text-gray-400 equivalent */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover,
.social-icon:hover {
    color: var(--link-hover-color); /* hover:text-amber-400 equivalent (using existing variable) */
}

.footer-social {
    display: flex;
    gap: 24px; /* space-x-6 equivalent, setting gap explicitly */
    margin-top: 16px; /* mt-4 equivalent */
}

.social-icon {
    color: white;
    font-size: 1.5em; /* text-2xl equivalent */
    transition: color 0.2s;
}

.footer-copyright {
    text-align: center;
    font-size: 0.875em; /* text-sm equivalent */
    color: #E0C7A6; /* text-gray-500 equivalent */
    padding-bottom: 24px; /* pb-6 equivalent */
}

/* Media Query for Desktop Footer Layout */
@media (min-width: 768px) { /* md equivalent */
    .footer-container {
        flex-direction: row; /* md:flex-row */
    }

    .footer-info {
        text-align: left; /* md:text-left */
    }

    .footer-social {
        margin-top: 0; /* md:mt-0 */
    }
}