/* Custom styles for Buffalo Orthopedic Brace */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff5f5;
}
::-webkit-scrollbar-thumb {
    background: #f5a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6c8a;
}

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

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

.floating-card-delay {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Process step connector */
.process-step::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #f5a8b8, transparent);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1);
}

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

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

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .testimonial-card {
        transition: none;
    }
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    .floating-card,
    .floating-card-delay {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    nav,
    #mobileMenuBtn,
    #contactForm,
    .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
