/* Custom styles for Young Family Chiropractic and Wellness */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #b82848;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a1f37;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3a0b16;
}

/* Hero image gradient overlay */
.hero-img-gradient {
    background: linear-gradient(135deg, transparent 50%, rgba(104, 29, 52, 0.05) 100%);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(58, 11, 22, 0.1);
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(58, 11, 22, 0.08);
}

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

/* Form input focus animation */
input:focus, textarea:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle pattern for background sections */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(184, 40, 72, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Decorative line animation */
.decorative-line {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
    border-radius: inherit;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom:hover img {
    transform: scale(1.03);
}

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

/* Print styles */
@media print {
    header, footer, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
