/* Custom styles for Mercy Rehab website */

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

/* Prevent flash of hidden content - all content visible by default */
body {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080b14;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: rgba(245, 201, 122, 0.3);
    color: #fefdf8;
}

/* Hero animations - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, border-color 0.3s ease;
    }
    
    .service-card.reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(8, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover effects */
a[href^="tel:"] {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1321 100%);
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #f5e0a8 0%, #e2b04b 50%, #d4943a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle glow effects */
.glow-emerald {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}
.glow-gold {
    box-shadow: 0 0 40px rgba(226, 176, 75, 0.1);
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
