/* Custom styles for Rae Raes Salon */

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

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

/* Scroll reveal when animated - only applied via JS */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #7a1c32 !important;
}

#navbar.scrolled .text-burgundy-500 {
    color: #b82844 !important;
}

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

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

/* Button focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b82844;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background: #fce7eb;
    color: #7a1c32;
}

/* Image loading placeholder */
img {
    background-color: #fce0d6;
}

/* Subtle gradient overlay for service cards on hover */
.group:hover .rounded-2xl {
    box-shadow: 0 20px 60px rgba(122, 28, 50, 0.2);
}

/* Gallery hover effect */
.rounded-2xl.overflow-hidden {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.rounded-2xl.overflow-hidden:hover {
    box-shadow: 0 8px 40px rgba(122, 28, 50, 0.15);
}

/* Form input transitions */
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Navbar link underline animation */
nav a::after {
    transition: width 0.3s ease;
}
