/* ==========================================================================
   1. Brand & Style Setup
   ========================================================================== */
:root {
    --bg-color: #0D0F12;
    --surface-color: #12151A;
    --surface-alt-color: #1A1D22; 
    --text-color: #F4F6F8;
    --muted-color: #9AA4AE;
    
    --primary-accent: #E63946;    /* Red */
    --secondary-accent: #D00000;  /* Darker Red for errors */
    --highlight-color: #F6E05E;   /* Yellow */
    --success-color: #48BB78;     /* Green */
    
    --border-color: rgba(244, 246, 248, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 80px;
    --transition-speed: 300ms;
}

/* ==========================================================================
   2. Global Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add body class to hide/show menu-page specific elements */
.menu-page .full-menu-section {
    display: block;
}
.home-page .full-menu-section {
    display: none;
}
.home-page .menu-hero { /* Hide menu-hero on homepage */
    display: none;
}
.menu-page #hero,
.menu-page #about,
.menu-page #reviews,
.menu-page #gallery,
.menu-page #map {
    display: none; /* Hide homepage sections on menu page */
}


/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin-bottom: 1rem; color: var(--muted-color); max-width: 65ch; }
a { color: var(--primary-accent); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--text-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.subtitle { font-size: 1.1rem; color: var(--muted-color); margin-top: -1rem; margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.hidden { display: none !important; }

.skip-to-content {
    position: absolute; top: -40px; left: 0; background: var(--primary-accent);
    color: white; padding: 8px; z-index: 10000; transition: top 0.3s;
}
.skip-to-content:focus { top: 0; }

:focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   4. Buttons & Forms
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.2);
}
.btn:hover { transform: scale(1.05); box-shadow: 0 8px 25px -8px var(--shadow-color); }
.btn-primary { background-color: var(--primary-accent); color: var(--text-color); }
.btn-primary:hover { background-color: #c12a38; }
.btn-secondary { background-color: transparent; border-color: var(--primary-accent); color: var(--primary-accent); }
.btn-secondary:hover { background-color: var(--primary-accent); color: var(--text-color); }
.btn-ghost { background-color: transparent; border-color: var(--text-color); color: var(--text-color); box-shadow: none; }
.btn-ghost:hover { background-color: var(--text-color); color: var(--bg-color); box-shadow: 0 4px 15px -5px rgba(255, 255, 255, 0.2); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { display: none; }

form .form-group { margin-bottom: 1.25rem; }
form .form-group-split { display: flex; gap: 1rem; }
form .form-group-split > .form-group { flex: 1; }
form label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--muted-color); }
form input, form select, form textarea {
    width: 100%; padding: 0.8rem 1rem; background-color: var(--bg-color);
    border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-color);
    font-family: var(--font-body); font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
form input::placeholder, form textarea::placeholder { color: #555e68; }
form input:focus, form select:focus, form textarea:focus {
    outline: none; border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px hsla(355, 78%, 53%, 0.3);
}
form .error-message { color: var(--secondary-accent); font-size: 0.8rem; margin-top: 0.25rem; display: block; min-height: 1rem; }

/* Date/Time specific fixes for better visibility */
input[type="date"], input[type="time"] { 
    position: relative; 
    -webkit-appearance: none; 
    appearance: none; 
    color: #F4F6F8;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { 
    filter: invert(1); 
    cursor: pointer; 
    opacity: 0.7; 
}


/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.header {
    background-color: rgba(13, 15, 18, 0.8); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); padding: 0.5rem 0;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.header.scrolled { background-color: var(--surface-color); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }
.header__container { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-color);
  text-decoration: none; /* Ensure logo isn't underlined */
}
.header__logo:hover {
    color: var(--text-color); /* Keep color same on hover */
}

