/* Custom styles for Combs Wrecker Service and Repairs */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #b5a485;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e8a6b;
}

/* Selection color */
::selection {
    background: #e56447;
    color: #ffffff;
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Fade-in animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Service cards hover lift */
.group:hover {
    transform: translateY(-4px);
}

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

#mobileMenu.open {
    max-height: 400px;
    padding-bottom: 1rem;
}

/* Ensure fixed header doesn't overlap content */
section[id] {
    scroll-margin-top: 80px;
}

/* Map responsive */
iframe {
    min-height: 300px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    header, #contact .bg-sand-50 {
        background: white !important;
    }
}
