/* Running Deer Vineyards — Custom Styles */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(240, 96, 64, 0.3);
    color: #ffffff;
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* Scroll reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal="delay-1"] { transition-delay: 0.1s; }
.reveal[data-reveal="delay-2"] { transition-delay: 0.2s; }
.reveal[data-reveal="delay-3"] { transition-delay: 0.3s; }
.reveal[data-reveal="delay-4"] { transition-delay: 0.4s; }
.reveal[data-reveal="delay-5"] { transition-delay: 0.5s; }

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

/* Parallax geometric shapes */
.geometric-circle,
.geometric-rect {
    will-change: transform;
}

/* Image hover effects */
img {
    display: block;
    max-width: 100%;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f06040;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

/* Custom focus ring for form inputs */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 96, 64, 0.1);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Active nav link */
nav a.active {
    color: #f06040 !important;
}

/* Tasting room grid gap fix */
.grid.grid-cols-2 {
    gap: 1rem;
}

/* Ensure contrast on all text elements */
.text-white\\/70,
.text-white\\/60,
.text-white\\/50,
.text-white\\/40 {
    color: inherit;
}

/* Print styles */
@media print {
    .geometric-circle,
    .geometric-rect,
    #navbar {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
