/* Custom styles for Cle Elum Towing website */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

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

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

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

/* Gold gradient text effect */
.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects for cards */
.group:hover .group-hover\:from-gold-600 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.group:hover .group-hover\:to-gold-700 {
    background: linear-gradient(135deg, #b45309, #92400e);
}

/* Button shine effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

button:hover::after,
a:hover::after {
    left: 100%;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

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

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

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

/* Subtle pulse animation for emergency button */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(120, 53, 15, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(120, 53, 15, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Background pattern overlay */
.bg-pattern {
    background-image: radial-gradient(circle at 25px 25px, rgba(255,255,255,0.02) 2px, transparent 0);
    background-size: 50px 50px;
}
