/* Color Palette: Graphite & Copper */
:root {
    --primary-color: #D97940; /* Copper */
    --secondary-color: #36454F; /* Charcoal/Graphite */
    --background-color: #F4F4F4; /* Light Gray */
    --light-background-color: #FFFFFF;
    --dark-background-color: #2C3A47; /* Dark Slate */
    --text-color: #333333;
    --light-text-color: #F4F4F4;
    --heading-font: 'Georgia', serif;
    --body-font: 'Helvetica', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--light-background-color);
}

.section-dark {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--light-text-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-background-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-background-color);
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--light-background-color);
    box-shadow: 0 2px 5px 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;
    z-index: 100;
    color: var(--secondary-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(--secondary-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 {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 99;
    background-color: var(--light-background-color);
    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;
    text-align: center;
}
.mobile-nav a {
    color: var(--secondary-color);
    font-size: 18px;
}

@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 (Vertical Layout) --- */
.hero-vertical {
    display: flex;
    flex-direction: column;
    background-color: var(--light-background-color);
}
.hero-image-container {
    width: 100%;
    height: 40vh;
}
.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-container {
    padding: 60px 0;
}
.hero-title {
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--background-color);
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}
.scroll-wrapper {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0 20px;
}
.scroll-card {
    width: 320px;
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.card-icon-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}
.stat-description {
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Split Content Section --- */
.split-content-layout {
    display: grid;
    gap: 50px;
    align-items: center;
}
@media (min-width: 768px) {
    .split-content-layout {
        grid-template-columns: 1fr 1fr;
    }
}
.split-content-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* --- Testimonials (Masonry) --- */
.masonry-grid {
    column-count: 1;
    column-gap: 30px;
}
@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
}
.masonry-item blockquote {
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}
.masonry-item p {
    margin-bottom: 1rem;
}
.masonry-item footer {
    font-style: italic;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.cta-section h2 {
    color: var(--light-text-color);
}
.cta-content {
    text-align: center;
}
.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}
.cta-section .btn-primary {
    background-color: var(--light-background-color);
    color: var(--primary-color);
}
.cta-section .btn-primary:hover {
    background-color: transparent;
    border-color: var(--light-background-color);
    color: var(--light-background-color);
}

/* --- Page Header --- */
.page-header {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}
.page-header h1, .page-header p {
    color: var(--light-text-color);
}
.page-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Program Page (Tabs) --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.tab-button.active, .tab-button:hover {
    background: var(--secondary-color);
    color: var(--light-background-color);
}
.tab-content {
    display: none;
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}
.tab-content ul {
    list-style-position: inside;
    margin: 20px 0;
}
.tab-content .content-image {
    margin-top: 20px;
    border-radius: var(--border-radius);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Mission Page (Storytelling) --- */
.story-alternating-layout .story-row {
    display: grid;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
@media (min-width: 768px) {
    .story-alternating-layout .story-row {
        grid-template-columns: 1fr 1fr;
    }
    .story-alternating-layout .story-row.reverse {
        grid-template-columns: 1fr 1fr;
    }
    .story-alternating-layout .story-row.reverse .story-image {
        order: 2;
    }
}
.story-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.value-card {
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.manifesto-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.manifesto-block blockquote {
    font-size: 1.3rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 30px;
    margin-top: 20px;
    text-align: left;
}

/* --- Contact Page (Sidebar Layout) --- */
.contact-sidebar-layout {
    display: grid;
    gap: 50px;
}
@media (min-width: 992px) {
    .contact-sidebar-layout {
        grid-template-columns: 350px 1fr;
    }
}
.contact-sidebar {
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
}
.contact-details .contact-item {
    margin-bottom: 20px;
}
.contact-details .contact-item strong {
    display: block;
    color: var(--secondary-color);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form button {
    width: 100%;
}

/* --- Legal & Thank You Pages --- */
.legal-page .container {
    max-width: 800px;
    padding: 60px 20px;
}
.legal-page h1, .legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page p, .legal-page ul {
    margin-bottom: 1rem;
}
.thank-you-section {
    padding: 80px 0;
}
.text-center { text-align: center; }
.thank-you-content {
    margin-top: 40px;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}
.quick-link-card {
    display: block;
    background: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}
.quick-link-card h3 {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: #BDBDBD !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: var(--light-background-color) !important;
    margin-bottom: 20px;
}
.site-footer p {
    margin-bottom: 10px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.site-footer a {
    color: #BDBDBD !important;
}
.site-footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #4A4A4A;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden, #cookie-banner[style*="display: none"] { 
    transform: translateY(110%); 
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--primary-color); font-weight: bold; }
.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(--primary-color);
    color: white;
}
.cookie-btn-decline {
    background-color: #555;
    color: white;
}
@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; }
}