/* CSS Variables */
:root {
    --primary-color: #C1A26B; /* Muted Gold/Brass */
    --secondary-color: #A88B59; /* Slightly darker gold */
    --dark-bg: #1A1A1A; /* Charcoal Black */
    --light-bg: #F8F4ED; /* Off-white/Cream */
    --text-color-dark: #333333;
    --text-color-light: #F8F4ED;
    --light-grey: #e0e0e0;
    --dark-grey: #6B6B6B;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-grey);
    font-family: var(--font-body);
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px);
}

.button-container {
    margin-top: var(--spacing-lg);
}

/* Header & Navigation */
.main-header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--text-color-light);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-color-light);
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(2px);
    transform: scale(1.05);
    animation: zoomIn 8s ease-in-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(26,26,26,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: var(--spacing-md);
    opacity: 1;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    color: var(--light-grey);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* About Section */
.about-section {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.about-section.is-visible .about-image-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.about-image-wrapper:hover .about-image {
    filter: brightness(1);
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(255,255,255,0.0) 0%, rgba(193,162,107,0.1) 100%);
    pointer-events: none;
}

.about-content {
    padding-right: var(--spacing-md);
    transform: translateX(-20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out 0.2s;
}

.about-section.is-visible .about-content {
    transform: translateX(0);
    opacity: 1;
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-grey);
}

/* Menu Section */
.menu-section {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.menu-section .section-title,
.menu-section .section-subtitle {
    color: var(--text-color-light);
}

.menu-section .section-title::after {
    background-color: var(--primary-color);
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.menu-filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-filter-btn:hover,
.menu-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(193, 162, 107, 0.4);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.menu-item {
    background-color: var(--dark-bg); /* Darker background for card */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(193, 162, 107, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.3s ease;
}

.menu-item.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.menu-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.menu-item:hover img {
    filter: brightness(1);
    transform: scale(1.02);
}

.item-details {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-details h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.item-details p {
    color: var(--light-grey);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-details .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
    align-self: flex-end; /* Aligns price to the bottom right */
}

/* Gallery Section */
.gallery-section {
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.3s ease;
}

.gallery-item.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-color-light);
    padding: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* Reservations Section */
.reservations-section {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.reservations-section .section-title,
.reservations-section .section-subtitle {
    color: var(--text-color-light);
}

.reservations-section .section-title::after {
    background-color: var(--primary-color);
}

.reservation-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--dark-bg);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(193, 162, 107, 0.1);
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.reservations-section.is-visible .reservation-form {
    transform: translateY(0);
    opacity: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(var(--primary-color), 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(var(--text-color-light), 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 162, 107, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.reservation-submit-btn {
    width: 100%;
    margin-top: var(--spacing-md);
}

.reservation-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    color: var(--text-color-light);
    background-color: transparent; /* Hidden by default */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.reservation-message.success {
    background-color: #28a745; /* Green for success */
    opacity: 1;
}

.reservation-message.error {
    background-color: #dc3545; /* Red for error */
    opacity: 1;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info {
    padding: var(--spacing-md);
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(-20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.contact-section.is-visible .contact-info {
    transform: translateX(0);
    opacity: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

.contact-info a {
    color: var(--dark-grey);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--dark-bg);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out 0.2s;
}
.contact-section.is-visible .contact-map {
    transform: translateX(0);
    opacity: 1;
}
.contact-map iframe {
    filter: grayscale(80%) sepia(20%) brightness(90%);
    transition: filter 0.4s ease;
}
.contact-map:hover iframe {
    filter: grayscale(0%) sepia(0%) brightness(100%);
}


/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    font-size: 0.9rem;
    border-top: 1px solid rgba(193, 162, 107, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.footer-brand p {
    color: var(--light-grey);
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul a,
.footer-contact p {
    color: var(--light-grey);
    transition: color 0.3s ease;
}

.footer-nav ul a:hover,
.footer-contact p a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(var(--primary-color), 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    color: var(--dark-grey);
}

.footer-bottom .social-links {
    margin-top: 0; /* Override default margin */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

/* Scroll Reveal specific styles */
.scroll-reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        order: -1; /* Image appears first on smaller screens */
        margin-bottom: var(--spacing-md);
    }
    .about-content {
        padding-right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        order: -1; /* Map appears first on smaller screens */
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .main-header {
        padding: 0.8rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
        padding-top: 60px; /* Account for header height */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: var(--spacing-sm) 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem 0;
    }
    .nav-links a::after {
        height: 3px;
    }

    .nav-toggle {
        display: block;
    }

    .hamburger {
        background-color: transparent; /* Hide middle bar when active */
    }
    .hamburger::before,
    .hamburger::after {
        background-color: var(--primary-color);
    }

    .nav-active .hamburger::before {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .nav-active .hamburger::after {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-active .hamburger {
        background-color: transparent; /* Keep middle bar hidden */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }

    .menu-item {
        flex-direction: column;
    }
    .menu-item img {
        height: 200px;
    }

    .reservation-form {
        padding: var(--spacing-md);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .logo {
        display: inline-block;
    }
    .footer-nav ul {
        padding-left: 0;
    }
    .footer-nav ul li a {
        padding: 0.2rem 0;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-bottom .social-links {
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .menu-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .item-details h3 {
        font-size: 1.4rem;
    }
    .item-details p {
        font-size: 0.85rem;
    }
    .item-details .price {
        font-size: 1.3rem;
    }

    .social-links a {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
