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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

html {
    scroll-behavior: smooth; /* Still useful for anchor links within a page */
}

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

/* Add padding top to main content area to avoid overlap with fixed header */
.main-content {
    padding-top: 80px; /* Adjust based on header height */
}
/* No padding needed for hero section on homepage as it's handled differently */
.page-home .hero {
    padding-top: 80px; /* Keep padding for hero section */
}


/* Typography */
h1, h2, h3, h4 { /* Added h4 */
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    color: #fff; /* Color for hero section */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #4a4a4a;
}

h3 {
    font-size: 1.8rem; /* Slightly larger H3 */
    color: #5a5a5a;
    margin-top: 2rem; /* Add spacing above H3 */
}

h4 { /* Style for menu item titles */
    font-size: 1.3rem;
    color: #c59d5f;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #c59d5f; /* Primary accent color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.btn-primary {
    background-color: #c59d5f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #af8a51;
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background-color: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}


/* Header & Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

/* Style for the active navigation link */
.nav-menu a.active,
.nav-menu a:hover {
    color: #c59d5f;
    border-bottom: 2px solid #c59d5f;
    text-decoration: none;
}
/* Keep hover distinct if desired */
.nav-menu a:hover:not(.active) {
     border-bottom: 2px solid #e0c08f; /* Lighter border on hover if not active */
}


.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Section Styling */
.section {
    padding: 4rem 0; /* Reduced default padding slightly */
}
/* Add more padding for the first section on non-home pages */
.main-content .section:first-child {
    padding-top: 6rem;
}


.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

.bg-light {
    background-color: #f8f8f8;
}

/* Hero Section (Homepage) */
.hero {
    background: url('hero-background.png') no-repeat center center/cover;
    min-height: 80vh; /* Use min-height instead of height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* For pseudo-element overlay */
    color: #fff; /* Default text color for hero */
}

/* Add a dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1;
}

.hero-content {
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;
    max-width: 700px;
}

.hero h1 .highlight {
    color: #e0c08f; /* Highlight color for restaurant name */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Menu Preview Section (Homepage) & Full Menu Page*/
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem; /* Space below items */
}

.menu-category { /* Style for category titles on menu page */
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #4a4a4a;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.menu-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for better control */
    flex-direction: column; /* Stack elements vertically */
    height: 100%; /* Make items fill grid cell height */
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.menu-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop images nicely */
    display: block;
    margin-bottom: 1rem;
}

.menu-item h3, .menu-item h4 { /* Apply to both h3 (preview) and h4 (full menu) */
    margin-bottom: 0.5rem;
    color: #c59d5f;
    padding: 0 1rem;
}

.menu-item p {
    padding: 0 1rem;
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1; /* Allow paragraph to take up space */
    margin-bottom: 1rem;
}

.menu-item .price { /* Style for price on full menu */
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    margin-top: auto; /* Push price to the bottom */
    padding: 0 1rem;
}

/* Center the "Full Menu" button on homepage */
#menu-preview .btn-secondary {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}

/* About Section Styling */
/* Use grid-container class defined below */
.about .grid-container, .about-content.grid-container { /* Apply to preview and full page */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth slide down/up */
    }

    .nav-menu.active {
        max-height: 300px; /* Adjust as needed */
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    /* Adjust hamburger icon when menu is open */
    .nav-toggle.active .hamburger {
        background-color: transparent; /* Hide middle bar */
    }
    .nav-toggle.active .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }


    .hero {
        min-height: 80vh; /* Slightly smaller height on mobile */
    }

    .about .grid-container {
        grid-template-columns: 1fr; /* Stack elements vertically */
        gap: 2rem;
        text-align: center;
    }
     .about-image {
        order: -1; /* Move image above text */
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .menu-items {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}