/* Custom styles for Casa Hotel */

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

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-description {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(20px);
}

/* Navbar transitions */
.navbar-scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.navbar-scrolled .nav-logo {
    color: #166534;
}

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

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-line.active:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #166534 !important;
}

/* Image hover effect */
.group:hover img {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-description,
    .hero-cta {
        animation: none;
        opacity: 1;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Selection color */
::selection {
    background-color: rgba(22, 101, 52, 0.15);
    color: #166534;
}
