/*
    Earthy Terracotta Palette
    Primary: #D2691E (Terracotta)
    Secondary: #8B4513 (Saddle Brown)
    Background: #FDF5E6 (Old Lace)
    Text: #3D2B1F (Dark Brown)
    Accent: #F5DEB3 (Wheat)
*/

:root {
    --color-primary: #D2691E;
    --color-secondary: #8B4513;
    --color-background: #FDF5E6;
    --color-surface: #FFFFFF;
    --color-text: #3D2B1F;
    --color-text-light: #6B4F3A;
    --color-accent: #F5DEB3;
    --font-family-base: 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Georgia', serif;
}

/* Global Styles */
body {
    margin: 0;
    font-family: var(--font-family-base);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-secondary);
    margin-top: 0;
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.card {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: #fff;
    text-decoration: none;
    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: #fff;
    text-decoration: none;
}

/* Header */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: var(--color-surface);
    box-shadow: 0 2px 5px 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;
    z-index: 100;
    color: var(--color-secondary);
}
.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(--color-secondary);
    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);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background-color: var(--color-surface);
    box-shadow: 0 5px 10px 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-accent);
    text-align: center;
}
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a { 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); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 43, 31, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    margin-top: 12%;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* Intro Section */
.intro-section {
    text-align: center;
}
.intro-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--color-accent);
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.benefit-card {
    text-align: center;
}
.card-icon-wrapper {
    margin: 0 auto 20px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon-wrapper svg {
    stroke: var(--color-primary);
}
.card-title {
    margin-bottom: 15px;
}

/* Split Section */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}
.split-image img {
    border-radius: 8px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.testimonial-card {
    border-left: 5px solid var(--color-primary);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: bold;
    color: var(--color-secondary);
}

/* CTA Section */
.cta-section {
    background-color: var(--color-secondary);
    color: #fff;
    text-align: center;
}
.cta-content h2 {
    color: #fff;
    margin-bottom: 20px;
}
.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Footer */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-accent) !important;
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h3, .site-footer p, .site-footer li, .site-footer a {
    color: var(--color-accent) !important;
}
.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff !important;
}
.footer-about p {
    line-height: 1.6;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}
.footer-contact p {
    margin: 0 0 10px 0;
}
.footer-bottom {
    border-top: 1px solid var(--color-text-light);
    text-align: center;
    padding: 20px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Program Page - Timeline */
.timeline-section {
    position: relative;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 41%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-surface);
    border: 4px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}
.timeline-content {
    position: relative;
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    color: #fff;
}
.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-family-heading);
}
.stat-label {
    font-size: 1rem;
}

/* Mission Page */
.mission-story-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.mission-image img {
    border-radius: 8px;
}
.values-section {
    background-color: var(--color-accent);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.manifesto-section {
    text-align: center;
}
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}
.manifesto-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px auto;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.contact-form {
    max-width: 800px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--color-surface);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-accent);
}
.contact-info-card hr {
    border: 0;
    height: 1px;
    background-color: var(--color-accent);
    margin: 20px 0;
}

/* Legal & Thank You Pages */
.legal-page ul {
    padding-left: 20px;
}
.legal-page li {
    margin-bottom: 10px;
}
.thank-you-section {
    text-align: center;
    padding: 100px 0;
}
.thank-you-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}
.next-steps {
    margin-top: 50px;
}
.next-steps-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}
.next-step-card {
    text-align: left;
    color: var(--color-text);
}
.next-step-card:hover { text-decoration: none; }

/* 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(--color-text);
    color: var(--color-accent);
    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: #fff !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: bold;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: #fff;
}
.cookie-btn-decline {
    background-color: #555;
    color: #fff;
}

/* Media Queries */
@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .split-container { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-story-layout { grid-template-columns: 40% 1fr; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout { grid-template-columns: 1.5fr 1fr; }
    .next-steps-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: calc(100% - 95px);
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

@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; }
}