/* Custom styles for Defiance Physical Therapy & Sports Medicine */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Float animations for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Service card hover effects */
.service-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 58, 107, 0.08), 0 4px 20px rgba(107, 58, 107, 0.06);
}

.nav-scrolled .nav-link {
    color: rgb(107, 58, 107) !important;
}

.nav-scrolled .font-serif {
    color: rgb(107, 58, 107) !important;
}

.nav-scrolled .menu-line {
    background: rgb(107, 58, 107) !important;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu button active state */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Selection color */
::selection {
    background: rgb(212, 160, 23);
    color: rgb(42, 21, 40);
}

/* Subtle gradient text for hero */
.gradient-text {
    background: linear-gradient(135deg, #D4A017 0%, #FFD96E 50%, #D4A017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: rgb(247, 240, 247);
}

::-webkit-scrollbar-thumb {
    background: rgb(192, 143, 184);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(107, 58, 107);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(247, 240, 247) inset !important;
    -webkit-text-fill-color: rgb(55, 25, 55) !important;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Reduce motion for accessibility */
@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;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid rgb(212, 160, 23);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact, footer, .animate-float, .animate-float-delayed {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
