/* Custom styles for Diagnostic Imaging Institute */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(117, 37, 52, 0.08);
}

#navbar.scrolled .font-display {
    color: #752534;
}

#navbar.scrolled a:not(.bg-burgundy-700):not(.bg-blush-500) {
    color: #374151;
}

#navbar.scrolled a:not(.bg-burgundy-700):not(.bg-blush-500):hover {
    color: #8c2b3d;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    @keyframes slideDown {
        from { opacity: 1; }
        to { opacity: 1; }
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #d4657a !important;
    box-shadow: 0 0 0 3px rgba(212, 101, 122, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4657a;
    border-radius: 4px;
}

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