.header__logo img {
  height: 90px; 
  width: auto;
  display: block;
  transition: transform var(--transition-speed) ease;
}
.header__logo:hover img {
  animation: spin 2s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.header__nav {
    display: block; /* Shown by default on desktop */
}
.header__nav ul { display: flex; gap: 2.5rem; }
.header__nav a { color: var(--muted-color); font-weight: 500; position: relative; padding: 0.5rem 0; }
.header__nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-accent); transition: width var(--transition-speed) ease; }
.header__nav a:hover, .header__nav a.active { color: var(--text-color); }
.header__nav a:hover::after, .header__nav a.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__hamburger, .mobile-nav { display: none; } /* Hidden by default */

/* Mobile Navigation */
@media (max-width: 992px) {
    .header__nav { display: none; } /* Hide desktop nav */
    .header__actions .btn-secondary span { display: none; } /* Hide "Book a Table" text */
    
    .header__hamburger {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 1002;
    }
    .header__hamburger span {
        width: 100%; height: 2px; background-color: var(--text-color);
        border-radius: 2px; transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    }
    
    .mobile-nav {
        position: fixed; top: 0; right: 0; width: 80%; max-width: 350px;
        height: 100vh; background-color: var(--surface-color);
        box-shadow: -10px 0 30px var(--shadow-color); display: flex;
        flex-direction: column; justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1015; padding: 2rem;
    }
    .mobile-nav.open { transform: translateX(0); }
    .mobile-nav__close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2.5rem; color: var(--text-color); background: none; border: none; cursor: pointer; }
    .mobile-nav nav ul { flex-direction: column; gap: 1.5rem; text-align: center; }
    .mobile-nav nav a { font-size: 1.5rem; color: var(--text-color); }
    .mobile-nav__actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; width: 100%; }

    /* Mobile "Order Online" button in header */
    .header__actions .btn-primary {
        width: 60px; height: 60px; border-radius: 50%; padding: 0;
    }
    .header__actions .btn-primary .btn-text { display: none; }
    .header__actions .btn-primary .svg-inline--fa { 
        display: block; 
        font-size: 1.25rem; /* Ensure icon is visible */
    }

    /* Mobile "Book a Table" button in header (icon only) */
    .header__actions .book-table-btn {
        padding: 0.6rem;
    }
    .header__actions .book-table-btn svg {
        width: 20px;
        height: 20px;
        margin-right: 0; /* No text, so no margin */
    }
}

/* ==========================================================================
   6. Section-Specific Styles
   ========================================================================== */

/* 6.1 Hero Section (Optimized for Vertical Compression and new styles) */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; overflow: hidden; }
.hero__carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero__carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0;
    transform: scale(1.1); transition: opacity 1.5s ease, transform 1.5s ease; animation: kenburns 20s infinite;
}
.hero__carousel-slide.active { opacity: 1; transform: scale(1); }
@keyframes kenburns { 0% { transform: scale(1.1) translateX(0) translateY(0); } 50% { transform: scale(1.2) translateX(-5%) translateY(5%); } 100% { transform: scale(1.1) translateX(0) translateY(0); } }
.hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* This is a solid, darker overlay. Tweak "0.7" to be lighter/darker! */
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: -1;
}
.hero__container { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    align-items: center; 
    gap: 2rem;
}
.hero__content { padding-right: 2rem; }

