/*
 * Design System: dynamic-tech, sharp, flat, mixed
 * Color Palette: Graphite & Copper
 */

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2c2c2c;
    --primary-light: #f4f4f4;
    --text-dark: #2c2c2c;
    --text-light: #e0e0e0;
    --accent-color: #B87333; /* Copper */
    --accent-hover: #d48a47;
    --border-light: #dddddd;
    --border-dark: #444444;
}

/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Helpers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-light {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
    clip-path: polygon(0 5%, 100% 0, 100% 90%, 0 100%);
}

.section-dark h2, .section-dark h3 {
    color: var(--primary-light);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    margin-bottom: 48px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 700;
    text-align: center;
    border-radius: 0; /* sharp style */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--primary-light);
    text-decoration: none;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border-dark);
}

.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(--text-light);
    text-decoration: none;
}
.logo:hover {
    color: var(--accent-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(--text-light);
    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-light);
    font-weight: 600;
}
.desktop-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px; /* Adjust based on 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(--secondary-dark);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--text-light);
    font-size: 1.2rem;
    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 (index.html - split-color) --- */
.hero-split-color {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    background-color: var(--primary-dark);
    color: var(--text-light);
}
.hero-content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.hero-text-wrapper {
    max-width: 600px;
}
.hero-image-area {
    flex: 1;
    min-height: 300px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-split-color {
        flex-direction: row;
    }
    .hero-content-area, .hero-image-area {
        flex-basis: 50%;
    }
}

/* --- Benefits Section (index.html - 3 col) --- */
.benefits-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    padding: 24px;
    border: 1px solid var(--border-light);
}
.card-title {
    color: var(--accent-color);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .benefits-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Stats Bar (index.html) --- */
.stats-bar {
    padding: 40px 0;
}
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent-color);
}
.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}
@media (min-width: 768px) {
    .stats-container {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* --- Numbered Steps (index.html) --- */
.numbered-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}
.step-content h3 {
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Gallery Grid (index.html) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item-placeholder {
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    min-height: 250px;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- FAQ Accordion (index.html) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-question {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none; /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 0 20px 0;
}

/* --- Page Hero (Internal Pages) --- */
.page-hero {
    padding: 60px 0;
    text-align: center;
    clip-path: none;
}
.page-title {
    color: var(--primary-light);
}
.page-subtitle {
    color: var(--text-light);
    max-width: 800px;
    margin: 16px auto 0;
}

/* --- Program Page (program.html) --- */
.program-accordion {
    max-width: 900px;
    margin: 0 auto;
}
.program-accordion-item {
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}
.program-accordion-title {
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    background-color: rgba(0,0,0,0.03);
}
.program-accordion-content {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

/* --- Mission Page (mission.html) --- */
.mission-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 992px) {
    .mission-split-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.value-card {
    padding: 24px;
    border: 1px solid var(--border-dark);
    background-color: var(--secondary-dark);
}
.value-card h3 {
    color: var(--accent-color);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Contact Page (contact.html) --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 3fr 2fr;
    }
}
.contact-form-container h2, .contact-info-container h2 {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 0; /* sharp style */
    background-color: #fff;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}
.contact-info-item {
    margin-bottom: 24px;
}
.contact-info-item h3 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

/* --- Thank You & Legal Pages --- */
.thank-you-section, .legal-page {
    padding: 90px 0;
}

.thank-you-section p {
    max-width: 600px;
    margin: 10px auto;
}
.thank-you-title {
    color: var(--accent-color);
}
.thank-you-text {
    font-size: 1.2rem;
    margin: 16px 0 48px;
}
.next-steps h2 {
    margin-bottom: 16px;
}
.next-steps-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}
.legal-page ul {
    margin-left: 20px;
}

.cta-text {
    max-width: 100%;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    padding: 48px 0 0;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 600px) {
    .site-footer {
        padding-top: 95px;
    }
}

.footer-bottom p {
    max-width: 100%;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.footer-column h4 {
    margin-bottom: 16px;
    color: var(--accent-color) !important;
}
.footer-nav {
    list-style: none;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 8px;
}
.footer-nav a, .footer-column a {
    color: var(--text-light) !important;
}
.footer-nav a:hover, .footer-column a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border-dark);
}
@media (min-width: 600px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    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;
    border-top: 2px solid var(--accent-color);
}
#cookie-banner.hidden { transform: translateY(120%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--accent-color); 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: 0;
    cursor: pointer;
    border: 1px solid var(--accent-color);
    font-weight: 600;
    transition: all 0.2s;
}
.cookie-btn-accept {
    background-color: var(--accent-color);
    color: #fff;
}
.cookie-btn-accept:hover {
    background-color: var(--accent-hover);
}
.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-light);
}
.cookie-btn-decline:hover {
    background-color: var(--secondary-dark);
    border-color: var(--text-light);
}
@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; }
}