/* Custom styles for Hi-Fi Senpai */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #97c5a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #386d42;
}

/* Selection color */
::selection {
    background: #386d42;
    color: #faf9f6;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(15, 28, 17, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: only animate if user prefers motion and JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Product card image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #386d42;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    header, #contactForm, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
