/* Variable Definitions */
:root {
    --primary: #D4AF37;
    /* Metallic Gold - Kept for branding */
    --primary-hover: #b5952f;
    --bg-gradient: linear-gradient(135deg, #E3F2FD 0%, #FCE4EC 50%, #F0F4C3 100%);
    /* Blue, Pink, Beige (Lake Geneva) */
    --surface-light: rgba(255, 255, 255, 0.9);
    --surface-dark: #1e1e1e;
    /* Keep for specific dark contrasts if needed */

    --text-main: #2C3E50;
    /* Dark Blue-Grey for readability */
    --text-muted: #546E7A;
    --text-light: #f5f5f5;
    /* For dark buttons/footer */

    --white: #ffffff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

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

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    /* Parallax effect for gradient */
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    /* Changed to dark */
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
}

.section-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background: var(--text-main);
    color: var(--white);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--text-main);
}

.btn-text {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-text:hover {
    color: var(--text-main);
    gap: 15px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    /* Light glass */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
    color: var(--text-main);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.btn-res {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 20px;
    color: var(--primary) !important;
    box-shadow: none;
}

.btn-res:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 5px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn:hover {
    background: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

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

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sky Gradient Base */
    background: linear-gradient(45deg, #a1c4fd 0%, #c2e9fb 100%);
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    /* Moving Clouds */
    background: url('images/clouds.png');
    background-size: 50% auto;
    /* Ensure texture repeats smoothly */
    opacity: 0.6;
    /* Increased opacity slightly for screen blend mode */
    animation: moveClouds 60s linear infinite;
    mix-blend-mode: screen;
}

.hero-bg::after {
    content: '';
    position: absolute;
    /* Position center of rays off-screen top */
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* God Rays - Conic Gradient */
    background: repeating-conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.4) 15deg,
            transparent 30deg);
    opacity: 0.7;
    /* Much more visible */
    filter: blur(20px);
    /* Less blur to define beams */
    animation: rotateRays 40s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes moveClouds {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes rotateRays {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
    /* Keep Hero text white over dark/img background */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
    color: var(--white);
}

/* Generic Gradients */
.placeholder-gradient-1 {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.placeholder-gradient-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.placeholder-gradient-4 {
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

.placeholder-gradient-map {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    height: 100%;
    min-height: 300px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.1);
}

.feature-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    /* Lighter gradient for light mode? No, keep text readable over images with dark overlay */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--white);
}

.feature-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.check-list i {
    color: var(--primary);
}

.about-img {
    height: 500px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Menu Tabs */
.menu-section {
    background-color: var(--surface-light);
    /* Light glass bg */
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Override text color in menu section headers since they were hardcoded to white */
.menu-section .section-title {
    color: var(--text-main);
}

.text-light {
    color: var(--text-main) !important;
}

.centered-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 25px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
}

.menu-grid-items {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

.menu-grid-items.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item-card {
    background: var(--white);
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.item-header h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--text-main);
}

.item-header .price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info address {
    font-style: normal;
    margin-top: 20px;
    color: var(--text-muted);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
}

.hours {
    background: var(--white);
    padding: 30px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hours h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.hours li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    color: var(--text-muted);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer - Keep it dark for visual Anchor */
footer {
    background: #1a252f;
    padding: 50px 0 20px;
    color: #ecf0f1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.8rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--white);
    font-size: 1.2rem;
}

.socials a:hover {
    color: var(--primary);
    animation: bounce 1s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation needed if toggle is used */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--dark-bg);
        padding: 20px;
    }

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

    .mobile-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Sticky CTA */
    .sticky-cta-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        padding: 20px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 70%, transparent);
        display: flex;
        justify-content: center;
        pointer-events: none;
        /* Allow clicking through the gradient area */
    }

    .btn-sticky-full {
        pointer-events: auto;
        background: #ffffff;
        color: var(--text-main);
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 1rem;
        padding: 15px 30px;
        width: 100%;
        max-width: 400px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
    }

    .btn-sticky-full:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        background: var(--primary);
        color: var(--white);
    }

    /* Modal */
    .menu-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 3000;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .menu-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .menu-modal-content {
        background: var(--white);
        padding: 40px;
        width: 100%;
        max-width: 500px;
        border-radius: 10px;
        position: relative;
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-muted);
    }

    .modal-title {
        margin-bottom: 30px;
        color: var(--text-main);
        font-size: 2rem;
    }

    .modal-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .menu-link-card {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 20px;
        background: var(--surface-light);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        color: var(--text-main);
        font-family: var(--font-heading);
        font-weight: 600;
        text-transform: uppercase;
        transition: var(--transition);
    }

    .menu-link-card i {
        font-size: 1.5rem;
        color: var(--primary);
        width: 30px;
        text-align: center;
    }

    .menu-link-card:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .menu-link-card:hover i {
        color: var(--white);
    }
}

