/* Custom styles for Valencia Motel & Efficiencies */

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

/* Navbar transition states */
nav.scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(120, 31, 59, 0.08) !important;
}

nav.scrolled .nav-text-color {
    color: #781F3B !important;
}

nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

nav:not(.scrolled) .nav-link:hover {
    color: #FADADD !important;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(120, 31, 59, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Selection color */
::selection {
    background: #FADADD;
    color: #781F3B;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFFBF5;
}

::-webkit-scrollbar-thumb {
    background: #D4A0A0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #781F3B;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(250, 218, 221, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(232, 213, 196, 0.1) 0%, transparent 50%);
}
