/* =========================================
   Base Variables & Resets (Luxury Theme)
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-lighter: #141414;
    --burgundy: #660018; /* Deeper, richer burgundy */
    --burgundy-light: #800020;
    --gold: #D4AF37;     /* FIX: True classic metallic gold */
    --text-main: #FDFBF7; /* Soft cream, easier on eyes than pure white */
    --text-muted: #999999;
}

/* =========================================
   Splash Screen / Preloader
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark); /* Matches your deep luxury background */
    z-index: 9999; /* Ensures it sits on top of absolutely everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.preloader-logo {
    width: 160px;
    /* This adds a slow, elegant heartbeat glow to the logo while waiting */
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0)); }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); }
    100% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0)); }
}

/* JavaScript will add this class to trigger the fade out */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Lato', sans-serif; /* Clean, modern body text */
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, .story-text, .author {
    font-family: 'Playfair Display', serif; /* Elegant fine-dining font */
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* =========================================
   Header (Solid & Elegant)
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    box-sizing: border-box;
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

header.scrolled {
    background: var(--bg-dark);
    padding: 12px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo img { height: 45px; }

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

nav a:hover { color: var(--gold); }

.nav-btn {
    border: 1px solid var(--gold);
    padding: 10px 20px;
    color: var(--gold);
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    background: url('../assets/hero-food.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.5), var(--bg-dark));
}

.content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-logo { width: 140px; margin-bottom: 30px; }

h1 {
    font-size: 4rem;
    margin: 0 0 20px 0;
    color: var(--gold);
    letter-spacing: 2px;
}

.content p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    background: var(--burgundy);
    padding: 15px 35px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border: 1px solid var(--burgundy-light);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--bg-dark);
    border-color: var(--gold);
    color: var(--gold);
}

/* =========================================
   Sections & Story
   ========================================= */
.section-padding { padding: 120px 5%; }
.dark-bg { background: var(--bg-lighter); border-top: 1px solid #222; border-bottom: 1px solid #222;}

.section-title {
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 20px;
}

.story-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.menu-subtitle {
    margin-bottom: 60px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================
   Fine Dining Menu Layout
   ========================================= */
.menu-category {
    margin-bottom: 80px;
    text-align: left;
}

.category-header h3 {
    font-size: 2.2rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.category-header h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* Menu Filter Tabs */
.menu-tab-btn {
    border: 1px solid #333;
    padding: 10px 22px;
    border-radius: 25px;
    background: #111;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.menu-tab-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* The classic dotted menu item */
.menu-list {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    margin-bottom: 30px;
}

.item-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
}

.item-header h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--gold);
}

/* Creates the elegant dotted line between name and price */
.dots {
    flex-grow: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    margin: 0 15px;
    position: relative;
    top: -6px;
}

.price {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
}

.menu-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 85%;
}

/* =========================================
   Guest Reviews / Events Layout
   ========================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: var(--bg-dark);
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.6s ease;
}

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

.rating { color: var(--gold); font-size: 20px; margin-bottom: 20px; letter-spacing: 5px; }

.review-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 25px;
}

.author { color: var(--gold); font-size: 1.1rem; }

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-dark);
}

/* =========================================
   Refined Smooth Animations
   ========================================= */
.fade-in { opacity: 0; transition: opacity 2s ease; }

.animate-up {
    opacity: 0;
    transform: translateY(30px); /* Smaller travel distance for elegance */
    transition: opacity 1.2s ease, transform 1.2s ease; /* Slower, smoother speed */
}

.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   Responsive Breakpoints
   ========================================= */

/* 1. Laptops / Small Desktops (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    .section-padding { 
        padding: 90px 5%; 
    }
    h1 { 
        font-size: 3.5rem; 
    }
}

/* 2. Tablets (Max Width: 768px) */
@media screen and (max-width: 768px) {
    /* Header Adjustments */
    header { 
        padding: 15px 25px; 
        flex-direction: column; 
        gap: 15px; 
    }
    header.scrolled { 
        padding: 10px 25px; 
    }
    
    /* Navigation Adjustments */
    nav { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px; 
    }
    nav a { 
        margin: 0 5px; 
        font-size: 13px; 
    }

    /* Typography & Spacing */
    .section-padding { padding: 70px 5%; }
    h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.5rem; }
    .content p { font-size: 1.1rem; }
    
    /* Menu Scaling */
    .category-header h3 { font-size: 1.8rem; }
    .item-header h4 { font-size: 1.2rem; }
    .price { font-size: 1.1rem; }
}

/* 3. Mobile Phones (Max Width: 480px) */
@media screen and (max-width: 480px) {
    /* Tighten Header further */
    header { padding: 15px; }
    .logo { font-size: 1.1rem; }
    .logo img { height: 35px; }
    
    /* Typography */
    h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .story-text { font-size: 1.1rem; }
    
    /* Spacing */
    .section-padding { padding: 50px 5%; }
    
    /* Review Cards Adjustment */
    .cards { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .card { padding: 25px 15px; }
    
    /* Menu Layout Switch for Tiny Screens */
    .item-header { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .dots { 
        display: none; 
    } 
    .price { 
        margin-top: 5px; 
        color: var(--gold); 
    }
    .menu-item p { 
        max-width: 100%; 
    }
}