/*
 * Color Palette: Terracotta Earth
 * Primary: #E57373 (Terracotta Red)
 * Secondary: #A1887F (Earthy Brown)
 * Accent: #FFB74D (Warm Orange)
 * Background Light: #F5F5F5 (Light Gray)
 * Text Dark: #3E2723 (Dark Brown)
 * Text Light: #FFFFFF
*/

:root {
    --color-primary: #E57373;
    --color-secondary: #A1887F;
    --color-accent: #FFB74D;
    --color-background-light: #F5F5F5;
    --color-background-dark: #3E2723;
    --color-text-dark: #3E2723;
    --color-text-light: #FFFFFF;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --container-width: 1200px;
    --border-radius: 8px;
}

/* --- General Styles --- */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: #FFFFFF;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-top: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

p { margin-bottom: 1.25rem; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--color-background-light);
}

.section-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #D32F2F;
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}


/* --- Header --- */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.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(--color-text-dark);
    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(--color-text-dark);
    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;
    color: var(--color-text-dark);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-background-light);
    text-align: center;
}

.mobile-nav a {
    font-size: 18px;
    color: var(--color-text-dark);
    width: 100%;
    display: block;
}

@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); }
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    color: var(--color-text-light);
    background: url('img/bg.jpg') no-repeat center center/cover;
}

.hero-fullscreen {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.centered-content {
    text-align: center;
}

.hero-content h1 {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* --- Benefits Section --- */
.benefits-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .benefits-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* --- Split Layout --- */
.split-layout-rtl {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}
@media (min-width: 992px) {
    .split-layout-rtl { grid-template-columns: 1fr 1fr; }
}

.split-image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Stats Bar --- */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    font-size: 1rem;
    margin: 0;
}

/* --- FAQ Accordion --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--color-text-dark);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
}

.accordion-content p {
    padding: 20px;
    margin: 0;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-left: 5px solid var(--color-primary);
}

.testimonial-card blockquote {
    margin: 0 0 15px 0;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--color-secondary);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.cta-content {
    text-align: center;
}

.cta-content h2, .cta-content p {
    color: var(--color-text-light);
}

.cta-content .btn-primary {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.cta-content .btn-primary:hover {
    background-color: #f0f0f0;
}


/* --- Page Specific Styles --- */
.section-page-intro {
    background-color: var(--color-background-light);
    text-align: center;
    padding: 60px 0;
}

.page-title { margin-bottom: 15px; }
.page-subtitle { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* --- Program Page: Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 15px;
}

.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid var(--color-primary);
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.image-banner {
    padding: 40px 0;
}
.banner-image-full {
    width: 100%;
    border-radius: var(--border-radius);
}
.image-caption {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: 15px;
}

/* --- Mission Page --- */
.story-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .story-layout { grid-template-columns: 2fr 3fr; }
}
.story-image { border-radius: var(--border-radius); }

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card { text-align: center; }
.value-card h3 { color: var(--color-primary); }

.manifesto-section { background-color: var(--color-secondary); }
.manifesto-content blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* --- Contact Page --- */
.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
@media (min-width: 992px) {
    .contact-page-layout { grid-template-columns: 3fr 2fr; }
}

.form-title, .info-title { margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.2);
}
.form-submit-btn { width: 100%; }

.info-block { margin-bottom: 25px; }
.info-block h3 { margin-bottom: 5px; color: var(--color-primary); }
.info-block p { margin: 0; line-height: 1.5; }

/* --- Legal & Thank You Pages --- */
.legal-content h1, .legal-content h2 { margin-bottom: 20px; }
.legal-content p, .legal-content li { margin-bottom: 15px; }

.thank-you-section { text-align: center; padding: 100px 0; }
.thank-you-content h1 { color: var(--color-primary); }
.next-steps {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}
.next-steps ul li { margin-bottom: 10px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--color-background-dark) !important;
    color: var(--color-text-light) !important;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (min-width: 600px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.site-footer h3, .site-footer h4, .site-footer p, .site-footer a {
    color: var(--color-text-light) !important;
}

.footer-logo { font-size: 1.8rem; margin-bottom: 15px; }
.footer-about p { opacity: 0.8; }
.footer-links ul li, .footer-legal ul li { margin-bottom: 10px; }
.footer-contact p { margin-bottom: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { margin: 0; opacity: 0.7; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    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.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--color-accent) !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: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.cookie-btn-decline {
    background-color: var(--color-secondary);
    color: var(--color-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; }
}
