/* JCR Family Campground — Custom Styles */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B1D3A;
}
::-webkit-scrollbar-thumb {
    background: #1A3A5C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

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

/* Reveal Animations — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Nav active state */
.nav-active {
    color: #2DD4BF !important;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: rgba(45, 212, 191, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2) !important;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Card hover glow */
.group:hover .group-hover\:bg-mint-500\/20 {
    background-color: rgba(45, 212, 191, 0.2);
}

/* Map filter override for light mode */
iframe[title*="map"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.95);
    border-radius: 0.75rem;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

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

/* Apply staggered float to hero cards */
@media (prefers-reduced-motion: no-preference) {
    .lg\:block > div:first-child {
        animation: float 4s ease-in-out infinite;
    }
    .lg\:block > div:nth-child(2) {
        animation: float 4s ease-in-out 0.5s infinite;
    }
    .lg\:block > div:nth-child(3) {
        animation: float 4s ease-in-out 1s infinite;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    .aspect-\[4\/3\] {
        aspect-ratio: 4/3;
    }
    .aspect-\[3\/4\] {
        aspect-ratio: 3/4;
    }
    .aspect-\[4\/3\] {
        aspect-ratio: 4/3;
    }
}
