/* Custom styles for Hairtruth Erin Klumb */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

/* Navbar transitions */
.nav-link {
    color: inherit;
}

/* Mobile menu link styles */
.mobile-menu-link {
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    transform: scale(1.05);
}

/* Scroll reveal base styles - always visible by default */
.scroll-reveal {
    /* Content is visible by default for accessibility */
}

/* Animation only applies when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero animations */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.6s;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #931c3d;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #370a15;
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #b5264d;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
