/* Custom Styles for McDaniel Family Chiropractic */

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-cta-secondary {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

/* Service Card Animations */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile Menu Transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

/* Custom Selection Color */
::selection {
    background-color: #6B0F1A;
    color: white;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(107, 15, 26, 0.1);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Subtle Parallax Effect */
@media (prefers-reduced-motion: no-preference) {
    .service-card:nth-child(1) { transition-delay: 0.1s; }
    .service-card:nth-child(2) { transition-delay: 0.2s; }
    .service-card:nth-child(3) { transition-delay: 0.3s; }
    .service-card:nth-child(4) { transition-delay: 0.4s; }
    .service-card:nth-child(5) { transition-delay: 0.5s; }
    .service-card:nth-child(6) { transition-delay: 0.6s; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid #6B0F1A;
    outline-offset: 2px;
}
