/* Custom styles for Whistle Stop Take-Away Cafe */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #2BA878;
    outline-offset: 2px;
}

/* Subtle hover effects on cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient overlay for hero image */
.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 13, 31, 0.7) 0%, rgba(6, 13, 31, 0.3) 100%);
}

/* Animated underline for links */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2BA878;
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Custom selection color */
::selection {
    background-color: #2BA878;
    color: white;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-asymmetric {
        min-height: auto;
    }
}
