@import url('https://fonts.googleapis.com/css2?family=Acme&family=Bebas+Neue&family=BenchNine:wght@400;700&family=Concert+One&family=Passion+One:wght@400;700;900&display=swap');

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

body {
    background-image: url(images/HOMEPAGE.png);
    background-color: #f7a63b; /* Good fallback while testing */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    font-family: "Passion One", sans-serif;
}

/* =========================================
   MAIN NAVBAR STYLING 
========================================= */

.navbar {
    background-color: #EF5225;
    width: 98%; 
    max-width: none; 
    height: 60px; /* Slightly taller to comfortably fit the new circle icons */
    margin: 20px auto; 
    border-radius: 50px;
    display: flex;
    align-items: center;
    position: relative; 
    z-index: 10;
}

/* 2. The Left "Bulge" behind the logo */
.navbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* Anchors the bulge strictly to the left edge */
    width: 260px; /* Width of the bulge */
    height: 120px; 
    background-color: #EF5225;
    border-radius: 50px 0 40px 40px; /* Matches top pill curve, rounds the bottom */
    z-index: -1; 
}

/* 3. General Link Setup & Flexbox Magic */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    gap: 35px; /* Spacing between the center links */
}

.nav-links li {
    display: flex;
    justify-content: center; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem; 
    padding: 8px 15px;
    border-radius: 60px;
    transition: 0.3s;
    font-weight: normal;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #EF5225;
    background-color: white;
}

/* =========================================
   LEFT SIDE: LOGO 
========================================= */

.logo-item {
    width: 180px; /* Creates invisible space pushing the other links right */
    
    /* THE MAGIC: Pushes everything after it perfectly to the center */
    margin-right: auto; 
    
    display: flex;
    align-items: center;
}

.logo-item img {
    position: absolute;
    left: 38px; /* Locks the logo into the left bulge */
    top: -30px; /* Pops it out of the top */
    height: 180px; 
    z-index: 20;
}

/* =========================================
   RIGHT SIDE: ICONS & LOGIN 
========================================= */

.right-menu {
    display: flex;
    align-items: center;
    gap: 15px; 
    
    /* THE MAGIC: Pushes this whole block perfectly to the far right */
    margin-left: auto; 
}

/* Removes the pill hover background strictly from the circle icons */
.right-menu .icon-link {
    padding: 0;
    background-color: transparent !important; 
}

/* The White Circle Shape for the Icons */
.nav-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}

.nav-icon:hover {
    transform: scale(1.1); 
}

/* Keep the log-in text readable and capitalized correctly */
.login-link {
    font-size: 1.4rem !important; 
    font-weight: bold !important;
}

/* =========================================
   DROPDOWN MENU 
========================================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: -8px; 
    background-color: white;
    border-radius: 20px;
    flex-direction: column;
    align-items: center; 
    padding: 8px 20px 20px 20px; 
    z-index: 40; 
    white-space: nowrap; 
    box-shadow: 0px 10px 15px rgba(0,0,0,0.1); 
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    color: #EF5225 !important; 
    padding: 8px 0 !important; 
    background-color: transparent !important; 
}

.dropdown-content a:nth-child(2),
.dropdown-content a:nth-child(3) {
    font-size: 1.4rem; 
}

.dropdown-content a:hover {
    color: #c43e18 !important; 
}

/* Make "MENU" inside the dropdown unclickable */
.dropdown-content a:first-child {
    cursor: default !important;      
    pointer-events: none !important; 
}

.dropdown-content a:first-child:hover {
    color: #EF5225 !important;       
    background-color: transparent !important;
}

/* =========================================
   DISH DETAIL TEMPLATE STYLES
========================================= */

.dish-detail-section {
    padding: 40px 20px 40px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. The Main White Card */
.dish-detail-container {
    margin-top: 40px;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    display: flex;
    gap: 30px; /* Space between the image and the text */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15); /* Soft shadow behind the card */
}

/* =========================================
   LEFT SIDE: IMAGE BOX
========================================= */
.dish-image-side {
    flex: 1; /* Takes up exactly half the card */
    display: flex;
    justify-content: center;
    align-items: center;
}

.dish-bg-box {
    position: relative;
    
    /* THE FIX: Hard-code the exact dimensions so it never stretches or squishes */
    width: 500px; 
    height: 500px;
    
    /* THE FIX: This stops the parent Flexbox from trying to compress the box */
    flex-shrink: 0; 
    
    background-image: url('images/orangebg.png'); 
    
    /* Because the box is now a frozen 350x350 square, this image will stay perfectly still */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    border-radius: 10px;
}

