/* 
 * Mile Square Surgery Center - Custom Styles
 * Palette: Charcoal (#2D3748, #1A202C), Coral (#E85D4A), White, Gray
 */

:root {
    --color-coral: #E85D4A;
    --color-coral-dark: #D14A38;
    --color-charcoal-dark: #1A202C;
    --color-charcoal-medium: #2D3748;
    --color-gray-light: #F7FAFC;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-charcoal-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral);
}

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#navbar.scrolled .text-charcoal-dark {
    color: var(--color-charcoal-dark) !important;
}

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

/* Form Focus States */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.2);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card Hover Lift */
.group:hover {
    transform: translateY(-5px);
}

/* Subtle Pattern Overlay for Sections */
.bg-pattern {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Ensure high contrast for accessibility */
.text-charcoal-dark {
    color: #1A202C;
}

.text-charcoal-medium {
    color: #4A5568;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}
