/*
* Color Palette: Graphite & Copper
* --primary-color: #B87333; (Copper)
* --secondary-color: #36454F; (Charcoal/Graphite)
* --background-color: #FDFBF8; (Off-white/Cream)
* --light-bg-color: #F5F5F5; (Light Gray)
* --text-color: #1C1C1C; (Near Black)
* --accent-color: #D3A625; (Gold accent)
*/

:root {
    --primary-color: #B87333;
    --secondary-color: #36454F;
    --background-color: #FDFBF8;
    --light-bg-color: #F5F5F5;
    --text-color: #1C1C1C;
    --accent-color: #D3A625;
    --white-color: #ffffff;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-secondary: 'Georgia', serif;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
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 {
    text-decoration: underline;
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

.bg-light {
    background-color: var(--light-bg-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #a0642a;
    color: var(--white-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: #2a363f;
    color: var(--white-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    border-bottom: 1px solid #ddd;
    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;
    color: var(--secondary-color);
    text-decoration: none;
    z-index: 100;
}
.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: 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-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--white-color);
    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 (Overlap) --- */
.hero-overlap-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
    overflow: hidden;
}
.hero-overlap-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
}
.hero-image-container {
    position: relative;
}
.hero-image-overlapped {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.hero-content-container {
    text-align: center;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
@media (min-width: 992px) {
    .hero-overlap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .hero-image-container {
        transform: translateX(-5%);
    }
    .hero-content-container {
        text-align: left;
        padding: 40px;
        background: var(--background-color);
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        transform: translateX(5%);
        z-index: 2;
    }
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--secondary-color);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    color: var(--white-color);
}
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}
.stat-label {
    font-size: 1rem;
    margin: 0;
}

/* --- Horizontal Scroll Benefits --- */
.horizontal-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg-color);
}
.scroll-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
}
.benefit-card-scroll {
    flex: 0 0 300px;
    background: var(--white-color);
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.card-icon-wrapper {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Image Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item p {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 30px;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 250px 250px;
    }
    .item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
    .item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
    .item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
    .item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.testimonial-card {
    background: var(--light-bg-color);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #444;
}
.testimonial-author {
    font-weight: bold;
    color: var(--secondary-color);
}
@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- CTA Section --- */
.cta-section {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    color: var(--white-color);
}

/* --- Program Page: Tabs --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
    justify-content: center;
}
.tab-button {
    padding: 15px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color 0.3s;
}
.tab-button.active {
    color: var(--primary-color);
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.content-image-right {
    float: right;
    width: 300px;
    margin: 0 0 20px 20px;
    border-radius: 8px;
}

/* --- Program Page: FAQ Grid --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.faq-item {
    background: var(--white-color);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}
.faq-item h3 { margin-bottom: 10px; }
@media (min-width: 768px) {
    .faq-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Mission Page: Storytelling --- */
.storytelling-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.story-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.story-image img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
    .story-item { grid-template-columns: 1fr 1fr; }
    .story-item.reverse .story-content { order: 2; }
    .story-item.reverse .story-image { order: 1; }
}

/* --- Mission Page: Values List --- */
.values-list-container {
    max-width: 800px;
    margin: 0 auto;
}
.values-list {
    list-style: none;
    padding: 0;
}
.values-list li {
    background: var(--white-color);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 5px 5px 0;
}
.values-list strong {
    color: var(--secondary-color);
}

/* --- Contact Page: Sidebar Layout --- */
.contact-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-sidebar .contact-info-block {
    background: var(--light-bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.contact-sidebar h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
@media (min-width: 992px) {
    .contact-sidebar-layout {
        grid-template-columns: 300px 1fr;
    }
}
.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 #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-primary);
}
.form-submit-btn {
    align-self: flex-start;
}

/* --- Legal & Thank You Pages --- */
.page-header {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 50px 0;
    text-align: center;
}
.page-header h1, .page-header p {
    color: var(--white-color);
}
.legal-page .container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.legal-page section {
    margin-bottom: 30px;
}
.thank-you-section {
    padding: 80px 0;
    text-align: center;
}
.thank-you-icon {
    font-size: 4rem;
    color: var(--primary-color);
}
.next-steps {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}
.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.next-step-card {
    background: var(--light-bg-color);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}
@media (min-width: 768px) {
    .next-steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: #ccc !important;
    padding: 50px 0 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-title {
    color: var(--white-color) !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.footer-column p, .footer-links li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a {
    color: #ccc !important;
}
.footer-links a:hover {
    color: var(--white-color) !important;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a5c6a;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- 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(--accent-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: 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; }
}