/* --- Core CSS Architecture & Global Tokens --- */
:root {
    --bg-dark: #0F0F11;
    --bg-card-glass: rgba(15, 15, 17, 0.65);
    --accent-emerald: #0A2F1D;
    --accent-gold: #D4AF37;
    --accent-gold-bright: #E5C158;
    --text-ivory: #F9F6F0;
    --text-slate: #A0AAB2;
    --border-gold-low: rgba(212, 175, 55, 0.15);
    --ff-heading: 'Playfair Display', serif;
    --ff-body: 'Poppins', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-ivory);
    font-family: var(--ff-body);
    font-weight: 300;
    overflow-x: hidden;
}

/* Custom Fine Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

/* Layout Core Shells */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-padding {
    padding: clamp(4rem, 8vw, 10rem) 0;
}

.text-center { text-align: center; }
.margin-top-md { margin-top: 3rem; }
.margin-top-lg { margin-top: 5rem; }
.align-center { align-items: center; }

/* Grid Engines */
.grid {
    display: grid;
    gap: 2.5rem;
}
.grid-2col { grid-template-columns: repeat(auto-fit, minmax(450px, 100%)); }
.grid-2col-tight { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media(max-width: 768px) {
    .grid-2col { grid-template-columns: 1fr; }
    .grid-2col-tight { grid-template-columns: 1fr; }
}

/* --- Preloader Architecture --- */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.loader-logo { text-align: center; }
.brand-title {
    font-family: var(--ff-heading);
    font-size: 3rem;
    color: var(--text-ivory);
    letter-spacing: 4px;
}
.loader-bar {
    width: 100px; height: 1px;
    background: var(--accent-gold);
    margin-top: 1rem;
    animation: pulseWidth 2s infinite ease-in-out;
}
@keyframes pulseWidth {
    0%, 100% { transform: scaleX(0.2); }
    50% { transform: scaleX(1); }
}

/* --- Premium Navigation Structural Rules --- */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}
.main-header.scrolled {
    background: var(--bg-card-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold-low);
    padding: 0.5rem 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}
.logo {
    font-family: var(--ff-heading);
    font-size: 2rem;
    color: var(--text-ivory);
    text-decoration: none;
    letter-spacing: 2px;
}
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 3rem;
}
.nav-link {
    color: var(--text-slate);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold-bright);
}

/* Mobile Toggle Hamburger menu lines */
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
}
.menu-toggle .bar {
    display: block; width: 25px; height: 1px;
    background: var(--text-ivory); margin: 6px 0;
    transition: var(--transition-smooth);
}

@media(max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--bg-dark); flex-direction: column;
        justify-content: center; transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-menu.active { right: 0; }
}

/* --- Typographic Elements & Dynamic Buttons --- */
.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.section-desc {
    color: var(--text-slate);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.btn-primary {
    background: var(--accent-emerald);
    color: var(--text-ivory);
    border: 1px solid var(--accent-emerald);
}
.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold-bright);
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-ivory);
    border: 1px solid var(--border-gold-low);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}
.btn-text {
    color: var(--accent-gold);
    padding: 0; text-transform: none; font-size: 1rem;
}
.btn-text:hover { color: var(--text-ivory); transform: translateX(5px); }
.btn-block { width: 100%; text-align: center; }

/* --- Hero Architecture with Parallax Engine --- */
.hero-section {
    position: relative;
    width: 100%; height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-parallax-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background-image: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    will-change: transform; z-index: 1;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(15,15,17,0.4), var(--bg-dark));
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3; max-width: 800px;
}
.sub-tag {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 6px;
    color: var(--accent-gold); display: block; margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--ff-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300; line-height: 1.1; margin-bottom: 2rem;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-slate); margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1.5rem; }

/* --- Glassmorphism Component Design --- */
.glass-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-gold-low);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.card-img-holder {
    width: 100%; height: 260px; overflow: hidden;
}
.card-img-holder img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition-smooth);
}
.glass-card:hover .card-img-holder img { transform: scale(1.08); }
.card-body { padding: 2.2rem; }
.card-header-row {
    display: flex; justify-content: space-between;
    align-items: baseline; margin-bottom: 1rem;
}
.card-header-row h3 { font-family: var(--ff-heading); font-size: 1.4rem; font-weight: 400; }
.price { color: var(--accent-gold); font-weight: 500; font-size: 1.1rem; }
.card-text { color: var(--text-slate); font-size: 0.95rem; line-height: 1.6; }

