/* Custom styles for Humble Hearts Home Care */

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

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

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

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

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse-emerald {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(5, 150, 105, 0); }
}

.pulse-cta:hover {
    animation: pulse-emerald 1.5s infinite;
}

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

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

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Testimonial card hover */
.bg-white\/10 {
    transition: transform 0.3s ease, background 0.3s ease;
}

.bg-white\/10:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

/* Input focus animation */
input:focus, textarea:focus, select:focus {
    transform: scale(1.01);
}

input, textarea, select {
    transition: all 0.2s ease;
}

/* Image hover zoom */
.rounded-3xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}
