/* Custom styles for Beach This Way */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfaf0;
}
::-webkit-scrollbar-thumb {
    background: #b8dbb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8dc08d;
}

/* Floating animations for hero cards */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.animate-float-1 {
    animation: float-1 4s ease-in-out infinite;
}
.animate-float-2 {
    animation: float-2 5s ease-in-out infinite;
}
.animate-float-3 {
    animation: float-3 6s ease-in-out infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}
.scroll-reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}
.scroll-reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}
.scroll-reveal[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}
.scroll-reveal[data-reveal-delay="5"] {
    transition-delay: 0.5s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float-1,
    .animate-float-2,
    .animate-float-3 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Nav active state */
.nav-link.active {
    background-color: rgba(56, 142, 60, 0.1);
    color: #2d5e2d;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Property card image hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #3d7a3d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #3d7a3d, #5fa05f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 61, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
