/* Custom styles for Variance Custom Welding & Fabrication */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(22, 101, 52, 0.2);
    color: #14532d;
}

/* Navigation */
.nav-fixed {
    will-change: transform;
}

/* Mobile menu */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Service cards */
.service-card {
    will-change: transform, box-shadow;
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img,
    .service-card {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll reveal classes (applied via JS for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children .stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children .stagger-item.staggered {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation (above fold - always visible) */
.hero-content > * {
    opacity: 1;
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.2s ease;
}

/* Button hover effects */
a, button {
    transition: all 0.2s ease;
}

/* Image loading placeholder */
img {
    background-color: rgba(20, 83, 52, 0.05);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}
