/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    text-align: center;
    flex: 1;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
}

.phone-link a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link a:hover {
    color: #FFD700;
    transform: translateY(-1px);
}

.phone-link a span {
    font-weight: 600;
}


/* Menu Navigation */
.menu-nav {
    background: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.nav-btn {
    background: none;
    border: 2px solid #8B0000;
    color: #8B0000;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    background: #8B0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

/* Category count styling */
.category-count {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 4px;
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
}

.mobile-category-selector {
    position: relative;
    width: 100%;
}

.mobile-category-btn {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-category-btn:hover {
    border-color: #8B0000;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.1);
}

.mobile-category-btn.active {
    border-color: #8B0000;
    background: #8B0000;
    color: white;
}

.mobile-category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-category-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-category-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-item:hover {
    background: #f8f8f8;
    color: #8B0000;
}

.mobile-category-item.active {
    background: #8B0000;
    color: white;
}

.mobile-category-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-category-icon.rotated {
    transform: rotate(180deg);
}

/* Menu Section */
.menu-section {
    padding: 1.5rem 0;
    min-height: 60vh;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #8B0000;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 1rem;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B0000;
    white-space: nowrap;
}

.item-category {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.category-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0 1.5rem;
    position: relative;
}

.category-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #FFD700);
    border-radius: 2px;
}

/* Location Section */
.location-section {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.location-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.location-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.location-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.location-btn, .delivery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #8B0000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.delivery-btn {
    background: #28a745;
}

.delivery-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.delivery-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid #8B0000;
}

.delivery-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.delivery-info i {
    color: #8B0000;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 2px solid #8B0000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: #FFD700;
}

.footer-left p {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}

.footer-right p {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}

.partner-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #fff;
}

/* Add bottom padding to body to account for fixed footer */
body {
    padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    /* Hide desktop nav, show mobile nav */
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: block !important;
    }
    
    .menu-nav {
        padding: 0.5rem 0;
    }
    
    .menu-section {
        padding: 1rem 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    .category-header {
        margin: 1.5rem 0 1rem;
    }
    
    .category-header h3 {
        font-size: 2rem;
    }
    
    .location-content h3 {
        font-size: 2rem;
    }
    
    .location-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .location-btn, .delivery-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 0.4rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .footer-left h4 {
        font-size: 0.9rem;
    }
    
    .footer-left p,
    .footer-right p {
        font-size: 0.7rem;
    }
    
    body {
        padding-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    
    .menu-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .item-price {
        align-self: flex-start;
    }
    
    .footer {
        padding: 0.3rem 0;
    }
    
    .footer-left h4 {
        font-size: 0.85rem;
    }
    
    .footer-left p,
    .footer-right p {
        font-size: 0.65rem;
    }
    
    body {
        padding-bottom: 45px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation for menu items */
.menu-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for menu items */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
