/* Liberty Corner Health & Diagnostics — Custom Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(64, 122, 64, 0.15);
    color: #1c371c;
}

/* Hero animations — only for below-fold content, hero is always visible */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 55, 28, 0.08);
}

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

#navbar.scrolled .nav-link:hover {
    color: #65a365;
}

#navbar.scrolled #nav-logo {
    color: #2d5a2d;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #eae8e0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #97c497;
}
