/* Custom styles for JAB Rentals */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Custom gradient backgrounds */
.gradient-mint {
    background: linear-gradient(135deg, #f4fbf9 0%, #e6f7f1 100%);
}

.gradient-midnight {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
}

/* Custom shadow utilities */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
}

.shadow-soft-lg {
    box-shadow: 0 8px 40px rgba(16, 42, 67, 0.12);
}

/* Typography improvements */
.font-display {
    letter-spacing: -0.02em;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2a9d8f;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #8dd0c7;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4db6ac;
}

/* 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;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(16, 42, 67, 0.1);
}

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

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover {
    transform: translateY(-4px);
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}
