/* Custom Styles for Family Pride Dry Cleaners */

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

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

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

/* For browsers that don't support prefers-reduced-motion, we still want content visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Fallback: ensure content is visible even without JS */
.no-js .scroll-reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #9cc5a1;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .animate-float, .animate-float-delayed {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 3rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-offwhite {
        background-color: #ffffff;
    }
    
    .text-forest-700 {
        color: #1a3a24;
    }
}
