/* Custom styles for Starbucks Santa Rosa */

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

/* Selection color */
::selection {
    background-color: rgba(168, 21, 54, 0.15);
    color: #75132c;
}

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

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

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

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

/* Mobile menu active state */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #a81536;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

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

/* Menu item hover line animation */
.group:hover h4 {
    position: relative;
}

.group:hover h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #a81536, transparent);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(168, 21, 54, 0.08);
}

/* Image hover zoom */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.03);
}

/* Decorative line animations */
@keyframes drawLine {
    from { width: 0; }
    to { width: 6rem; }
}

/* Staggered animation delays for cards */
.card-1 { transition-delay: 0ms; }
.card-2 { transition-delay: 100ms; }
.card-3 { transition-delay: 200ms; }
