/* Menu Page Specific Styles */

/* Menu Hero */
.menu-hero {
    position: relative;
    min-height: 70vh;
    background-image: url('1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    padding: 180px 2rem 80px;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.menu-title {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-title-line {
    display: block;
}

.hero-title-line.highlight-yellow {
    color: #F4E92A;
}

.menu-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
}

.btn-hero-order {
    display: inline-block;
    background: linear-gradient(180deg, #F4E92A 0%, #D4C600 100%);
    color: var(--dark);
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2.5px;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(244, 233, 41, 0.45);
    border: 2px solid #A89E00;
    cursor: pointer;
}

.btn-hero-order:hover {
    background: linear-gradient(180deg, #E8DA18 0%, #B8AA00 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 40px rgba(244, 233, 41, 0.55);
}

/* Promo Banner */
.menu-promo-banner {
    background: var(--dark);
    padding: 1rem 2rem;
    text-align: center;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-icon {
    font-size: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.promo-text {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.promo-cta {
    background: var(--red-primary);
    color: var(--dark);
    border: none;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-cta:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}

/* Category Navigation */
.menu-main {
    padding-top: 2rem;
    background: #ffffff;
}

/* sit below fixed navbar; when promo bar is on, add --coc-announcement-h (announcement-bar.js) */
.category-nav-wrapper {
    position: -webkit-sticky;
    position: sticky;
    /* ~7rem ≈ main nav row height — must clear fixed .navbar (z-index 1000) */
    top: 7rem;
    z-index: 90;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0 1rem; /* More breathing room at top */
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.coc-has-announcement .category-nav-wrapper {
    top: calc(var(--coc-announcement-h, 48px) + 7rem);
}

.category-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem 0.5rem; /* More top padding */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: transparent;
    border: 2px solid rgba(0,0,0,0.1);
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    color: var(--red-primary);
    border-color: var(--red-primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--red-primary);
    color: var(--dark);
    border-color: var(--red-primary);
    box-shadow: 0 4px 12px rgba(244, 233, 41, 0.3);
}

/* scroll-margin: sticky offset + category strip ~ Nav stack + row of pills */
.menu-grid-section {
    scroll-margin-top: calc(7rem + 6.25rem);
}

body.coc-has-announcement .menu-grid-section {
    scroll-margin-top: calc(var(--coc-announcement-h, 48px) + 7rem + 5.5rem);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
    gap: 2.5rem;
    padding-bottom: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    contain: layout style;
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.06);
}

.menu-item.menu-item-visible {
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
}

.menu-item.menu-item-visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.menu-item-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f8f8;
}

.menu-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.menu-item.menu-item-visible:hover .menu-item-image {
    transform: scale(1.05);
}

.menu-tags {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

.tag-bestseller { background: #FFD700; color: #000; }
.tag-new { background: #D92027; color: #fff; }
.tag-spicy { background: #FF6B6B; color: #fff; }
.tag-vegetarian { background: #4CAF50; color: #fff; }
.tag-halal { background: #2196F3; color: #fff; }
.tag-deal { background: #9C27B0; color: #fff; }

.menu-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.menu-item-title {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    line-height: 1.15;
    margin: 0;
    color: var(--dark);
}

.menu-item-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #D92027;
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex: 1;
}

.btn-add-cart {
    width: 100%;
    background: var(--dark);
    border: none;
    color: #ffffff;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    padding: 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
}

.btn-add-cart:hover {
    background: var(--red-primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 233, 41, 0.35);
}

/* Mid-section CTA Banner */
.menu-cta-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
}

.menu-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.menu-cta-text {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    color: #ffffff;
    letter-spacing: 2px;
}

.btn-cta-inline {
    background: var(--red-primary);
    color: var(--dark);
    border: none;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-inline:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 233, 41, 0.4);
}

/* Bottom CTA Section */
.menu-bottom-cta {
    background: linear-gradient(135deg, #f9f9f5 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid rgba(0,0,0,0.05);
}

.bottom-cta-content h2 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

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

.btn-bottom-cta {
    background: linear-gradient(180deg, #F4E92A 0%, #D4C600 100%);
    color: var(--dark);
    border: 2px solid #A89E00;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(244, 233, 41, 0.35);
}

.btn-bottom-cta:hover {
    background: linear-gradient(180deg, #E8DA18 0%, #B8AA00 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(244, 233, 41, 0.45);
}

/* Location Modal */
.location-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.location-modal.open {
    opacity: 1;
    visibility: visible;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.location-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal.open .location-modal-content {
    transform: translateY(0) scale(1);
}

.location-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark);
}

.location-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.location-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.location-modal-header h2 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.location-modal-header p {
    color: #666;
    font-size: 1rem;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f8f8f8;
    border-radius: 16px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-option:hover {
    background: #fff;
    border-color: var(--red-primary);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.location-icon {
    font-size: 1.75rem;
}

.location-info {
    flex: 1;
}

.location-info h3 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin: 0 0 0.25rem 0;
    letter-spacing: 1px;
}

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

.location-arrow {
    font-size: 1.5rem;
    color: #111;
    transition: transform 0.3s ease;
}

.location-option:hover .location-arrow {
    transform: translateX(5px);
}

.location-modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.location-promo {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .menu-hero {
        min-height: 60vh;
        padding: 160px 1.5rem 60px;
    }
    
    .menu-hero-content {
        padding: 2rem 1.5rem;
    }
    
    .menu-title {
        font-size: clamp(3.5rem, 9vw, 6rem);
        margin-bottom: 1.5rem;
    }
    
    .menu-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero-order {
        font-size: 1.4rem;
        padding: 1.1rem 2.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-hero {
        min-height: auto;
        padding: 130px 1.25rem 40px;
    }
    body.coc-has-announcement .menu-hero {
        padding-top: calc(var(--coc-announcement-h, 60px) + 130px);
    }
    
    .menu-hero-content {
        padding: 1.5rem 1rem;
    }
    
    .menu-title {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.05;
    }
    
    .menu-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
    }
    
    .btn-hero-order {
        font-size: 1rem;
        padding: 0.85rem 1.75rem;
        letter-spacing: 1.5px;
    }
    
    .promo-content {
        gap: 1rem;
    }
    
    .promo-text {
        font-size: 1.1rem;
    }
    
    .category-nav-wrapper {
        top: 5.5rem;
        padding: 0.75rem 0;
    }

    body.coc-has-announcement .category-nav-wrapper {
        top: calc(var(--coc-announcement-h, 60px) + 5.5rem);
    }

    .menu-grid-section {
        scroll-margin-top: calc(5.5rem + 5.5rem);
    }

    body.coc-has-announcement .menu-grid-section {
        scroll-margin-top: calc(var(--coc-announcement-h, 60px) + 5.5rem + 5.25rem);
    }

    .category-btn {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 3rem;
    }
    
    .menu-cta-banner {
        padding: 1.5rem;
    }
    
    .menu-cta-text {
        font-size: 1.3rem;
    }
    
    .btn-cta-inline {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .menu-bottom-cta {
        padding: 3rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .bottom-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .btn-bottom-cta {
        font-size: 1.2rem;
        padding: 0.9rem 2rem;
        width: 100%;
    }
    
    .location-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .location-modal-header h2 {
        font-size: 1.75rem;
    }
    
    .location-option {
        padding: 1rem 1.25rem;
    }
    
    .location-info h3 {
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .menu-hero {
        padding: 130px 0.75rem 40px;
    }
    
    .menu-hero-content {
        padding: 1.5rem 0.75rem;
    }
    
    .menu-title {
        font-size: clamp(2.5rem, 15vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .menu-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero-order {
        font-size: 1rem;
        padding: 0.9rem 1.75rem;
        letter-spacing: 1px;
    }
    
    .promo-text {
        font-size: 0.95rem;
    }
    
    .promo-cta {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 0.35rem 0.85rem;
    }
    
    .menu-item-title {
        font-size: 1.25rem;
    }
    
    .menu-cta-text {
        font-size: 1.1rem;
    }
    
    .btn-cta-inline {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
        width: 100%;
    }
    
    .bottom-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .btn-bottom-cta {
        font-size: 1.1rem;
        padding: 0.85rem 1.5rem;
    }
}

/* Menu Item Enter Animation */
.menu-item-enter {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.menu-item-enter.menu-item-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy fade-in kept for non-menu elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Print Styles for Menu */
@media print {
    .navbar, .mobile-menu, .menu-promo-banner, .category-nav-wrapper, 
    .menu-cta-banner, .menu-bottom-cta, .footer, .btn-add-cart {
        display: none !important;
    }
    
    .menu-hero {
        height: auto;
        min-height: auto;
        padding: 2rem;
    }
    
    .menu-grid {
        display: block;
    }
    
    .menu-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
