/* ============================================
   Wes's Welding Works — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ee;
}
::-webkit-scrollbar-thumb {
    background: #C85A3C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8462c;
}

/* Selection color */
::selection {
    background: #C85A3C;
    color: #fefcf8;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}

nav.scrolled .font-serif {
    color: #1a1410 !important;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 0deg)); }
}

.hero-card-1 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
.hero-card-2 { animation: float 7s ease-in-out infinite 0.5s; --rotate: -1deg; }
.hero-card-3 { animation: float 5.5s ease-in-out infinite 1s; --rotate: 1deg; }
.hero-card-4 { animation: float 6.5s ease-in-out infinite 1.5s; --rotate: 2deg; }

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

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

/* Gallery item */
.gallery-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #C85A3C !important;
    box-shadow: 0 0 0 3px rgba(200, 90, 60, 0.15);
}

/* Print styles */
@media print {
    nav, #contactForm, button { display: none; }
    body { color: #000; background: #fff; }
}
