/* Custom styles for Glow Beauty Lounge */

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

/* Custom font imports are handled in HTML */

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .reveal[data-reveal] {
    transition-delay: calc(var(--index, 0) * 0.1s);
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1f3318;
}

#navbar.scrolled .text-forest-600 {
    color: #3d622c;
}

#navbar.scrolled a:not(.bg-forest-700) {
    color: #1f3318;
}

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

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

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

/* Image hover effects */
img {
    -webkit-font-smoothing: antialiased;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
    .group:hover img,
    img {
        transition: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #769d5e;
}

/* Selection color */
::selection {
    background-color: #a1be8d;
    color: #1f3318;
}
