/* Custom styles for Roofing Prodigy Manhattan Beach */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 86, 50, 0.08);
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

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

.floating-card-2 {
    animation: float-medium 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

#mobile-menu.open {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Mobile nav link hover */
.mobile-nav-link:active {
    background: rgb(217, 236, 222);
}

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

::-webkit-scrollbar-track {
    background: rgb(245, 240, 232);
}

::-webkit-scrollbar-thumb {
    background: rgb(183, 219, 190);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(136, 196, 150);
}

/* Selection color */
::selection {
    background: rgb(183, 219, 190);
    color: rgb(18, 64, 38);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgb(58, 138, 82);
    outline-offset: 2px;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Service card hover image effect */
.group:hover .group-hover\\:bg-forest-700 {
    background: rgb(26, 86, 50);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(250, 248, 244) inset !important;
    -webkit-text-fill-color: rgb(30, 64, 40) !important;
}
