/* Custom styles for Colleen A. Brennan, RN website */

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

/* Navigation text color transition */
.nav-link {
    color: #374151;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C06C4A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scrolled navbar */
.navbar-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #374151;
}

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

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f5ebe0;
}

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

.scroll-animate[data-animated="true"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Custom selection color */
::selection {
    background: #F9DECF;
    color: #8B4430;
}

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

/* Subtle gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, #C06C4A 0%, #D4AF6E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
