/* Custom styles for Dunlap Health Center */

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

/* Custom selection color */
::selection {
    background-color: rgba(45, 96, 64, 0.2);
    color: inherit;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 92, 58, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    a,
    button {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(66, 122, 84, 0.15);
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Subtle gradient on hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 38, 24, 0.95) 0%,
        rgba(26, 92, 58, 0.9) 40%,
        rgba(16, 113, 73, 0.85) 70%,
        rgba(16, 101, 66, 0.9) 100%
    );
    z-index: 0;
}

#hero > div:first-child {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0a2618 0%,
        #1a5c3a 40%,
        #107142 70%,
        #106542 100%
    );
    z-index: 0;
}
