/* Custom styles for Lara's Boutique */

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

/* Hero animations - above the fold, no opacity:0 gating */
#hero .hero-eyebrow {
    animation: fadeInDown 0.8s ease-out both;
}

#hero .hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#hero .hero-subtext {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#hero .hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

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

/* Scroll reveal animations - below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    #hero .hero-eyebrow,
    #hero .hero-headline,
    #hero .hero-subtext,
    #hero .hero-cta {
        animation: none;
        opacity: 1;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo {
    color: #064e3b !important;
}

.nav-scrolled .menu-line {
    background-color: #064e3b !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Image hover effects */
.group img {
    will-change: transform;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

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