/* Hero Logo Text (Mustang Momo & Grill) - BIGGER and BOLD */
.hero__logo-text {
    font-family: var(--font-body); 
    font-size: 1.35rem; /* Slightly bigger, as requested */
    font-weight: 700; 
    color: var(--highlight-color); 
    letter-spacing: 3px; 
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero__content h1 { 
    text-shadow: 0 4px 10px var(--shadow-color); 
    font-weight: 900; /* Super bold headline */
}
.hero__content p { 
    font-size: 1.25rem; 
    max-width: 50ch; 
    color: var(--text-color); /* Bright white subheading */
    font-weight: 500; 
}
.hero__ctas { display: flex; gap: 1rem; margin-top: 2rem; }

/* DESKTOP ONLY FORM CONTAINER STYLES (Used by both hero__form-container and booking-modal content) */
.hero__form-container {
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 16px;
    /* AGGRESSIVE: Reduced overall container padding for desktop */
    padding: 1.25rem; 
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-width: 450px; 
    margin-left: auto;
}

/* CHANGE FONT: Use body font for form title (Book a Table) */
.reservation-form h2 { 
    text-align: center; 
    color: var(--text-color); 
    font-family: var(--font-body); /* Changed to Inter, as requested */
    font-size: 1.75rem; 
    font-weight: 700; 
    /* AGGRESSIVE: Reduced margin below the main title */
    margin-bottom: 0.4rem;
}

/* MAX VERTICAL COMPRESSION */
.reservation-form .form-group {
    /* MAX REDUCTION: Vertical space between each form field group */
    margin-bottom: 0.5rem; 
}
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    /* MAX REDUCTION: Reduced vertical padding (top/bottom) on inputs */
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.reservation-form label {
    display: block;
    font-weight: 500;
    /* MAX REDUCTION: Eliminated most space between the label and the input field */
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
    color: #FFF; /* Use white for labels in the form container */
}
/* Ensure the error message slot still has some room */
form .error-message { color: var(--secondary-accent); font-size: 0.8rem; margin-top: 0.1rem; min-height: 0.8rem; } 

/* ========================================= */
/* MOBILE SPECIFIC OVERRIDES (Book a Table Modal) */
/* ========================================= */

/* Hide desktop elements on mobile */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 992px) {
    /* Show mobile-only elements */
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
    
    /* Mobile header adjustments (re-apply from earlier fixes) */
    .header.sticky-header { 
        padding-top: 4px !important; 
        padding-bottom: 4px !important; 
        min-height: 0 !important; 
        height: auto !important; 
    }
    
    .header__container { 
        min-height: 0 !important;
        height: 60px; /* Give it a fixed height for mobile */
    }

    .header__logo img {
        height: 50px !important; /* Smaller logo for mobile header */
        width: auto;
    }

    /* Adjust the "Order Online" button size for mobile */
    .header__actions .btn-primary {
        padding: 4px 8px !important;
        font-size: 12px !important;
        height: auto !important;
        width: auto !important;
        min-width: 0 !important;
        line-height: 1.3 !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }
    .header__actions .btn-primary .btn-text {
        display: inline-block !important; /* Show text */
    }
    .header__actions .btn-primary .btn-icon {
        display: inline-block !important; /* Show icon */
        width: 15px !important;
        height: 15px !important;
        margin-left: 0 !important;
    }
    
    /* Hide the desktop "Book a Table" icon button */
     .header__actions .btn-secondary.book-table-btn.desktop-only {
        display: none !important;
    }
    
    /* Make the hero content full width and center it */
    .hero {
        height: auto; 
        min-height: 70vh; /* Make hero shorter on mobile */
        padding: 100px 0 100px; /* Padding top/bottom */
    }

    .hero__container { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center; 
        height: auto; 
        padding-bottom: 0;
    }
    .hero__content { padding-right: 0; }

.hero__content .hero__logo-text {
    font-size: 1.15rem;     /* Decreased from 1.35rem */
    margin-bottom: 1.25rem; /* Increased gap (was 0.5rem) */
}

.hero__content h1 {
    margin-bottom: 1.75rem; /* Increased gap (was 1rem) */
}

.hero__content p { 
    margin: 0 auto;         /* Keeps it centered */
    font-size: 1.1rem;      /* Decreased from 1.25rem */
    margin-bottom: 2.25rem; /* This creates the gap before the buttons */
}

.hero__ctas {
    margin-top: 0; /* The <p> tag now controls this gap */
    justify-content: center;
}
    
    /* Center the Mobile-Only Book a Table Button at the bottom of the screen */
    .hero .book-table-btn.mobile-only {
        position: fixed; /* Fixed position */
        bottom: 20px;
        left: 5%; /* Give it some margin */
        width: 90%; /* Make it almost full-width */
        transform: translateX(0); /* Reset transform */
        max-width: 400px; /* Max width for large phones */
        z-index: 900; 
        padding: 1rem 2rem;
        font-size: 1.1rem; /* Make it easy to tap */
    }
    
    /* The modal itself should be fixed (relative to viewport) */
    .modal.booking-modal {
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100%; 
        max-width: 100%;
        border-radius: 0;
        padding: 0;
        /* Slide in from the top */
        transform: translateY(-100%); 
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    }
    .modal.booking-modal.visible {
        /* Slide into view */
        transform: translateY(0);
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
    }
    
    /* The content within the modal */
    .modal.booking-modal .modal-content {
        background-color: var(--bg-color); /* Use site bg color */
        border-radius: 0;
        padding: 1.5rem;
        padding-top: 5rem; /* Space for close button */
        height: 100%;
        overflow-y: auto;
    }

    /* Move close button inside the modal content area for mobile */
    .modal.booking-modal .modal-close-btn {
        top: 1rem;
        right: 1rem;
        color: var(--text-color);
        font-size: 2.5rem;
    }
    
    /* Fix the stacked mobile split groups (Date/Time, etc.) */
    .form-group-split { flex-direction: column; gap: 0; }
    .form-group-split > .form-group:first-child { 
        /* Use the standard form group margin */
        margin-bottom: 0.5rem; 
    }

    /* Date/Time input specific fix for mobile context */
    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; }
    
    /* Adjust header for very small screens */
    @media (max-width: 400px) {
        .header__logo span {
            display: none !important; /* Hide logo text */
        }
        .header__actions .btn-primary .btn-text {
            display: none !important; /* Hide "Order Online" text */
        }
        .header__actions .btn-primary {
            padding: 0.6rem !important; /* Make it a square icon button */
             width: 40px;
             height: 40px;
        }
        .header__actions .btn-primary .btn-icon {
            margin-left: 0 !important;
        }
    }
}
/* END MOBILE SPECIFIC OVERRIDES */

