/*
  Color Palette: Earthy Harmony
  --primary-color: #A0522D; (Sienna)
  --secondary-color: #2F4F4F; (Dark Slate Gray)
  --background-color: #F5F5DC; (Beige)
  --text-color: #333333;
  --light-bg: #FFFFFF;
  --footer-bg: #222222;
  --footer-text: #CCCCCC;
*/

:root {
    --primary-color: #A0522D;
    --secondary-color: #2F4F4F;
    --background-color: #F5F5DC;
    --text-color: #333333;
    --light-bg: #FFFFFF;
    --footer-bg: #222222;
    --footer-text: #CCCCCC;
    --heading-font: 'Georgia', serif;
    --body-font: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

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-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

/* --- Utility Classes --- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 15px;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--light-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px; /* Required padding */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--heading-font);
    color: var(--secondary-color);
}

.navigation ul {
    display: none;
    list-style: none;
}

.navigation ul li a {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navigation ul li a:hover::after {
    width: calc(100% - 30px);
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

#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);
}

/* Mobile Navigation */
.mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-bg);
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

#menu-toggle:checked ~ .mobile-nav {
    max-height: 500px;
}

.mobile-nav ul {
    list-style: none;
    padding: 10px 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 600;
}

.mobile-nav ul li a:hover {
    background-color: var(--background-color);
}

@media (min-width: 768px) {
    .hamburger, .mobile-nav {
        display: none;
    }
    .navigation ul {
        display: flex;
        gap: 10px;
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 79, 79, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Page Header --- */
.page-header-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}
.page-header-section .page-title, .page-header-section .page-subtitle {
    color: #fff;
    position: relative;
    z-index: 2;
}

/* --- Numbered Blocks Section --- */
.numbered-blocks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.numbered-block {
    text-align: center;
}
.numbered-block .number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.5;
    line-height: 1;
}
.numbered-block-title {
    margin-top: -10px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .numbered-blocks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Feature Cards & Grids --- */
.three-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}
.feature-card-title {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .three-col-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Split Section --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.split-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
    .split-section.reverse .split-content {
        order: 2;
    }
    .split-section.reverse .split-image {
        order: 1;
    }
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.testimonial-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-color);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}
.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-color: var(--secondary-color);
}
.cta-section .section-title, .cta-section .section-intro {
    color: #fff;
}

/* --- Program Page --- */
.program-modules .module-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.module-content {
    padding: 40px;
}
@media (min-width: 992px) {
    .program-modules .module-card {
        grid-template-columns: 400px 1fr;
    }
    .program-modules .module-card.reverse .module-image {
        order: 2;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.faq-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
}
.faq-item h4 {
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Mission Page --- */
.value-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}
.manifesto-box {
    background-color: var(--background-color);
    border-left: 5px solid var(--primary-color);
    padding: 40px;
    border-radius: 8px;
}
.manifesto-box blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.info-item {
    margin-bottom: 20px;
}
.info-item h4 {
    margin-bottom: 5px;
}
.contact-form-container {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
}
.contact-form {
    max-width: 800px;
}
.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 #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-page {
    padding: 80px 0;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1, .legal-page h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 50px;
    border-radius: 8px;
}
.next-steps {
    margin-top: 40px;
}
.next-steps-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* --- Footer --- */
.site-footer-main {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column .logo {
    color: #fff;
    margin-bottom: 15px;
    display: block;
}
.footer-column h4 {
    color: #fff;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: var(--footer-text) !important;
}
.footer-column a:hover {
    color: #fff !important;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- 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;
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { 
    transform: translateY(110%); 
    display: flex !important;
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--background-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: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #fff;
}
.cookie-btn-decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
@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; }
}