/* Custom styles for Roto-Rooter website */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a6b1a;
}

/* Geometric shape animations */
.geometric-shape {
    animation: gentle-rotate 20s linear infinite;
}

@keyframes gentle-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for emergency badge */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button hover effects */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Mobile menu transitions */
.mobile-menu {
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 138, 45, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        display: none;
    }
}

/* Print styles */
@media print {
    .geometric-shape,
    .float-card {
        display: none;
    }
}
