/* 
 * Color Palette: Earthy Terracotta
 * --primary-color: #A0522D; (Sienna/Terracotta)
 * --secondary-color: #4A2E1F; (Dark Brown)
 * --background-color: #F5F5DC; (Beige)
 * --text-color: #3D3D3D; (Dark Gray)
 * --accent-color: #E67E22; (Carrot Orange)
 * --white-color: #FFFFFF;
*/

:root {
    --primary-color: #A0522D;
    --secondary-color: #4A2E1F;
    --background-color: #F5F5DC;
    --text-color: #3D3D3D;
    --accent-color: #E67E22;
    --white-color: #FFFFFF;
    --light-gray-color: #f9f9f9;
    --footer-bg: #2d1e15;
    --footer-text: #e0e0e0;
}

/* --- General Styles --- */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.cta-section, .cta-section-alt {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 10px;
}

.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(--secondary-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(--secondary-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;
    font-size: 1rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px; /* Adjusted for header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--white-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    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;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
}


/* --- Hero Section (Diagonal) --- */
.hero-diagonal {
    display: flex;
    min-height: 80vh;
    background-color: var(--white-color);
}
.hero-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-text {
    max-width: 550px;
}
.hero-text h1 {
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-image-container {
    width: 50%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Stats Bar --- */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.stats-section .section-title {
    color: var(--white-color);
}
.stats-bar {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-item .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
}
.stat-item .stat-description {
    font-size: 1rem;
    margin-top: 5px;
}

/* --- Benefits Grid (4 Cards) --- */
.benefits-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.benefit-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* --- Image and Text Section --- */
.image-text-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.image-text-img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Simple FAQ Section --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}
.faq-item h4 {
    margin-bottom: 10px;
}

/* --- Program Page (Accordion) --- */
.program-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}
.program-image img {
    width: 100%;
    border-radius: 8px;
}
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-toggle {
    display: none;
}
.accordion-title {
    display: block;
    padding: 15px 20px;
    background-color: var(--white-color);
    cursor: pointer;
    font-weight: bold;
    position: relative;
}
.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    transition: transform 0.3s;
}
.accordion-toggle:checked + .accordion-title::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s;
    background-color: var(--light-gray-color);
    padding: 0 20px;
}
.accordion-toggle:checked ~ .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* --- Mission Page (Values Grid) --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    text-align: center;
    padding: 20px;
}
.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.manifesto-section {
    position: relative;
    padding: 80px 0;
    background-image: url('img/bg-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white-color);
    text-align: center;
}
.manifesto-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(45, 30, 21, 0.8);
    z-index: 1;
}
.manifesto-content {
    position: relative;
    z-index: 2;
}
.manifesto-content .section-title, .manifesto-content p {
    color: var(--white-color);
}

/* --- Contact Page --- */
.contact-info-top {
    padding-bottom: 0;
}
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.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 #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* --- Policy & Thank You Pages --- */
.policy-container, .thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}
.thank-you-section {
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer h4 { color: var(--white-color) !important; }
.site-footer p, .site-footer a { color: var(--footer-text) !important; }
.site-footer a:hover { color: var(--accent-color) !important; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #444;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    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; }
#cookie-banner a { color: var(--accent-color); font-weight: bold; }
.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: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--white-color); }
.cookie-btn-decline { background-color: #666; color: var(--white-color); }

/* --- Media Queries --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    #menu-toggle:checked ~ .mobile-nav { max-height: 400px; }
    .mobile-nav {
        display: block;
    }
    #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-diagonal { flex-direction: column; min-height: auto; }
    .hero-content, .hero-image-container { width: 100%; }
    .hero-image-container {
        min-height: 300px;
        clip-path: none;
    }
}

@media (min-width: 600px) {
    .benefits-grid-4 { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .contact-details-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (min-width: 768px) {
    .image-text-container { grid-template-columns: 1fr 1fr; }
    .image-text-content { order: 1; }
    .image-text-img-wrapper { order: 2; }
    .program-content-wrapper { grid-template-columns: 1fr 1.2fr; }
    .program-image { order: 2; }
    .accordion { order: 1; }
}

@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; }
}