/* Custom styles for Young Health Chiropractic */

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

/* Navigation background transition */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Navigation text color when scrolled */
.nav-scrolled .nav-logo-text,
.nav-scrolled .nav-link {
    color: #052e16 !important;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Hidden state for reveal elements (added via JS) */
.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always show content if JS is disabled */
.no-js .reveal-hidden {
    opacity: 1;
    transform: none;
}

/* Button hover effects */
a:hover {
    transition: all 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fdfcf8;
}
