/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary-color: #0d2e23; /* Deep Emerald */
    --accent-color: #d4af37; /* Gold */
    --bg-color: #f9f8f4; /* Warm Cream */
    --text-color: #333;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Dimensions (Used for sticky headers) */
    --nav-height-desktop: 80px;
    --nav-height-mobile: 200px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* =========================================
   2. ADA Compliance (Accessibility)
   ========================================= */

/* Skip Link: Hidden until TAB is pressed */
.skip-link {
    position: absolute;
    top: -45px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px 16px;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only: Hides text visually but keeps it for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus State: High visibility for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #0056b3; /* Dark blue outline */
    outline-offset: 2px;
}

/* =========================================
   3. MAIN NAVIGATION (Global)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    border-bottom: 1px solid #ddd;
    
    /* Sticky Logic */
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1000;
    height: var(--nav-height-desktop);
    transition: height 0.3s ease;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: bold; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}
.logo a:hover { color: var(--primary-color); }

.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links a.active { border-bottom: 2px solid var(--accent-color); }

.btn-reserve {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}
.btn-reserve:hover { background-color: var(--accent-color); }

/* =========================================
   4. FOOTER (Global)
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 20px 30px; /* Increased top padding */
    border-top: 5px solid var(--accent-color);
    margin-top: auto;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left; /* Overrides previous center alignment */
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Ensures columns stack on mobile */
}

.footer-col h3, 
.footer-col h4 {
    color: var(--accent-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    transition: all 0.3s ease;
}

.social-link:hover svg {
    stroke: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #888;
    font-size: 0.85rem;
}

/* =========================================
   5. HOME PAGE STYLES (Index)
   ========================================= */
.hero {
    height: 80vh;
    background: url('../images/hero-banner.jpg') center/cover no-repeat var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 4rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }

/* Section General */
.section { padding: 80px 50px; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-color); }

