/* Custom styles for All American Pest Control */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal animations - progressive enhancement */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation classes - only applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.animate {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left.animate {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right.animate {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.animate.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left.animate.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right.animate.active {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 25, 47, 0.1);
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #D4AF37 !important;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service card hover */
.group:hover .group-hover\:text-aa-gold {
    color: #D4AF37 !important;
}

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

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
