/* Custom styles for TomWorks */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #fdfaf5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #1b5e20;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(253, 250, 245, 0.95);
    border-bottom: 1px solid #dcedce;
}

.nav-link {
    position: relative;
    color: #1b5e20;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

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

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card-shadow {
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.12);
}

.card-shadow-hover {
    box-shadow: 0 8px 30px rgba(27, 94, 32, 0.2);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Hero section */
.hero-gradient {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 30%, #388e3c 60%, #4caf50 100%);
}

/* Form styles */
.form-input {
    border: 2px solid #dcedce;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Map container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.15);
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #f0f7f0 0%, #f9f3e8 100%);
    border-radius: 20px;
    padding: 2rem;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

/* Footer */
.footer {
    background: #0d3b0f;
}

/* Section animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: auto;
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .service-card {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
