/* Custom styles for Shepard Jones Construction */

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

/* Prevent content flash before JS runs */
.no-js .service-card,
.no-js .gallery-item {
    opacity: 1;
    transform: none;
}

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

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

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

/* Scroll reveal base — progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card { animation: none; }
    .gallery-item img { transition: none; }
    .service-card { transition: none; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfcfa; }
::-webkit-scrollbar-thumb { background: #f4a8b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c23552; }
