/* Basic Resets & Variables */
:root {
    --primary-color: #A22C2C; /* Deep Red */
    --secondary-color: #F4D35E; /* Golden Yellow */
    --accent-color: #3B826C; /* Teal Green */
    --text-dark: #333;
    --text-light: #f8f8f8;
    --bg-light: #fefefe;
    --bg-dark: #222;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; }

/* General Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark h2, .bg-dark h3 { color: var(--secondary-color); }
.bg-dark a { color: var(--secondary-color); }

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    color: #666;
}
.bg-dark .section-description { color: #ccc; }


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #8a2525;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

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

.nav-list li {
    margin-left: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: url('images/restaurant.png') no-repeat center center / cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-sm);
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-buttons .btn {
    margin: 0 0.8rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.about-content h2 {
    text-align: left;
}
.about-content .btn {
    margin-top: 1.5rem;
}

/* Menu Section */
.menu-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.menu-categories {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-btn {
    background-color: #eee;
    color: var(--text-dark);
    border: 1px solid #ddd;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-dark);
}

.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.menu-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item h3 {
    margin: 1rem 1rem 0.5rem 1rem;
    color: var(--accent-color);
}

.menu-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 1rem 1rem 1rem;
    flex-grow: 1; /* Pushes price to bottom */
}

.menu-item .price {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 1rem 1rem 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* Specials Section */
.specials-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.special-card {
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.special-card:hover {
    transform: scale(1.02);
}

.special-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.special-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.special-card p {
    color: #555;
    font-size: 0.95rem;
    padding: 0 1.5rem;
}

.special-card .price {
    display: block;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 1rem;
}

/* Reservations Section */
.reservations-section h2, .reservations-section p {
    text-align: center;
    color: var(--text-dark); /* Override for bg-light */
}

.reservations-section.bg-light h2 { color: var(--primary-color); }

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(162, 44, 44, 0.2);
}

.reservation-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.reservation-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color); /* Default for success */
    display: none; /* Hidden by default */
}

/* Gallery Section */
.gallery-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* Contact Section */
.contact-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: var(--spacing-lg);
    background-color: #333;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-info {
    color: var(--text-light);
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.contact-info p i {
    margin-right: 0.8rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-info ul {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.8rem var(--spacing-md);
        border-bottom: 1px solid #eee;
    }
    .nav-link::after { content: none; }
    .nav-link:hover, .nav-link.active {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }
    .nav-link:last-child { border-bottom: none; }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-content h2 { text-align: center; }

    .menu-items-grid,
    .specials-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }
    .contact-map {
        margin-top: var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
    }
    .footer p {
        margin-bottom: 1rem;
    }
    .social-links a {
        margin: 0 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
    .hero-buttons .btn { margin: 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .header { padding: 0.8rem 0; }
    .logo { font-size: 1.5rem; }

    .nav-toggle { gap: 4px; }
    .nav-toggle span { width: 20px; }

    .section-padding { padding: var(--spacing-md) 0; }

    .menu-categories {
        flex-direction: column;
        gap: 0.8rem;
    }
    .category-btn {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }

    .menu-items-grid, .specials-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav Toggle Animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
