/* Ankle and Foot Clinic PC — Custom Styles */

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

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(155, 35, 53, 0.15);
    color: #57121a;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e08a8a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b2335;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(155, 35, 53, 0.15);
}

/* Form input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.08);
}

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

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

/* Fade-in animations (progressive enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9b2335;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    header {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-gradient {
        background: none !important;
        color: #000 !important;
    }
}
