/* Custom styles for Tri-County Community Care Clinic */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
    display: block;
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

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

/* Float animation for hero accent card */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

/* Scroll reveal — progressive enhancement */
/* Default state: visible (no JS required) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds .revealed, trigger the animation */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .animate-float {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #84BC9B;
}

/* Selection color */
::selection {
    background: #D8EBE0;
    color: #1B4332;
}

/* Form select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Subtle gradient overlay for hero image */
.hero-img-overlay {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.05) 0%, transparent 60%);
}

/* Navbar height fix for fixed positioning */
#navbar {
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Ensure body has padding for fixed navbar */
body {
    padding-top: 0;
}

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