/* --- Global Styles & Variables --- */
:root {
    --primary-color: #4A7729; /* Earthy Green */
    --secondary-color: #A0522D; /* Warm Brown */
    --accent-color: #D4A373; /* Lighter, earthy accent */
    --text-color: #333333;
    --light-bg-color: #F8F4E3; /* Creamy/Light Beige */
    --white-color: #FFFFFF;
    --border-color: #DDDDDD;

    --font-family-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Georgia', Times, serif; /* Optional for headings or accents */
    --font-family-body: var(--font-family-sans);
    --font-family-heading: var(--font-family-serif); /* Example: serif for headings */
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    background-color: var(--light-bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }

p { margin-bottom: 1em; }
a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white-color);
    padding: 1em 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-image {
    height: 50px; /* Adjust as needed */
    width: auto;
    margin-right: 10px;
}
.site-title {
    font-family: var(--font-family-heading);
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: bold;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.main-nav li {
    margin-left: 20px;
}
.main-nav a {
    font-weight: 500;
    padding: 0.5em;
    text-decoration: none;
    color: var(--primary-color);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* --- Main Content & Footer --- */
.main-content {
    flex-grow: 1;
    padding-top: 2em;
    padding-bottom: 2em;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--light-bg-color);
    padding: 2em 0;
    text-align: center;
    font-size: 0.9em;
}
.site-footer p { margin-bottom: 0.5em; }
.site-footer a {
    color: var(--accent-color);
}
.site-footer a:hover {
    color: var(--white-color);
}

/* --- Buttons --- */
.button, button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color) !important; /* Ensure text color override */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:hover, button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}
.button-secondary {
    background-color: var(--secondary-color);
}
.button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--text-color) !important;
}

/* --- Forms --- */
form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}
form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}
form textarea {
    min-height: 120px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }

/* --- Specific Page Elements (to be expanded) --- */
/* Homepage Hero */
.hero-section {
    background-color: var(--white-color); /* Or an image */
    padding: 3em 1em;
    text-align: center;
    margin-bottom: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 0.3em;
    color: var(--primary-color);
}
.hero-section .subtitle {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 1.5em;
}

/* Seed Cards */
.seed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2em;
}
.seed-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.seed-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.seed-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover, contain, or fill */
    margin-bottom: 1em;
    border-radius: 4px;
}
.seed-card h3 {
    margin-top: 0;
    font-size: 1.4em;
}
.seed-card .price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}
.seed-card .description-preview {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1em;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Seed Detail Page */
.seed-detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 2em;
    align-items: start;
}
.seed-detail-image-container img {
    border: 1px solid var(--border-color);
    padding: 5px;
    background-color: var(--white-color);
}
.seed-detail-info h1 { margin-top: 0; }
.seed-detail-info .botanical-name {
    font-style: italic;
    color: #666;
    margin-bottom: 1em;
}
.seed-detail-info .price {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1em;
}
.seed-detail-info .seed-specs {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 1em;
    border-radius: 4px;
    margin-top: 1.5em;
}
.seed-detail-info .seed-specs h4 {
    margin-top: 0;
    font-size: 1.1em;
    color: var(--secondary-color);
}
.seed-detail-info .seed-specs ul {
    list-style: none;
    padding-left: 0;
}
.seed-detail-info .seed-specs li {
    margin-bottom: 0.3em;
}

/* About Page */
.about-image {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 300px; /* Adjust as needed */
    border-radius: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1em;
    }
    .main-nav li {
        margin-left: 0;
        margin-bottom: 0.5em;
    }
    .site-title {
        text-align: center;
        margin-bottom: 0.5em;
    }
    .hero-section h1 { font-size: 2em; }
    .hero-section .subtitle { font-size: 1.1em; }

    .about-image {
        float: none;
        display: block;
        margin: 1em auto;
    }
}

@media (min-width: 769px) {
    .seed-detail-layout {
        grid-template-columns: 1fr 1.5fr; /* Image on left, info on right */
    }
}