/* Palette: Earthy Terracotta & Warm Brown */
:root {
    --primary-color: #8B4513; /* Saddle Brown */
    --secondary-color: #D2B48C; /* Tan */
    --accent-color: #CD5C5C; /* Indian Red / Terracotta */
    --bg-color: #FAF0E6; /* Linen */
    --text-color: #3E2723; /* Dark Brown */
    --light-bg: #FFFFFF;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-content-box {
    max-width: 800px;
    margin: 0 auto;
}

.text-content-box h3 {
    margin-top: 30px;
}

/* Typography */
.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
}

.paragraph-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.accent-subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-full {
    width: 100%;
}

/* Header Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.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;
    font-family: var(--font-heading);
    color: var(--primary-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(--primary-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 .nav-list a {
    font-weight: 600;
    color: var(--text-color);
}

.desktop-nav .nav-list a:hover {
    color: var(--accent-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--light-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

@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); }
}

/* V3 Unique Layouts */

/* 1. Floating Hero */
.hero-floating-section {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(250, 240, 230, 0.2), rgba(250, 240, 230, 0.95) 60%);
}

.hero-floating-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.floating-content-box {
    background-color: var(--light-bg);
    padding: 50px;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.1);
    border-left: 5px solid var(--accent-color);
}

@media (max-width: 900px) {
    .hero-overlay { background: rgba(250, 240, 230, 0.85); }
    .hero-floating-container { justify-content: center; }
    .floating-content-box { padding: 30px; margin-top: 40px; margin-bottom: 40px; }
}

/* 2. Asymmetrical Grid */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
    }
    .item-large { grid-column: 1 / 3; grid-row: 1 / 3; }
    .item-small { grid-column: span 2; }
    .item-medium { grid-column: span 2; }
}

/* 3. Split Overlap Section */
.split-overlap-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.split-image-wrapper {
    width: 100%;
}

.overlap-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--secondary-color);
}

.split-text-wrapper {
    width: 100%;
}

.custom-list {
    list-style: none;
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (min-width: 900px) {
    .split-overlap-container {
        flex-direction: row;
        align-items: flex-start;
    }
    .split-image-wrapper { width: 45%; }
    .split-text-wrapper { width: 50%; padding-left: 40px; }
}

/* 4. Accordion FAQ */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    background-color: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: block;
    padding: 20px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-toggle:checked + .accordion-header {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.accordion-toggle:checked + .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* 5. Numbered Modules (Program Page) */
.numbered-module-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.module-number {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
    font-weight: bold;
    opacity: 0.5;
}

.module-content {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
}

@media (min-width: 768px) {
    .numbered-module-row {
        flex-direction: row;
        align-items: stretch;
    }
    .reverse-row {
        flex-direction: row-reverse;
    }
    .module-number {
        width: 150px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 6. Timeline Story (Mission Page) */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-block {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px; top: 5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 7. Contact Grid */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.info-card {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--secondary-color);
}

.info-title {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.form-wrapper {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    background-color: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (min-width: 850px) {
    .contact-grid-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* Simple Page Header */
.page-header-simple {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--secondary-color);
}

/* Footer */
.site-footer {
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* 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: #222; color: #fff;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept { background: var(--primary-color); color: #fff; border: none; padding: 8px 16px; cursor: pointer; border-radius: 4px; }
.cookie-btn-decline { background: transparent; color: #fff; border: 1px solid #fff; padding: 8px 16px; cursor: pointer; border-radius: 4px; }

@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; }
}