/*
  Color Palette: Terracotta Earth
  --primary-color: #E57373; (Soft Terracotta/Coral)
  --secondary-color: #4CAF50; (Vibrant Green)
  --dark-color: #3E2723; (Deep Brown)
  --light-color: #FFF8E1; (Warm Cream/Off-white)
  --text-color: #424242; (Dark Gray)
*/

:root {
    --primary-color: #E57373;
    --secondary-color: #4CAF50;
    --dark-color: #3E2723;
    --light-color: #FFF8E1;
    --text-color: #424242;
    --text-light: #616161;
    --border-color: #E0E0E0;
    --white: #ffffff;
    --footer-bg: #3E2723;
    --footer-text: #FFF8E1;
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 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(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d32f2f;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    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: 15px 10px; /* Mobile header padding */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
}

.logo:hover {
    color: var(--primary-color);
}

.navigation ul {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .navigation {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .mobile-nav ul {
        flex-direction: column;
    }

    .mobile-nav li a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        color: var(--dark-color);
        border-bottom: 1px solid var(--border-color);
    }

    #menu-toggle:checked ~ .mobile-nav {
        max-height: 500px;
    }

    #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 Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--light-color);
}

/* --- Benefits Section --- */
.benefits-section {
    background-color: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    margin-bottom: 0.5rem;
}

/* --- Split Section --- */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

.split-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.split-content .section-title {
    text-align: left;
    margin-left: 0;
}

.split-content .section-title::after {
    margin: 10px 0 0;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--dark-color);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--dark-color);
    color: var(--white);
}

.cta-section .section-title, .cta-section p {
    color: var(--white);
}

.cta-section .section-title::after {
    background-color: var(--light-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-title {
    color: var(--white) !important;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.site-footer p, .site-footer a {
    color: var(--footer-text) !important;
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.legal-links a {
    margin: 0 10px;
}

/* --- Program Page --- */
.page-header {
    background-color: var(--light-color);
    text-align: center;
    padding: 60px 0;
}

.page-title {
    margin-bottom: 0.5rem;
}

.numbered-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.numbered-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.block-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.5;
}

.block-content h3 {
    margin-bottom: 0.5rem;
}

.program-image-container {
    margin-top: 60px;
}
.program-image {
    border-radius: 8px;
}

/* --- FAQ Section --- */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 15px;
    padding-left: 10px;
}

/* --- Mission Page --- */
.mission-story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.mission-story-image img {
    border-radius: 8px;
}

.values-section {
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.value-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.manifesto-section {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0;
}

.manifesto-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    padding: 0;
    color: var(--white);
}

/* --- Contact Page --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-info .section-title {
    text-align: left;
    margin-left: 0;
}
.contact-info .section-title::after {
    margin-left: 0;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form {
    max-width: 800px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.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);
    box-shadow: 0 0 5px rgba(229, 115, 115, 0.5);
}

/* --- Legal & Thank You Pages --- */
.legal-page h1, .legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page ul {
    list-style: disc;
    padding-left: 20px;
}

.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.thank-you-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    width: 100px;
    height: 100px;
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- 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(--dark-color);
    color: var(--white);
    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; color: var(--white); }
#cookie-banner a { color: var(--primary-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: 5px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white);
}
.cookie-btn-decline {
    background-color: #757575;
    color: var(--white);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .split-container { grid-template-columns: 1fr 1fr; }
    .split-container.reverse { grid-template-columns: 1fr 1fr; }
    .split-container.reverse .split-image { order: 2; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-story-container { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-container { grid-template-columns: 1fr 1.5fr; }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}