/* ===== Custom Styles for Gagne Farm Stand ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c8a951;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b96a;
}

/* Selection color */
::selection {
    background: #c8a951;
    color: #0a1628;
}

/* ===== Navbar scroll state ===== */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 169, 81, 0.15);
}

/* ===== Mobile menu animation ===== */
.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open #bar2 {
    opacity: 0;
}
.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ===== Hero parallax-like effect ===== */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* ===== Produce card hover lift ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Fade-in 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; }
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c8a951;
    outline-offset: 2px;
}

/* ===== Button ripple effect ===== */
button, a {
    position: relative;
    overflow: visible;
}

/* ===== Gold shimmer on hover for CTA ===== */
.bg-gold-500:hover {
    background-color: #d4b96a !important;
}

/* ===== Ensure text contrast ===== */
.text-navy-900,
.text-navy-800,
.text-navy-700,
.text-navy-600 {
    color: inherit;
}

/* ===== Image loading placeholder ===== */
img {
    background-color: #f5f5f0;
}

/* ===== Contact form focus states ===== */
input:focus,
textarea:focus {
    border-color: #c8a951 !important;
    box-shadow: 0 0 0 1px #c8a951;
}

/* ===== Decorative gold line animation ===== */
@keyframes shimmer {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* ===== Season card hover ===== */
.group:hover .group-hover\:bg-gold-500\/20 {
    background-color: rgba(200, 169, 81, 0.2) !important;
}

/* ===== Mobile menu slide ===== */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Prevent layout shift ===== */
.aspect-\[4\/5\],
.aspect-\[4\/3\] {
    position: relative;
}