/* 6.2 About Section */
.about-section { padding: 6rem 0; background-color: var(--bg-color); }
.about-section__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-section__images { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-section__images img { border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-color); }
.about-section__images img:first-child { transform: translateY(10%); }
.about-section__images img:last-child { transform: translateY(-10%); }
.about-section__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
.about-section__badges span { background-color: var(--surface-color); border: 1px solid var(--border-color); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; }

@media (max-width: 992px) { 
    .about-section { padding: 4rem 0; }
    .about-section__container { grid-template-columns: 1fr; } 
    .about-section__images { order: 2; margin-top: 3rem; } 
    .about-section__content { order: 1; text-align: center; }
    /* --- ADD THIS RULE --- */
    .about-section__badges {
        justify-content: center;
    }
    /* --- END OF ADDED RULE --- */
}

/* 6.3 Key Info Bar */
.key-info-bar { background-color: var(--surface-alt-color); padding: 4rem 0; }
.key-info-bar__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.info-card { text-align: center; }
.info-card__icon { color: var(--primary-accent); margin-bottom: 1rem; width: 40px; height: 40px; }
.info-card h3 { color: var(--text-color); margin-bottom: 0.5rem; }
.info-card p { margin-bottom: 0; }

/* 6.4 Menu Section */
.menu-section { padding: 6rem 0; background-color: var(--bg-color); }

.menu-page .menu-section {
    padding-top: 4rem; /* Less padding on the actual menu page */
}

.menu-category {
    margin-bottom: 4rem;
}

.menu-category h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-color);
}

/* Decorative underline for category titles */
.menu-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-accent); /* Brand red color */
}

