/* Custom styles for Outdoor Adventure Playsets */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(80, 14, 30, 0.08);
}

nav.scrolled .font-serif {
    color: #300a11 !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #a02538;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Product card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Image hover zoom container */
.group .aspect-\[4\/3\] {
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c4394f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a02538;
}

/* Selection color */
::selection {
    background: #f7c5ce;
    color: #300a11;
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(196, 57, 79, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1024px) {
    .group:hover {
        transform: translateY(-8px);
    }
}
