:root {
    --primary: #2E7D32;      /* Forest Green */
    --primary-dark: #1B5E20; /* Dark Green */
    --secondary: #827717;    /* Olive */
    --accent: #F57F17;       /* Amber/Orange */
    --bg-color: #F4F7F2;     /* Light Eco Tint */
    --surface: #FFFFFF;      /* White */
    --text-main: #333333;
    --text-muted: #555555;
    --border: #E8EFE5;
    --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.04);
    --shadow-md: 0 8px 24px rgba(46, 125, 50, 0.08);
    --shadow-lg: 0 12px 32px rgba(46, 125, 50, 0.12);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background-color: var(--surface);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: relative; /* Unstuck */
    z-index: 100;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand svg { width: 28px; height: 28px; fill: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.btn-cta {
    background-color: var(--primary);
    color: var(--surface);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--surface);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--surface);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #E8F5E9 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* GRID & CARDS */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.card .btn-cta {
    width: 100%;
    text-align: center;
}

/* ARTICLE / DETAIL PAGES */
main { flex-grow: 1; padding-bottom: 60px; }

.article-header {
    padding: 60px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.article-header h1 { font-size: 3rem; margin-bottom: 20px; }
.article-meta { color: var(--text-muted); margin-bottom: 20px; font-weight: 500; }

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.article-content h2 { margin-top: 40px; margin-bottom: 15px; font-size: 1.8rem; }
.article-content p { margin-bottom: 20px; font-size: 1.05rem; }
.article-content ul { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; font-size: 1.05rem; }

.feature-box {
    background: #F9FBE7;
    border-left: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 30px 0;
}

.external-link-wrap {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* LEGAL PAGES */
.legal-content {
    max-width: 900px;
    margin: 60px auto;
    background: var(--surface);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.legal-content h1 { font-size: 2.5rem; margin-bottom: 10px; }
.legal-content .last-updated { color: var(--text-muted); margin-bottom: 40px; font-size: 0.9rem; }

/* CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 60px auto;
}
.contact-info {
    background: var(--primary-dark);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}
.contact-info h2 { color: white; }
.contact-info p { margin-bottom: 20px; opacity: 0.9; }

.contact-form {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCC;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

/* FOOTER */
footer {
    background-color: var(--primary-dark);
    color: #E8F5E9;
    padding: 60px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 { color: white; margin-bottom: 15px; display: flex; align-items: center; gap:10px; }
.footer-brand svg { fill: white; width: 24px; height: 24px; }
.footer-brand p { margin-bottom: 10px; font-size: 0.9rem; opacity: 0.8; }
.footer-links h4 { color: var(--secondary); font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #E8F5E9; opacity: 0.8; transition: var(--transition); font-size: 0.95rem; }
.footer-links a:hover { opacity: 1; color: var(--accent); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
}
#cookie-banner.show { bottom: 0; }
.cookie-content {
    max-width: var(--container-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button { padding: 8px 16px; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-menu .btn-cta { display: none; }
    .hamburger { display: block; }
    
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-btns { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
    .article-header h1 { font-size: 2rem; }
    .article-content { padding: 20px; }
    .legal-content { padding: 25px; margin: 30px auto; }
}