/* Custom styles for H&Y Party Rentals */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffcf8;
}
::-webkit-scrollbar-thumb {
    background: #f3a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4395c;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile links */
.mobile-link {
    transition: opacity 0.2s ease;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(196, 57, 92, 0.08);
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fff0e0 100%);
}

/* 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;
    }
}

/* Fade-in animations for scroll reveal (progressive enhancement) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
