/* Custom styles for The Cafe' Hut */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #7d173b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b1636;
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}
.hero-title {
    animation: slideUp 0.8s ease 0.1s forwards;
    opacity: 0;
}
.hero-text {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
.hero-cta {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}
.hero-image {
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #7d173b;
    border: none;
    cursor: pointer;
}
.menu-tab.active {
    background: #6b1636;
    color: #fffbeb;
    box-shadow: 0 4px 12px rgba(107, 22, 54, 0.3);
}
.menu-tab:hover:not(.active) {
    background: #fce7eb;
    color: #971842;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(125, 23, 59, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
