/* ======= CSS Variables ======= */
:root {
    --primary-color: #722F37;
    --accent-color: #800020;
    --background-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* ======= Base Styles ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Required global smooth scrolling, though JS helps with fixed header offset */
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ======= Navbar ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

/* The JS will add this class for when the page scrolls */
.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

/* Underline hover effect for links */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ======= Hero Section ======= */
.hero {
    height: 100vh;
    background: url('../assets/paris_night.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient overlay for better text readability */
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 4rem;
    /* Offset for fixed navbar initially */
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    letter-spacing: 1.5px;
    font-weight: 300;
    font-family: var(--font-heading);
    font-style: italic;
    color: #eaeaea;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 0.9rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ======= About Section ======= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

/* Decorative background square for about image */
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
}

.about-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ======= Featured Dishes Section ======= */
.featured-dishes {
    background-color: #fcfcfc;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.dish-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
}

/* Premium hover effect */
.dish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dish-card:hover .card-image img {
    transform: scale(1.08);
    /* slight zoom */
}

.card-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.price {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ======= Footer ======= */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contrast Fix: Forcing all text elements in the footer to be white */
.footer-col h4,
.footer-col p,
.footer-col a,
.footer-bottom p {
    color: #ffffff !important;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid #ffffff;
    /* Contrast Fix: Added a solid white border */
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

/* Contrast Fix: Added hover effect so text turns red when hovered */
.social-links a:hover {
    background-color: #ffffff;
    color: var(--primary-color) !important;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* ======= Menu Page ======= */
.menu-header {
    background-color: var(--background-color);
    padding: 10rem 0 3rem;
    /* Extra top padding for fixed navbar */
    text-align: center;
}

.menu-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.menu-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-style: italic;
}

/* Filter Buttons */
.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #eaeaea;
    padding: 0.6rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 5rem;
}

.menu-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-item.hide {
    display: none;
}

/* Elegant Dotted Leader for Price */
.menu-item-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.menu-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.menu-item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #cccccc;
    margin: 0 1rem;
    position: relative;
    top: -6px;
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 700;
}

.menu-item-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ======= Responsive Design ======= */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-image::before {
        display: none;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
        /* Must sit above nav-links */
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* ======= Gallery Page ======= */
.gallery-header {
    background-color: var(--background-color);
    padding: 10rem 0 3rem;
    text-align: center;
}

.gallery-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item-wrapper {
    overflow: hidden;
    border-radius: 4px;
    /* Optional slight rounding for elegance */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #000;
    /* Dark background to pop the image */
}

.gallery-item-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.05);
    /* Smooth zoom effect */
    opacity: 1;
    /* Brighten on hover */
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* Sit above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

#lightbox-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
    /* Subtle gold border */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Additional Responsive Tweaks for Gallery Grid */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wrapper img {
        height: 250px;
        /* Slightly shorter on mobile */
    }
}

/* ======= Contact Page ======= */
.contact-header {
    background-color: var(--background-color);
    padding: 10rem 0 3rem;
    text-align: center;
}

.contact-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.contact-info h3,
.reservation-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.contact-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

.premium-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.premium-link:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.directions-link {
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-left: 0.75rem;
    transition: var(--transition);
}

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

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Reservation Form */
.reservation-form {
    background-color: #fcfcfc;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 0.8rem 0 0.4rem 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: transparent;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: calc(0.4rem - 1px);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive tweaks for Contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reservation-form {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ======= Home Mini Gallery ======= */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Share gallery item styles from Gallery Page */
/* .gallery-item-wrapper is already defined in the Gallery section above */

@media (max-width: 992px) {
    .mini-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Make the last odd item span two columns for balance */
    .mini-gallery-grid .gallery-item-wrapper:last-child:nth-child(odd) {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 600px) {
    .mini-gallery-grid {
        grid-template-columns: 1fr;
    }

    .mini-gallery-grid .gallery-item-wrapper:last-child:nth-child(odd) {
        grid-column: 1;
        /* Reset on mobile */
    }
}