/* Custom styles for Ole Farm Beef House */

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

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

::-webkit-scrollbar-track {
    background: #2D0E28;
}

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

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

/* Selection color */
::selection {
    background: #D4A84B;
    color: #2D0E28;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 244, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 25, 66, 0.1);
}

.navbar-scrolled .font-serif {
    color: #4A1942 !important;
}

.navbar-scrolled a:not([class*="bg-plum"]) {
    color: rgba(74, 25, 66, 0.7) !important;
}

.navbar-scrolled a:not([class*="bg-plum"]):hover {
    color: #4A1942 !important;
}

/* Hero image parallax feel */
#hero img {
    will-change: transform;
}

/* Card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu animations */
.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.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 1rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover {
        transform: none;
    }
    
    #hero img,
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Print styles */
@media print {
    nav, #hero, .reveal {
        display: block !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
