/* Custom styles for Frontera Artesanía */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1D20;
}
::-webkit-scrollbar-thumb {
    background: #3D4044;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F2704A;
}

/* Selection color */
::selection {
    background: #F2704A;
    color: #1A1D20;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(26, 29, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 64, 68, 0.5);
}

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

/* Menu button animations */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal base states — always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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; }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(242, 112, 74, 0.3);
}

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image loading placeholder */
img {
    background-color: #2C2F33;
}

/* Map filter override for light mode */
.map-light {
    filter: grayscale(20%) brightness(1.1) !important;
}
</style>
