/* Base Styles */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
}

/* Reset some browser defaults */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Navigation Styles */
.top-nav {
    background-color: #3b5323;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.logo {
    display: none;
}

.logo-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #f0e68c;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f0e68c;
}

.nav-item.active {
    background-color: #f0e68c;
    color: #3b5323;
}

/* Header and Banner Styles */
header {
    background-color: #3b5323;
    color: white;
    padding: 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner {
    position: relative;
    height: 175px;
    overflow: hidden;
    width: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    z-index: 2;
    letter-spacing: 1px;
}

/* Contact Info */
.contact-info {
    background-color: #2a3e19;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hours, .phone, .address {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
}

.hours::before, .phone::before, .address::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.hours::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z"/></svg>');
}

.phone::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 15.5c-1.2 0-2.4-.2-3.6-.6-.3-.1-.7 0-1 .2l-2.2 2.2c-2.8-1.4-5.1-3.8-6.6-6.6l2.2-2.2c.3-.3.4-.7.2-1-.3-1.1-.5-2.3-.5-3.5 0-.6-.4-1-1-1H4c-.6 0-1 .4-1 1 0 9.4 7.6 17 17 17 .6 0 1-.4 1-1v-3.5c0-.6-.4-1-1-1zM12 3v10l3 3v-3h6V3h-9z"/></svg>');
}

.address::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"/></svg>');
}

/* Page Structure */
#page-content {
    width: 100%;
}

.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, #f0e68c, #f5f0c6);
    padding: 12px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5rem;
    color: #3b5323;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #3b5323;
    border-radius: 3px;
}

/* Main Content Styles */
main {
    padding: 12px 12px 12px;
    background: linear-gradient(to bottom, #f0e68c, #f5f0c6);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 550px);
}

/* Menu Section */
#menu {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-title {
    font-size: 2.5rem;
    color: #3b5323;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.menu-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #3b5323;
    border-radius: 3px;
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.menu-tab {
    background-color: rgba(59, 83, 35, 0.95);
    color: white;
    border: none;
    padding: 14px 12px;
    margin: 0 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.menu-tab:hover {
    background-color: rgba(59, 83, 35, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.menu-tab.active {
    background-color: #3b5323;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-weight: 700;
    transform: scale(1.05);
}

/* Make sure other elements appear above the hover overlay */
.menu-tab span {
    position: relative;
    z-index: 2;
}

/* Ripple effect for menu tabs */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animations */
.fade-in {
    animation: fadeInAnimation 0.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu categories container */
.menu-categories {
    position: relative;
    min-height: 200px; /* Ensure space for items to appear */
}

/* Add transition for category display */
.menu-category {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    margin-bottom: 12px;
    width: 100%;
    max-width: 1100px;
}

.menu-category:first-of-type,
.menu-category[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

#menu-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.menu-category h3 {
    font-size: 2rem;
    color: #3b5323;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-category h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b5323;
}

.menu-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.menu-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding: 6px;
    width: calc((100% - 60px) / 4); /* 4 items per row with 20px gap */
    min-height: 110px; /* Further reduced from 140px */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), 
        transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), 
        box-shadow 0.3s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.menu-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.menu-item:hover h4,
.menu-item:hover p {
    transform: translateY(-5px);
}

.menu-item:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.menu-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-item h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    font-weight: 700;
}

.menu-item p {
    font-size: 1rem;
    margin: 2px 0;
}

.menu-item h4,
.menu-item p {
    z-index: 2;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease;
    color: white;
}

.item-description {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
    max-width: 90%;
}

.item-price {
    font-weight: 700;
    color: #f0e68c;
    margin-top: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 12px 15px;
    position: relative;
    width: 100%;
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.footer-address, .footer-phone {
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
}

.footer-address::before, .footer-phone::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-address::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"/></svg>');
}

.footer-phone::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 15.5c-1.2 0-2.4-.2-3.6-.6-.3-.1-.7 0-1 .2l-2.2 2.2c-2.8-1.4-5.1-3.8-6.6-6.6l2.2-2.2c.3-.3.4-.7.2-1-.3-1.1-.5-2.3-.5-3.5 0-.6-.4-1-1-1H4c-.6 0-1 .4-1 1 0 9.4 7.6 17 17 17 .6 0 1-.4 1-1v-3.5c0-.6-.4-1-1-1zM12 3v10l3 3v-3h6V3h-9z"/></svg>');
}

.copyright {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Map Container Styles */
.map-container {
    margin-top: 12px;
    padding: 12px;
    background-color: #3b5323;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    color: white;
    border-left: 5px solid #f0e68c;
}

.map-title {
    color: white;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.location-details {
    padding: 20px;
    background-color: #3b5323;
    border-radius: 8px;
    border-left: 5px solid #f0e68c;
    margin-top: 20px;
    color: white;
}

.address-line, .phone-line {
    margin: 5px 0;
    font-size: 1.1rem;
    color: white;
}

.address-line strong, .phone-line strong {
    color: #f0e68c;
}

.directions-text {
    margin-top: 12px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* About Content Styles */
.about-content {
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.about-text-container {
    background-color: #3b5323;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    border-left: 5px solid #f0e68c;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    text-align: left;
    margin: 0;
    width: 100%;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .menu-item {
        width: calc((100% - 40px) / 3); /* 3 items per row with 20px gap */
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 10px;
    }
    
    .logo {
        display: none;
    }
    
    .nav-links {
        gap: 15px;
        flex-direction: row;
        justify-content: center;
    }
    
    .banner {
        height: 125px;
    }
    
    .banner-title {
        font-size: 3rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-category h3 {
        font-size: 1.8rem;
    }
    
    .menu-tab {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .footer-address, .footer-phone {
        margin: 0 auto;
        width: auto;
        justify-content: center;
        text-align: center;
    }
    
    .menu-item {
        width: calc((100% - 15px) / 2); /* 2 items per row with 15px gap */
    }
    
    .menu-items {
        gap: 15px; /* Reduce gap on smaller screens */
    }

    .map-container {
        padding: 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .map-title {
        font-size: 1.6rem;
    }
    
    .location-details {
        padding: 15px;
    }

    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .about-section {
        padding: 12px 10px;
    }

    .about-text-container {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner {
        height: 100px;
    }
    
    .menu-item {
        width: 100%;
        height: 110px; /* Further reduced from 140px */
    }
    
    .menu-tabs {
        gap: 5px;
    }
    
    .menu-tab {
        padding: 6px 12px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .menu-title, .section-title {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }

    .address-line, .phone-line {
        font-size: 1rem;
    }
    
    .directions-text {
        font-size: 0.9rem;
    }

    .map-wrapper {
        width: 100%;
    }

    .about-text-container {
        border-left-width: 3px;
        padding: 12px;
    }
}

.phone a, .phone-line a, .footer-phone a,
.address a, .address-line a, .footer-address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone a:hover, .phone-line a:hover, .footer-phone a:hover,
.address a:hover, .address-line a:hover, .footer-address a:hover {
    color: #f0e68c;
    text-decoration: underline;
}

@media (hover: none) {
    /* Only for touch devices */
    .phone a:active, .phone-line a:active, .footer-phone a:active,
    .address a:active, .address-line a:active, .footer-address a:active {
        color: #f0e68c;
    }
}

/* Ensure consistent font usage across all elements */
* {
    font-family: "Quicksand", sans-serif;
}

/* Fix link colors sitewide */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0e68c;
}

a:visited {
    color: inherit;
}

a:active {
    color: #f0e68c;
}