/* --- Menu Item Grid and Cards --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* Homepage-specific grid (Targeting ID) */
@media (min-width: 992px) {
    #menu-grid { 
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Menu page specific grid (Targeting class) */
@media (min-width: 1200px) {
    .full-menu-section .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- The Unified Card Design --- */
.menu-card {
    background-color: #ebdaab; /* Light theme for homepage cards */
    border: 1px solid #e9ecef;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); 
    text-align: center; 
    padding: 1.2rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.menu-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); 
}
.menu-card__image { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; /* The circular image */
    object-fit: cover; 
    margin-bottom: 0.50rem; 
    border: 4px solid #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.menu-card__title { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 2rem; 
    font-weight: bold; 
    margin: 0 0 0.15rem; 
    color: #343a40; 
}
.menu-card__description { 
    font-family: 'Cormorant Garamond', serif; 
    font-style: italic; 
    font-size: 0.95rem; 
    color: #4a4a4a;  /* Darker than muted grey for better readability */
    line-height: 1.5; 
    margin-bottom: 0.50rem; 
    flex-grow: 1; 
}
.menu-card__footer { 
    margin-top: auto; 
    width: 100%; 
    padding-top: 0.5rem; 
}
.menu-card__price { 
    display: block; 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    color: #343a40; 
}

/* --- The Add to Order Button (Used on both pages) --- */
.btn-add-to-order { 
    background-color: var(--primary-accent); 
    color: white !important; /* !important to override .btn-secondary styles if they leak */
    border: none; 
    border-radius: 8px; 
    padding: 0.6rem 1.5rem; 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
    white-space: nowrap; /* Keeps text on one line */
    transition: background-color 0.2s ease; 
}
.btn-add-to-order:hover { 
    background-color: #d62839; 
}

/* --- Menu Page Specific Styles (Dark theme cards) --- */
.menu-page .menu-card {
    background-color: #2b2f38;
    border-color: #495057;
    color: #f8f9fa;
}
.menu-page .menu-card__title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}
.menu-page .menu-card__description {
    color: #adb5bd;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
}
.menu-page .menu-card__price {
    color: #adb5bd;
    font-size: 1.1rem;
    font-weight: 500;
}
.menu-page .btn-add-to-order {
    align-self: center; /* Centers the button horizontally */
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Menu "Show More" Functionality --- */
.menu-card.hidden-item {
    display: none;
}
.btn-show-more {
    display: block; 
    margin: 2rem auto 0; 
    width: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-color: var(--primary-accent); 
    color: var(--primary-accent);
}
.btn-show-more:hover {
    background-color: var(--primary-accent);
    color: #fff;
}

/* Fix: Add space above the "View Full Menu" button on homepage */
#menu .btn-secondary {
    margin-top: 1.5rem;
}

/* ========================================= */


/* 6.5 Reviews Section */
.reviews-section { background-color: var(--surface-alt-color); padding: 6rem 0; }
.reviews-section__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.testimonial { border-left: 3px solid var(--primary-accent); padding-left: 1.5rem; margin-bottom: 2rem; }
.testimonial blockquote { font-style: italic; font-size: 1.1rem; }
.testimonial cite { display: block; margin-top: 1rem; font-weight: 600; color: var(--muted-color); }
#live-reviews-container { margin-top: 3rem; }
.live-review { background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; animation: fadeIn 0.5s ease; }
.live-review p { margin-bottom: 0.5rem; }
.live-review-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted-color); font-size: 0.9rem; }
.live-review-meta .stars { color: var(--highlight-color); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) { 
    .reviews-section { padding: 4rem 0; }
    .reviews-section__container { grid-template-columns: 1fr; } 

    .reviews-section__testimonials,
    .reviews-section__live-form {
        text-align: center;
    }

    /* --- ADD THIS NEW RULE --- */
    .reviews-section__testimonials h3 {
        font-size: 2rem; /* Make it bigger */
        margin-bottom: 2rem; /* Add space below it */
        padding-bottom: 0.5rem; /* Space between text and line */
        border-bottom: 2px solid var(--primary-accent); /* Accent line */
        display: inline-block; /* Makes border fit the text */
    }
}

/* Star Rating Input */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; margin-bottom: 1rem; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #444; cursor: pointer; transition: color 0.2s ease; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--highlight-color); }

