/* Wild Rose Farms — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050E1F;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF52;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Selection color */
::selection {
    background: #C9A84C;
    color: #050E1F;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Input placeholder styling */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img[data-src].loaded {
    opacity: 1;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gold glow on focus for form inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: #C9A84C !important;
}

/* Custom select dropdown styling */
select option {
    background: #050E1F;
    color: #ffffff;
    padding: 8px;
}

/* Nav background transition */
#navbar.scrolled {
    background: rgba(3, 10, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* Gallery image hover overlay */
.col-span-2 > div,
.overflow-hidden > div {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 14, 31, 0.2) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* Section divider line animation */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
}
