/* Custom styles for If It's Hair */

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

/* Prevent flash of hidden content - all content visible by default */
body {
    opacity: 1;
}

/* Scroll reveal - progressive enhancement, hidden by default via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate {
        animation: fadeInUp 0.6s ease forwards;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.scroll-reveal.animate:nth-child(1) { animation-delay: 0.05s; }
.scroll-reveal.animate:nth-child(2) { animation-delay: 0.1s; }
.scroll-reveal.animate:nth-child(3) { animation-delay: 0.15s; }
.scroll-reveal.animate:nth-child(4) { animation-delay: 0.2s; }
.scroll-reveal.animate:nth-child(5) { animation-delay: 0.25s; }
.scroll-reveal.animate:nth-child(6) { animation-delay: 0.3s; }

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(161, 21, 68, 0.08);
    box-shadow: 0 1px 20px rgba(161, 21, 68, 0.06);
}

/* Mobile menu */
#mobile-menu.open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    translate: 0 -10px;
    opacity: 0;
    pointer-events: none;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6e163e;
}

/* Remove outline for mouse users, keep for keyboard */
:focus-visible {
    outline: 2px solid #a11544;
    outline-offset: 2px;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a11544' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f9cfd9 100%);
}
