/*
    Color Palette: Graphite-Copper
    --primary-color: #D97941; (Copper/Orange)
    --secondary-color: #343A40; (Dark Graphite)
    --background-color: #F8F9FA; (Light Gray/Off-white)
    --text-color: #212529; (Almost Black)
    --light-text: #F8F9FA;
*/

:root {
    --primary-color: #D97941;
    --secondary-color: #343A40;
    --background-color: #F8F9FA;
    --text-color: #212529;
    --light-text: #F8F9FA;
    --section-light-bg: #FFFFFF;
    --border-color: #DEE2E6;
    --footer-bg: #212529;
}

/* --- General Styles --- */
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);
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem 0; }
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--secondary-color); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}
.btn-primary:hover { background-color: #c86830; }
.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--light-text); }

/* --- Header --- */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: var(--section-light-bg);
    box-shadow: 0 2px 4px 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(--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 .nav-list a {
    font-weight: 500;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.desktop-nav .nav-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; /* Header height */
    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(--section-light-bg);
    box-shadow: 0 4px 6px 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 li a { font-size: 1.2rem; color: var(--secondary-color); }
.mobile-nav li:not(:last-child) { border-bottom: 1px solid var(--border-color); }

@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); }
    .content-image-mission { max-width: 100%; }
}

/* --- Sections --- */
.section { padding: 60px 0; }
.section-light { background-color: var(--section-light-bg); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { margin-bottom: 10px; text-align: center;}
.section-subtitle { max-width: 700px; margin: 0 auto; color: #6c757d; }
.page-header {
    padding: 60px 0;
    text-align: center;
    background-color: var(--section-light-bg);
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- Hero Diagonal --- */
.hero-diagonal {
    display: grid;
    min-height: 80vh;
    width: 100%;
}
.hero-content {
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.hero-content .container { width: 100%; }
.hero-subtitle { font-size: 1.1rem; margin: 20px 0 30px; max-width: 600px; }
.hero-image-container {
    background: url('img/bg.jpg') no-repeat center center/cover;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
@media (min-width: 992px) {
    .hero-diagonal { grid-template-columns: 45% 55%; }
}
@media (max-width: 991px) {
    .hero-diagonal { grid-template-columns: 1fr; }
    .hero-image-container { min-height: 300px; clip-path: none; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}

/* --- Stats Bar --- */
.stats-section { padding: 40px 0; background-color: var(--secondary-color); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item { color: var(--light-text); }
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-text { color: rgba(255,255,255,0.8); margin: 0; }

/* --- Benefits Grid 2x2 --- */
.benefits-grid-2x2 {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .benefits-grid-2x2 { grid-template-columns: 1fr 1fr; }
}
.benefit-card-grid {
    background-color: var(--section-light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-left: 5px solid var(--primary-color);
}
.benefit-card-grid h3 { margin-top: 0; color: var(--primary-color); }

/* --- Split Section --- */
.split-container {
    display: grid;
    align-items: center;
    gap: 40px;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .split-container { grid-template-columns: 1fr 1fr; }
    .split-container.reverse .split-image { order: 2; }
    .split-container.reverse .split-content { order: 1; }
}
.split-image img { border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

/* --- Accordion --- */
.faq-container, .program-container { max-width: 800px; }
.accordion-item {
    background-color: var(--section-light-bg);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s;
}
.accordion-header:hover { background-color: #f1f1f1; }
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.accordion-content p { padding: 0 25px 20px; margin: 0; }

/* --- Program Page --- */
.content-image {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin: 20px auto 10px;
}
.image-caption {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    max-width: 600px;
    margin: 10px auto 0;
}
.cta-section {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 { color: var(--light-text); }

/* --- Mission Page --- */
.values-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.value-card {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}
.manifesto-container { text-align: center; max-width: 800px; }
.content-image-mission {
    max-width: 500px;
    margin: 0 auto 30px;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .content-image-mission { max-width: 100%; }
}
/* --- Contact Page --- */
.contact-info-top { padding-bottom: 0; }
.contact-details-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background-color: var(--section-light-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    margin-bottom: 40px;
}
.contact-detail-item h3 { color: var(--primary-color); }
.contact-form {
    max-width: 800px;
    margin: 40px auto 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 121, 65, 0.2);
}
.form-submit-btn { width: 100%; }

/* --- Legal & Thank You Pages --- */
.legal-page .container, .thank-you-section .container {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.legal-page h2 { margin-top: 30px; }
.legal-page ul { list-style: disc; padding-left: 20px; }
.thank-you-section { text-align: center; padding: 80px 0; }
.next-steps { margin-top: 40px; }
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--light-text) !important;
    padding: 50px 0 0;
}
.site-footer a, .site-footer p, .site-footer h4 { color: var(--light-text) !important; }
.footer-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-about p { opacity: 0.8; }
.footer-links ul li, .footer-legal ul li { margin-bottom: 10px; }
.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #495057;
}
.footer-bottom p { margin: 0; font-size: 0.9rem; opacity: 0.7; }

/* --- 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(--secondary-color);
    color: var(--light-text);
    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 { text-decoration: underline; font-weight: 500; }
.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: 500;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--light-text); }
.cookie-btn-decline { background-color: #6c757d; color: var(--light-text); }
@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; }
}