/* The popping-out food image */
.main-dish-img {
    position: absolute; 
    
    /* 1. Push the starting point to the exact middle of the green box */
    top: 50%;
    left: 50%;
    
    /* 2. THE MAGIC: Pull the image perfectly into the center using its own size */
    transform: translate(-50%, -50%); 
    
    /* Makes it pop out of the edges of the 350px box */
    width: 70%; 
    max-width: none;
    height: auto;
    
    z-index: 5;
    filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.3)); 
}


/* =========================================
   RIGHT SIDE: TEXT & BUTTONS
========================================= */
.dish-info-side {
    flex: 1.2; /* Gives the text slightly more room to breathe than the image */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the title UP and the buttons DOWN */
    padding: 5px 0;
}

.detail-title {
    font-family: 'Passion One', sans-serif;
    font-weight: lighter;
    font-size: 3.5rem;
    color: #EF5225;
    line-height: 0.9;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
}

.detail-price {
    font-family: 'Passion One', sans-serif;
    font-weight: lighter;
    font-size: 2.2rem;
    color: #943013; /* Slightly darker green to match your mockup */
    margin-bottom: 20px;
}

.detail-desc {
    font-family: 'BenchNine', sans-serif;
    font-size: 1.8rem;
    color: #000000;
    line-height: 1.1;
}

.calories-desc {
    font-family: 'BenchNine', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: #943013;
    line-height: 1.1;
    margin-top: 10px;
}

/* =========================================
   FLAVOR SELECTION GRID
========================================= */

.flavor-section {
    margin-top: 20px;
    width: 100%;
}

.flavor-title {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem;
    color: #943013; /* Matches the price color */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Forces exactly 5 equal columns */
.flavor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 10px; /* Space between the rectangles */
}

/* The Plain Rectangle Button */
.flavor-btn {
    background-color: transparent; 
    border: 2px solid #cccccc; /* The gray outline */
    border-radius: 4px; /* Very slight rounding so it's not dangerously sharp */
    padding: 8px 5px;
    
    font-family: 'BenchNine', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #555555; 
    
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease; /* Makes the hover effect perfectly smooth */
}

/* The Hover State */
.flavor-btn:hover {
    background-color: #e0e0e0; /* The background turns gray */
    border-color: #aaaaaa; /* The border gets slightly darker gray to match */
    color: #000000; /* Text pops to solid black */
}

/* Optional: Add a class for when a flavor is "Selected" or "Active" */
.flavor-btn.active {
    background-color: #6C9F28; /* Your Big Boyz green! */
    border-color: #6C9F28;
    color: white;
}

/* =========================================
   BUTTON STYLES
========================================= */
.detail-actions {
    display: flex;
    align-items: center;
    gap: 20px; 
    margin-top: 30px;
}

/* The new QTY label inside the orange button */
.qty-label {
    font-family: 'Passion One', sans-serif;
    font-size: 1.5rem; /* Slightly smaller than the numbers so it doesn't overpower them */
    color: white;
    margin-left: 10px;  /* Pushes it away from the left edge of the pill */
    margin-right: 5px;  /* Gives a little breathing room before the minus sign */
    letter-spacing: 1px;
}

/* Optional: You might want to tweak the padding on the main pill just slightly so it looks balanced! */
.qty-selector {
    display: flex;
    align-items: center;
    
    /* Spreads the QTY, -, 0, + evenly across the new wider button */
    justify-content: space-between; 
    
    background-color: #FF5100; 
    border-radius: 50px;
    color: white;
    
    /* ✨ THE FIX: Force an exact matching width and height ✨ */
    width: 220px; 
    height: 48px;
    padding: 0 25px; /* Adds breathing room on the left and right edges */
    
    /* ✨ THE FIX: Adds the matching drop shadow! ✨ */
    box-shadow: 0px 5px 10px rgba(0,0,0,0.2); 
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Passion One', sans-serif;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 15px;
}

.qty-num {
    font-family: 'Passion One', sans-serif;
    font-size: 1.8rem;
    padding: 0 5px;
}

/* Add to Cart Button */
.add-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FF5100;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    color: white;
    font-family: 'Passion One', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.add-cart-btn:hover {
    transform: translateY(-3px); /* Button lifts up slightly on hover */
}

