/* Custom styles for Headliners Salon & Day Spa */

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

/* Prevent content flash before JS loads */
.no-js .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Scroll reveal base styles - visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animated - only when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .js-enabled .scroll-reveal.revealed:nth-child(1) { transition-delay: 0.05s; }
    .js-enabled .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.15s; }
    .js-enabled .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.25s; }
    .js-enabled .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.3s; }
}

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

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

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

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

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

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52c796;
}

/* Selection color */
::selection {
    background: #bdf0db;
    color: #0f172a;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

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

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2da876, #52c796);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
