/*
  Theme: Warm Vintage
  Palette: Terracotta/Brown/Beige
  - Primary: #A0522D (Sienna)
  - Secondary: #D2B48C (Tan)
  - Dark BG: #2C2621 (Dark Brown)
  - Light BG: #F5F5DC (Beige)
  - Dark Text: #3D352E
  - Light Text: #F5F5DC
*/

:root {
    --primary-color: #A0522D;
    --secondary-color: #D2B48C;
    --dark-bg: #2C2621;
    --light-bg: #F5F5DC;
    --text-dark: #3D352E;
    --text-light: #F5F5DC;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --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 & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    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(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 64px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.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;
    color: var(--text-light);
    font-family: var(--font-heading);
}
.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(--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;
}
.desktop-nav a {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--dark-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 99;
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { color: var(--text-light); display: block; }

@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-size: 1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #8c4626;
    border-color: #8c4626;
    text-decoration: none;
    transform: translateY(-2px);
}
.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;
}

/* --- Hero Section (Asymmetric) --- */
.hero-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}
.hero-asymmetric-container {
    display: grid;
    align-items: center;
    gap: 32px;
}
.hero-content {
    z-index: 2;
}
.hero-title {
    color: var(--text-light);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 550px;
    margin-bottom: 32px;
}
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}
.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-dramatic);
}

@media (min-width: 992px) {
    .hero-asymmetric-container {
        grid-template-columns: 1fr 1fr;
    }
    .hero-image-wrapper {
        position: absolute;
        right: -10%;
        top: 50%;
        transform: translateY(-50%);
        width: 55%;
    }
}

/* --- Benefits Section (2x2 Grid) --- */
.benefits-grid-2x2 {
    display: grid;
    gap: 32px;
}
.benefit-card {
    background-color: #fff;
    padding: 24px;
    border: 1px solid #ddd;
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
}
.card-title {
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .benefits-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 48px 0;
}
.stats-bar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
}
.stat-label {
    font-size: 1.1rem;
    margin-top: 8px;
}
@media (min-width: 768px) {
    .stats-bar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Accordion FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ccc;
}
.faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px 0;
    cursor: pointer;
    list-style: none; /* remove default marker */
    position: relative;
    padding-right: 30px;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 0 20px 0;
}

/* --- Gallery Grid Section --- */
.gallery-section {
    background-color: var(--dark-bg);
}
.gallery-section .section-title, .gallery-section .section-intro {
    color: var(--text-light);
}
.gallery-section .section-intro { color: #ccc; }
.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-item {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.placeholder-content h3 {
    color: var(--text-light);
    font-size: 2rem;
}

/* --- Testimonials Section --- */
.testimonials-container {
    max-width: 800px;
}
.testimonials-list {
    display: grid;
    gap: 32px;
}
.testimonial-card {
    background-color: #fff;
    padding: 24px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-dramatic);
}
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: #ccc;
    margin-right: 16px;
}
.testimonial-name {
    font-weight: bold;
    margin: 0;
}
.testimonial-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.testimonial-text {
    font-style: italic;
    color: #555;
}

/* --- Program Page: Timeline --- */
.page-header-section {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}
.page-title { color: var(--text-light); }
.page-subtitle { max-width: 800px; margin: 0 auto; }

.timeline-section {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 20px 0 20px 60px;
    position: relative;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--light-bg);
    top: 30px;
    left: 12px;
    z-index: 1;
}
.timeline-content {
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-dramatic);
}
.timeline-image {
    width: 100%;
    margin-bottom: 16px;
}

/* --- Mission Page: Timeline --- */
.mission-timeline-section {
    background-color: var(--light-bg);
}
.mission-timeline {
    display: grid;
    gap: 40px;
}
.mission-timeline-item {
    display: grid;
    gap: 20px;
}
.mission-timeline-date {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
}
.mission-timeline-content {
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}
.mission-image { margin-bottom: 16px; }
@media (min-width: 768px) {
    .mission-timeline-item {
        grid-template-columns: 150px 1fr;
        align-items: start;
    }
    .mission-timeline-date { text-align: right; }
}

/* --- Values Section --- */
.values-section { background-color: var(--dark-bg); }
.values-section .section-title { color: var(--text-light); }
.values-grid { display: grid; gap: 24px; }
.value-card {
    background-color: var(--light-bg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-dramatic);
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Contact Page --- */
.contact-layout-container {
    display: grid;
    gap: 40px;
}
.contact-sidebar .contact-info-block {
    background-color: #fff;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-dramatic);
}
.contact-sidebar h3 { margin-bottom: 16px; }
.contact-sidebar p { margin-bottom: 8px; }
.contact-main-content h3 { margin-bottom: 24px; }
.contact-faq-title { margin-top: 48px; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
}
@media (min-width: 992px) {
    .contact-layout-container {
        grid-template-columns: 300px 1fr;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-page-section, .thank-you-section { padding: 80px 0; }
.legal-page-section h1, .legal-page-section h2 { margin-bottom: 24px; }
.legal-page-section p, .legal-page-section ul { margin-bottom: 20px; }
.legal-page-section ul { padding-left: 20px; }
.thank-you-title { font-size: 3rem; }
.thank-you-text { font-size: 1.2rem; margin-bottom: 40px; }
.what-next h2 { margin-bottom: 20px; }
.next-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer h3 { color: var(--secondary-color) !important; }
.site-footer p, .site-footer a { color: #ccc !important; }
.site-footer a:hover { color: #fff !important; text-decoration: underline; }
.footer-links ul, .footer-legal ul { list-style: none; }
.footer-links li, .footer-legal li { margin-bottom: 8px; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}
@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(--dark-bg);
    color: var(--text-light);
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--secondary-color); font-weight: bold; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
.cookie-btn-accept {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}
.cookie-btn-accept:hover { background-color: #e0c49c; }
.cookie-btn-decline {
    background-color: transparent;
    color: var(--secondary-color);
}
.cookie-btn-decline:hover { background-color: rgba(210, 180, 140, 0.1); }
@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; }
}