.btn-cart-icon {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1); /* Forces the cart icon to become purely white */
}


/* =========================================
   FOOTER & TOP BAR ALIGNMENT
========================================= */

/* 1. Shared Grid Setup for Perfect Alignment */
.top-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    
    /* THE NEW ADDITIONS FOR CENTERING: */
    height: 100%;          /* Forces the grid to match the orange bar's new height */
    align-items: center;   /* Pushes the phone, email, etc., to the vertical middle */
}

/* 1. Force the orange bar to stay thin */
.top-bar {
    background-color: #FF6100;
    padding: 10px 10px;
    height: 80px; /* Locks the thickness of the bar */
    position: relative; 
    z-index: 20;
    overflow: visible !important; /* Allows the giant logo to stick out */
}

/* 2. Make the logo huge and pull it out of the layout */
.top-logo {
    position: absolute; /* Breaks it out of the grid's height calculation */
    height: 130px;      /* Make this as big as you want! */
    width: auto;
    top: -25px;         /* Pulls it up so it overlaps the top and bottom */
    left: 40;            /* Aligns it to the left of your grid container */
    z-index: 30;        /* Keeps it on top of everything */
}

/* 3. Keep the phone number from sliding to the left */
.contact-item:first-of-type {
    /* Since the logo is now 'absolute', this forces the phone number 
       to stay in column 2, leaving column 1 empty for your logo */
    grid-column: 2; 
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    font-family: 'BenchNine', sans-serif; /* Matches your body font */
    font-size: 1.8rem;
    color: black;
}

.contact-icon {
    height: 40px; /* Adjust based on your icon image sizes */
    width: auto;
}

/* 3. Bottom Dark Brown Footer Styling */
.footer {
    background-color: #4a2e15; /* The dark brown from your image */
    padding: 30px 40px;
}

.footer-container {
    display: grid;
    /* THIS IS THE MAGIC LINE: It must exactly match your .top-content columns! */
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: start; /* Keeps the footer text anchored to the top of the brown section */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Vertical spacing between the links */
    font-family: 'BenchNine', sans-serif;
}

.footer-col h3 {
    color: white;
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 10px 0;
}

.footer-col a {
    color: #e0e0e0; /* Slightly dimmed white for links */
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FF6100; /* Turns orange on hover */
}

.desktop-spacer {
    height: 100px;
}

