/* 
Color Palette: Forest Green & Terracotta
Primary: #2E7D32 (Forest Green)
Secondary: #D84315 (Terracotta)
Background: #FDFBF7 (Warm Sand)
Text: #212121 (Deep Charcoal)
*/

:root {
    --primary-color: #2E7D32;
    --secondary-color: #D84315;
    --bg-color: #FDFBF7;
    --bg-light: #F0EBE1;
    --text-color: #212121;
    --text-light: #555555;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-text {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.text-center { text-align: center; }
.text-center-block { text-align: center; max-width: 800px; margin: 0 auto; }
.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white p { color: var(--white); }

/* Layout & Spacing */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background-color: #1b5e20; }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary:hover { background-color: #bf360c; }

.btn-full { width: 100%; }

/* Header Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 100;
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-checkbox { display: none; }

.desktop-nav { display: block; }
.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.desktop-nav a {
    font-weight: 600;
    color: var(--text-color);
}
.desktop-nav a:hover { color: var(--primary-color); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
    #menu-toggle:checked ~ .mobile-nav { max-height: 400px; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}

/* Hero Fullscreen (Index) */
.hero-fullscreen {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(33, 33, 33, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
}

/* Page Headers (Internal Pages) */
.page-header {
    padding: 60px 20px;
}
.page-title { font-size: clamp(28px, 4vw, 42px); }

/* Grids */
.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}

.grid-4-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .grid-4-col { grid-template-columns: repeat(4, 1fr); }
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
.benefit-card:hover { transform: translateY(-5px); }
.card-icon { font-size: 40px; margin-bottom: 15px; }
.card-title { color: var(--primary-color); margin-bottom: 15px; }

/* Split Section */
.split-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 768px) {
    .split-wrapper { grid-template-columns: 1fr 1fr; }
    .reverse-split .split-image { order: -1; }
}
.rounded-img { border-radius: 12px; }
.shadow-img { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Stats */
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}
.stat-label { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* Masonry Testimonials */
.masonry-grid {
    column-count: 1;
    column-gap: 20px;
}
@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}
.masonry-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    break-inside: avoid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}
.quote-text { font-style: italic; margin-bottom: 15px; }
.quote-author { font-weight: bold; color: var(--primary-color); }

/* Vertical Timeline (Program) */
.vertical-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 24px;
    height: 100%; width: 2px;
    background: var(--primary-color);
}
.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}
.timeline-marker {
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
}
.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Accordion FAQ */
.accordion-wrapper { max-width: 800px; margin: 0 auto; }
.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.accordion-header {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    list-style: none;
    position: relative;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
}
details[open] .accordion-header::after { content: '-'; }
.accordion-body {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Full Width Image Break */
.image-break-section { width: 100%; height: 400px; overflow: hidden; }
.full-width-img { width: 100%; height: 100%; object-fit: cover; }

/* Values & Manifesto */
.value-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}
.manifesto-box {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
}
.manifesto-box .section-title { color: var(--white); }
.manifesto-text { font-size: 20px; font-style: italic; line-height: 1.8; }

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}
.info-item { margin-bottom: 20px; }
.info-item strong { display: block; color: var(--primary-color); margin-bottom: 5px; }
.schedule-box { background: var(--bg-light); padding: 20px; border-radius: 8px; }
.schedule-box ul { list-style: none; margin-top: 10px; }

.custom-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Legal Pages */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 30px; color: var(--primary-color); }
.legal-content p, .legal-content ul { margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; }

/* Footer */
.site-footer { padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { text-decoration: underline; }

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: #212121;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold;
}
.cookie-btn-accept { background-color: var(--primary-color); color: #fff; }
.cookie-btn-decline { background-color: transparent; color: #fff; border: 1px solid #fff; }

@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}