/* Custom styles for A Sorensen Plumbing */

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Button hover effects */
a[href^="tel:"],
button[type="submit"] {
    transition: all 0.3s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(120, 28, 32, 0.1);
}

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

#mobileMenu.active {
    max-height: 400px;
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

/* Apply animations to hero cards */
.absolute.top-0.right-0 {
    animation: float 3s ease-in-out infinite;
}

.absolute.top-24.left-0 {
    animation: float-reverse 3.5s ease-in-out infinite;
}

.absolute.bottom-0.right-12 {
    animation: float-slow 4s ease-in-out infinite;
}

/* Geometric shape animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.absolute.top-1/2.right-40 {
    animation: rotate-slow 20s linear infinite;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 3rem;
    }
    
    .absolute.top-0.right-0,
    .absolute.top-24.left-0,
    .absolute.bottom-0.right-12 {
        display: none;
    }
}
