/* Custom Styles for Phoenix Memorial Hospital */

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

/* Service Card Hover Effect */
.service-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 {
        transition-delay: 0.1s;
    }
    
    .reveal-delay-2 {
        transition-delay: 0.2s;
    }
    
    .reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #d15a40;
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(209, 90, 64, 0.1);
}

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

/* Print Styles */
@media print {
    nav,
    .cta-section,
    .service-card:hover {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile Menu Animation */
#mobileMenu {
    animation: fadeIn 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e07d66;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2432e;
}
