/* Custom styles for Cottonwood Creek Clinic */

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

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

.float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #7B4397 0%, #A67BB8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B4397;
}

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

/* Print styles */
@media print {
    nav,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* 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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-plum-50 {
        background-color: #fff;
    }
    
    .text-gray-600 {
        color: #333;
    }
}

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

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

/* Service card hover effects */
.group:hover .group-hover\:from-plum-700 {
    background-color: #7B4397;
}

.group:hover .group-hover\:to-plum-800 {
    background-color: #6B3A82;
}

.group:hover .group-hover\:from-amber-500 {
    background-color: #FFB300;
}

.group:hover .group-hover\:to-amber-600 {
    background-color: #FFA000;
}

/* Testimonial cards backdrop blur */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #A67BB8;
    box-shadow: 0 0 0 3px rgba(166, 123, 184, 0.2);
}

/* Button hover animations */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

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

/* Accessibility: skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #7B4397;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
