/* ============================================
   Bigfoot in the Smokies — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(129, 28, 49, 0.2);
    color: #3b0a12;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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;
}

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

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background-color: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 rgba(129, 28, 49, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(129, 28, 49, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(129, 28, 49, 0.4);
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid rgba(129, 28, 49, 0.5);
    outline-offset: 2px;
}

/* --- Image Optimization --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.35s;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

/* --- Input AutoFill Styling --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    box-shadow: 0 0 0 30px #ffffff inset !important;
}
