/* 
    Color Palette: Warm Terracotta
    --primary-color: #E57373; (Soft Terracotta/Red)
    --secondary-color: #A1887F; (Earthy Brown)
    --background-color: #FDF8F5; (Warm Off-white)
    --text-color: #4E342E; (Dark Brown)
    --accent-color: #FFB74D; (Muted Orange)
*/

:root {
    --primary-color: #E57373;
    --secondary-color: #A1887F;
    --background-color: #FDF8F5;
    --text-color: #4E342E;
    --accent-color: #FFB74D;
    --text-light: #FDF8F5;
    --footer-bg: #4E342E;
    --footer-text: #FDF8F5;
}

/* --- Global Styles --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    padding-left: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #757575;
}


/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    border-bottom: 1px solid #e0e0e0;
}

.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;
    z-index: 100;
    color: var(--text-color);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.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;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px; /* Adjust to header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: var(--background-color);
    transition: max-height 0.3s ease;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
    display: block;
    width: 100%;
    font-weight: 600;
}

@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: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}
.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}
.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}


/* --- Hero Section (Diagonal Split) --- */
.hero-diagonal {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
}

.hero-content {
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.hero-image-container {
    background: url('img/bg.jpg') no-repeat center center/cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
}

@media (min-width: 992px) {
    .hero-diagonal {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content {
        padding-right: 20px;
    }
    .hero-image-container {
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* --- Stats Bar Section --- */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}
.stat-text {
    font-size: 1rem;
    margin: 0;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- Vertical Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-left: 30px;
}
.timeline-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    top: 20px;
    left: -23px;
    z-index: 1;
}
.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}
@media (min-width: 768px) {
    .timeline::after {
        left: 50%;
        margin-left: -1.5px;
    }
    .timeline-item {
        width: 50%;
        margin-left: 0;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-left: 0;
        padding-right: 50px;
        text-align: right;
    }
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-icon {
        display: none;
    }
}

/* --- Split Section --- */
.split-section-reverse .split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.split-image img {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .split-section-reverse .split-container {
        grid-template-columns: 1fr 1fr;
    }
    .split-section-reverse .split-image {
        order: -1;
    }
}

/* --- FAQ Accordion --- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-toggle { display: none; }
.accordion-title {
    display: block;
    padding: 18px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.accordion-title:hover { background-color: #f7f7f7; }
.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-content p { padding: 0 20px 20px; margin: 0; }
.accordion-toggle:checked + .accordion-title::after { transform: translateY(-50%) rotate(45deg); }
.accordion-toggle:checked ~ .accordion-content { max-height: 300px; }


/* --- CTA Section --- */
.cta-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
    color: var(--text-light);
}
.cta-section h2 {
    color: var(--text-light);
}
.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
.site-footer h3 {
    color: var(--accent-color) !important;
    margin-bottom: 15px;
}
.site-footer p, .site-footer a {
    color: var(--footer-text) !important;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #5a4a45;
}
.footer-copyright p {
    margin: 0;
    font-size: 0.9em;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- Other Pages --- */
.page-hero {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
}
.page-hero h1 { color: var(--text-light); }

/* Program Page */
.program-accordion .accordion-title { background-color: #fff; border: 1px solid #ddd; margin-top: -1px; }
.program-accordion .accordion-title:hover { background-color: #f9f9f9; }
.program-accordion .accordion-content p { background-color: #fff; }

.image-feature-container {
    display: grid; gap: 40px; align-items: center;
}
.image-feature-img img { border-radius: 8px; }
@media (min-width: 768px) {
    .image-feature-container { grid-template-columns: 1fr 1fr; }
}

/* Mission Page */
.mission-intro { display: grid; gap: 40px; align-items: center; }
.mission-image img { border-radius: 8px; }
@media (min-width: 768px) {
    .mission-intro { grid-template-columns: 1fr 1fr; }
}
.values-section { background-color: #fff; }
.values-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.value-card { padding: 25px; text-align: center; border: 1px solid #eee; border-radius: 8px; }
.value-icon-placeholder { width: 50px; height: 50px; background-color: var(--primary-color); border-radius: 50%; margin: 0 auto 15px auto; }
@media (min-width: 600px) {
    .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}
.manifesto-section { text-align: center; }
.manifesto-section blockquote {
    max-width: 800px; margin: 0 auto;
    font-size: 1.3rem; font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 30px;
}

/* Contact Page */
.contact-info-top {
    display: grid; grid-template-columns: 1fr; gap: 20px;
    text-align: center; margin-bottom: 50px;
}
@media (min-width: 600px) {
    .contact-info-top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .contact-info-top { grid-template-columns: repeat(4, 1fr); }
}
.contact-form-container { max-width: 800px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc;
    border-radius: 4px; font-size: 1rem;
}
.contact-form button { width: 100%; }

/* Legal & Thank You Pages */
.legal-page, .thank-you-section { padding: 60px 0; }
.legal-page h2 { margin-top: 30px; }
.thank-you-section { text-align: center; }
.next-steps { margin-top: 50px; }
.next-steps-links { display: grid; gap: 20px; margin-top: 30px; }
.next-step-card {
    display: block; padding: 25px; border: 1px solid #ddd;
    border-radius: 8px; text-decoration: none; color: var(--text-color);
    transition: box-shadow 0.3s, transform 0.3s;
}
.next-step-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-decoration: none; }
@media (min-width: 768px) {
    .next-steps-links { grid-template-columns: repeat(3, 1fr); }
}


/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--footer-bg); color: var(--footer-text);
    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;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#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: 4px; cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--text-light); }
.cookie-btn-decline { background-color: #757575; color: #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; }
}