/* Custom styles for York/Denbigh WIC Clinic */

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

/* Custom gradient animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating animation for hero cards */
.floating {
    animation: float 3s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Subtle hover effects for cards */
.group:hover .group-hover\\:bg-teal-600 {
    background-color: #0d9488;
}

.group:hover .group-hover\\:text-white {
    color: #ffffff;
}

/* Button hover animations */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

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

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.875rem;
        line-height: 1.3;
    }
}

/* Print styles */
@media print {
    nav, button, form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion preferences */
@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) {
    .bg-gradient-to-br {
        background: #14b8a6 !important;
    }
    
    .text-transparent {
        color: #0f766e !important;
    }
}

/* Back to top button visibility */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

#mobile-menu.open {
    max-height: 400px;
}

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

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Testimonial card hover */
.group:hover {
    transform: translateY(-4px);
}

/* Smooth color transitions */
.text-teal-600,
.text-teal-700,
.bg-teal-600,
.bg-teal-700 {
    transition: color 0.2s ease, background-color 0.2s ease;
}
