/* Custom styles for Crawl Space Select */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-elem {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.2s; }
.hero-elem:nth-child(3) { animation-delay: 0.3s; }
.hero-elem:nth-child(4) { animation-delay: 0.4s; }

.hero-img {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile menu animations */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #B08B5F;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C25E38;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, footer, #contact-form {
        display: none;
    }
    
    body {
        color: #1A1A1A;
        background: white;
    }
}
