/* Custom styles for PA Open Air Farmers Market */

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

/* Scroll reveal base state — visible by default for progressive enhancement */
.reveal-up {
    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-right {
    opacity: 1;
    transform: translateX(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);
}

/* Only apply hidden state when prefers-reduced-motion is not set,
   so the site is readable even without JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(132, 22, 53, 0.08);
}

.nav-scrolled .nav-link {
    color: #841635 !important;
}

.nav-scrolled .menu-line {
    background: #841635 !important;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f2;
}
::-webkit-scrollbar-thumb {
    background: #c2234f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1153b;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #721732;
}

/* Subtle image placeholder animation */
img {
    background: linear-gradient(135deg, #faeae0 0%, #fdf6f2 100%);
}

/* Form focus ring animation */
input:focus,
select:focus,
textarea:focus {
    animation: focusRing 0.3s ease forwards;
}

@keyframes focusRing {
    from { box-shadow: 0 0 0 0 rgba(194, 35, 79, 0.2); }
    to { box-shadow: 0 0 0 3px rgba(194, 35, 79, 0.1); }
}

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Print styles */
@media print {
    nav, #contact-form, button { display: none; }
    body { color: #000; background: #fff; }
    .bg-burgundy-950 { background: #3f0712 !important; }
}
