/* Custom CSS to enhance Tailwind styles */

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

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Hero section background optimization */
.hero-bg {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive background attachment fix for mobile */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

/* Gallery hover effects */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Lightbox improvements */
#lightbox {
    backdrop-filter: blur(5px);
}

#lightbox img {
    max-height: 85vh;
    max-width: 85vw;
}

/* FAQ accordion improvements */
.faq-answer {
    transition: all 0.3s ease;
}

/* Button hover effects */
.btn-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Sticky header backdrop blur support */
.header-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

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

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

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

/* Loading state for images */
img.lazy {
    filter: blur(5px);
    transition: filter 0.3s;
}

img.lazy.loaded {
    filter: blur(0);
}

/* Ensure proper spacing for mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust hero text size for mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-prairie-gold {
        background-color: #B8944D;
    }
    
    .text-gray-600 {
        color: #374151;
    }
    
    .text-gray-700 {
        color: #1F2937;
    }
}

/* Print styles */
@media print {
    .sticky,
    .fixed,
    #lightbox,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: blue !important;
        text-decoration: underline !important;
    }
}

/* Cache control for dynamic content */
.no-cache {
    cache-control: no-cache, no-store, must-revalidate;
    pragma: no-cache;
    expires: 0;
}