/* Custom styles for Happy Valley Mobile Home Park */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
    .scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
    .scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
    .scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
    .scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }
    .scroll-reveal[data-delay="6"] { transition-delay: 0.6s; }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, pointer-events 0.3s ease-out;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

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

/* Selection color */
::selection {
    background-color: rgba(79, 209, 165, 0.3);
    color: #0a1619;
}

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

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

::-webkit-scrollbar-track {
    background: #0a1619;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4fd1a5;
}

/* Hero card hover effects */
#hero .bg-white\/5 {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Print styles */
@media print {
    header, footer, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