/* 5. Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* 1. Main Navbar sizing */
    .navbar {
        height: 20px; /* Thinner bar */
        border-radius: 30px;
        margin: 10px auto; 
    }
    
    /* 2. Shrink the Left-Aligned Bulge */
    .navbar::after {
        width: 80px; /* Narrower bulge */
        height: 40px; /* Shallower drop */
        left: 0; /* Keeps it strictly on the left edge */
        border-radius: 0px 0 10px 10px; /* Blends top-left with the pill shape, rounds the bottom */
    }

    /* 3. Link alignment and text sizing */
    .nav-links {
        padding: 0 5px; /* Less padding on the far left/right */
        gap: 3px; /* Just a tiny gap between the center links */
    }

    .nav-links a {
        font-size: 0.6rem; /* Shrink the text heavily */
        padding: 2px 4px;
        white-space: nowrap; /* Forces text to stay on one line */
    }

    /* 4. The Logo Spacer & Image */
    .logo-item {
        /* Replaces your old flex: 140px rule so it pushes the center links correctly */
        width: 60px; 
        margin-right: auto; /* Shoves the main text links into the center */
    }
    
    .logo-item img {
        height: 60px; /* Smaller logo */
        top: -10px; /* Adjust the vertical position */
        left: 10px; /* Tucks it nicely inside the 80px bulge */
    }

    /* 5. The Right Side Icons (NEW) */
    .right-menu {
        gap: 4px; /* Tiny gap between the cart and user icons */
        margin-left: auto; /* Shoves the icons to the far right */
    }

    .nav-icon {
        height: 14px; /* Micro white circles to match the 20px navbar */
        width: 14px;
        padding: 2px;
    }

    /* Hide the login text so it doesn't break your 0.5rem micro-layout */
    .login-link {
        display: none !important; 
    }

    /* 6. The Dropdown Box */
    .dropdown-content {
        min-width: 40px; /* Prevents the box from being unnecessarily wide */
        padding: 0px 4px 4px 4px; /* Reduces empty white space */
        border-radius: 10px; 
        top: 0px;
    }

    .dropdown-content a {
        font-size: 0.5rem !important; /* Smaller main text */
        padding: 2px 0 !important; 
    }

    .dropdown-content a:nth-child(2),
    .dropdown-content a:nth-child(3) {
        font-size: 0.5rem !important; /* Noticeably smaller sub-links */
    }

    .dish-detail-section {
        padding: 20px 10px; 
    }

    /* 1. Stack the layout vertically */
    .dish-detail-container {
        flex-direction: column; /* THE MAGIC: Image goes on top, text drops below! */
        padding: 20px;
        gap: 20px;
        margin-top: 20px;
    }

    /* 2. Shrink the massive green box */
    .dish-bg-box {
        width: 100%;
        height: 280px;    /* Keeps it a perfect square */
    }

    /* Make the sandwich pop nicely on the smaller box */
    .main-dish-img {
        width: 70%; 
    }

    /* 3. Scale down and center the text for a clean mobile read */
    .detail-title {
        font-size: 2rem;
        text-align: center;
    }

    .detail-price {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .detail-desc, .calories-desc {
        font-size: 1.2rem;
        text-align: center;
    }

    /* 4. Squeeze the flavor grid */
    .flavor-title {
        font-size: 1.3rem;
        text-align: center;
        margin-top: 20px;
    }

    .flavor-btn {
        font-size: 0.8rem; /* Shrinks the text so all 5 columns fit */
        padding: 6px 2px;
    }

    /* 5. Stack the buttons to make them full-width for thumbs */
    .detail-actions {
        flex-direction: column; /* Stacks QTY on top, Add to Cart below */
        gap: 15px;
        width: 100%;
    }

    /* 1. Center the 80% buttons on the screen */
    .detail-actions {
        flex-direction: column; 
        gap: 15px;
        width: 100%;
        
        /* THE FIX: This forces your 80% width buttons into the dead center of the card */
        align-items: center; 
    }

    /* 2. Shape the buttons */
    .qty-selector, .add-cart-btn {
        width: 70%; 
        height: 50px;
    }
    
    .qty-selector {
        padding: 0 20px; 
    }

    /* 3. THE FIX: Target the specific text elements to actually shrink the fonts! */
    .add-cart-btn {
        font-size: 1.2rem; /* Scaled down from 1.6rem */
        justify-content: center; /* Keeps the text perfectly centered inside the orange pill */
    }

    .qty-label {
        font-size: 1.1rem; /* Scaled down from 1.5rem */
    }

    .qty-btn, .qty-num {
        font-size: 1rem; /* Scaled down from 1.8rem */
    }
    
    /* 1. SHRINK THE TOP BAR & KEEP GRID */
    .top-bar {
        /* Your existing mobile styles */
        height: 40px; 
        padding: 5px; 
        
        /* THE FIX: Pulls the entire footer section UP */
        margin-top: -100px; /* Make this number more negative (e.g., -100px) if you need to pull it higher! */
    }

    .top-content {
        display: grid;
        /* Keeps your exact 5-column desktop layout */
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        height: 100%;
        align-items: center;
        gap: 2px; /* Tiny gap to save space */
    }

    /* 2. SCALE DOWN THE POP-OUT LOGO */
    .top-logo {
        position: absolute; 
        height: 50px; /* Much smaller so it doesn't cover the screen */
        top: 50%; 
        transform: translateY(-50%);
        left: 40;
    }

    /* 3. SHRINK ICONS & TEXT TO FIT */
    .contact-item {
        font-size: 0.65rem; /* VERY small text to fit the 5 columns */
        gap: 3px;           /* Less space between icon and text */
        
        /* Forces the long email address to wrap to two lines instead of breaking the layout */
        word-break: break-all; 
        overflow-wrap: anywhere; 
        line-height: 1.1;
    }

    .contact-icon {
        height: 12px; /* Tiny icons */
    }

    /* 4. SHRINK THE FOOTER & KEEP GRID */
    .footer {
        padding: 15px 5px; /* Minimal padding */
    }

    .footer-container {
        display: grid;
        /* Matches the top bar exactly to keep that invisible vertical alignment */
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        gap: 2px;
    }

    .footer-col {
        gap: 4px;
    }

    .footer-col h3 {
        font-size: 0.9rem; /* Scaled down titles */
        margin: 0 0 5px 0;
    }

    .footer-col a {
        font-size: 0.75rem; /* Scaled down links */
    }

    .desktop-spacer {
        display: none;
    }

}