/* Custom styles for Hotel Zimalcrest */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Hero background parallax effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover effect */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 12px;
    color: #059669;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 8px;
}

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

/* Button press effect */
a:active {
    transform: scale(0.98);
}

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

/* Reduced motion preference */
@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;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #hero,
    #amenities,
    .mobile-menu {
        display: none;
    }
    
    body {
        color: #1c1917;
        background: white;
    }
    
    a {
        color: #059669;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-emerald-600 {
        background-color: ButtonText;
    }
    
    .text-emerald-600 {
        color: ButtonText;
    }
}

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

/* Subtle gradient overlay on cards */
.bg-gradient-card {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.5) 0%, rgba(254, 253, 248, 0.8) 100%);
}
