/*
 * Palette: burgundy-sand
 * --color-primary: #6B0F1A;
 * --color-secondary: #7D1220;
 * --color-accent: #A06830;
 * --bg-tint: #FDF5F5;
*/

:root {
    --color-primary: #6B0F1A;
    --color-secondary: #7D1220;
    --color-accent: #A06830;
    --bg-tint: #FDF5F5;
    --text-light: #FDF5F5;
    --text-dark: #1a1a1a;
    --border-color: rgba(160, 104, 48, 0.3);
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Basic Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--bg-tint);
    color: var(--text-dark);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
p { margin-bottom: 1rem; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout & Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-light { background-color: var(--bg-tint); }
.section-dark { background-color: var(--color-secondary); color: var(--text-light); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-light); }
.section-dark a { color: var(--color-accent); }
.section-dark a:hover { color: #fff; }

.text-center { text-align: center; }
.section-intro { max-width: 700px; margin: 0 auto 32px auto; }

@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .section { padding: 80px 0; }
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-tint);
    border-bottom: 1px solid var(--border-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;
    color: var(--color-primary);
}
.logo:hover { color: var(--color-secondary); }

.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;
}

.menu-checkbox { display: none; }
.desktop-nav { display: block; }
.desktop-nav .nav-list { display: flex; list-style: none; gap: 32px; }
.desktop-nav a { font-weight: 600; color: var(--text-dark); padding: 8px 0; position: relative; }
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after { width: 100%; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 99;
    background-color: var(--color-secondary);
}
.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { padding: 12px 0; 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-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0; /* sharp style */
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-secondary);
    color: rgba(253, 245, 245, 0.8) !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: var(--text-light) !important;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.site-footer p, .site-footer li, .site-footer a {
    color: rgba(253, 245, 245, 0.8) !important;
    font-size: 0.95rem;
}
.footer-links ul li, .footer-legal ul li { margin-bottom: 8px; }
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 245, 245, 0.2);
}
.footer-copyright p { font-size: 0.85rem; margin: 0; }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* --- 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;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    transform: translateY(0); transition: transform 0.4s ease;
    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(--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: 1px solid var(--color-accent);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0;
}
.cookie-btn-accept { background-color: var(--color-accent); color: var(--text-dark); }
.cookie-btn-accept:hover { background-color: var(--color-primary); color: var(--text-light); border-color: var(--color-primary); }
.cookie-btn-decline:hover { background-color: rgba(255,255,255,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; }
}

/* --- Specific Page Styles --- */
/* index.html: Hero Split Color */
.hero-split-color {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}
.hero-content-area {
    background-color: var(--color-secondary);
    color: var(--text-light);
    padding: 48px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.hero-text-wrapper { max-width: 600px; }
.hero-title { color: var(--text-light); }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; margin: 24px 0 32px; }
.hero-image-area {
    flex: 1;
    min-height: 300px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .hero-split-color { flex-direction: row; }
    .hero-content-area, .hero-image-area { width: 50%;}
}

/* index.html: Benefits H-Scroll */
.hscroll-container { overflow-x: auto; padding: 16px 0 32px 16px; }
.hscroll-wrapper { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;}
.benefit-card-h {
    width: 280px;
    padding: 24px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.benefit-card-h h3 { color: var(--color-secondary); }

/* index.html: Stats Bar */
.stats-bar { padding: 40px 0; background-color: var(--color-primary); color: var(--text-light); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 32px; text-align: center; }
.stat-number { display: block; font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.9rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* index.html: Comparison Table */
.comparison-table-wrapper { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.comparison-column { border: 1px solid var(--border-color); padding: 24px; }
.comparison-header { text-align: center; margin-bottom: 24px; color: var(--color-secondary); }
.comparison-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.check-mark, .cross-mark { font-weight: bold; font-size: 1.2rem; }
.check-mark { color: var(--color-accent); }
.cross-mark { color: #aaa; }
@media (min-width: 768px) { .comparison-table-wrapper { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* index.html: Expert Block */
.expert-container { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.expert-image { border: 4px solid var(--color-accent); }
.expert-quote { font-size: 1.2rem; font-style: italic; border-left: 4px solid var(--color-accent); padding-left: 24px; margin-bottom: 24px; }
.expert-cite { display: block; margin-top: 16px; font-style: normal; }
.expert-name { display: block; font-weight: bold; color: var(--text-light); }
.expert-title { font-size: 0.9rem; opacity: 0.8; }
@media (min-width: 768px) { .expert-container { grid-template-columns: 1fr 2fr; } }

/* index.html: Numbered Steps */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.step-item { position: relative; padding-left: 60px; }
.step-number {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
}
.step-title { margin-bottom: 8px; color: var(--color-secondary); }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* program.html: Page Hero */
.page-hero { padding: 60px 0; }
.page-title { margin-bottom: 16px; }
.page-subtitle { max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* program.html: Accordion */
.accordion-container { max-width: 800px; margin: 40px auto 0; }
.accordion-item { border: 1px solid var(--border-color); margin-bottom: 10px; }
.accordion-title {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    color: var(--color-secondary);
}
.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-item[open] > .accordion-title::after { transform: rotate(45deg); }
.accordion-content { padding: 20px; background-color: #fff; }
.accordion-content p:last-child { margin-bottom: 0; }
.content-image-right { float: right; max-width: 200px; margin-left: 20px; margin-bottom: 10px; }

/* program.html: Dynamic CTA */
.cta-section-dynamic {
    padding: 60px 0;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}
.cta-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.cta-text { max-width: 600px; margin: 16px auto 32px auto; }
@media (max-width: 768px) { .cta-section-dynamic { clip-path: none; } }

/* mission.html: Story-Team */
.mission-story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.mission-team-image { border: 1px solid var(--border-color); }
@media (min-width: 992px) {
    .mission-story-container { grid-template-columns: 3fr 2fr; gap: 60px; }
}

/* mission.html: Values */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.value-card {
    border: 1px solid var(--color-accent);
    padding: 24px;
    background-color: rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* contact.html: Layout */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-info-panel h2, .contact-form-panel h2 { margin-bottom: 24px; }
.contact-detail-item { margin-bottom: 24px; }
.contact-detail-item h3 { font-size: 1.1rem; color: var(--color-secondary); }
.contact-detail-item p { margin: 0; }
@media (min-width: 992px) { .contact-grid-layout { grid-template-columns: 1fr 1.5fr; gap: 60px; } }

/* contact.html: Form */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.form-submit-btn { width: 100%; }

/* Legal & Thank You Pages */
.legal-content h1 { margin-bottom: 32px; }
.legal-content h2 { margin-top: 32px; margin-bottom: 16px; color: var(--color-secondary); }
.legal-content ul { list-style: disc; margin-left: 20px; margin-bottom: 16px; }
.thank-you-section { padding: 80px 0; }
.thank-you-title { font-size: clamp(2rem, 6vw, 3rem); }
.thank-you-text { font-size: 1.1rem; max-width: 700px; margin: 16px auto 48px; }
.next-steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.next-step-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.next-step-card:hover { transform: translateY(-5px); border-color: var(--color-accent); }
.next-step-card h3 { color: var(--color-primary); }
.next-step-card p { color: var(--text-dark); margin: 0; }
@media (min-width: 768px) { .next-steps-grid { grid-template-columns: repeat(3, 1fr); } }