/* Custom styles and animations */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero parallax effect */
.hero-bg {
    will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #661a1a;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        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;
    }
}

/* Fallback for when JS is disabled - show all content */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-950 {
        background: #2e0c0c !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

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

#mobile-menu.active {
    max-height: 500px;
}

/* Button hover effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 30px white inset;
    -webkit-text-fill-color: #374151;
}

/* Loading state for form submission */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure proper contrast for all text */
.text-burgundy-950 {
    color: #2e0c0c;
}

.text-burgundy-700 {
    color: #7d2020;
}

.text-burgundy-600 {
    color: #9a2929;
}

/* Smooth transitions for all interactive elements */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
