/* Custom styles for Turner Heat & Air */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022C22;
}

/* Selection color */
::selection {
    background-color: #064E3B;
    color: #FDFBF7;
}

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

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only apply animations when reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 {
        transition-delay: 0.1s;
    }
    
    .reveal-delay-2 {
        transition-delay: 0.2s;
    }
    
    .reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(6, 78, 59, 0.08);
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all text is readable */
h1, h2, h3, h4, h5, h6 {
    color: #022C22;
}

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

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

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

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

/* Card hover effects */
.group:hover .group-hover\\:translate-y-\\[-4px] {
    transform: translateY(-4px);
}

/* Gradient text effect (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
