/* ========================================
   MENU PAGE — Premium Design
   ======================================== */

/* Hero */
.menu-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0C2340 0%, #1B4965 40%, #0C2340 100%);
    overflow: hidden;
    padding-top: 100px;
}

.menu-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 196, 182, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.menu-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-ocean-deep), transparent);
    z-index: 2;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255,255,255,0.01) 50px,
            rgba(255,255,255,0.01) 51px
        );
    pointer-events: none;
}

.menu-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 3rem 1rem 5rem;
}

.menu-hero-label {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
}

.menu-hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-ocean-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.menu-hero-intro {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.menu-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
}

.menu-download-btn i {
    font-size: 1.1rem;
}

/* Sticky Category Nav */
.menu-sticky-nav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(12, 35, 64, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    padding: 0;
}

.menu-nav-list {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.menu-nav-list::-webkit-scrollbar {
    display: none;
}

.menu-nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.menu-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.menu-nav-link:hover {
    color: var(--color-primary);
}

.menu-nav-link.active {
    color: var(--color-accent);
}

.menu-nav-link.active::after {
    width: 60%;
}

/* Menu Content */
.menu-content {
    padding: 4rem 0 6rem;
    background: var(--color-ocean-deep);
    min-height: 60vh;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 0;
}

.category-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    opacity: 0.5;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-primary);
    word-break: break-word;
}

.category-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-border), transparent);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.menu-grid--desserts {
    grid-template-columns: repeat(3, 1fr);
}

/* Menu Item Card */
.menu-item-card {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateY(15px);
}

.menu-item-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
    transition: width 0.4s ease;
    pointer-events: none;
}

.menu-item-card:hover::before {
    width: 100%;
}

.menu-item-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Even items get a left border accent */
.menu-grid > .menu-item-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.item-content {
    position: relative;
    z-index: 1;
}

.item-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
    word-break: break-word;
}

.item-note {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 400;
    opacity: 0.8;
    margin-left: 0.3rem;
}

.item-dots {
    flex-grow: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
    min-width: 20px;
    margin-bottom: 4px;
}

.item-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-accent);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.item-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

/* Dessert cards */
.menu-item-card--dessert {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.menu-item-card--dessert:last-child {
    border-right: none !important;
}

.menu-item-card--dessert .item-header {
    justify-content: center;
}

.menu-item-card--dessert .item-dots {
    display: none;
}

.menu-item-card--dessert .item-name {
    margin-right: 1rem;
}

/* Menu Category Spacing */
.menu-category {
    margin-bottom: 4rem;
    scroll-margin-top: 160px;
}

.menu-category:last-of-type {
    margin-bottom: 3rem;
}

/* Footer Section */
.menu-footer-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.allergen-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.allergen-note i {
    color: var(--color-accent);
    font-size: 1rem;
}

.menu-cta {
    margin-top: 1.5rem;
}

.menu-cta .btn {
    padding: 1rem 3rem;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

    .menu-grid > .menu-item-card:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .menu-hero {
        min-height: 45vh;
        padding-top: 90px;
    }
    
    .menu-hero h1 {
        font-size: 2.4rem;
    }
    
    .menu-hero-subtitle {
        font-size: 1rem;
    }

    .menu-hero-intro {
        font-size: 0.9rem;
    }
    
    .menu-hero-content {
        padding: 2rem 1rem 4rem;
    }
    
    .menu-sticky-nav {
        top: 66px;
    }
    
    .menu-nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .category-header {
        margin-bottom: 2rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .menu-item-card {
        padding: 1.2rem 1rem;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-price {
        font-size: 1.05rem;
    }
    
    .item-desc {
        max-width: 100%;
        font-size: 0.82rem;
    }

    .menu-grid--desserts {
        grid-template-columns: 1fr;
    }

    .menu-item-card--dessert {
        border-right: none !important;
    }

    .menu-content {
        padding: 2.5rem 0 4rem;
    }

    .menu-category {
        scroll-margin-top: 130px;
    }
}

@media (max-width: 480px) {
    .menu-hero h1 {
        font-size: 2rem;
    }
    
    .menu-nav-list {
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .menu-nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
    }
}