/* Featured Menu Grid */
.chef-selection-bg {
    background-color: #ffffff;
    background-image: linear-gradient(#f4f4f4 1px, transparent 1px), 
                      linear-gradient(90deg, #f4f4f4 1px, transparent 1px);
    background-size: 30px 30px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.menu-grid .menu-item { background: #fff; padding-bottom: 20px; }
.menu-grid .menu-item img { width: 100%; height: 300px; object-fit: cover; margin-bottom: 15px; }
.menu-grid .menu-item h3 { font-size: 1.5rem; margin-bottom: 10px; }
.menu-grid .menu-item p { font-style: italic; color: #666; }

/* Split Section (Bar) */
.split-section { display: flex; flex-wrap: wrap; width: 100%; min-height: 600px; }
.split-image {
    flex: 1; flex-basis: 50%;
    background: url('../images/Bar.jpg') center/cover no-repeat;
    min-height: 400px;
}
.split-content {
    flex: 1; flex-basis: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 60px;
    text-align: center;
}
.split-content h2 { font-size: 3rem; color: var(--accent-color); margin-bottom: 25px; }
.split-content p { font-size: 1.1rem; max-width: 500px; margin-bottom: 40px; font-weight: 300; color: #e0e0e0; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}
.btn-outline:hover { background: var(--accent-color); color: var(--primary-color); }

/* Reviews Section */
.reviews-section { background-color: #ffffff; color: var(--primary-color); padding: 100px 50px; position: relative; }
.reviews-header-wrapper { margin-bottom: 60px; text-align: center; width: 100%; }
.reviews-header-wrapper::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--accent-color); margin: 15px auto 0;
}
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1200px; margin: 0 auto; }
.review-card {
    flex: 1; min-width: 300px; text-align: center; padding: 0 40px;
    border-right: 1px solid rgba(212, 175, 55, 0.4);
    display: flex; flex-direction: column; align-items: center;
}
.review-card:last-child { border-right: none; }
.review-card::before {
    content: '“'; font-family: var(--font-heading); font-size: 5rem; color: var(--accent-color); line-height: 0.5; margin-bottom: 20px;
}
.review-text {
    font-family: var(--font-heading); font-size: 1.5rem; font-style: italic;
    margin-bottom: 30px; line-height: 1.4; color: var(--primary-color);
}
.review-author {
    color: var(--accent-color); font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.85rem; font-family: var(--font-body); margin-top: auto;
}

/* =========================================
   6. MENU PAGE STYLES
   ========================================= */
/* Menu Header with Parallax */
.menu-header {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1551183053-bf91a1d81141?auto=format&fit=crop&q=80') center/cover no-repeat fixed;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; margin-top: -1px;
}
.menu-header::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 46, 35, 0.7), rgba(0,0,0,0.9));
}
.header-content {
    position: relative; z-index: 1; padding: 50px 40px; max-width: 800px;
    border: 3px solid var(--accent-color);
    background-color: rgba(13, 46, 35, 0.3);
    backdrop-filter: blur(3px);
}
.header-pre-title {
    display: block; font-family: var(--font-body); text-transform: uppercase;
    letter-spacing: 4px; font-size: 0.9rem; color: var(--accent-color);
    margin-bottom: 20px; font-weight: 700;
}
.menu-header h1 { 
    font-size: 5rem; text-transform: uppercase; letter-spacing: 5px;
    margin-bottom: 25px; color: #fff; line-height: 1.1;
}
.menu-header p { 
    font-family: var(--font-heading); font-size: 1.4rem; font-style: italic;
    color: #e0e0e0; max-width: 600px; margin: 0 auto;
}

/* Sticky Category Nav */
.category-nav-sticky {
    position: sticky;
    top: var(--nav-height-desktop); /* Sticks below main nav */
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.cat-list {
    display: flex; justify-content: center; gap: 40px; max-width: 900px;
    margin: 0 auto; padding: 0 20px; overflow-x: auto; white-space: nowrap;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cat-list::-webkit-scrollbar { display: none; }
.cat-link {
    font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; color: #888; font-weight: 600;
}
.cat-link:hover { color: var(--primary-color); }

/* Menu Content & Dishes */
.menu-container { max-width: 900px; margin: 0 auto; padding: 80px 20px; }
.menu-category { margin-bottom: 100px; scroll-margin-top: 260px; }
.category-title-wrapper { text-align: center; margin-bottom: 50px; }
.category-title {
    font-size: 2.2rem; text-transform: uppercase; letter-spacing: 4px;
    color: var(--accent-color); display: inline-block;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3); padding-bottom: 15px;
}

.dish { margin-bottom: 35px; padding-bottom: 20px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.dish:last-child { border-bottom: none; }
.dish-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dish-title { font-size: 1.3rem; font-weight: 600; color: var(--primary-color); }
.dish-price { font-size: 1.2rem; font-weight: 400; color: #555; }
.dish-desc { font-size: 1.05rem; color: #666; font-weight: 300; max-width: 650px; line-height: 1.7; }

/* Featured Dish */
.dish-featured {
    display: flex; align-items: center; gap: 30px; background: #fff;
    padding: 25px; border: 1px solid #eee; margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    border-radius: 4px; position: relative; overflow: hidden;
}
.dish-featured::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--accent-color);
}
.dish-img { width: 140px; height: 140px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.dish-info { flex-grow: 1; }

.policies {
    background-color: #ecebe6; padding: 60px 20px; text-align: center;
    margin-top: 50px; font-size: 0.95rem; color: #444; border-top: 4px solid var(--primary-color);
}
.policies h4 { margin-bottom: 20px; color: var(--primary-color); letter-spacing: 2px; font-size: 1.2rem; }
.policies p { max-width: 700px; margin: 0 auto 12px; }

/* =========================================
   7. GALLERY PAGE STYLES
   ========================================= */
.gallery-header { padding: 80px 20px 40px; text-align: center; }
.gallery-header h1 { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 10px; }
.gallery-header p { font-style: italic; color: #666; max-width: 600px; margin: 0 auto; }

.gallery-container {
    max-width: 1200px; margin: 0 auto; padding: 20px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px; padding-bottom: 80px;
}
.gallery-item {
    position: relative; height: 400px; overflow: hidden;
    cursor: pointer; border: 0px solid transparent; transition: all 0.4s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease; display: block;
}
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(13, 46, 35, 0.9), transparent);
    color: #fff; opacity: 0; transform: translateY(20px);
    transition: all 0.4s ease; pointer-events: none;
}
.gallery-overlay h3 { font-size: 1.2rem; letter-spacing: 1px; color: var(--accent-color); }

/* Hover Effects */
.gallery-item:hover { border: 4px solid var(--accent-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

/* =========================================
   8. CONTACT PAGE STYLES
   ========================================= */
.contact-header { padding: 80px 20px 40px; text-align: center; }
.contact-header h1 { font-size: 3.5rem; color: var(--primary-color); }

.contact-container {
    max-width: 1100px; margin: 0 auto; padding: 40px 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.info-block { margin-bottom: 40px; }
.info-block h3 { color: var(--accent-color); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.info-block p { margin-bottom: 10px; font-size: 1.05rem; }

.dress-code-box {
    background: #ecebe6; padding: 25px; border-left: 4px solid var(--primary-color);
}
.form-wrapper {
    background: #fff; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.form-wrapper h2 { margin-bottom: 20px; color: var(--primary-color); }
.form-wrapper p { margin-bottom: 30px; font-size: 0.9rem; color: #666; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px 10px; border: none; border-bottom: 1px solid #ccc;
    background: #fdfdfd; font-family: var(--font-body); transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-bottom: 2px solid var(--accent-color); background: #fff;
}
.btn-submit {
    background-color: var(--primary-color); color: #fff; padding: 15px 30px;
    width: 100%; border: none; text-transform: uppercase; font-weight: bold;
    letter-spacing: 2px; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background-color: var(--accent-color); }

.map-section {
    width: 100%; height: 450px; margin-top: 50px;
    filter: grayscale(80%); transition: 0.5s;
}
.map-section:hover { filter: grayscale(0%); }

/* =========================================
   9. MEDIA QUERIES (Responsive)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Redefine variable for the new, shorter mobile nav height */
    :root {
        --nav-height-mobile: 120px; /* Reduced from 200px since button is gone */
    }

    /* 2. Global Navigation Adjustments */
    nav { 
        height: var(--nav-height-mobile); 
        padding: 15px 20px; 
        flex-direction: column; 
        justify-content: center; /* Center content vertically */
        align-items: center;
        gap: 15px; /* Space between Logo and Links */
    }

    /* 3. Floating Fixed "Order Now" Button */
    nav .btn-reserve {
        position: fixed;
        bottom: 20px;          /* Distance from bottom */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        z-index: 10000;        /* Sit on top of everything */
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        background-color: var(--primary-color);
        color: #fff;
        border: 2px solid var(--accent-color);
        text-align: center;
    }
    
    /* Add padding to body so floating button doesn't cover footer content */
    body { padding-bottom: 80px; }

    /* 4. Home Page Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .split-section { flex-direction: column; }
    .split-image { height: 300px; min-height: 300px; width: 100%; flex: none; }
    .split-content { width: 100%; flex: none; padding: 60px 30px; }
    
    .reviews-grid { flex-direction: column; gap: 60px; }
    .review-card { border-right: none; padding: 0; border-bottom: 1px solid rgba(212, 175, 55, 0.4); padding-bottom: 40px; }
    .review-card:last-child { border-bottom: none; }

    /* 5. Menu Page Adjustments */
    /* Uses new shorter height variable to stick correctly */
    .category-nav-sticky { top: var(--nav-height-mobile); }
    .menu-category { scroll-margin-top: 150px; } /* Adjusted for shorter header */
    
    .menu-header { height: auto; padding: 60px 0; background-attachment: scroll; }
    .header-content { padding: 30px 20px; border-width: 2px; margin: 20px; }
    .menu-header h1 { font-size: 3rem; letter-spacing: 3px; }
    .dish-featured { flex-direction: column; align-items: flex-start; text-align: left; padding: 20px; }
    .dish-featured::before { width: 100%; height: 4px; left: 0; top: 0; }
    .dish-img { width: 100%; height: 200px; margin-bottom: 15px; }
    .cat-list { justify-content: flex-start; padding-left: 20px; padding-right: 20px; }

    /* 6. Gallery Page Adjustments */
    .gallery-container { grid-template-columns: 1fr; }
    .gallery-item { height: 300px; }

    /* 7. Contact Page Adjustments */
    .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .contact-header h1 { font-size: 2.5rem; }

    /* 8. Footer Adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}