/*
  Palette: Earthy Vintage
  Primary: #935116 (Dark Brown)
  Secondary: #F2D57F (Pale Gold)
  Accent: #B2B3B1 (Stone Gray)
  Background Light: #FDFBF5 (Vintage Cream)
  Background Dark: #2C2A2A (Charcoal)
  Text Light: #FDFBF5
  Text Dark: #2C2A2A
*/

:root {
    --color-primary: #935116;
    --color-secondary: #F2D57F;
    --color-accent: #B2B3B1;
    --bg-light: #FDFBF5;
    --bg-dark: #2C2A2A;
    --text-light: #FDFBF5;
    --text-dark: #2C2A2A;
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    --border-style: 1px solid var(--color-primary);
}

/* --- General & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

p {
    margin-bottom: 16px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--color-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    margin-bottom: 8px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.text-container {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-light);
    border-bottom: var(--border-style);
}

.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: 700;
    color: var(--text-dark);
    text-decoration: none;
    z-index: 100;
}

.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-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-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 71px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid rgba(253, 251, 245, 0.1);
}

.mobile-nav a {
    color: var(--text-light);
    font-size: 1.2rem;
    display: block;
    width: 100%;
}

@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); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    border: var(--border-style);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #7d4411;
    color: var(--text-light);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
    text-decoration: none;
}

.section-dark .btn-secondary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.section-dark .btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--text-dark);
}

/* --- Hero Section (split-color) --- */
.hero-split-color {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    width: 100%;
}

.hero-content-area {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    flex: 1;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 600px;
}

.hero-split-color h1 {
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 24px 0;
}

.hero-image-area {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-split-color {
        flex-direction: row;
    }
    .hero-content-area, .hero-image-area {
        width: 50%;
    }
    .hero-content-area {
        padding: 64px;
    }
}

/* --- Benefits Section (2x2 Grid) --- */
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.benefit-card {
    border: var(--border-style);
    padding: 24px;
}

.benefit-card .card-title {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .benefits-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* --- Expert Block --- */
.expert-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.expert-image-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.expert-quote-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.4;
    border-left: 4px solid var(--color-secondary);
    padding-left: 24px;
    margin-bottom: 24px;
    font-style: italic;
}

.expert-quote-content cite {
    display: block;
    font-style: normal;
}

.expert-name {
    display: block;
    font-weight: 700;
    color: var(--text-light);
}

.expert-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .expert-block {
        flex-direction: row;
        text-align: left;
    }
}

/* --- Numbered Steps Section --- */
.numbered-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.step-content h3 {
    margin-top: 8px;
}

@media (min-width: 1024px) {
    .numbered-steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Stats Bar Section --- */
.stats-bar {
    background-color: var(--color-primary);
    color: var(--text-light);
    padding: 32px 0;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    max-width: 200px;
}

@media (min-width: 768px) {
    .stats-container {
        flex-direction: row;
    }
}

/* --- Comparison Table --- */
.comparison-table {
    border: var(--border-style);
    font-size: 0.9rem;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: var(--border-style);
}
.table-row:last-child {
    border-bottom: none;
}
.table-header {
    background-color: #f3eee3;
    font-weight: 700;
}
.table-cell {
    padding: 12px;
    border-right: var(--border-style);
}
.table-cell:last-child {
    border-right: none;
}
.icon-check { color: #5a8a1f; font-weight: 700; }
.icon-cross { color: #c0392b; font-weight: 700; }

@media (max-width: 600px) {
    .comparison-table { font-size: 0.8rem; }
    .table-cell { padding: 8px; }
}

/* --- Page Header (Internal Pages) --- */
.page-header {
    padding: 64px 0;
    text-align: center;
}
.page-header h1 {
    margin-bottom: 8px;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--color-accent);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Timeline (Program Page) --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-left: 30px;
    padding-bottom: 40px;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid var(--color-primary);
    background-color: var(--bg-light);
    top: 15px;
    left: -20px;
    z-index: 1;
}
.timeline-content {
    padding: 20px;
    border: var(--border-style);
}

@media (min-width: 768px) {
    .timeline-container::after { left: 50%; }
    .timeline-item { width: 50%; margin-left: 0; }
    .timeline-item:nth-child(odd) { left: 0; padding-left: 0; padding-right: 40px; }
    .timeline-item:nth-child(even) { left: 50%; padding-right: 0; padding-left: 40px; }
    .timeline-dot { left: auto; right: -10px; }
    .timeline-item:nth-child(even) .timeline-dot { right: auto; left: -5px; }
}

/* --- CTA Section (Program Page) --- */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.cta-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 4px solid var(--color-secondary);
}
.cta-content {
    text-align: center;
}
@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        text-align: left;
    }
    .cta-content {
        flex: 1;
    }
}

/* --- Storytelling (Mission Page) --- */
.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 64px;
}
.story-block img {
    border: var(--border-style);
}
.story-block.reverse .story-image {
    order: -1;
}
.story-block-full {
    max-width: 800px;
    margin: 64px auto 0;
}
@media (min-width: 768px) {
    .story-block {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .story-block.reverse .story-image {
        order: initial;
    }
}


/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-style);
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
}
.form-submit-btn {
    width: 100%;
}
.contact-details-wrapper h2 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.contact-info-block {
    margin-bottom: 24px;
}
.contact-info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.contact-info-block p {
    margin-bottom: 0;
    line-height: 1.5;
}
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }
}


/* --- Thank You Page --- */
.thank-you-section {
    padding: 80px 0;
}
.next-steps {
    margin-top: 48px;
    border-top: var(--border-style);
    padding-top: 32px;
}
.quick-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    padding: 48px 0 0;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-heading {
    font-family: var(--font-heading);
    color: var(--color-secondary) !important;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a, .footer-column a {
    color: var(--text-light) !important;
}
.footer-links a:hover, .footer-column a:hover {
    color: var(--color-secondary) !important;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(253, 251, 245, 0.2);
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .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(--bg-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(--color-secondary);
}
#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;
    cursor: pointer;
    border-radius: 0;
    border: 1px solid var(--color-secondary);
    font-weight: 500;
}
.cookie-btn-accept {
    background-color: var(--color-secondary);
    color: var(--text-dark);
}
.cookie-btn-decline {
    background-color: transparent;
    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; }
}