/* --- 1. CONFIGURATION & RESET --- */
:root {
    --primary-brown: #4a3728;   /* Deep Espresso */
    --accent-tan: #d4a373;      /* Golden Latte */
    --bg-cream: #fefae0;        /* Soft Cream */
    --white: #ffffff;
    --text-dark: #2d241e;
    --text-muted: #666666;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* --- 2. NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-brown);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-tan);
}

/* --- 3. HERO SECTION --- */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/eds.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content button {
    background-color: var(--accent-tan);
    color: var(--white);
    border: none;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

.hero-content button:hover {
    background-color: var(--primary-brown);
    transform: translateY(-3px);
}

/* --- 4. CATEGORY FILTERS --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    border: 2px solid var(--accent-tan);
    color: var(--primary-brown);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-tan);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
    transform: translateY(-2px);
}

/* --- 5. MENU GRID & IMAGE FIX --- */
#menu {
    padding: 20px 8% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden; /* Clips the image top corners */
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* THE IMAGE FIX */
.menu-item-image {
    width: 100%;
    height: 220px; /* Fixed height for all images */
    overflow: hidden;
    background-color: #eee;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill the 220px box */
    transition: transform 0.6s ease;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-info {
    padding: 25px;
    text-align: left;
}

.menu-item-info h3 {
    color: var(--primary-brown);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.menu-item-info .price {
    color: var(--accent-tan);
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
    margin-top: 10px;
}

/* --- 6. FOOTER --- */
footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 80px 8% 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--accent-tan);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    /* Ensure the toggle is visible */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-brown);
        margin: 2px 0;
        transition: 0.3s;
    }

    /* THE FIX: Style the list specifically for mobile */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        list-style: none;
        width: 100%;
        position: absolute;
        top: 100%; /* Sits exactly below the nav bar */
        left: 0;
        background: var(--white);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 15px; /* Adds space between links */
        z-index: 1000;
    }

    /* THE FIX: When JS adds 'active', show the menu */
    .nav-links.active {
        display: flex !important;
    }

    /* Optional: Hamburger Animation to 'X' */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
/* Custom About Modal Styles */
#aboutModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--white);
}

.about-modal-img {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

#aboutModal .tagline {
    color: var(--accent-tan);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Button to trigger the modal */
.btn-about {
    background: transparent;
    border: 2px solid var(--accent-tan);
    color: var(--primary-brown);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-about:hover {
    background: var(--accent-tan);
    color: var(--white);
    transform: translateY(-2px);
}
/* Container for the Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* The Menu Card */
.menu-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* THE "FIT" FIX: This forces all images to be the same size */
.item-image-wrap {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    overflow: hidden;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents stretching/squeezing */
    object-position: center;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img {
    transform: scale(1.1); /* Nice zoom effect on hover */
}

/* Info Styling */
.menu-info {
    padding: 20px;
}

.category-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-tan);
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-info h3 {
    margin: 5px 0 10px;
    font-size: 1.25rem;
    color: var(--primary-brown);
}

.price {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1.1rem;
}

