/* Custom styles for Arcadia Surgical Medical Center */

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

/* Navbar transition states */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-link-text {
    color: rgba(255, 255, 255, 0.9);
}

nav.scrolled .nav-link-text {
    color: rgba(16, 42, 67, 0.85);
}

nav.scrolled .nav-link-text:hover {
    color: #daa520;
}

/* Mobile menu link colors */
.mobile-link {
    color: #1e3a5f;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #daa520;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #daa520;
    color: #102a43;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img, video, svg {
    display: block;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav, .animate-bounce, #contact-form button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
