/* Custom styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

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

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

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

/* Ensure all text has proper contrast */
.text-burgundy-800,
.text-burgundy-900 {
    color: #7B2D3B;
}

.text-burgundy-700 {
    color: #b0445c;
}

.text-burgundy-600 {
    color: #c45a75;
}

/* Ensure links are readable */
a {
    text-decoration: none;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for interactive elements */
.group:hover .group-hover\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #b0445c;
}

.group:hover .group-hover\:bg-burgundy-800 {
    background-color: #7B2D3B;
}

/* Hover effects */
.hover\:-translate-y-0.5:hover {
    transform: translateY(-2px);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(123, 45, 59, 0.1);
}
