/* Custom styles for Smith & Sons Towing */
:root {
    --forest-50: #f0f7f0;
    --forest-100: #dcefdc;
    --forest-200: #b8dfb8;
    --forest-300: #85c485;
    --forest-400: #4fa14f;
    --forest-500: #2d7a2d;
    --forest-600: #1f5c1f;
    --forest-700: #184718;
    --forest-800: #133713;
    --forest-900: #0f2b0f;
    --forest-950: #081908;
    --offwhite: #FAFAF5;
    --sand: #F5F0E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--offwhite);
    color: #1a1a1a;
    line-height: 1.6;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Hero card */
.hero-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service cards */
.service-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 122, 45, 0.15);
}

/* Stat cards */
.stat-card {
    background: linear-gradient(135deg, #2d7a2d 0%, #1f5c1f 100%);
}

/* CTA button */
.cta-button {
    background: linear-gradient(135deg, #2d7a2d 0%, #1f5c1f 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 122, 45, 0.4);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Navigation links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2d7a2d;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2d7a2d;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-display.text-4xl {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .text-4xl {
        font-size: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #2d7a2d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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