/* Custom styles for Memaw's Cafe */

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

/* Custom gradient for hero text */
.hero-gradient {
    background: linear-gradient(135deg, #d16551 0%, #c45240 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(209, 101, 81, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(207, 170, 106, 0.05) 0%, transparent 50%);
}

/* Card hover effects */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button pulse animation */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(209, 101, 81, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(209, 101, 81, 0);
    }
}

.btn-pulse {
    animation: pulse-soft 2s infinite;
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Fade in animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 246, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf7ef;
}

::-webkit-scrollbar-thumb {
    background: #d16551;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c45240;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .img-zoom img {
        transition: none;
    }
    
    .btn-pulse {
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d16551;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f4d4c8;
    color: #6b2f28;
}
