/*
    Color Palette: Graphite & Copper
    - Primary: #B87333 (Copper)
    - Secondary: #36454F (Charcoal)
    - Background: #FDFEFE (Almost White)
    - Text: #2C3E50 (Dark Slate)
    - Accent: #E5E7E9 (Light Gray)
*/

:root {
    --primary-color: #B87333;
    --secondary-color: #36454F;
    --background-color: #FDFEFE;
    --text-color: #2C3E50;
    --light-gray-color: #E5E7E9;
    --white-color: #FFFFFF;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(40px, 8vw, 80px) 0;
}

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
    font-weight: 700;
}

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); }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px;
    font-size: 1.1rem;
}

.text-center-align {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a0642a;
    border-color: #a0642a;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    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;
    z-index: 100;
    color: var(--secondary-color);
}
.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(--text-color);
    font-weight: 500;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjusted for header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 99;
    background-color: var(--secondary-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
    color: var(--white-color);
    display: block;
    width: 100%;
}

@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 (Floating Card) --- */
.hero-section.hero-floating-card {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -1;
}

.floating-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 650px;
}

.floating-card h1 {
    color: var(--secondary-color);
}

/* --- Horizontal Scroll Gallery --- */
.scroll-gallery-section {
    background-color: #f8f9fa;
}
.scroll-gallery-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
}
.scroll-gallery {
    display: flex;
    gap: 20px;
    padding: 10px;
    width: max-content;
}
.gallery-card {
    flex: 0 0 300px;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid var(--light-gray-color);
}
.card-icon-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 15px;
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-label {
    font-size: 1rem;
    margin: 0;
}
@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Image & Text Section --- */
.image-text-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .image-text-grid {
        grid-template-columns: 1fr 1.2fr;
    }
    .image-text-grid .image-content {
        order: -1; /* Image on the left */
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--light-gray-color);
}
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Page Header Section --- */
.page-header-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 60px 0;
}
.page-header-section h1 { color: var(--white-color); }
.page-header-section p { max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.9; }

/* --- Numbered Program Section (program.html) --- */
.numbered-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}
.number-circle {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    .numbered-item { flex-direction: column; align-items: center; text-align: center; }
}

/* --- FAQ Grid (program.html) --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.faq-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}
.faq-item h3 { margin-bottom: 10px; }

/* --- Mission Page Styles --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .story-container { grid-template-columns: 2fr 3fr; }
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
    text-align: center;
    padding: 20px;
}
.value-icon-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 8px;
    margin: 0 auto 15px;
}
.manifesto-section { background-color: var(--secondary-color); color: var(--white-color); }
.manifesto-container { max-width: 800px; text-align: center; }
.manifesto-container blockquote p { font-size: 1.5rem; font-style: italic; line-height: 1.4; }
.manifesto-container h2 { color: var(--white-color); }

/* --- Contact Page Styles --- */
.form-centered-container { max-width: 800px; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group 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%; max-width: 300px; margin: 10px auto 0; }
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
}
@media (min-width: 768px) { .contact-cards-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

/* --- Legal & Thank You Pages --- */
.legal-page .container { max-width: 800px; }
.legal-page h2 { margin-top: 30px; }
.thank-you-section .thank-you-icon svg { color: var(--primary-color); }
.next-steps { margin-top: 40px; }
.next-steps-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: var(--light-gray-color) !important;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--white-color) !important; }
.site-footer a { color: var(--light-gray-color) !important; }
.site-footer a:hover { color: var(--primary-color) !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}
.footer-copyright p { margin: 0; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--secondary-color);
    color: var(--white-color);
    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;
    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(--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: var(--white-color); }
.cookie-btn-decline { background-color: #555; color: var(--white-color); }
@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; }
}