/* ===== Custom Styles for Bud Adams Ranch Pecans ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5EC;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

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

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

.floating-card:nth-child(1) {
    animation-delay: 0s;
}
.floating-card:nth-child(2) {
    animation-delay: 1.2s;
}
.floating-card:nth-child(3) {
    animation-delay: 2.4s;
}
.floating-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Scroll reveal animations */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
.nav-scrolled .font-serif {
    color: #3D2B1F !important;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-section.reveal-hidden {
        opacity: 1;
        transform: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* Selection color */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}
