/*
  Color Palette: Terracotta Earth
  --primary-color: #BF5A36 (Terracotta)
  --secondary-color: #5A8B43 (Earthy Green)
  --accent-color: #E9A821 (Warm Gold)
  --background-color: #FDFBF5 (Light Cream)
  --text-dark: #3D352E (Dark Brown)
  --text-light: #FFFFFF
*/

:root {
    --primary-color: #BF5A36;
    --secondary-color: #5A8B43;
    --accent-color: #E9A821;
    --background-color: #FDFBF5;
    --text-dark: #3D352E;
    --text-light: #FFFFFF;
    --font-family-base: 'Helvetica Neue', Arial, sans-serif;
    --section-padding: clamp(3rem, 8vw, 6rem) 0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
.site-header {
    background-color: var(--background-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.logo:hover {
    color: var(--primary-color);
}

.navigation ul {
    display: none;
    list-style: none;
}

.navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 80%;
}

.hidden-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--background-color);
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.hidden-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
    display: block;
}

.hidden-toggle:checked ~ .hamburger .line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.hidden-toggle:checked ~ .hamburger .line:nth-child(2) {
    opacity: 0;
}
.hidden-toggle:checked ~ .hamburger .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 2rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .hamburger, .mobile-nav {
        display: none;
    }
    .navigation ul {
        display: flex;
        gap: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #a54b2a;
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 53, 46, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
}

/* Intro Section */
.intro-section .section-intro-text {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-align: center;
}

.benefit-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 50px;
    height: 50px;
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Split Section */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.split-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--background-color);
    border-left: 5px solid var(--secondary-color);
    padding: 2rem;
}

.testimonial-card blockquote {
    margin: 0;
    font-style: italic;
}

.testimonial-card cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page Header */
.page-header {
    background-color: #f4f0e9;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Section (Program Page) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 2.5rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.timeline-image-overlay {
    background-color: rgba(61, 53, 46, 0.7);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 6px;
}
.timeline-image-overlay h3, .timeline-image-overlay p, .timeline-image-overlay span {
    color: var(--text-light);
}

.timeline-step {
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
        left: 0 !important;
    }
    .timeline-item::after {
        left: 10px;
    }
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1rem 1rem 1rem;
}

/* Mission Page */
.mission-story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.mission-story-image img {
    width: 100%;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .mission-story-container {
        grid-template-columns: 2fr 1fr;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.value-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-top: 5px solid var(--secondary-color);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.manifesto-section {
    background-color: #f4f0e9;
}
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}
.info-item {
    margin-bottom: 1.5rem;
}
.info-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.contact-form {
    max-width: 800px;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family-base);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(191, 90, 54, 0.5);
}

/* Legal & Thank You Pages */
.legal-page h1, .thank-you-section h1 {
    margin-bottom: 2rem;
}
.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-steps {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}
.next-steps-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Footer */
.site-footer-main {
    background-color: #3D352E !important;
    color: #FDFBF5 !important;
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-heading {
    color: var(--text-light) !important;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.site-footer-main p, .site-footer-main a {
    color: #dcd8d1 !important;
}
.site-footer-main a:hover {
    color: var(--text-light) !important;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #5a5047;
    padding-top: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 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: var(--text-dark);
    color: var(--text-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent-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(--secondary-color);
    color: var(--text-light);
}
.cookie-btn-decline {
    background-color: #777;
    color: var(--text-light);
}
@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; }
}