/* Custom styles for LS Round Rock */

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

/* Scroll reveal base - visible by default for 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 enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #99b2e0;
}

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

/* Selection color */
::selection {
    background: #f4df9a;
    color: #152a48;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure hero content is always visible */
#top {
    background: linear-gradient(135deg, #0f1f35 0%, #152a48 50%, #1e3a61 100%);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 4s ease-in-out infinite 1s;
}
