/* Custom styles for Gaither Mercantile */

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

/* Navbar background transition */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 25, 47, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #0a192f;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

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

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

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

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

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

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle gradient for hero */
#hero {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 233, 154, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 95, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #fffbea 100%);
}

/* Product card image container */
.group .aspect-\[4\/3\] {
    position: relative;
}

/* Ensure all text is readable */
.text-navy-900,
.text-navy-800,
.text-navy-700,
.text-navy-600 {
    /* Already defined by Tailwind with proper contrast */
}

/* Mobile menu active state */
#mobile-menu.active {
    display: block;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}
