/* Custom styles for Pine Island RV Park */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf5;
}
::-webkit-scrollbar-thumb {
    background: #d4a0aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Selection */
::selection {
    background: #7B2D3B;
    color: #fff;
}

/* Header scroll state */
header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

header.scrolled .font-serif {
    color: #7B2D3B;
}

/* Hero animations */
@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.floating-card-delay-1 {
    animation-delay: 0.5s;
}

.floating-card-delay-2 {
    animation-delay: 1s;
}

.floating-card-delay-3 {
    animation-delay: 1.5s;
}

/* Fade-in animation */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.7s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Nav link hover underline */
a.hover-underline {
    position: relative;
}

a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

a.hover-underline:hover::after {
    width: 100%;
}

/* Button focus rings */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* Subtle parallax on hero image */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        will-change: transform;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
