/* Custom styles for The Shop on Main Street */

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

/* Selection color */
::selection {
    background-color: #C2704E;
    color: #FDF8F0;
}

/* Reveal animations (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-transparent {
    background-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4B882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C2704E;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding: 0;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C2704E;
    transition: width 0.2s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Gradient text utility */
.text-gradient-terra {
    background: linear-gradient(135deg, #C2704E, #A35539);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover for product cards */
.aspect-\[4\/3\] {
    transition: transform 0.5s ease;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C2704E;
    transition: width 0.2s ease;
}
.nav-link:hover::after {
    width: 100%;
}
