/* --- ORIGINAL BASE STYLES --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #fffdf7;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #780202;
    color: white;
    position: relative; /* Needed for mobile menu positioning */
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.hero {
    height: 80vh;
    /* Background image applied only here */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/54.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: adds a parallax scroll effect */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
}

.btn {
    padding: 12px 20px;
    background: #ffb300;
    text-decoration: none;
    color: black;
    display: inline-block;
    margin-top: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px;
}

.menu-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
}

/* --- ENQUIRY FORM STYLES --- */
.enquiry {
    max-width: 600px;
    margin: auto;
    padding: 40px;
}

form input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.btn-enquire {
    display: block;
    width: 100%;
    padding: 18px;
    background: #780202;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 25px;
    border-radius: 4px;
}

#menuCost {
    font-weight: bold;
    color: #780202;
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
}

#specify {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* --- MOBILE RESPONSIVE NAV (NEW) --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        background: #780202;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        text-align: center;
    }

    nav.active {
        display: flex; /* Shown when clicked */
    }

    nav a {
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
}

/* --- Desktop Header (Default) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #780202;
    color: white;
    position: relative;
}

.menu-toggle {
    display: none; /* Hide hamburger on computer screens */
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger on phones */
    }

    #navMenu {
        display: none; /* Collapsed by default */
        flex-direction: column;
        width: 100%;
        background: #780202;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        text-align: center;
        padding: 10px 0;
    }

    /* This class is what the JS "toggles" */
    #navMenu.active {
        display: flex; /* Expands the menu */
    }

    #navMenu a {
        display: block;
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

.about-section {
    padding: 60px 10% ;
    background-color: #f9f9f9; /* Light background to separate from hero */
}

.about-container {
    display: flex;
    align-items: center; /* Vertically centers the text and image */
    justify-content: space-between;
    gap: 40px; /* Space between text and image */
}

.about-content {
    flex: 1; /* Takes up 50% of the space */
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.about-content p {
    line-height: 1.8;
    color: #555;
}

.about-image {
    flex: 0.5; /* Takes up 50% of the space */
    text-align: center;
}

.about-image img {
    margin-left: 10%;
    max-width: 100%;
    height: 250px;
    border-radius: 12px; /* Smooth rounded corners */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Adds depth */
}

/* Responsive: Stack them on top of each other on mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

.site-footer {
    background-color: #780202;
    color: #e0e0e0;
    padding: 60px 10% 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-column h4 {
    text-align: center; /* Ensures the text itself is centered */
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Moves the starting point of the line to the horizontal center */
    transform: translateX(-50%); /* Shifts the line back by half its width to perfectly center it */
    width: 60px; /* You can make this wider or narrower */
    height: 2px;
    background: #ffffff;
}

.footer-column p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin-top: 5px; /* Ensures the list doesn't push itself away from the heading */
    display: inline-block;
}
.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.cta-column {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.footer-bottom {
    border-top: 1px solid #780202;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center; /* This centers everything inside the column: headings, text, and lists */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    display: inline-block; /* Makes the list container only as wide as the text */
    text-align: left; /* Optional: keeps the bullet points/text aligned left but centers the whole block */
}

/* If you want the links to be perfectly centered individually, use this instead: */
.footer-column ul li {
    text-align: center;
    margin-bottom: 7px;
}

.reviews-section {
    padding: 60px 10%;
    background-color: #fdfdfd;
    text-align: center;
}

.reviews-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 180px; /* Adjust if your text is longer */
}

.review-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    transform: translateY(15px);
}

.review-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.review-dots {
    margin-top: 30px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s;
}

.dot.active {
    background-color: #b30000;
}

.reviews-wrapper {
    position: relative;
    height: 235px; /* Adjust height to fit your text */
    overflow: hidden;
}

.review-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.review-card.active {
    opacity: 1;
    visibility: visible;
}

/* Update your existing .menu-card or .item-card style */
.menu-card, .item-card {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.menu-card:hover, .item-card:hover {
    transform: translateY(-8px); /* Lifts the card */
    box-shadow: 0 12px 24px rgba(179, 0, 0, 0.15); /* Adds a subtle red-tinted glow */
}

.menu-img {
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-img {
    transform: scale(1.05); /* Slight zoom in on the food image */
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.btn, .btn-confirm, .btn-submit {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:active, .btn-confirm:active {
    transform: scale(0.96); /* Shrinks slightly when clicked */
    filter: brightness(0.9);
}

/* Add a subtle shine effect on hover */
.btn:hover::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn:hover::after {
    left: 150%;
}

/* Container for the nav links */
nav a {
    position: relative;
    text-decoration: none;
    padding-bottom: 5px;
    display: inline-block; /* Ensures the underline matches text width */
}

/* The invisible line starting at the center */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%; /* Position the start point at the middle */
    background-color: #ffb300; /* Gold color */
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    transform: translateX(-50%); /* Keeps the line centered as it grows */
}

/* The line expanding to full width from center */
nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    /* 1. Remove floats and stack elements vertically */
    .about-section .container, 
    .about-content-wrapper { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 2. Remove float and width restrictions from text and image containers */
    .about-text, .about-image {
        float: none !important; /* Forces removal of any floats */
        width: 100% !important;
        margin: 0 auto;
    }

    /* 3. Center and enlarge the image */
    .about-image img {
        display: block;
        margin: 20px auto;
        width: 90%; /* Increased size */
        max-width: 450px; 
        height: auto;
    }

    /* 4. Reduce text size for mobile */
    .about-text h2 {
        font-size: 1.5rem; /* Smaller heading */
        margin-bottom: 10px;
    }

    .about-text p {
        font-size: 0.9rem; /* Smaller body text */
        line-height: 1.5;
        padding: 0 10px;
    }
}

/* Reduce overall card size */
.item-card {
    min-height: auto;
}

/* Make the grid tighter */
.menu-grid {
    gap: 12px;
}

/* Compact controls background */
.controls {
    background: #f0f0f0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu-grid, #selectionGrid {
        gap: 8px; /* Even smaller gap on mobile */
        padding: 8px;
    }
    
    .item-name {
        font-size: 0.85rem !important; /* Slightly smaller text for mobile */
    }
}