/**
 * Éclat Restaurant Website Stylesheet
 *
 * This stylesheet is architected for a premium, modern web experience,
 * focusing on visual polish, smooth animations, and a luxurious feel.
 */

:root {
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --color-background: #0a0a0a;
    --color-surface: #141414;
    --color-primary: #d4af37;
    --color-text: #e0e0e0;
    --color-text-secondary: #888;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.6);
    --glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* --- Global & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lightbox-active {
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
}

p {
    color: var(--color-text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* --- Buttons & Interactive --- */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    border: 1px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

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

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 1.2rem 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-primary); font-size: 2rem; color: var(--color-primary); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 1rem; }
.nav-links a { color: var(--color-text); text-decoration: none; padding: 0.5rem 1rem; font-weight: 400; position: relative; transition: color 0.3s var(--ease); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--color-primary); transition: width 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after { width: 50%; }
.nav-toggle { display: none; }

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

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    animation: kenburns 25s var(--ease) infinite;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.hero-content { z-index: 1; }
.hero-content h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.hero-content p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 2.5rem; color: var(--color-text); }
.hero-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

.scroll-indicator { position: absolute; z-index: 2; bottom: 3rem; left: 50%; transform: translateX(-50%); width: 2px; height: 40px; background: rgba(255,255,255,0.2); }
.scroll-indicator::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; animation: scroll-down 2s var(--ease) infinite; }

/* --- General Sections --- */
section { padding: 8rem 0; }
.story, .dishes, .gallery, .reviews, .contact, .map { border-bottom: 1px solid rgba(255,255,255,0.1); }
.map { padding: 0; }

/* --- Story Section --- */
.story-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.story-image img { width: 100%; height: auto; border-radius: 5px; box-shadow: var(--shadow-dark); }

/* --- Dishes Section --- */
.dishes { background-color: var(--color-surface); }
.dishes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.dish-card { background-color: var(--color-background); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; text-align: center; padding: 2rem; position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.dish-card:hover { transform: translateY(-15px); box-shadow: var(--glow); }
.dish-card-image { margin-bottom: 1.5rem; border-radius: 5px; overflow: hidden; }
.dish-card-image img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s var(--ease); }
.dish-card:hover img { transform: scale(1.05); }
.dish-card h3 { margin-bottom: 0.5rem; font-size: 1.5rem; color: var(--color-text); }
.dish-card .price { display: block; margin-top: 1rem; font-size: 1.5rem; font-weight: 600; color: var(--color-primary); font-family: var(--font-primary); }

/* --- Gallery Section --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-flow: dense; gap: 1.5rem; }
.gallery-item { overflow: hidden; border-radius: 5px; cursor: pointer; box-shadow: var(--shadow-light); position: relative; }
.gallery-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0); transition: background 0.4s var(--ease); }
.gallery-item:hover::after { background: rgba(0,0,0,0.5); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }

/* --- Reviews Section --- */
.reviews { background-color: var(--color-surface); }
.review-carousel { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.review { text-align: center; border: 1px solid rgba(255,255,255,0.1); padding: 2rem; border-radius: 5px; }
.review blockquote { font-size: 1.2rem; font-style: italic; margin-bottom: 1.5rem; font-weight: 300; }
.review cite { font-weight: 500; color: var(--color-primary); font-style: normal; }

/* --- Contact Section --- */
.contact-header { margin-bottom: 4rem; }
.contact-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; }
.contact-info ul { list-style: none; }
.contact-info li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info svg { fill: var(--color-primary); width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
.contact-info h3 { margin-top: 3rem; margin-bottom: 1rem; }
.contact-info p span { color: var(--color-text); font-weight: 500; }
.map-container { border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-dark); height: 100%; }
.map-container iframe { display: block; filter: invert(100%) hue-rotate(210deg) contrast(0.8); width: 100%; height: 100%;}

/* --- Footer --- */
.footer { background: var(--color-surface); padding: 5rem 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer h3 { margin-bottom: 1.5rem; }
.footer-about p { max-width: 300px; }
.footer-hours p, .footer-social a { display: block; color: var(--color-text-secondary); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.3s var(--ease); }
.footer-social a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: var(--color-text-secondary); font-size: 0.9rem; }

/* --- Back to Top & Lightbox --- */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--color-primary); color: #000; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s var(--ease); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: #fff; }
.back-to-top svg { width: 24px; height: 24px; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(0.9); transition: transform 0.4s var(--ease); }
.lightbox.open .lightbox-image { transform: scale(1); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 2001; transition: color 0.3s var(--ease); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--color-primary); }
.lightbox-close { top: 1rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }

/* --- Animations --- */
.animate-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.animate-up.visible { opacity: 1; transform: translateY(0); }

@keyframes kenburns {
    0% { transform: scale(1) translateX(0); }
    50% { transform: scale(1.1) translateX(-2%); }
    100% { transform: scale(1) translateX(0); }
}
@keyframes scroll-down {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .story-content, .dishes-grid, .review-carousel, .contact-content, .footer-content { grid-template-columns: 1fr; }
    .story-content { gap: 3rem; }
    .dishes-grid { gap: 2rem; }
    .contact-content { gap: 3rem; }
    .footer-content { text-align: center; }
    .footer-about p { margin: 0 auto 2rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; z-index: 1001; }
    .nav-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-background); display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.4s var(--ease); }
    .nav-open .nav-menu { transform: translateX(0); }
    .nav-links { flex-direction: column; text-align: center; gap: 2rem; }
    .nav-links a { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
}
