/* Earthy Palette: Warm Brown, Ochre, Beige */
:root {
    --primary-color: #935116; /* A warm, earthy brown */
    --secondary-color: #F5EFE6; /* A light, sandy beige */
    --accent-color: #D4AC0D; /* A muted ochre/gold */
    --text-color: #3E2723; /* A dark, almost-black brown */
    --bg-color: #FCFBF8; /* A very light off-white */
    --white-color: #FFFFFF;
    --footer-bg-color: #2C1B1A;
    --footer-text-color: #EAE0D5;
}

/* Global Styles */
* {
    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;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    font-family: "Georgia", serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
    color: #5f4c4a;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px 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(--text-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-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 {
    font-weight: 600;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--bg-color);
    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(--secondary-color);
}

.mobile-nav a {
    font-size: 1.2rem;
}

/* Hero Section (Floating Card) */
.hero-section {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3);
}

.hero-content-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content-card h1, .hero-content-card p {
    color: var(--text-color);
}

/* Steps Section */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    flex-shrink: 0;
}
.step-content h3 {
    margin-top: 0;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.split-image img {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Myth vs Fact */
.myth-fact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.myth-card, .fact-card {
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid;
}
.myth-card {
    background-color: #fbe9e7;
    border-color: #ff5722;
}
.fact-card {
    background-color: #e8f5e9;
    border-color: #4caf50;
}
.myth-card h3, .fact-card h3 {
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
}
.cta-container {
    text-align: center;
}
.cta-container h2, .cta-container p {
    color: var(--white-color);
}
.cta-container .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
}
.cta-container .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Program Page */
.page-header {
    text-align: center;
    padding: 60px 0;
    background-color: var(--secondary-color);
}
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.program-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.image-banner {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    position: relative;
    color: var(--white-color);
}
.image-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(147, 81, 22, 0.7);
}
.image-banner .container {
    position: relative;
    z-index: 2;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}
.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
}
.faq-item p {
    margin-top: 15px;
    padding-left: 10px;
}

/* Mission Page */
.mission-story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.mission-image img {
    border-radius: 8px;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    text-align: center;
    padding: 30px;
}
.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}
.manifesto-box {
    background-color: var(--secondary-color);
    padding: 40px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}
.manifesto-box blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    margin: 0;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.contact-details .contact-item {
    margin-bottom: 20px;
}
.contact-details h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.contact-form button {
    width: 100%;
}

/* Legal & Thank You Pages */
.legal-container, .thank-you-container {
    max-width: 800px;
    margin: 0 auto;
}
.thank-you-section {
    text-align: center;
    padding: 100px 0;
}
.next-steps {
    margin-top: 40px;
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color) !important;
    padding: 60px 0 20px 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h3 {
    color: var(--white-color) !important;
    margin-bottom: 20px;
}
.site-footer p, .site-footer li, .site-footer a {
    color: var(--footer-text-color) !important;
    font-size: 0.95rem;
}
.site-footer a:hover {
    color: var(--accent-color) !important;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #44312f;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* 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(--footer-bg-color);
    color: var(--footer-text-color);
    box-shadow: 0 -5px 15px 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 { 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: 5px;
    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 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); }
}

@media (min-width: 768px) {
    .split-layout { grid-template-columns: 1fr 1fr; }
    .split-layout .split-content { order: -1; } /* Example of changing order */
    .myth-fact-grid { grid-template-columns: 1fr 1fr; }
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-story-container { grid-template-columns: 40% 1fr; }
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

@media (min-width: 1024px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}

@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; }
}