:root {
    --main-green: #2f4f2f;
    --light-green: #3f6f3f;
    --bg: #f5f5f5;
}

body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: #333;
}

header {
    background-color: var(--main-green);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Active nav link style */
nav a.active {
    background-color: var(--light-green);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
nav a:focus {
    outline: 2px solid rgba(255,255,255,0.2);
    outline-offset: 2px;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--main-green);
    color: white;
    margin-top: 3rem;
    font-size: 0.9em;
    border-top: 2px solid var(--light-green);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    /* Ensure anchor-styled project cards don't use the browser's default link color/decoration */
    color: inherit;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project img {
    width: 100%;
    border-radius: 6px;
}

/* Utility: center images inside content and constrain their size */
.content-img {
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
}

.project p, main p {
    line-height: 1.6;
}

/* Hero / welcome area at top of projects page */
.hero {
    background-color: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hero h1 {
    margin: 0 0 0.5rem 0;
    color: var(--main-green);
}
.hero p {
    margin: 0;
    color: #444;
}

.back-link {
    color: var(--main-green);
    text-decoration: none;
}
.back-link:hover, .back-link:focus {
    text-decoration: underline;
}

h2 {
    color: var(--main-green);
}

/* Store / product styles */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.product-card .price {
    font-weight: bold;
    color: var(--main-green);
}
.store-form label {
    display: block;
    margin-top: 0.75rem;
    font-weight: 600;
}
.store-form input[type="text"], .store-form input[type="email"], .store-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.store-form button {
    margin-top: 0.75rem;
    background: var(--main-green);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.store-form .note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}
.error {
    color: #b00020;
    font-weight: 600;
}
