/* Custom styles that complement Tailwind */

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

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

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

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

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

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

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-primary {
    background-color: #d97706;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #102a43;
    border: 2px solid #102a43;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #102a43;
    color: white;
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d97706;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Amenity card hover effect */
.amenity-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.amenity-card:hover .amenity-icon {
    transform: scale(1.1);
    color: #d97706;
}

/* Section divider */
.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #d97706, #fbbf24);
    border-radius: 2px;
}

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

#mobile-menu.open {
    max-height: 300px;
}

/* Form validation styles */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:valid,
textarea:valid {
    border-color: #22c55e;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Image loading placeholder */
img {
    background-color: #e5e7eb;
}

/* Print styles */
@media print {
    header,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
