/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

/* Selection color */
::selection {
    background-color: #fad0d9;
    color: #6c1832;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a11e42;
    outline-offset: 2px;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(161, 30, 66, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

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

/* Smooth image transitions */
img {
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Nav active state */
nav a.active {
    color: #a11e42;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 168, 186, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}
