/* ===========================
   TREEB COFFEE SHOP - MENU PAGE STYLES
   =========================== */

/* ===========================
   MENU HERO SECTION
   =========================== */

.menu-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 48px 80px;
    background: var(--bg-dark);
}

.menu-hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(200, 110, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-layer-1) 100%);
    z-index: 0;
}

.menu-hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 165, 116, 0.015) 2px, rgba(212, 165, 116, 0.015) 4px);
    opacity: 0.4;
}

.menu-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    animation: heroFadeIn 1s ease-out 0.2s both;
}

.menu-hero-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
}

.menu-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-hero-line {
    display: block;
    animation: heroLineSlide 0.8s ease-out both;
    color: var(--cream);
}

.menu-hero-line:nth-child(1) {
    animation-delay: 0.4s;
}

.menu-hero-line:nth-child(2) {
    animation-delay: 0.55s;
}

.menu-hero-line:nth-child(3) {
    animation-delay: 0.7s;
}

.menu-hero-accent {
    color: var(--amber-glow);
    font-style: italic;
}

.menu-hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    animation: heroFadeIn 1s ease-out 0.9s both;
}

/* ===========================
   MENU NAVIGATION
   =========================== */

.menu-nav-wrapper {
    position: sticky;
    top: 90px;
    z-index: 100;
    background: rgba(13, 9, 7, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.menu-nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 48px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

.menu-nav-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 2px;
    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(--amber-glow);
    transition: width 0.3s ease;
}

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

.menu-nav-link:hover::after {
    width: 80%;
}

.menu-nav-link.menu-nav-active {
    color: var(--amber-glow);
    background: rgba(212, 165, 116, 0.1);
}

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

/* Active state for nav link in main navigation */
.nav-link-active {
    color: var(--amber-glow) !important;
}

/* ===========================
   MENU SECTIONS
   =========================== */

.menu-section {
    padding: 120px 48px;
    background: var(--bg-dark);
    position: relative;
}

.menu-section-alt {
    background: var(--bg-layer-1);
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3) 50%, transparent);
}

.menu-section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.menu-section-header {
    max-width: 800px;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out;
}

.menu-section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 20px;
}

.menu-section-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===========================
   MENU GRID & ITEMS
   =========================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 32px;
}

.menu-item {
    background: rgba(43, 31, 23, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 4px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-glow), var(--burnt-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.menu-item:hover {
    background: rgba(43, 31, 23, 0.6);
    border-color: var(--amber-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.menu-item:hover::before {
    transform: scaleX(1);
}

/* Stagger animation */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.3;
}

.menu-item-price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--amber-glow);
    white-space: nowrap;
}

.menu-item-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.menu-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.menu-meta-tag {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(212, 165, 116, 0.08);
    padding: 6px 12px;
    border-radius: 2px;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

/* ===========================
   FEATURED & SEASONAL ITEMS
   =========================== */

.menu-item-featured {
    position: relative;
    background: rgba(200, 110, 60, 0.1);
    border-color: var(--burnt-orange);
}

.menu-item-featured::before {
    transform: scaleX(1);
}

.menu-item-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--espresso);
    background: var(--amber-glow);
    padding: 6px 12px;
    border-radius: 2px;
    font-weight: 700;
}

.menu-item-seasonal {
    position: relative;
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--accent-gold);
}

.menu-item-seasonal::before {
    background: linear-gradient(90deg, var(--accent-gold), var(--amber-glow));
}

.menu-item-seasonal-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--espresso);
    background: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 2px;
    font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(201, 169, 97, 0);
    }
}

/* ===========================
   MENU FOOTER NOTE
   =========================== */

.menu-footer-note {
    padding: 80px 48px;
    background: var(--bg-layer-2);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.menu-footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.menu-footer-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 24px;
}

.menu-footer-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

/* ===========================
   RESPONSIVE - MENU PAGE
   =========================== */

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

    .menu-nav {
        justify-content: flex-start;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .menu-hero {
        padding: 120px 24px 60px;
    }

    .menu-hero-title {
        font-size: 56px;
    }

    .menu-nav {
        padding: 16px 24px;
        gap: 16px;
    }

    .menu-nav-wrapper {
        top: 70px;
    }

    .menu-section,
    .menu-footer-note {
        padding: 80px 24px;
    }

    .menu-item {
        padding: 24px;
    }

    .menu-item-name {
        font-size: 24px;
    }

    .menu-item-price {
        font-size: 18px;
    }
}

/* ===========================
   SCROLL BEHAVIOR ENHANCEMENTS
   =========================== */

html {
    scroll-padding-top: 160px;
}

/* Smooth appearance on scroll */
.menu-section-container > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.menu-section-header {
    animation-delay: 0.1s;
}

.menu-grid {
    animation-delay: 0.2s;
}
