/* Custom styles for Cardinal Cove RV Park */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F7F3EA;
}
::-webkit-scrollbar-thumb {
    background: #C8A45E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8944E;
}

/* Selection */
::selection {
    background: #C8A45E;
    color: #0A1628;
}

/* Stat card staggered animation */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    animation: floatIn 0.7s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.45s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.75s; }

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.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; }

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(251, 249, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

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

.menu-line-active-1 {
    transform: translateY(6px) rotate(45deg);
}
.menu-line-active-2 {
    opacity: 0;
}
.menu-line-active-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Site card hover image overlay */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #C8A45E 0%, #E0CA82 50%, #C8A45E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(200, 164, 94, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Hero background parallax feel */
#hero {
    background-attachment: fixed;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Print styles */
@media print {
    nav, .stat-card, #contact-form button {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
