/*
* Palette: Graphite & Copper
* Primary: #D97941 (Copper)
* Secondary: #4A4A4A (Dark Graphite)
* Background: #F5F5F5 (Light Gray)
* Text: #212121 (Graphite)
* Accent: #EFEBE9 (Cream)
*/

:root {
    --color-primary: #D97941;
    --color-secondary: #4A4A4A;
    --color-background: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-text: #212121;
    --color-text-light: #616161;
    --color-accent: #EFEBE9;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1200px;
}

/* --- General Styles --- */
body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75em;
    color: var(--color-secondary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1.25em;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Sections --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(40px, 8vw, 80px) 0;
}

.cta-section-alt {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: 1.1rem;
}

.page-header {
    background-color: var(--color-accent);
    padding: 60px 0;
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: var(--container-width);
    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);
}

.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 .nav-list a {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.desktop-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.desktop-nav .nav-list a:hover::after {
    width: 100%;
}

.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: var(--color-surface);
    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;
    text-align: center;
    border-bottom: 1px solid var(--color-accent);
}

.mobile-nav a {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

/* --- Hero Section (Vertical) --- */
.hero-vertical {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
}
.hero-vertical-image-container {
    width: 100%;
    height: 300px;
}
.hero-vertical-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-vertical-content-container {
    padding: clamp(30px, 6vw, 60px) 0;
    text-align: center;
}
.hero-subtitle {
    max-width: 750px;
    margin: 24px auto 32px;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: #c56a35;
    color: white;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* --- Stats Bar Section --- */
.stats-section {
    background-color: var(--color-accent);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
}
.stat-item .stat-label {
    margin: 0;
    color: var(--color-text-light);
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.scroll-wrapper {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    width: max-content;
}
.scroll-card {
    width: 320px;
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    flex-shrink: 0;
}
.scroll-card h3 {
    margin-bottom: 12px;
    color: var(--color-secondary);
}
.card-icon-container {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon-container svg {
    stroke: var(--color-primary);
}

/* --- Parallax Section --- */
.parallax-section {
    background-image: url('img/bg-1.jpg');
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 20px;
}
.parallax-content h2 {
    color: white;
}

/* --- Video Section --- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.video-placeholder {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--color-primary);
    margin-left: 5px;
}
.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}
.video-content .section-title {
    text-align: left;
}

/* --- Testimonials Masonry --- */
.masonry-grid {
    column-count: 1;
    column-gap: 24px;
}
.masonry-item {
    background: var(--color-surface);
    padding: 24px;
    margin-bottom: 24px;
    break-inside: avoid;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.masonry-item blockquote {
    margin: 0 0 16px 0;
    font-style: italic;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
}
.masonry-item cite {
    font-weight: 600;
    color: var(--color-secondary);
}

/* --- Program Page: Tabs --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    justify-content: center;
}
.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    transition: color 0.3s;
}
.tab-button.active {
    color: var(--color-primary);
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}
.tab-content {
    display: none;
    padding: 32px 0;
}
.tab-content.active {
    display: block;
}
.tab-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 24px;
}

/* --- Mission Page: Storytelling --- */
.storytelling-container {
    max-width: 1000px;
    margin: 0 auto;
}
.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.story-image img {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.manifesto-section {
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
}
.manifesto-section .section-title {
    color: white;
}
.manifesto-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-accent);
}

/* --- Contact Page: Sidebar Layout --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.contact-sidebar {
    background-color: var(--color-accent);
    padding: 30px;
    border-radius: 8px;
}
.contact-sidebar h3 {
    margin-bottom: 20px;
}
.contact-detail-item {
    margin-bottom: 20px;
}
.contact-detail-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-secondary);
}
.contact-detail-item p {
    margin: 0;
}
.contact-form {
    max-width: 800px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    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(217, 121, 65, 0.2);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: #E0E0E0 !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: white !important;
    margin-bottom: 20px;
}
.site-footer p, .site-footer li {
    color: #BDBDBD !important;
    font-size: 0.95rem;
}
.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}
.site-footer a {
    color: #E0E0E0 !important;
}
.site-footer a:hover {
    color: var(--color-primary) !important;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #5a5a5a;
    padding-top: 20px;
    font-size: 0.9rem;
}
.footer-copyright p {
    margin: 0;
}

/* --- Legal & Thank You Pages --- */
.legal-page h1, .legal-page h2 {
    margin-bottom: 20px;
}
.legal-page p {
    margin-bottom: 20px;
}
.thank-you-section {
    text-align: center;
    padding: 80px 0;
}
.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}
.thank-you-icon {
    color: var(--color-primary);
    margin-bottom: 24px;
}
.next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--color-secondary);
    color: white;
    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; color: white; }
#cookie-banner a { color: var(--color-primary); font-weight: 600; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: white;
}
.cookie-btn-decline {
    background-color: #757575;
    color: white;
}

/* --- Media Queries --- */
@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);
    }
    .story-block.reverse {
        grid-template-areas: "image" "content";
    }
    .story-block.reverse .story-image {
        grid-area: image;
    }
    .story-block.reverse .story-content {
        grid-area: content;
    }
    .tab-buttons {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
    .masonry-grid {
        column-count: 2;
    }
    .contact-layout {
        grid-template-columns: 300px 1fr;
    }
    .story-block {
        grid-template-columns: 1fr 1fr;
    }
    .story-block.reverse .story-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}