/* Custom styles that complement Tailwind */

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

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

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

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

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

/* Ensure all images have proper aspect ratio */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

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

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    footer {
        display: none;
    }
}

/* Animation delays for staggered reveals */
.scroll-reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0.4s;
}

/* Ensure text contrast */
.text-burgundy-900 {
    color: #631414;
}

.text-burgundy-800 {
    color: #741515;
}

.text-burgundy-700 {
    color: #8c1818;
}

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

.text-burgundy-500 {
    color: #c23232;
}

.text-burgundy-200 {
    color: #f0abab;
}

.text-burgundy-100 {
    color: #f9d4d4;
}

/* Button hover effects */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Geometric blob animations */
@keyframes blob-spin {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Hero pattern background */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(194, 50, 50, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 90, 138, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(168, 32, 32, 0.05) 0%, transparent 50%);
}

/* Footer pattern */
.footer-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(194, 50, 50, 0.03) 10px,
        rgba(194, 50, 50, 0.03) 20px
    );
}

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

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

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

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

/* Ensure all interactive elements are clickable */
a,
button {
    cursor: pointer;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #c23232;
    outline-offset: 2px;
}

/* Ensure proper spacing */
section {
    scroll-margin-top: 80px;
}

/* Loading state for images */
img {
    background-color: #f9d4d4;
}

/* Subtle shadow for depth */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(194, 50, 50, 0.25);
}
