/* Custom styles for Lapeer Family Development */

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

/* Scroll reveal base state — always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-reveal="hidden"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Selection color */
::selection {
    background: #e9d5ff;
    color: #581c87;
}

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

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

/* Subtle float animation for hero decorations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal { display: none; }
    body { color: #000; background: #fff; }
}
