:root {
    --primary-color: #2e7d32;
    /* Lawn green */
    --primary-hover: #1b5e20;
    --text-main: #1f2937;
    --text-muted: #666666;
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px; /* Mobile first typography */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; width: 100%; }
    .nav-links ul { flex-direction: column; align-items: center; gap: 1rem; padding-top: 1rem; }
    .menu-toggle:checked ~ .nav-links { display: block; }
}

nav a {
    font-weight: 500;
    color: var(--text-main);
}

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

/* Hero */
.hero {
    position: relative;
    background-color: var(--primary-color);
    background-image: url('/images/hero_lawn.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFFFFF
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Grid / Cards */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-main);
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    text-align: center;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input,
textarea,
select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

button,
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    text-align: center;
    display: inline-block;
}

button:hover,
.btn:hover {
    background-color: var(--primary-hover);
}

/* Newsletter */
.newsletter-section {
    background-color: var(--bg-card);
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 4rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 600px) {
    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        flex: 1;
        max-width: 300px;
    }

    .newsletter-form button {
        width: auto;
    }
}

/* Post Content */
.post-header {
    margin: 3rem 0 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-muted);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.post-content h2 {
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Admin */
.admin-wrap {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-wrap form {
    max-width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    margin-top: 2rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert.success {
    background-color: #dcfce7;
    color: #166534;
}

.alert.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* CTA Affiliate */
.cta-affiliate {
    background-color: #f0fdf4;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.cta-affiliate h3 {
    color: var(--primary-hover);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.cta-affiliate p {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.cta-affiliate .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.cta-affiliate .btn:hover {
    background-color: var(--primary-hover);
}
/* Affiliate Product Card System */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    gap: 1rem;
}
@media (min-width: 768px) {
    .product-card {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }
}
.product-card-img {
    flex: 0 0 150px;
    text-align: center;
}
.product-card-img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.product-card-content {
    flex: 1;
}
.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.product-card-action {
    flex: 0 0 auto;
    text-align: center;
}
.product-card-btn {
    display: block;
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
    min-height: 44px; /* Mobile touch target size */
}
.product-card-btn:hover {
    background: var(--primary-hover);
}

/* Ensure mobile buttons are thumb-friendly */
@media (max-width: 767px) {
    .btn, button {
        width: 100%;
        margin-bottom: 0.5rem;
        min-height: 44px;
        padding: 0.85rem 1rem;
    }
}