/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #f4a261;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --spacing-unit: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-light);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2);
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}

.cookie-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
}

.btn-accept, .btn-reject {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.btn-accept:hover {
    background-color: #1a3a1b;
}

.btn-reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-reject:hover {
    background-color: white;
    color: var(--text-color);
}

.cookie-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e8 100%);
    padding: calc(var(--spacing-unit) * 10) 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #e76f51;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: var(--bg-color);
}

.services h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.service-card {
    background-color: var(--bg-color);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3,
.service-card p {
    padding: 0 calc(var(--spacing-unit) * 3);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 3);
}

.service-card p {
    padding-bottom: calc(var(--spacing-unit) * 3);
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Testimonials Section */
.testimonials {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: var(--bg-light);
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: var(--bg-color);
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: calc(var(--spacing-unit) * 6);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #1a3a1b;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: calc(var(--spacing-unit));
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: calc(var(--spacing-unit) * 3);
    text-align: center;
    color: #888;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--border-radius) * 2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: calc(var(--spacing-unit) * 2);
    top: calc(var(--spacing-unit) * 2);
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: calc(var(--spacing-unit) * 3);
}

.modal-body ul {
    margin-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .nav-links {
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: calc(var(--spacing-unit) * 6) 0;
    }
    
    .services,
    .testimonials,
    .contact {
        padding: calc(var(--spacing-unit) * 6) 0;
    }
    
    .contact-form {
        padding: calc(var(--spacing-unit) * 4);
    }
}

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

.service-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}