/* 6.6 Gallery Section */
.gallery-section { padding: 6rem 0; background-color: var(--bg-color); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform var(--transition-speed) ease, filter var(--transition-seed) ease; }
.gallery-item:hover { transform: scale(1.05); filter: brightness(1.2); }
@media (max-width: 992px) { .gallery-section { padding: 4rem 0; } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }

/* 6.7 Map Section */
.map-section iframe { filter: invert(0.9) hue-rotate(180deg); }

/* 6.8 Footer */
.footer { background-color: var(--surface-color); padding: 5rem 0 2rem; }
.footer__container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 1rem; color: var(--text-color); }
.footer__col h4 { color: var(--text-color); margin-bottom: 1.5rem; }
.footer__col ul li { margin-bottom: 0.75rem; }
.footer__col ul a { color: var(--muted-color); }
.footer__col ul a:hover { color: var(--primary-accent); padding-left: 5px; }
.footer__socials { display: flex; gap: 1.5rem; margin-top: 1.5rem; }
.footer__socials a { color: var(--muted-color); }
.footer__socials a:hover { color: var(--text-color); }
.footer__bottom { text-align: center; color: var(--muted-color); font-size: 0.9rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
@media (max-width: 768px) { .footer__container { grid-template-columns: 1fr; text-align: center; } .footer__socials { justify-content: center; } }

/* ==========================================================================
   7. Modals, Drawers & Overlays
   ========================================================================== */
.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 1010; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease; 
}
.overlay.visible { opacity: 1; visibility: visible; }

/* Cart Drawer */
.cart-drawer { 
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 90%; 
    max-width: 400px; 
    height: 100%; 
    background-color: var(--surface-color); 
    box-shadow: -10px 0 30px var(--shadow-color); 
    z-index: 1020; 
    display: flex; 
    flex-direction: column; 
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border-color); }
#close-cart-btn { background: none; border: none; color: var(--text-color); font-size: 2rem; cursor: pointer; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex: 1; }
.cart-item-details h5 { margin: 0 0 0.25rem; color: #fff; }
.cart-item-details .price { color: var(--muted-color); }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.quantity-control { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border-color); border-radius: 99px; }
.quantity-control button { background: none; border: none; color: var(--text-color); font-size: 1.2rem; cursor: pointer; padding: 0.2rem 0.8rem; }
.remove-item-btn { color: var(--secondary-accent); font-size: 0.8rem; text-decoration: underline; background: none; border: none; cursor: pointer; }
.cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border-color); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.cart-empty-message { text-align: center; color: var(--muted-color); }

/* General Modal (Checkout) */
.modal { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.9); 
    background-color: var(--surface-color); 
    border-radius: 12px; 
    padding: 0; 
    width: 90%; 
    max-width: 500px; 
    z-index: 1030; 
    opacity: 0; 
    visibility: hidden; 
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; 
}
.modal.visible { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
    visibility: visible; 
}
.modal-content { 
    position: relative; 
    padding: 2.5rem; 
}
.modal-close-btn { 
    position: absolute; 
    top: -1.5rem; 
    right: -1.5rem; 
    background: none; 
    border: none; 
    color: var(--text-color); 
    font-size: 2rem; 
    cursor: pointer; 
}

