/* Custom styles for Renee's Sewing Nook */

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

/* Navigation active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery item hover effect */
.gallery-item {
    cursor: pointer;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a602c;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #4d7c39;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-fixed,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #1e3117;
        background: white;
    }
}
