/* Custom styles for Pediatric Medical Center */

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #D1FAE5;
    color: #064E3B;
}

/* Body text color fix */
body {
    color: #064E3B;
}

/* Ensure all headings are dark */
h1, h2, h3, h4, h5, h6 {
    color: #064E3B;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile menu animation */
.mobile-menu.open .mobile-link {
    animation: slide-up 0.3s ease forwards;
}
.mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Print styles */
@media print {
    nav, #backToTop, .float-card, .float-card-reverse, .float-card-delay {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
