/* Custom Styles for Durr Family Chiropractic */

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

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

::-webkit-scrollbar-track {
    background: #1a0d14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #aa8c2c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fcd34d, #d4af37);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gold Gradient Text */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

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

/* Focus Styles */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

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

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

/* Image Hover Zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Service Card Hover */
.group:hover .bg-gradient-to-br {
    transform: rotate(5deg) scale(1.1);
}

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

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

/* Pulse Animation for Gold Elements */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

.animate-pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    nav, .reveal, button, form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-plum-900, .bg-plum-800 {
        background: white !important;
    }
    
    .text-white, .text-gold {
        color: black !important;
    }
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-white/70 {
        color: white !important;
    }
    
    .text-white/60 {
        color: white !important;
    }
    
    .text-white/50 {
        color: white !important;
    }
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}
