/* Custom styles for Lincoln Hill Farm */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #ff8a55;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8501a;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

header.scrolled .font-display {
    color: #262626 !important;
}

header.scrolled a:not(.px-8) {
    color: #525252 !important;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #737373;
    border: none;
    cursor: pointer;
}
.menu-tab.active {
    background: white;
    color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}
.menu-tab:hover:not(.active) {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s 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; }

/* Menu panel transitions */
.menu-panel {
    animation: fadeSlideUp 0.5s ease forwards;
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base - content always visible by default */
.reveal {
    /* Default: fully visible, no animation needed */
}

/* Scroll reveal enhanced with JS - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Subtle hover lift on cards */
.rounded-3xl {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #faf0e0 0%, #fce4d6 100%);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff8a55;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* 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) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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