/*
* Palette: Terracotta & Earth
* Primary: #E57373 (Terracotta)
* Secondary: #A1887F (Earthy Brown)
* Accent: #FFB74D (Warm Orange)
* Text: #4E342E (Dark Brown)
* Background: #F5F5F5 (Light Gray/Beige)
* Dark Background: #D7CCC8 (Darker Beige)
*/

:root {
    --primary-color: #E57373;
    --secondary-color: #A1887F;
    --accent-color: #FFB74D;
    --text-color: #4E342E;
    --text-light: #6D4C41;
    --bg-color: #F5F5F5;
    --bg-dark: #EFEBE9;
    --white-color: #FFFFFF;
    --border-color: #D7CCC8;
    --footer-bg: #4E342E;
    --footer-text: #EFEBE9 !important;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-position: inside;
    padding-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 8px 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(--text-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 .nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.desktop-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.desktop-nav .nav-list a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: max-height 0.3s ease;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--text-color);
    font-size: 1.2rem;
}

@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);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

/* --- Hero Section (Diagonal Split) --- */
.hero-diagonal {
    display: flex;
    min-height: 80vh;
    background-color: var(--bg-dark);
    width: 100%;
}
.hero-content {
    width: 50%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-image {
    width: 50%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}
@media (max-width: 992px) {
    .hero-diagonal {
        flex-direction: column;
    }
    .hero-content, .hero-image {
        width: 100%;
    }
    .hero-image {
        min-height: 300px;
        clip-path: none;
    }
}

/* --- Benefits Section (2x2 Grid) --- */
.benefits-section-grid {
    background-color: var(--white-color);
}
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.benefit-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .benefits-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white-color);
    text-align: center;
}
.stats-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(78, 52, 46, 0.7); /* Dark Brown Overlay */
}
.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 3rem;
    font-weight: bold;
}
.stat-label {
    font-size: 1rem;
}

/* --- Accordion --- */
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    color: var(--text-color);
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-header[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}
.accordion-content p {
    padding: 10px 0 20px 0;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cta-container {
    text-align: center;
}
.cta-container h2, .cta-container p {
    color: var(--white-color);
}
.cta-container .btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}
.cta-container .btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
}

/* --- Program Page --- */
.page-header {
    background-color: var(--bg-dark);
    text-align: center;
    padding: 50px 0;
}
.image-feature-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.image-feature-media img {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .image-feature-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Mission Page --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.story-image img {
    border-radius: 8px;
}
@media (min-width: 992px) {
    .story-container {
        grid-template-columns: 40% 60%;
    }
}
.values-section {
    background-color: var(--bg-dark);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    text-align: center;
}
.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
@media (min-width: 576px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.manifesto-section blockquote {
    border-left: 5px solid var(--primary-color);
    padding-left: 30px;
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Contact Page --- */
.contact-info-top {
    background-color: var(--white-color);
}
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
}
.contact-detail-card {
    padding: 20px;
}
@media (min-width: 768px) {
    .contact-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .contact-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.contact-form-full {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
}
.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 var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Legal & Thank You Pages --- */
.legal-page .container, .thank-you-section .container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.legal-page h2 {
    margin-top: 30px;
}
.thank-you-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.next-steps {
    margin: 40px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.next-steps ul {
    list-style-type: none;
    padding: 0;
}
.next-steps li {
    margin-bottom: 10px;
}

/* --- 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;
}
.site-footer h4 {
    color: var(--white-color) !important;
    margin-bottom: 20px;
}
.site-footer p, .site-footer a {
    color: var(--footer-text) !important;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { 
    transform: translateY(110%); 
}
#cookie-banner p { 
    margin: 0; 
    flex: 1; 
    min-width: 200px; 
    color: var(--footer-text);
}
#cookie-banner a {
    color: var(--accent-color) !important;
    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: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-decline {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
@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; }
}
