/* Custom styles for Hometown Medical Supplies */

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

/* Scroll reveal animations — progressive enhancement only */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state for scroll-reveal elements is visible */
/* JS adds the 'revealed' class for animated entrance */

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(251, 249, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 185, 129, 0.08);
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.04) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FBF9F4;
}
::-webkit-scrollbar-thumb {
    background: #D1FAE5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

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

/* Ensure all images have consistent rounded corners */
img {
    border-radius: 0.5rem;
}

/* Product card hover */
.group:hover .aspect-square {
    overflow: hidden;
}