/* --- Dynamic Scroll Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Form Element Overhauls --- */
.luxury-form .form-group {
    margin-bottom: 1.8rem;
}
.luxury-form label {
    display: block; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 0.6rem;
}
.luxury-form input, .luxury-form select, .luxury-form textarea {
    width: 100%; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.15); padding: 1.2rem;
    color: var(--text-ivory); font-family: var(--ff-body);
    font-size: 0.95rem; transition: var(--transition-smooth);
}
.luxury-form input:focus, .luxury-form select:focus, .luxury-form textarea:focus {
    outline: none; border-color: var(--accent-gold); background: rgba(255,255,255,0.06);
}

/* --- Masonry Luxury Gallery System Layout --- */
.masonry-gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.gallery-item-wrapper {
    position: relative; margin-bottom: 1.5rem;
    break-inside: avoid; overflow: hidden; cursor: pointer;
}
.gallery-img-thumb {
    width: 100%; display: block; transition: var(--transition-smooth);
}
.gallery-overlay-hover {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(10, 47, 29, 0.85); display: flex;
    align-items: center; justify-content: center; opacity: 0;
    transition: var(--transition-smooth);
}
.gallery-item-wrapper:hover .gallery-overlay-hover { opacity: 1; }
.gallery-item-wrapper:hover .gallery-img-thumb { transform: scale(1.05); }
.zoom-icon { color: var(--text-ivory); font-size: 2rem; font-weight: 300; }

@media(max-width: 900px) { .masonry-gallery-grid { column-count: 2; } }
@media(max-width: 600px) { .masonry-gallery-grid { column-count: 1; } }

/* Lightbox Portal Layout Shell */
.lightbox-portal {
    position: fixed; top:0; left:0; width:100vw; height:100vh;
    background: rgba(15,15,17,0.98); z-index: 20000;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.lightbox-portal.active { display: flex; opacity: 1; }
.lightbox-content-holder img { max-width: 90%; max-height: 85vh; object-fit: contain; }
.lightbox-close-btn {
    position: absolute; top: 30px; right: 40px; background: none;
    border: none; color: white; font-size: 3rem; cursor: pointer;
}

/* --- Modern Interactive Controls & Interactive Rows --- */
.menu-controls-container {
    display: flex; flex-direction: column; gap: 2rem;
    align-items: center; justify-content: space-between;
}
.search-box-wrapper input {
    width: 350px; padding: 1rem; background: transparent;
    border: 1px solid var(--border-gold-low); color: white; text-align: center;
}
.filter-categories-track { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.filter-btn, .gallery-filter-btn {
    background: transparent; border: 1px solid transparent;
    color: var(--text-slate); padding: 0.6rem 1.5rem; cursor: pointer;
    transition: var(--transition-smooth); font-family: var(--ff-body);
}
.filter-btn.active, .gallery-filter-btn.active, .filter-btn:hover {
    border-color: var(--accent-gold); color: var(--text-ivory);
}

.menu-items-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media(max-width: 768px) { .menu-items-grid { grid-template-columns: 1fr; } }
.menu-item-card { padding: 2rem; }
.menu-card-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.menu-card-header h3 { font-family: var(--ff-heading); font-size: 1.25rem; font-weight: 400; }
.menu-price { color: var(--accent-gold); }
.menu-ingredients { color: var(--text-slate); font-size: 0.9rem; line-height: 1.5; }

/* --- Premium Structural Footers --- */
.main-footer {
    background: #09090B; padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border-gold-low);
}
.footer-logo { font-family: var(--ff-heading); font-size: 2.2rem; margin-bottom: 1rem; }
.footer-tagline { color: var(--text-slate); font-size: 0.95rem; }
.main-footer h4 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent-gold); margin-bottom: 1.5rem;
}
.footer-info { color: var(--text-slate); font-size: 0.95rem; line-height: 1.7; }
.social-links a { color: var(--text-ivory); text-decoration: none; margin-right: 1.5rem; }
.footer-bottom { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: rgba(255,255,255,0.3); }