/* Custom styles for Dore's Seafood */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Apply floating animations only when not reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-12 {
        animation: float 4s ease-in-out infinite;
    }
    
    .absolute.bottom-0.right-8 {
        animation: floatReverse 4.5s ease-in-out infinite;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c76d58;
    border-radius: 5px;
}

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

/* Form styles */
input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcd3c2;
    border-radius: 4px;
    background: #fbfbf8;
    color: #5f5144;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c76d58;
}

/* Button hover effects */
button[type="submit"], 
a[href="tel:+13375238338"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after,
a[href="tel:+13375238338"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button[type="submit"]:hover::after,
a[href="tel:+13375238338"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #f0ebe3 25%, #e8e2d8 50%, #f0ebe3 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: transparent;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c76d58;
    outline-offset: 2px;
}
