/* Custom styles for Smith's Nursery */

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

/* Selection color */
::selection {
    background-color: #a8d4ab;
    color: #0d3917;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #a8d4ab;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fbf7a;
}

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

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 122, 50, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
    padding-top: 1rem;
}

/* Nav shadow on scroll */
header.scrolled {
    box-shadow: 0 1px 20px rgba(26, 122, 50, 0.08);
}

/* Image hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gradient text (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #1a7a32, #3da853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Leaf decoration */
.leaf-decoration {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
