/* Custom styles for Ann's Upholstery */

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

/* Scroll reveal base - always visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Hero image hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Mobile menu active state */
.mobile-link:hover {
    padding-left: 0.5rem;
}

/* Selection color */
::selection {
    background: #fce4db;
    color: #b83018;
}
