/* Custom styles for Encantada Rose */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064E3B;
}

/* Navbar transitions */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

/* Floating animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* Subtle pulse for CTA buttons */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

.pulse-soft:hover {
    animation: pulse-soft 1.5s ease-in-out infinite;
}

/* Amenity card hover effect */
.bg-emerald-700\/50 {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.bg-emerald-700\/50:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

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