/* Custom Styles for Sylvester David Chiropractor */

:root {
    --charcoal-dark: #1a1a1a;
    --charcoal-mid: #2d2d2d;
    --coral: #ff6b6b;
    --coral-light: #ff8787;
}

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

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Custom Font Classes */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Colors */
.text-charcoal-dark {
    color: var(--charcoal-dark);
}

.text-charcoal-mid {
    color: var(--charcoal-mid);
}

.text-coral {
    color: var(--coral);
}

.bg-coral {
    background-color: var(--coral);
}

.bg-charcoal-dark {
    background-color: var(--charcoal-dark);
}

/* Hover Effects */
.group:hover .group-hover\:text-coral {
    color: var(--coral);
}

/* Scroll Reveal Animation (Progressive Enhancement) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Form Focus States */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--coral) !important;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #333;
    }
    
    .text-gray-400 {
        color: #666;
    }
}