/* Dark Outline Button for Menu Section */
.btn-outline-dark {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

/* Modal */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.menu-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.menu-modal-content {
    background: var(--white);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-title {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    /* Explicit pointer */
    /* Ensure no underline */
}

.menu-link-card i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.menu-link-card:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.03);
    /* Mini-zoom as requested */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-link-card:hover i {
    color: var(--white);
}

/* Menu Images */
.menu-image-container {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menu-img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .menu-image-container {
        padding: 0.5rem;
    }
}

/* Back Button Styling */
.back-to-categories {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    /* Optional, matches .menu-img radius */
    margin-bottom: 20px;
    /* Space from top */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.back-to-categories:hover {
    background: var(--primary);
    color: var(--white);
}

/* Menu Gallery */
/* Menu Gallery */
.menu-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
    width: 100%;
}

/* Menu Category Visibility */
.menu-category-detail {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-category-detail.active {
    display: block;
}

.menu-img-page {
    width: 100%;
    max-height: 48vh;
    /* Ensure 2 rows fit in viewport (approx 96vh total) */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    /* Hand cursor forced */
    transition: transform 0.3s ease;
    /* Optional polish */
}

/* Hover effect for menu images */
.menu-img-page:hover {
    transform: scale(1.05);
    /* Increased mini-zoom for visibility */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Added shadow for depth */
}

/* Lightbox Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark background */
    z-index: 9999;
    /* On top of everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    /* Nice blur effect */
}

.lightbox-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-wrapper {
    position: relative;
    display: inline-block;
    /* Adjust to image size */
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
    display: block;
    /* Remove bottom space */
    cursor: none;
    /* Hide cursor when using lens */
}

.zoom-lens {
    position: absolute;
    border: 2px solid var(--primary);
    background-color: rgba(255, 255, 255, 0.2);
    /* Highlight */
    width: 350px;
    /* Lens Width */
    height: 200px;
    /* Lens Height - Rectangular */
    cursor: none;
    display: none;
    /* Hidden by default */
    pointer-events: none;
    /* Let clicks pass through */
    background-repeat: no-repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* --- Carousel Styles --- */
.carousel-container {
    position: relative;
    max-width: 500px;
    /* Reduced max-width */
    margin: 0 auto;
    margin-top: -30px;
    /* Lift it up specifically to avoid clearing taskbar */
    height: 55vh;
    /* Reduced height to 55vh */
    display: block;
    width: 600px;
    max-width: 90vw;
}

/* Flexbox was collapsing the container. Absolute buttons work better with block parent. */

.carousel-track-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

/* ... track styles ... */

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure images fit nicely in the slide */
.carousel-slide .menu-img-page {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    height: auto;
    width: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary);
}

.prev-btn {
    left: -60px;
    /* Adjusted to -60px */
}

.next-btn {
    right: -60px;
    /* Adjusted to -60px */
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .prev-btn {
        left: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .next-btn {
        right: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .carousel-container {
        height: 65vh;
        /* Increase height for mobile */
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .carousel-slide .menu-img-page {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
    position: absolute;
    bottom: -30px;
    width: 100%;
}

.carousel-indicator {
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: var(--primary);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary);
}


/* --- Subpages Common Styles --- */
.page-header {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Page Specific Headers */
.header-gallery {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/gal-1.png');
}

.header-producers {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/philosophy.png');
}

/* --- Gallery Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Modal Gallery (Separate from Lightbox) */
.modal-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-gallery img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-gallery {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: var(--primary);
}

/* --- Producers Styles --- */
.producers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.producer-card {
    background: var(--surface-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.producer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.producer-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.producer-list {
    list-style: none;
}

.producer-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
}

.producer-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.philosophy-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Global Cursor Styles --- */
html,
body {
    cursor: default;
}

a,
button,
.btn,
input[type='submit'],
input[type='button'],
select,
label {
    cursor: pointer;
}

input[type='text'],
textarea,
input[type='search'],
input[type='email'],
input[type='password'],
input[type='number'] {
    cursor: text;
}

.feature-card,
.feature-card:hover,
.feature-card img,
.feature-card .feature-text {
    cursor: default !important;
}

/* --- Dropdown Menu Styles (FIXED) --- */
.dropdown-parent {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1a1a;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999999 !important;
    /* FIXED: High Z-Index */
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    /* Adjustment */
}

.dropdown-parent:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #cca43b;
}

.dropdown-menu li a i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
    color: #cca43b;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        padding: 0;
        min-width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .dropdown-parent:hover .dropdown-menu {
        display: block;
    }
}

/* =========================================
   ANTIGRAVITY FIXES & OPTIMIZATIONS (RESTORED)
   ========================================= */

/* --- 1. Navbar Overlay Fix --- */
#navbar,
.navbar {
    overflow: visible !important;
    z-index: 200000 !important;
    /* Ensure Navbar is high but below modals */
}

.header,
.page-header,
header {
    z-index: 1 !important;
}

/* --- 2. Modal Layering --- */
#menu-modal,
.modal,
.modal-gallery {
    z-index: 200005 !important;
}

/* --- 3. Lightbox Layering --- */
#lightbox-overlay,
.lightbox-overlay {
    z-index: 300000 !important;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#lightbox-overlay.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* --- 4. Responsive Zoom Lens --- */
.zoom-lens {
    width: 22vw !important;
    height: 30vh !important;
    max-width: none !important;
    min-width: 150px !important;
    min-height: 200px !important;
    /* Position handled by JS */
}

/* --- 5. Gallery Thumbnails --- */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* --- 6. Lightbox Image & Wrapper --- */
.lightbox-image {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.lightbox-wrapper {
    position: relative !important;
    /* Critical for Zoom Lens */
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}


/* --- NUCLEAR NAVBAR FIX --- */
.navbar {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    top: 0 !important;
    position: fixed !important;
    background: rgba(255, 255, 255, 0.95) !important;
    z-index: 200000 !important;
}

.logo {
    color: var(--text-main) !important;
    display: block !important;
    opacity: 1 !important;
}

.nav-links {
    display: flex !important;
    opacity: 1 !important;
}

/* --- FINAL POLISH --- */
.navbar {
    min-height: 90px;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    opacity: 1;
    visibility: visible;
    display: block;
}


/* --- SMART ZOOM (LUXE) --- */
.zoom-lens {
    display: none !important;
}

#lightbox-overlay,
.lightbox-overlay {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    /* Clip zoomed image */
    cursor: default;
}

.lightbox-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: zoom-in;
    cursor: -webkit-zoom-in;
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Luxe Easing */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* While zooming, change cursor */
.lightbox-image.zoomed {
    cursor: zoom-out;
    cursor: -webkit-zoom-out;
}

/* While moving mouse in zoomed state, disable transition for instant response */
.lightbox-image.zoomed.moving {
    transition: none !important;
}

/* --- CUSTOM AESTHETIC CURSOR --- */
.lightbox-image {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnIHZpZXdCb3g9JzAgMCA0OCA0OCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48Y2lyY2xlIGN4PScyNCcgY3k9JzI0JyByPScyMCcgc3Ryb2tlPSd3aGl0ZScgc3Ryb2tlLXdpZHRoPScxLjUnIGZpbGw9J3JnYmEoMCwwLDAsMC4xKScgLz48cGF0aCBkPSdNMjQgMTRWMzRNMTQgMjRIMzQnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMS41Jy8+PC9zdmc+') 24 24, zoom-in !important;
}

.lightbox-image.zoomed {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnIHZpZXdCb3g9JzAgMCA0OCA0OCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48Y2lyY2xlIGN4PScyNCcgY3k9JzI0JyByPScyMCcgc3Ryb2tlPSd3aGl0ZScgc3Ryb2tlLXdpZHRoPScxLjUnIGZpbGw9J3JnYmEoMCwwLDAsMC4xKScgLz48cGF0aCBkPSdNMTQgMjRIMzQnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMS41Jy8+PC9zdmc+') 24 24, zoom-out !important;
}


/* --- REFINED CURSOR (ICON) --- */
.lightbox-image {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMzInIGhlaWdodD0nMzInIHZpZXdCb3g9JzAgMCAzMiAzMicgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZyBmaWx0ZXI9J3VybCgjc2hhZG93KSc+PGNpcmNsZSBjeD0nMTQnIGN5PScxNCcgcj0nOScgc3Ryb2tlPSd3aGl0ZScgc3Ryb2tlLXdpZHRoPScyJyBmaWxsPSdyZ2JhKDI1NSwyNTUsMjU1LDAuMSknLz48cGF0aCBkPSdNMjEgMjFMMjggMjgnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMi41JyBzdHJva2UtbGluZWNhcD0ncm91bmQnLz48cGF0aCBkPSdNMTQgMTBWMThNMTAgMTRIMTgnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMicgc3Ryb2tlLWxpbmVjYXA9J3JvdW5kJy8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9J3NoYWRvdycgeD0nMCcgeT0nMCcgd2lkdGg9JzMyJyBoZWlnaHQ9JzMyJyBmaWx0ZXJVbml0cz0ndXNlclNwYWNlT25Vc2UnPjxmZURyb3BTaGFkb3cgZHg9JzEnIGR5PScxJyBzdGREZXZpYXRpb249JzEnIGZsb29kLW9wYWNpdHk9JzAuMycvPjwvZmlsdGVyPjwvZGVmcz48L3N2Zz4=') 14 14, zoom-in !important;
}

.lightbox-image.zoomed {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMzInIGhlaWdodD0nMzInIHZpZXdCb3g9JzAgMCAzMiAzMicgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZyBmaWx0ZXI9J3VybCgjc2hhZG93KSc+PGNpcmNsZSBjeD0nMTQnIGN5PScxNCcgcj0nOScgc3Ryb2tlPSd3aGl0ZScgc3Ryb2tlLXdpZHRoPScyJyBmaWxsPSdyZ2JhKDI1NSwyNTUsMjU1LDAuMSknLz48cGF0aCBkPSdNMjEgMjFMMjggMjgnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMi41JyBzdHJva2UtbGluZWNhcD0ncm91bmQnLz48cGF0aCBkPSdNMTAgMTRIMTgnIHN0cm9rZT0nd2hpdGUnIHN0cm9rZS13aWR0aD0nMicgc3Ryb2tlLWxpbmVjYXA9J3JvdW5kJy8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9J3NoYWRvdycgeD0nMCcgeT0nMCcgd2lkdGg9JzMyJyBoZWlnaHQ9JzMyJyBmaWx0ZXJVbml0cz0ndXNlclNwYWNlT25Vc2UnPjxmZURyb3BTaGFkb3cgZHg9JzEnIGR5PScxJyBzdGREZXZpYXRpb249JzEnIGZsb29kLW9wYWNpdHk9JzAuMycvPjwvZmlsdGVyPjwvZGVmcz48L3N2Zz4=') 14 14, zoom-out !important;
}

/* ==========================================================================
   MOBILE OPTIMIZATION (Added 2025-12-12)
   These styles target screens smaller than 768px (Tablets & Phones)
   ========================================================================== */

@media screen and (max-width: 768px) {

    /* --- global spacing --- */
    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* --- Navigation --- */
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Fixed: Force hide menu by default */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding-top: 60px;
        transition: transform 0.3s ease-in-out;
        gap: 25px;
    }

    .nav-links.active {
        display: flex !important;
    }



    .nav-links li {
        margin: 0;
        opacity: 0;
        animation: fadeInLink 0.5s ease forwards;
        text-align: center;
    }

    .nav-links li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links li:nth-child(6) {
        animation-delay: 0.6s;
    }

    @keyframes fadeInLink {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

    /* Dropdown inside mobile menu */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        display: none;
        flex-direction: column;
        min-width: unset;
        padding-left: 0;
        text-align: center;
    }

    .dropdown-parent:hover .dropdown-menu,
    .dropdown-parent:focus-within .dropdown-menu {
        display: flex;
        animation: none;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 1.1rem;
        color: var(--text-muted);
    }

    /* --- Typography --- */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* --- Components --- */

    .features,
    .split-layout,
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Menu Tabs */
    .centered-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    /* Menu Modal Fixes */
    .menu-modal-content-large {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    .modal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-link-card {
        width: 80%;
        /* Wider for easier clicking and centering */
        margin: 10px auto;
        /* Auto margin for horizontal centering */
        padding: 15px;
        font-size: 1rem;
    }



    .menu-details {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-img-page {
        width: 100%;
        height: auto;
    }

    /* Lightbox controls */
    .close-lightbox {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        background: rgba(0, 0, 0, 0.5);
        width: 50px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        border-radius: 50%;
        color: #fff;
    }

    /* Gallery Grid Adjustment */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Producteurs Grid */
    .producers-grid {
        grid-template-columns: 1fr;
    }

    .hero-bg::after {
        display: none;
    }
}