/* Custom styles for Sweet Water Gin Hardware */

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

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

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

::-webkit-scrollbar-thumb {
    background: #9ebe8e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #73a05d;
}

/* Selection color */
::selection {
    background-color: #c7dbbe;
    color: #294021;
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid #73a05d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent flash of unstyled content */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Animation for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Ensure above-the-fold content is always visible */
#hero,
#hero *,
nav,
nav * {
    opacity: 1 !important;
    transform: none !important;
}

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

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

/* Button hover effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #e3edde 0%, #f2f7f0 50%, #e3edde 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    img {
        animation: none;
        background: #e3edde;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}
