/* Custom styles for The Look Salon and Spa */

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

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

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

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

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

/* Selection color */
::selection {
    background: #a11537;
    color: white;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure reveal content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* No JS fallback */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #a11537;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}

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

#mobile-menu.open {
    max-height: 400px;
}

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .relative z-10 > div > * {
    animation: fadeInUp 0.8s ease forwards;
}

#hero .relative z-10 > div > *:nth-child(1) { animation-delay: 0.1s; }
#hero .relative z-10 > div > *:nth-child(2) { animation-delay: 0.2s; }
#hero .relative z-10 > div > *:nth-child(3) { animation-delay: 0.3s; }
#hero .relative z-10 > div > *:nth-child(4) { animation-delay: 0.4s; }
#hero .relative z-10 > div > *:nth-child(5) { animation-delay: 0.5s; }

/* Pulse animation for badge */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse-subtle 2s ease-in-out infinite;
}
