/* Custom styles for Salon Infused */

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

/* Custom selection color */
::selection {
    background-color: rgba(62, 158, 132, 0.3);
    color: #0d1f28;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(244, 251, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #142d3a !important;
}

.nav-scrolled .font-serif.text-2xl {
    color: #142d3a !important;
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal base - content is ALWAYS visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll reveal when animation is enabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #60baa0;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e3f5ed 0%, #d4dfe8 100%);
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
