/* Custom styles for Cinderbreeze Vineyard */

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

/* Custom selection color */
::selection {
    background-color: rgba(74, 122, 58, 0.2);
    color: #1e3519;
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4a7a3a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Nav background on scroll */
nav.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 79, 37, 0.08);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Subtle grain texture overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

#hero > * {
    position: relative;
    z-index: 2;
}

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

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #4a7a3a, #8fb57e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #b8d0ae;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb57e;
}
