/* Custom styles for Flyaway Family Salon & Spa */

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

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Delay animations for hero elements */
.animate-fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.5s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.7s;
}

/* Reveal animations for scroll sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c3333;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #b44242 !important;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Reduced motion preference */
@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,
    #contactForm,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
