/* Custom styles for St Joseph Hospital */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF7F5;
}
::-webkit-scrollbar-thumb {
    background: #c4a79c;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a67c5f;
}

/* Selection color */
::selection {
    background: #c4a79c;
    color: #fff;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled #nav-logo-text {
    color: #1c1917;
}

#navbar.scrolled #nav-subtitle {
    color: #78716c;
}

#navbar.scrolled .mobile-link {
    color: #1c1917;
}

/* Line animation for mobile menu button */
#mobile-menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active #line2 {
    opacity: 0;
}
#mobile-menu-btn.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .mobile-menu-btn {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
