/* Custom styles and animations */

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

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

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

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

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

/* Gradient animation for hero */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating animation for decorative shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-20px) rotate(12deg);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(224, 107, 82, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(224, 107, 82, 0);
    }
}

/* Apply animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

/* Ensure hero is visible immediately */
#hero {
    background-attachment: fixed;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #e06b52;
    outline-offset: 2px;
}

/* Ensure text contrast on all backgrounds */
.bg-terracotta-600,
.bg-terracotta-700,
.bg-terracotta-800 {
    color: #fefcf8;
}

/* Service card hover effects */
.group:hover .group-hover\:bg-terracotta-500 {
    background-color: #e06b52;
}

.group:hover .group-hover\:bg-sand-500 {
    background-color: #e9b15c;
}
