@import url('https://fonts.googleapis.com/css2?family=Garamond:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* General Body Styles */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Garamond', serif;
    margin: 0;
    background-color: #2b2b2b; /* Dark background for a classy feel */
    color: #e0e0e0;
    overflow-x: hidden;
}

.no-transition * {
    transition: none !important;
}

/* Header and Navigation */
header {
    background-color: transparent;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    width: 100%; /* Changed to 100% */
    z-index: 1000;
    display: flex;
    justify-content: center; /* Center navigation */
    align-items: center;
    transition: background-color 0.4s, padding 0.4s, opacity 1s ease-out;
    opacity: 1; /* Visible by default */
}

/* Hide header only on home page for initial animation */
body.home-page header {
    opacity: 0;
}

body.content-visible header {
    opacity: 1;
}

/* Make language switcher always visible on homepage during animation */
body.home-page .lang-switcher {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1003 !important;
}

header.scrolled {
    background-color: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    border-bottom: 1px solid #444;
}


.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.desktop-nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #c5a880;
}

/* Mobile Menu Icon */
.mobile-menu-icon {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    left: 20px; /* Adjusted position for better placement */
    z-index: 1100;
}

.mobile-menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Align to the top */
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    padding: 60px 0 20px; /* Padding for content below header */
    background-color: rgba(20, 20, 20, 0.85); /* Slightly more discreet */
    backdrop-filter: blur(10px);
    z-index: 1050;
    justify-content: flex-start; /* Align items to the top */
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    overflow-y: auto; /* Enable scrolling for long content */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 100%; /* Ensure list takes full width */
}

.mobile-nav ul li {
    margin: 25px 0;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-nav ul li a:hover {
    color: #c5a880;
}

/* Hero Section */
#hero {
    background-color: #000; /* Start with a black background */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    transition: background-image 1s ease-in-out; /* Transition for the background image */
}

#hero.loaded {
    background: url('images/IMG_20250731_174030.webp') no-repeat center center/cover;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

#hero > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

body.content-visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}

#hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInTitle 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.service-bubble {
    background: rgba(197, 168, 128, 0.8);
    color: #111;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-review {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-size: 0.9rem;
    z-index: 1001; /* Ensure it's above the header */
    transition: opacity 1s ease-out;
    opacity: 1; /* Visible by default */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        width: 100%; /* Changed to 100% */
        justify-content: flex-end; /* Align items to the right */
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
    }

    #hero h1 {
        font-size: 3rem;
        margin-top: -100px; /* Move title higher */
    }

    #hero p {
        font-size: 1.2rem;
    }

    .hero-review {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        text-align: center;
    }

    .content-section {
        padding: 40px 20px;
    }

    .image-text-section {
        flex-direction: column !important; /* Force images below text for all sections on mobile */
        margin-bottom: 60px;
        gap: 30px;
    }

    .image-text-section .text-content,
    .image-text-section .image-content {
        width: 100%; /* Ensure full width */
        flex: none !important; /* Remove flex behavior and force it */
    }

    .image-text-section h3 {
        font-size: 2rem;
    }

    .image-text-section p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .service-bubble {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    /* Menu Page Specific Adjustments for Mobile */
    .menu-category li {
        flex-direction: column; /* Stack name/description and price vertically */
        align-items: flex-start; /* Align items to the left */
    }

    .menu-item-name {
        width: 100%; /* Allow name to take full width */
        word-wrap: break-word; /* Break long words */
    }

    .menu-item-description {
        width: 100%; /* Allow description to take full width */
        word-wrap: break-word; /* Break long words */
        margin-bottom: 5px; /* Add some space between description and price */
    }

    .menu-item-price {
        padding-left: 0; /* Remove left padding when stacked */
        align-self: flex-end; /* Align price to the right */
    }

    .lang-switcher {
        position: fixed; /* Ensure fixed on mobile too */
        top: 15px;
        right: 20px;
        z-index: 1100;
    }
}

.lang-switcher {
    position: fixed; /* Changed to fixed */
    top: 20px;
    right: 50px;
    z-index: 1002; /* Ensure it's above the header and mobile menu icon */
}

.lang-switcher button {
    background-color: rgba(197, 168, 128, 0.8);
    color: #111;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher button:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.lang-switcher button:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.lang-switcher button:hover {
    background-color: #c5a880;
    color: white;
}

.lang-switcher button.active {
    background-color: #c5a880;
    color: white;
    border: 1px solid white;
}

/* Hide review only on home page for initial animation */
body.home-page .hero-review {
    opacity: 0;
    transition: opacity 1s ease-out 2s; /* Delay review appearance by 2 seconds */
}

