/* Custom styles for Phelps Chiroprratic Clinic */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fffcf5;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(22, 101, 52, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Pulse animation for CTA elements */
@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(22, 101, 52, 0); }
}

.animate-soft-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}
