/* Base styles and variables */
:root {
    --bg: #ffffff;
    --accent: #2b7a3e;
    --muted: #6b7280;
    --max-width: 1200px;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: 0.2s ease-in-out;
}

/* Reset and base styles */
* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg);
}

/* Layout */
.wrap { 
    margin: 0 auto; 
}

.section {
    padding: 80px 20px;
}

.section:nth-child(even) {
    background: #f9f9f9;
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 50px;
    height: 50px;
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 5px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(43, 122, 62, 0.9), rgba(43, 122, 62, 0.8)), 
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 80px 20px;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

/* Typography */
h1 {
    margin: 0 0 20px;
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.2rem;
    margin: 0 0 30px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Buttons and CTAs */
.cta {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.alt {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--accent);
    margin: 0 0 15px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.feature h3 {
    color: var(--accent);
    margin: 0 0 10px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial blockquote {
    margin: 0 0 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial cite {
    color: var(--muted);
    font-style: normal;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--accent);
    margin: 0 0 15px;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand .brand-accent {
    color: var(--accent);
}

.footer-brand p {
    color: var(--muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .divider {
    color: var(--muted);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
    }

    footer .section-content > div:first-child {
        font-size: 1.1rem;
    }

    footer .section-content > div:nth-child(3) {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    footer .section-content > div:nth-child(3) a {
        display: block;
        padding: 5px 0;
    }
}

/* Reviews specific styles */
.review-stars {
    color: gold;
    margin-bottom: 10px;
}

.review-date {
    color: var(--muted);
    font-size: 0.9em;
    margin-top: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 40px 20px; }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    nav.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Print styles */
@media print {
    header, footer, .cta {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .section {
        padding: 20px 0;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
}