/* 
Color Palette: Earthy Matcha & Terracotta
Primary: #4A5D23 (Matcha Green)
Secondary: #E2725B (Terracotta)
Background: #F9F6F0 (Warm Sand)
Text: #2C2C2C (Dark Charcoal)
*/

:root {
    --primary: #4A5D23;
    --secondary: #E2725B;
    --bg-color: #F9F6F0;
    --text-color: #2C2C2C;
    --light-gray: #EAE6DF;
    --white: #FFFFFF;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: clamp(16px, 1.5vw, 18px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin-bottom: 1.5rem; }

.lead-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c95d47;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-nav { display: none; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover { color: var(--secondary); }

/* Burger Menu */
.menu-checkbox { display: none; }
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li { margin-bottom: 15px; }
.mobile-nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

#menu-toggle:checked ~ .mobile-nav { max-height: 300px; }
#menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 768px) {
    .hamburger { display: none; }
    .desktop-nav { display: block; }
    .mobile-nav { display: none !important; }
}

/* Asymmetrical Hero (Index) */
.hero-asymmetric {
    padding: 60px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-image-wrapper {
    position: relative;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%);
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.2fr 1fr; }
    .hero-asymmetric { padding: 100px 0; }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary);
}

.feature-card:hover { transform: translateY(-10px); }
.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Split Overlap Section */
.split-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.split-image {
    position: relative;
}

.split-image img {
    border-radius: 15px;
}

.floating-stat {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(226, 114, 91, 0.3);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-list {
    list-style: none;
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

@media (min-width: 992px) {
    .split-wrapper { grid-template-columns: 1fr 1fr; }
}

/* Masonry Testimonials */
.masonry-grid {
    column-count: 1;
    column-gap: 30px;
    margin-top: 40px;
}

.masonry-item {
    break-inside: avoid;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--light-gray);
}

.highlight-item {
    background: var(--primary);
    color: var(--white);
    border-left: none;
}

.highlight-item .author { color: var(--light-gray); }

.quote {
    font-style: italic;
    margin-bottom: 15px;
}

.author {
    font-weight: 600;
    color: var(--secondary);
}

@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}

/* Page Hero */
.page-hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--light-gray);
}

/* Timeline (Program) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.timeline-image-wrap {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
    }
    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 40px;
    }
    .timeline-dot {
        left: 100%;
        transform: translateX(-50%);
    }
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
    }
}

/* Stats Bar */
.stats-bar {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Accordion FAQ */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary);
}

.accordion-item[open] summary::after { content: '-'; }
.accordion-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: 10px;
    padding-top: 15px;
}

/* Parallax Hero (Mission) */
.parallax-hero {
    height: 60vh;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.parallax-content h1 { color: var(--white); }

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.value-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--light-gray);
}

@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Manifesto */
.manifesto-box {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.info-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 93, 35, 0.2);
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-content h3 {
    margin-top: 30px;
    color: var(--text-color);
}

/* Thank You Page */
.success-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.next-steps {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.action-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    transform: translateY(0);
    transition: transform 0.4s ease;
    background-color: #1a1a1a;
    color: #fff;
    border-top: 3px solid var(--secondary);
}

#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-accept { background-color: var(--primary); color: white; }
.cookie-btn-decline { background-color: transparent; color: white; border: 1px solid white; }

@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; }
}