/*
* Color Palette: Graphite & Copper
* --primary-color: #B87333 (Copper)
* --secondary-color: #36454F (Charcoal/Graphite)
* --background-color: #FDF5E6 (Old Lace/Light Cream)
* --text-color: #2C3E50 (Dark Slate)
* --light-gray: #EAEAEA
*/

:root {
    --primary-color: #B87333;
    --secondary-color: #36454F;
    --background-color: #FDF5E6;
    --text-color: #2C3E50;
    --light-gray: #EAEAEA;
    --white-color: #FFFFFF;
    --header-bg: rgba(253, 245, 230, 0.85);
    --footer-bg: #2C3E50;
    --footer-text: #EAEAEA;
}

/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.2rem;
}

ul {
    list-style-position: inside;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-light {
    background-color: var(--white-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title-left {
    text-align: left;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.page-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1, .page-header p {
    color: var(--white-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #a0642a;
    color: var(--white-color);
    transform: translateY(-2px);
}

.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(--white-color);
    transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

.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);
}

.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 {
    font-weight: 600;
    color: var(--text-color);
}
.desktop-nav a:hover {
    color: var(--primary-color);
}

.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-in-out;
    z-index: 99;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}
.mobile-nav a {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    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 (Vertical) --- */
.hero-vertical {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}
.hero-vertical-image-container {
    height: 40vh;
    width: 100%;
}
.hero-vertical-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-vertical-content {
    padding: 4rem 0;
    text-align: center;
}
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1.5rem auto 2.5rem auto;
    line-height: 1.8;
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll-container {
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}
.horizontal-scroll-wrapper {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 20px;
}
.scroll-card {
    width: 320px;
    flex-shrink: 0;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.card-icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    color: var(--white-color);
}
.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--light-gray);
}

/* --- Overlap Section --- */
.overlap-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
}
.overlap-image-container {
    position: relative;
}
.overlap-image {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .overlap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .overlap-image-container {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .overlap-content {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        padding: 3rem;
        background: var(--white-color);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-left: -50px;
        z-index: 10;
    }
}

/* --- Testimonials (Masonry) --- */
.masonry-grid {
    column-count: 1;
    column-gap: 24px;
}
.masonry-item {
    background: var(--white-color);
    padding: 2rem;
    margin-bottom: 24px;
    break-inside: avoid;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}
.masonry-item blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    font-size: 1.1rem;
}
.masonry-item cite {
    font-weight: 600;
    color: var(--secondary-color);
}
@media (min-width: 600px) {
    .masonry-grid { column-count: 2; }
}

/* --- CTA Section --- */
.cta-section {
    background-image: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    color: var(--white-color);
    text-align: center;
}
.cta-content h2 {
    color: var(--white-color);
}

/* --- Program Page (Tabs) --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--light-gray);
    justify-content: center;
    margin-bottom: 2rem;
}
.tab-link {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    bottom: -2px;
}
.tab-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
.content-image-full {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Mission Page (Storytelling) --- */
.storytelling-section .story-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 5rem;
}
.story-item.reverse .story-content {
    order: 2;
}
.story-image {
    border-radius: 8px;
    object-fit: cover;
}
.values-list {
    list-style: none;
    padding: 0;
}
.values-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 1rem;
}
.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.manifesto-placeholder {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}
@media (min-width: 992px) {
    .storytelling-section .story-item {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* --- Contact Page (Sidebar Layout) --- */
.contact-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.contact-sidebar {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
}
.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item h4 { margin: 0 0 0.5rem 0; color: var(--primary-color); }
.contact-info-item p { margin: 0; }

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.2);
}
.form-submit-btn {
    width: 100%;
}
@media (min-width: 992px) {
    .contact-layout-sidebar {
        grid-template-columns: 350px 1fr;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-page .container {
    max-width: 800px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.legal-page h1, .legal-page h2 { margin-top: 2rem; }
.thank-you-section { text-align: center; }
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
    text-align: left;
}
.next-step-card {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: var(--text-color);
}
.next-step-card h3 { color: var(--primary-color); }

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 4rem 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.site-footer h4 {
    color: var(--white-color) !important;
    margin-bottom: 1rem;
}
.site-footer p {
    color: var(--footer-text) !important;
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: var(--footer-text) !important;
}
.site-footer a:hover {
    color: var(--primary-color) !important;
}
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- 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;
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(0); transition: transform 0.4s ease;
}
#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(--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-color);
}
.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--light-gray);
    color: var(--light-gray);
}
@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; }
}