/* ============================================
   LIBATION FARMS — Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background-color: #B85C38;
    color: #FDF6E8;
}

/* Nav transition states */
.nav-scrolled {
    background-color: rgba(253, 246, 232, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(184, 92, 56, 0.08);
}

.nav-transparent {
    background-color: transparent;
}

/* Navbar links underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B85C38;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF6E8;
}

::-webkit-scrollbar-thumb {
    background: #E8B4A4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B85C38;
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Product card image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus ring animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

/* Image aspect ratio fallbacks */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[5\/4\] {
    aspect-ratio: 5 / 4;
}

/* Hero text gradient (subtle) */
.hero-gradient {
    background: linear-gradient(135deg, #FDF6E8 0%, #F2D5CC 100%);
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(184, 92, 56, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(226, 168, 75, 0.03) 0%, transparent 50%);
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
