/* Custom styles for Nova Holsteins and Vineyard Jerseys */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 246, 227, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #1e3a5f;
}

#navbar.scrolled .nav-link {
    color: #334e68;
}

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

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

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Product card hover gradient shift */
.bg-gradient-to-br {
    transition: background 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* Selection color */
::selection {
    background: #f5c34e;
    color: #1e3a5f;
}

/* Map container */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* Ensure all text has proper contrast */
.text-navy-800 { color: #1e3a5f; }
.text-navy-700 { color: #334e68; }
.text-navy-600 { color: #486581; }
.text-navy-500 { color: #627d98; }
.text-navy-400 { color: #829ab1; }
.text-navy-300 { color: #9fb3c8; }
.text-navy-200 { color: #bcccdc; }
.text-navy-100 { color: #d9e2ec; }

.text-gold-600 { color: #a67628; }
.text-gold-500 { color: #c8943a; }
.text-gold-400 { color: #f5c34e; }
.text-gold-300 { color: #f9db8a; }
