/* --- 1. GENERAL STYLES (Earthy Palette) --- */
:root {
    --primary-green: #2e5a27;
    --secondary-green: #4a7c43;
    --soil-brown: #8b5a2b;
    --bg-cream: #f9f7f2;
    --text-dark: #333;
    --card-white: #ffffff;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- 2. HEADER & HERO SECTION --- */
header {
    background-color: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    background: linear-gradient(rgba(46, 90, 39, 0.7), rgba(46, 90, 39, 0.7)), url('https://placehold.co/1200x400/2e5a27/FFF?text=Farm+Landscape');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- 3. SERVICES GRID (The Cards) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border-bottom: 4px solid var(--soil-brown);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 180px;
    background-color: #ddd;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card h3 {
    margin-top: 0;
    color: var(--primary-green);
}

.btn-text {
    color: var(--soil-brown);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* --- 4. MODALS (The Pop-ups) --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: red;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- 5. FOOTER --- */
footer {
    background-color: var(--text-dark);
    color: #aaa;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* --- 6. BREADCRUMBS --- */
.breadcrumbs {
    padding: 1rem 0 0 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #999;
}

/* --- 7. NAVIGATION DROPDOWN --- */
nav {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 400;
    font-family: inherit;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-right: 0;
    /* Override nav a margin */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-green);
}

.dropdown:hover .dropdown-content {
    display: block;
}