/*
 * design-style: warm-vintage
 * border-style: rounded
 * shadow-style: dramatic
 * color-mode: mixed
 * palette: Vintage Terracotta
*/

:root {
    --primary-color: #A0522D; /* Sienna */
    --secondary-color: #D2B48C; /* Tan */
    --accent-color: #8B4513; /* SaddleBrown */
    --dark-bg: #2F241F;
    --light-bg: #F5F1E9;
    --text-light: #F5F1E9;
    --text-dark: #2F241F;
    --border-color: #ddd;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--light-bg);
    color: var(--text-dark);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(47, 36, 31, 0.02) 7px, rgba(47, 36, 31, 0.02) 8px);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    margin-bottom: 24px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.text-container {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-color);
}

.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(--header-font);
    color: var(--text-light);
}
.logo:hover { text-decoration: none; color: var(--secondary-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-light);
    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 {
    color: var(--text-light);
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom-color: var(--secondary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px; /* Adjusted for header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--dark-bg);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(245, 241, 233, 0.1);
    text-align: center;
}
.mobile-nav a {
    color: var(--text-light);
    font-size: 1.2rem;
    display: block;
    width: 100%;
}
.mobile-nav a:hover {
    color: var(--secondary-color);
}

@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); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column .footer-heading {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color) !important;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a, .footer-column a {
    color: var(--text-light) !important;
}
.footer-nav a:hover, .footer-column a:hover {
    color: var(--secondary-color) !important;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(245, 241, 233, 0.2);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 2fr; }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}

/* --- Cards --- */
.card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0d9cd;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.card-title {
    color: var(--accent-color);
}

/* --- Index Page: Hero Split Color --- */
.hero-split-color {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}
.hero-content-area {
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    flex: 1;
}
.hero-text-wrapper {
    max-width: 600px;
    text-align: center;
}
.hero-title {
    color: var(--text-light);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin: 20px 0 30px 0;
    color: var(--secondary-color);
}
.hero-image-area {
    flex: 1;
    min-height: 300px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 992px) {
    .hero-split-color { flex-direction: row; }
    .hero-content-area, .hero-image-area { width: 50%; }
    .hero-text-wrapper { text-align: left; }
}

/* --- Index Page: Other Sections --- */
.benefits-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .benefits-grid-3col { grid-template-columns: repeat(3, 1fr); } }

.expert-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}
.expert-image-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    flex-shrink: 0;
}
.expert-quote blockquote {
    font-family: var(--header-font);
    font-size: 1.5rem;
    line-height: 1.5;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
}
.expert-quote cite {
    font-style: normal;
    color: var(--secondary-color);
}
@media (min-width: 768px) {
    .expert-block { flex-direction: row; text-align: left; }
}

.stats-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
}
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--header-font);
}
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .stats-container { grid-template-columns: repeat(4, 1fr); }
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.content-image {
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.feature-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
@media (min-width: 768px) {
    .two-col-layout { grid-template-columns: 1fr 1fr; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}
.gallery-placeholder {
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--text-light);
}

/* --- Program Page: Timeline --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-left: 15px;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 4px solid var(--primary-color);
    top: 32px;
    left: -8px;
    z-index: 1;
}
.timeline-content {
    position: relative;
}
@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: 25px; padding-right: 50px; text-align: right; }
    .timeline-item:nth-child(even) { left: 50%; padding-left: 50px; padding-right: 25px; }
    .timeline-item:nth-child(odd) .timeline-dot {left: calc(100% - 8px); }
}

/* --- Mission Page: Storytelling --- */
.storytelling-container .story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}
.story-block:last-child { margin-bottom: 0; }
@media (min-width: 992px) {
    .storytelling-container .story-block { grid-template-columns: 1fr 1fr; gap: 60px; }
    .story-block:nth-child(even) .story-image { order: -1; }
}
.large-text { font-size: 1.4rem; font-style: italic; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.info-item { margin-bottom: 20px; }
.info-item h3 { color: var(--accent-color); }
.contact-form-wrapper {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--secondary-color); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: #3f322c;
    color: var(--text-light);
    font-family: var(--body-font);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.5);
}
.form-submit-btn { width: 100%; }
@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

/* --- Utility Pages --- */
.page-hero {
    padding: 80px 0;
    text-align: center;
}
.page-title { color: var(--text-light); }
.page-subtitle { color: var(--secondary-color); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }
.thank-you-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.thank-you-content { margin-top: 40px; }
.thank-you-links { display: flex; justify-content: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.content-image-rounded {
    border-radius: 12px;
    margin: 0 auto 30px auto;
}

/* --- 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(--dark-bg);
    color: var(--text-light);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}
#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(--secondary-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;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--text-light); }
.cookie-btn-decline { background-color: #555; color: #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; }
}