/* Custom styles for Regional Cardiology Clinic */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Hero image parallax-like effect on scroll */
#hero img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle line animation on hover */
a[href^="#"] {
    position: relative;
}

a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

a[href^="#"]:hover::after {
    width: 100%;
}

/* Remove underline from non-anchor links */
a:not([href^="#"]):not([href^="tel:"]):not([href^="mailto:"])::after {
    display: none;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #back-to-top, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Additional responsive tweaks */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
