/* Earthy Vintage Palette */
:root {
    --color-primary: #A85C3B; /* Terracotta */
    --color-secondary: #C9A87C; /* Beige/Tan */
    --color-background-dark: #4A2E2A; /* Dark Brown */
    --color-background-light: #F5F1E9; /* Creamy White */
    --color-text-dark: #3D231F;
    --color-text-light: #EFEBE4;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --border-radius: 12px;
    --shadow-dramatic: 0 24px 64px rgba(0, 0, 0, 0.22);
    --shadow-dramatic-hover: 0 32px 80px rgba(0, 0, 0, 0.30);
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--color-background-light);
}

.section-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--color-text-light);
}

.textured-bg {
    background-color: var(--color-background-dark);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 20px);
}

.dramatic-shadow {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dramatic);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dramatic-shadow:hover {
    box-shadow: var(--shadow-dramatic-hover);
    transform: translateY(-5px);
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-background-light);
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-text-dark);
}
.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(--color-text-dark);
    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;
}
.desktop-nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 8px 0;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after { width: 100%; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    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(--color-background-dark);
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { color: var(--color-text-light); font-size: 1.2rem; display: block; }

/* Hero Section: Floating Card */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.hero-content-card {
    background-color: var(--color-background-light);
    padding: 40px;
    max-width: 700px;
    text-align: center;
}
.hero-content-card h1 {
    color: var(--color-text-dark);
}
.hero-content-card p {
    margin: 20px 0 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #8c4a2f;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.btn.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title-container {
    text-align: center;
    margin-bottom: 40px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}
.section-dark .section-subtitle {
    color: var(--color-secondary);
}

/* Principles Section */
.principles-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.principles-image {
    border-radius: var(--border-radius);
}
.principles-list {
    list-style: none;
    padding: 0;
}
.principles-list li {
    margin-bottom: 24px;
}
.principles-list h3 {
    color: var(--color-secondary);
}

/* How It Works Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.how-it-works-step {
    text-align: center;
    padding: 20px;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 1;
}
.step-title {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.testimonial-card {
    background-color: var(--color-background-dark);
    border: 1px solid var(--color-secondary);
    padding: 24px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-author {
    font-weight: bold;
    color: var(--color-secondary);
}

/* CTA Section */
.section-cta {
    padding: 60px 0;
    text-align: center;
}
.cta-container {
    max-width: 800px;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-text-light);
}
.cta-text {
    color: var(--color-text-light);
    margin: 16px 0 32px;
}

/* Footer */
.site-footer {
    background-color: var(--color-background-dark) !important;
    color: var(--color-text-light) !important;
    padding: 50px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
.site-footer h3 {
    color: var(--color-secondary) !important;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.site-footer p, .site-footer a {
    color: var(--color-text-light) !important;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 80px 0;
}
.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
}
.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-secondary);
}

/* Program Page */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.program-card {
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}
.program-card .card-header {
    background-color: var(--color-primary);
    padding: 20px;
}
.program-card .card-header h3 {
    color: #fff;
    margin: 0;
}
.program-card .card-body {
    padding: 20px;
}
.image-divider-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}
.image-divider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.image-divider-content {
    position: relative;
    z-index: 2;
}
.image-divider-content h2, .image-divider-content p {
    color: #fff;
}

/* Mission Page */
.mission-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}
.mission-image {
    border-radius: var(--border-radius);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: var(--border-radius);
}

/* Contact Page */
.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-title {
    text-align: center;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
}
.btn-form {
    width: 100%;
}

/* Policy & Thank You Pages */
.policy-page, .thank-you-section {
    padding: 80px 0;
}
.policy-page h2 {
    margin-top: 30px;
}
.text-center { text-align: center; }
.what-next {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}
.next-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}
.btn-secondary:hover {
    background-color: #b3956a;
    text-decoration: none;
    color: var(--color-text-dark);
}

/* 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(--color-background-dark);
    color: var(--color-text-light);
    transform: translateY(0); transition: transform 0.4s ease;
    border-top: 2px solid var(--color-primary);
}
#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(--color-secondary); 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: 8px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--color-primary); color: #fff; }
.cookie-btn-decline { background-color: #555; color: #fff; }

/* Media Queries (Mobile-First) */
@media (min-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding-left: 24px; padding-right: 24px; }
    
    .desktop-nav { display: block; }
    .hamburger, .mobile-nav { display: none; }

    .principles-layout { grid-template-columns: 1fr 1fr; }
    .how-it-works-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-split-layout { grid-template-columns: 40% 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-wrapper { grid-template-columns: repeat(3, 1fr); }
}

@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: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .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; }
}