body.content-visible .hero-review {
    opacity: 1;
}

/* Hide reviews when scrolling down on homepage */
body.home-page .hero-review {
    transition: opacity 1s ease-out 2s; /* Delay for initial appearance, quick for scroll */
}

body.home-page.scrolled .hero-review {
    opacity: 0 !important;
}
.hero-review p { font-style: italic; margin: 0; font-size: 0.9rem; }
.hero-review span { display: block; margin-top: 10px; font-weight: bold; }


/* Buttons */
.cta-button {
    background-color: #c5a880;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #c5a880;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    margin-top: 20px;
    display: inline-block;
}

.cta-button:hover {
    background-color: transparent;
    color: #c5a880;
    transform: translateY(-3px);
}

/* General Section Styling */
.content-section {
    padding: 80px 20px; /* Reduced horizontal padding */
    max-width: 1400px;
    margin: 0 auto;
    background-color: transparent;
}

main {
    min-height: 80vh;
}

h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
    color: #c5a880;
}

/* Image with Text Section */
.image-text-section {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 50px;
}
.image-text-section .text-content {
    flex: 1;
}
.image-text-section .image-content {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}
.image-text-section .image-content img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.image-text-section:hover .image-content img {
    transform: scale(1.1);
}
.image-text-section:nth-child(odd) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .image-text-section {
        flex-direction: column !important; /* Force images below text for all sections on mobile */
        margin-bottom: 60px;
        gap: 30px;
    }

    .image-text-section .text-content,
    .image-text-section .image-content {
        display: block; /* Force stacking on mobile */
        width: 100%; /* Ensure full width */
        flex: none !important; /* Remove flex behavior and force it */
    }

    .image-text-section:nth-child(odd) {
        flex-direction: column !important; /* Ensure images are below text for odd sections on mobile */
    }
}
.image-text-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #c5a880;
}
.image-text-section p {
    line-height: 1.7;
    font-size: 1.1rem;
}


/* Menu Page */
#menu {
    text-align: left;
    background: #1f1f1f;
    padding: 50px;
    border-radius: 8px;
}

.menu-category {
    margin-bottom: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}
.menu-category:last-child { border-bottom: none; }

.menu-category h3 {
    font-size: 2.2rem;
    color: #c5a880;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.menu-category ul { list-style: none; padding: 0; }
.menu-category li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.menu-item-name { font-weight: bold; }
.menu-item-price { color: #c5a880; font-weight: bold; padding-left: 20px; }
.menu-item-description {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
    min-height: 1.2em; /* Ensure space even if description is empty */
}


/* Contact & Recruitment */
#contact-info, #recruitment-form {
    background: #1f1f1f;
    padding: 50px;
    border-radius: 8px;
}
#contact-info p {
    font-size: 1.2rem;
    line-height: 1.8;
}
#contact-info a {
    color: #c5a880;
    text-decoration: none;
}
.opening-hours {
    text-align: center;
}

form {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: left;
}
form label { display: block; margin-bottom: 8px; font-weight: bold; color: #ccc; }
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #333;
    color: #eee;
}
input[type="file"] {
    background: #c5a880;
    color: #111;
}
::-webkit-file-upload-button {
   background: #333;
   color: #eee;
   border: none;
   padding: 10px;
   border-right: 1px solid #555;
   cursor: pointer;
}
form input[type="submit"] {
    width: auto;
    border: 1px solid #c5a880;
    cursor: pointer;
}

/* Legal Mentions Page */
.mentions-legales, .legal-mentions {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 60px auto;
    background: #1f1f1f;
    border-radius: 8px;
}

.mentions-legales h1, .legal-mentions h1 {
    font-size: 3rem;
    color: #c5a880;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.mentions-legales h2, .legal-mentions h2 {
    font-size: 2rem;
    color: #c5a880;
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.mentions-legales p, .legal-mentions p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

footer a {
    color: #c5a880;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #e0e0e0;
}

/* Animations */
/* Animations */
@keyframes fadeInBackground {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Page Specific Styles */
.gallery-hero {
    background: url('images/IMG_20250731_174030.webp') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.gallery-hero > * {
    position: relative;
    z-index: 2;
}

.gallery-hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.gallery-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.gallery-sections {
    padding-top: 40px;
}

.gallery-category {
    margin-bottom: 80px;
}

.gallery-category h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

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

.gallery-grid img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 3rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }

    .gallery-category h2 {
        font-size: 2.2rem;
    }

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

    .gallery-grid img {
        height: 150px;
    }
}

/* Form Message Styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}
