/*
  Warm Vintage Palette
  Background: #FAF8F5 (Light Cream)
  Text: #212121 (Soft Black)
  Primary: #5D4037 (Deep Brown)
  Secondary: #F5EFE6 (Sandy Beige)
  Accent: #D4A57B (Vintage Ochre)
*/

:root {
    --background-color: #FAF8F5;
    --text-color: #212121;
    --primary-color: #5D4037;
    --secondary-color: #F5EFE6;
    --accent-color: #D4A57B;
    --border-color: #E0E0E0;
    --subtle-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --heading-font: 'Lora', serif;
    --body-font: 'Roboto', sans-serif;
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding: 0 24px; }
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--subtle-shadow);
}

.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(--primary-color);
    text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--text-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 a { font-weight: 500; font-size: 1rem; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 99;
    background-color: var(--background-color);
    box-shadow: var(--subtle-shadow);
}

.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { text-align: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.mobile-nav a { display: block; width: 100%; font-size: 1.2rem; }

@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: 500;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-section-program {
    text-align: center;
}

/* --- Hero Section (Vertical Stack) --- */
.hero-vertical-stack {
    display: flex;
    flex-direction: column;
}
.hero-image-container {
    width: 100%;
    height: 55vh;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-container {
    padding: 40px 0;
    background-color: var(--secondary-color);
    text-align: center;
}
.hero-content-container .subtitle {
    max-width: 700px;
    margin: 1rem auto 2rem;
}

/* --- Benefits Horizontal Scroll --- */
.benefits-hscroll-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.section-title, .section-subtitle {
    text-align: center;
}
.section-subtitle {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}
.h-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--secondary-color);
}
.benefits-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 16px; /* Padding for start/end */
}
.benefit-card-scroll {
    flex: 0 0 280px;
    background-color: white;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--subtle-shadow);
}
@media (min-width: 1024px) {
    .h-scroll-container {
        display: flex;
        justify-content: center;
    }
    .benefits-wrapper {
        gap: 30px;
        padding: 0;
    }
    .benefit-card-scroll {
        flex-basis: 22%;
    }
}

/* --- Accordion FAQ --- */
.faq-container { max-width: 800px; }
.accordion-faq details {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.accordion-faq summary {
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 25px;
    font-family: var(--heading-font);
}
.accordion-faq summary::-webkit-details-marker { display: none; }
.accordion-faq summary::after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.2s;
}
.accordion-faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-content {
    padding: 1rem 0 0;
}

/* --- Numbered Steps --- */
.numbered-steps-section { background-color: var(--secondary-color); }
.numbered-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.step-item {
    text-align: center;
}
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--heading-font);
    line-height: 1;
}
.step-title {
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary-color) url('img/bg-1.jpg') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 60px 0;
    color: white;
    text-align: center;
}
.cta-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.cta-container p {
    max-width: 500px;
    margin: 1rem auto 2rem;
}

/* --- Icon Features --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.feature-item { text-align: center; }
.feature-icon { font-size: 2.5rem; }
.feature-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-item p { margin: 0; }
@media (min-width: 500px) {
    .icon-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .icon-features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Program Page: Numbered Sections --- */
.page-hero { text-align: center; background-color: var(--secondary-color); }
.page-title { margin-bottom: 1rem; }
.page-subtitle { max-width: 700px; margin: 0 auto; }
.numbered-section { padding: 40px 0; }
.numbered-section-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.section-number-large {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    font-family: var(--heading-font);
}
.inline-image {
    margin-top: 2rem;
    box-shadow: var(--subtle-shadow);
    border: 8px solid white;
}
@media (min-width: 900px) {
    .numbered-section-container {
        flex-direction: row;
        text-align: left;
    }
    .numbered-section-container.reverse {
        flex-direction: row-reverse;
    }
    .section-number-container {
        flex: 0 0 150px;
        text-align: center;
    }
    .section-content-container {
        flex: 1;
    }
}

/* --- Mission Page: Timeline --- */
.mission-intro-container {
    display: grid;
    gap: 40px;
    align-items: center;
}
@media (min-width: 768px) {
    .mission-intro-container { grid-template-columns: 1fr 1fr; }
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 4px;
    top: 21px;
    width: 24px;
    height: 24px;
    border: 4px solid var(--accent-color);
    background-color: var(--background-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-date {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.timeline-content h3 { font-size: 1.3rem; }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 3fr 2fr;
        gap: 60px;
    }
}
.contact-info-wrapper {
    background-color: var(--secondary-color);
    padding: 30px;
}
.contact-details .contact-item { margin-bottom: 1.5rem; }
.contact-details h3 { font-size: 1.2rem; color: var(--primary-color); }
.contact-details p { margin: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
}
.form-submit-btn { width: 100%; }
@media (min-width: 768px) {
    .form-submit-btn { width: auto; }
}

/* --- Policy & Thank You Pages --- */
.text-container { max-width: 800px; }
.text-container h1 { margin-bottom: 2rem; }
.text-container h2 { margin-top: 2rem; }
.thank-you-section { padding: 80px 0; }
.text-center { text-align: center; }
.thank-you-icon {
    font-size: 4rem;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 1rem;
}
.thank-you-actions { margin-top: 3rem; }
.thank-you-actions h2 { font-size: 1.5rem; }
.action-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 500px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 2fr; }
}
.footer-heading { color: var(--accent-color) !important; font-size: 1.2rem; }
.site-footer p, .site-footer a { color: #E0E0E0 !important; }
.site-footer a:hover { color: #ffffff !important; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { margin: 0; font-size: 0.9rem; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--secondary-color);
    color: var(--text-color);
    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;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
}
#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(--primary-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(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.cookie-btn-accept { background-color: var(--primary-color); color: white; }
.cookie-btn-accept:hover { background-color: var(--accent-color); border-color: var(--accent-color); }
.cookie-btn-decline { background-color: transparent; color: var(--primary-color); }
.cookie-btn-decline:hover { background-color: #f0f0f0; }

@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; }
}