/* Custom styles for Medical Associates Pediatrics */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the .animated class */
.reveal.animated {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.animated.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For browsers that don't run JS, content stays visible via default .reveal styles */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a2540;
}
::-webkit-scrollbar-thumb {
    background: #144f78;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #0a2540;
}

/* Hero image subtle parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
    #hero img {
        transition: transform 0.3s ease;
    }
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

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

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Ensure contrast for all text elements */
.text-midnight-600 {
    color: #1e3a56;
}

.text-midnight-500 {
    color: #2d4a66;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}
