/* CSS Reset & Variables */
:root {
    --primary-color: #D32F2F;
    /* Vibrant Red */
    --primary-dark: #B71C1C;
    --accent-color: #FFC107;
    /* Warm Gold */
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #FFF8E1;
    /* Light Cream */
    --bg-white: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-accent {
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-only {
    display: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 0;
    /* Nav is fixed, overlap is handled by overlay/padding if needed, usually nav height is accounted for content but hero takes full screen */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(211, 47, 47, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-highlights {
    display: flex;
    gap: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.highlight-item i {
    color: var(--accent-color);
}

/* Menu Section */
.menu-section {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Placeholders for visuals */
.placeholder-food-1 {
    background-image: url('https://images.unsplash.com/photo-1565557623262-b51c2513a641?q=80&w=1000&auto=format&fit=crop');
}

.placeholder-food-2 {
    background-image: url('https://images.unsplash.com/photo-1546833999-b9f581a1996d?q=80&w=1000&auto=format&fit=crop');
}

.placeholder-food-3 {
    background-image: url('https://images.unsplash.com/photo-1585032226651-759b368d7246?q=80&w=1000&auto=format&fit=crop');
}

.placeholder-food-4 {
    background-image: url('https://images.unsplash.com/photo-1567188040759-fb8a883dc6d8?q=80&w=1000&auto=format&fit=crop');
}

.placeholder-food-5 {
    background-image: url('https://images.unsplash.com/photo-1628294895950-98052523e036?q=80&w=1000&auto=format&fit=crop');
}

.placeholder-food-6 {
    background-image: url('https://images.unsplash.com/photo-1599487488170-d11ec9c172f0?q=80&w=1000&auto=format&fit=crop');
}


.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.menu-item-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.menu-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-item-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-add {
    font-size: 0.9rem;
    /* Increased size */
    color: white;
    /* Changed to white text */
    background: var(--primary-color);
    /* Red background */
    padding: 8px 16px;
    /* Bigger button */
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    /* Full width button */
    margin-top: 10px;
}

.btn-add:hover {
    background-color: var(--primary-dark);
}

/* Reviews Section */
.reviews-section {
    background-color: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stars {
    color: var(--accent-color);
    letter-spacing: 2px;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    /* Kept branding red */
}

.footer-brand p {
    color: #888;
    margin-bottom: 30px;
}

.footer-copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Sticky Bottom Bar (New) */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 1500;
    transform: translateY(150%);
    /* Hidden by default */
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid #f0f0f0;
}

.sticky-bottom-bar.active {
    transform: translateY(0);
}

.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-total {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-view-order {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-view-order:hover {
    background-color: var(--primary-dark);
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: flex-end;
    /* Always bottom sheet on mobile */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cart-modal {
    background-color: white;
    width: 100%;
    max-width: 600px;
    /* Wider max width */
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    max-height: 85vh;
    /* Taller max height */
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .cart-modal-overlay {
        align-items: center;
    }

    .cart-modal {
        border-radius: 20px;
        min-width: 400px;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: #aaa;
    padding: 30px;
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-qty {
    background-color: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

.btn-remove {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
}

.cart-footer {
    border-top: 2px solid #f5f5f5;
    padding-top: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* Ensure body has padding bottom so content isn't hidden behind bar */
body {
    padding-bottom: 80px;
}