/* Custom styles for Deluxe Roofing & Sheet Metal Corporation */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6f9f6f;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav scroll effect */
.nav-scrolled {
    box-shadow: 0 2px 20px rgba(61, 102, 61, 0.1);
}

/* Hover card lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 102, 61, 0.15);
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3d663d 0%, #6f9f6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for CTA */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(61, 102, 61, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(61, 102, 61, 0);
    }
}

.cta-pulse:hover {
    animation: pulse-subtle 1.5s infinite;
}

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

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

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Prevent layout shift */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    header, footer, #contact {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
