/* Custom styles for Earnhardt of the Ocean LLC */

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

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

/* Scroll reveal animations — progressive enhancement, only when JS is active */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(139, 72, 50, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Amenity card hover */
.amenity-card {
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .amenity-card {
        transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    }
    .amenity-card:hover {
        transform: translateY(-4px);
    }
}

/* Geometric accent shapes */
.geo-square {
    position: absolute;
    border-radius: 16px;
    opacity: 0.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e9;
}
::-webkit-scrollbar-thumb {
    background: #C2704E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85a3e;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(194, 112, 78, 0.15);
}

/* Selection color */
::selection {
    background: #C2704E;
    color: white;
}
