/* Custom styles for Design Roofing Inc */

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

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

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

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

#navbar.scrolled #nav-container {
    background: transparent !important;
    box-shadow: none !important;
}

#navbar.scrolled .text-midnight-700 {
    color: #1d3d60 !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #5cc496;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3ab07d;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(58, 176, 125, 0.2);
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Ensure mobile menu is accessible */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Hero text shadow for readability */
header h1,
header p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dce4eb 0%, #f2fcf9 100%);
}