/* Booking Modal Overrides (Desktop/Default) */
.modal.booking-modal .modal-content {
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.toggle-group label { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 99px; cursor: pointer; margin-right: 0.5rem; }
.toggle-group input[type="radio"] { display: none; }
.toggle-group input[type="radio"]:checked + label { background-color: var(--primary-accent); border-color: var(--primary-accent); color: var(--bg-color); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 800px; animation: zoomIn 0.4s; }
@keyframes zoomIn { from { transform: scale(0); } to { transform: scale(1); } }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; }
.lightbox-close:hover, .lightbox-close:focus { color: #bbb; text-decoration: none; cursor: pointer; }

/* Toast */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.toast { background-color: var(--surface-color); color: var(--text-color); padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 5px 20px var(--shadow-color); margin-bottom: 1rem; opacity: 0; transform: translateX(100%); animation: slideIn 0.5s forwards; border-left: 4px solid; }
.toast.success { border-color: var(--success-color); }
.toast.error { border-color: var(--secondary-accent); }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

/* ==========================================================================
   8. Floating & Sticky Elements
   ========================================================================== */
.whatsapp-btn {
    position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background-color: #25D366; color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 900; transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* ========================================= */
/* Mobile Header Adjustments         */
/* ========================================= */

@media (max-width: 768px) {
    
    /* --- Make the overall header shorter --- */
    .header.sticky-header {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        /* THIS IS THE KEY: Removes any minimum height forcing the bar to be tall */
        min-height: 0 !important;
        height: auto !important;
    }
    
    /* Also reset the container inside, just in case */
    .header__container {
        min-height: 0 !important;
        height: 60px; /* Give it a fixed height for mobile */
    }

    /* --- Shrink the logo and its text --- */
    .header__logo img,
    .header__logo svg {
        width: 36px !important;
        height: 36px !important;
    }

    .header__logo span {
        font-size: 14px !important;
    }

    /* --- Shrink the action buttons --- */
    .header__actions .btn {
        padding: 0.5rem 0.8rem; /* Reduce button padding */
        font-size: 14px;       /* Reduce button font size */
    }
    
    /* Adjust the icon-only button to look neat */
    .header__actions .book-table-btn {
        padding: 5px !important;
    }
    
    .header__actions .book-table-btn span {
        display: none !important;
    }

    .header__actions .book-table-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* --- Adjust the "Order Online" button size for mobile --- */
    /* This rule applies to the main header, not the slide-out menu */
    .header__actions .btn-primary {
        padding: 4px 8px !important;      /* Minimal padding */
        font-size: 12px !important;       /* Very small font */
        height: auto !important;          /* Let content decide height */
        width: auto !important;           /* Let content decide width */
        min-width: 0 !important;          /* KEY: Removes any forced minimum width */
        line-height: 1.3 !important;      /* KEY: Reduces extra vertical space from the text */

        /* --- Force its shape --- */
        border-radius: 6px !important;    /* KEY: Ensures corners are only slightly rounded, not circular */
        
        /* --- Force internal spacing --- */
        gap: 4px !important;              /* Reduces space between text and icon */
    }
    
    .header__actions .btn-primary .btn-text {
        display: inline-block !important; /* Show text */
    }

    .header__actions .btn-primary .btn-icon {
        display: inline-block !important; /* Show icon */
        width: 15px !important;           /* Make the icon inside even smaller */
        height: 15px !important;
        margin-left: 0 !important;
    }

    /* --- Make the mobile hamburger menu icon slightly smaller if needed --- */
    .header__hamburger {
        transform: scale(0.9);
    }
}


/* Optional: For very narrow screens (e.g., iPhone SE) */
@media (max-width: 400px) {
    /* Hide the logo text completely */
    .header__logo span {
        display: none !important;
    }
    /* Hide the "Order Online" text, leaving only the icon */
    .header__actions .btn-primary .btn-text {
        display: none !important;
    }
    .header__actions .btn-primary {
        padding: 6px !important; /* Make it a square icon button */
        width: 40px;
        height: 40px;
    }
    .header__actions .btn-primary .btn-icon {
        margin-left: 0 !important;
    }
}
/* --- NEW THEME COLOR UPDATES --- */

/* 1. Change Hero Logo Text to Orange */
.hero__logo-text {
    color: #FFA500; /* A bright, vibrant orange */
}
/* --- Style for Green Badge Icons --- */

/* This makes the badge align the icon and text */
.about-section__badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* This adds a small space between the icon and the text */
}

/* This styles the new SVG icon */
.badge-icon {
    color: var(--success-color); /* This is your THEME GREEN! */
    width: 16px;  /* Explicitly set size */
    height: 16px;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

