/* Custom styles for Chan Hair Studio */

html {
    scroll-behavior: smooth;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #5f1821 0%, #c42738 40%, #e4674e 100%);
}

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

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(196, 39, 56, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover effects on cards */
.group:hover .group-hover\:bg-burgundy-500 {
    transition: background-color 0.3s ease;
}

/* Focus styles for accessibility */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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