/* Custom styles for Bloom's Beauty Salon */

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

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

/* When JS is enabled, add hidden state and animate */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.js-enabled .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.js-enabled .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.js-enabled .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.js-enabled .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal,
    .js-enabled .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ec;
}
::-webkit-scrollbar-thumb {
    background: #d4792e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c45f20;
}

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