/* Custom styles for Heating & Airflow */

/* Scroll reveal base - always visible, JS adds animation class */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is enabled and reduced motion is allowed, add entrance animation */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom selection color */
::selection {
    background-color: #2f7d36;
    color: white;
}

/* Image loading placeholder */
img {
    background-color: #d9ecd8;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #2f7d36;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f6ef;
}
::-webkit-scrollbar-thumb {
    background: #b7dbb6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86c489;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

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

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(47, 125, 54, 0.1);
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .scroll-indicator {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
