/*
Palette: espresso-amber
--color-primary: #2C1810;
--color-secondary: #4A2E20;
--color-accent: #D4900A;
--bg-tint: #FBF6F0;
*/

:root {
    --color-primary: #2C1810;
    --color-secondary: #4A2E20;
    --color-accent: #D4900A;
    --bg-tint: #FBF6F0;
    --text-dark: #2C1810;
    --text-light: #FBF6F0;
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
    --shadow-dramatic: 0 24px 64px rgba(44, 24, 16, 0.22);
    --shadow-dramatic-hover: 0 32px 80px rgba(44, 24, 16, 0.30);
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-tint);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3, h4 {
    margin: 0 0 16px 0;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 3rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

p { margin: 0 0 16px 0; }
a { color: var(--color-accent); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 64px 0;
}

.section-tinted {
    background-color: #ffffff;
}

.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-subtitle { max-width: 700px; margin: 0 auto 48px auto; text-align: center; opacity: 0.8; }
.section-title-small { margin-bottom: 16px; }

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-tint);
    padding: 15px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    background-color: rgba(251, 246, 240, 0.8);
}

.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;
    color: var(--color-primary);
    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(--color-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.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(--color-secondary); font-weight: 500; }
.desktop-nav a:hover { color: var(--color-accent); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 99;
    background-color: var(--bg-tint);
    box-shadow: 0 10px 20px 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(0,0,0,0.05); }
.mobile-nav a { display: block; color: var(--color-primary); font-weight: 500; }

@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;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    min-height: 44px;
}
.btn-primary { background-color: var(--color-primary); color: var(--text-light); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-dramatic-hover); }
.btn-accent { background-color: var(--color-accent); color: var(--color-primary); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: var(--shadow-dramatic-hover); }
.btn-full-width { width: 100%; }

/* --- Hero Section (Grid Overlap) --- */
.hero-section-overlap {
    padding: 80px 0;
    overflow: hidden;
}
.hero-grid-overlap {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
}
.hero-image-container-overlap {
    position: relative;
}
.hero-image-overlap {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    object-fit: cover;
    height: 300px;
}
.hero-content-overlap {
    background-color: rgba(251, 246, 240, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 24, 16, 0.1);
    padding: 32px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    position: relative;
    z-index: 2;
}
.hero-title { margin-bottom: 24px; }
.hero-subtitle { margin-bottom: 32px; opacity: 0.9; }

@media (min-width: 992px) {
    .hero-grid-overlap {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .hero-content-overlap {
        transform: translateX(-80px);
    }
    .hero-image-overlap {
        height: 500px;
    }
}

/* --- Benefits Timeline --- */
.benefits-timeline {
    position: relative;
    max-width: 800px;
    margin: 48px auto 0;
}
.benefits-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 19px;
    opacity: 0.3;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 4px solid var(--bg-tint);
    z-index: 1;
}
.timeline-content h3 { color: var(--color-secondary); }

/* --- Two Column Layout --- */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.feature-image {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
.checklist {
    list-style: none;
    padding-left: 0;
    margin-top: 24px;
}
.checklist li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}
@media (min-width: 768px) {
    .two-col-layout { grid-template-columns: 1fr 1fr; }
}

/* --- Expert Block --- */
.expert-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.expert-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    flex-shrink: 0;
}
.expert-quote blockquote {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin: 0 0 24px 0;
    color: var(--color-secondary);
}
.expert-quote cite { font-style: normal; }

@media (min-width: 768px) {
    .expert-block {
        flex-direction: row;
        text-align: left;
    }
    .expert-quote blockquote {
        padding-left: 32px;
    }
}

/* --- CTA & Stats Bars --- */
.cta-banner-section {
    background: var(--color-secondary);
    color: var(--text-light);
    padding: 64px 0;
}
.cta-banner-content { text-align: center; }
.cta-banner-content h2 { color: var(--text-light); }
.cta-banner-content p { max-width: 600px; margin: 0 auto 32px auto; opacity: 0.9; }
.stats-bar-section { background-color: var(--color-primary); padding: 48px 0; color: var(--text-light); }
.stats-bar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}
.stat-number { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; display: block; color: var(--color-accent); }
.stat-label { font-size: 1rem; opacity: 0.9; }
@media (min-width: 768px) {
    .stats-bar-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Page Header --- */
.page-header {
    background-color: var(--color-secondary);
    color: var(--text-light);
    padding: 64px 0;
    text-align: center;
}
.page-header h1, .page-header p {
    color: var(--text-light);
}
.page-title { margin-bottom: 8px; }
.page-subtitle { max-width: 700px; margin: 0 auto; opacity: 0.8; }

/* --- Program Page: Numbered Sections --- */
.numbered-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 80px;
}
.numbered-section-number {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.08;
    line-height: 1;
}
.numbered-section-content { flex: 1; }
@media (min-width: 768px) {
    .numbered-section {
        flex-direction: row;
        gap: 48px;
        align-items: flex-start;
    }
    .numbered-section.reverse {
        flex-direction: row-reverse;
    }
    .numbered-section-number {
        text-align: center;
    }
}

/* --- Mission Page: Split Layout & Vision Grid --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.split-layout-image .feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.values-list { margin-top: 32px; }
.value-item { margin-bottom: 24px; }
.value-item h3 { color: var(--color-secondary); }
@media (min-width: 992px) {
    .split-layout { grid-template-columns: 1fr 1.2fr; }
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.vision-card {
    background-color: var(--bg-tint);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.3s, box-shadow 0.3s;
}
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
}
@media (min-width: 768px) {
    .vision-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Contact Page --- */
.contact-form-container-centered {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 144, 10, 0.2);
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.contact-card {
    background: var(--bg-tint);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    text-align: center;
}
@media (min-width: 768px) {
    .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Legal & Thank You Pages --- */
.legal-content h1, .legal-content h2 { margin-top: 32px; margin-bottom: 16px; }
.legal-content ul { list-style: disc; padding-left: 24px; }
.thank-you-section { padding: 80px 0; }
.thank-you-icon { margin-top: 32px; color: var(--color-accent); }
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.quick-link-card {
    display: block;
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-dark);
}
.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
    color: var(--color-primary);
}
@media (min-width: 768px) {
    .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--text-light) !important;
    padding: 64px 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.site-footer h4 { color: var(--text-light) !important; margin-bottom: 16px; }
.site-footer p, .site-footer a, .site-footer address {
    color: rgba(251, 246, 240, 0.8) !important;
    font-style: normal;
}
.site-footer a:hover { color: var(--color-accent) !important; }
.footer-links ul li { margin-bottom: 8px; }
.footer-legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(251, 246, 240, 0.2);
    padding-top: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.footer-legal ul { display: flex; gap: 24px; }
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-legal { flex-direction: row; justify-content: space-between; }
}

/* --- 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(--color-primary);
    color: var(--text-light);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(120%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--color-accent); 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;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    font-weight: 500;
}
.cookie-btn-accept { background-color: var(--color-accent); color: var(--color-primary); }
.cookie-btn-decline { background-color: transparent; color: var(--text-light); border: 1px solid 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; }
}