/* Custom styles for Royal Oaks RV Sites */

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

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

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #500724;
}

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

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

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

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

/* Nav transition states */
.nav-scrolled #nav {
    background: rgba(80, 7, 36, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

.nav-scrolled #nav-logo {
    color: #fbbf24;
}

.nav-scrolled nav a:not(.bg-amber-500\/90):not(.bg-plum-950) {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile menu open state */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Fade-in animations (progressive enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Thin line decorations */
.thin-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Subtle pattern overlay for dark sections */
.pattern-overlay {
    background-image: radial-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
