/*
* Palette: Bordeaux-Cream
* Primary: #8D2A33 (Bordeaux)
* Secondary: #C7826A (Terracotta)
* Background: #FDF5E6 (Cream)
* Text: #3D2B1F (Dark Umber)
* Light Text: #FFFFFF
*/

:root {
    --primary-color: #8D2A33;
    --secondary-color: #C7826A;
    --background-color: #FDF5E6;
    --surface-color: #FFFFFF;
    --text-color: #3D2B1F;
    --light-text-color: #FFFFFF;
    --border-color: #EAE0D1;
    --header-bg: #FFFFFF;
    --footer-bg: #3D2B1F;
    --footer-text: #FDF5E6;
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    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(--font-primary);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

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-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 10px;
}

.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);
}

.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-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 .nav-list a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav .nav-list a:hover::after {
    width: 100%;
}

.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.3s ease;
    z-index: 99;
    background-color: var(--header-bg);
    box-shadow: 0 4px 8px 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 var(--border-color);
    text-align: center;
}

.mobile-nav li a {
    font-size: 1.2rem;
    color: var(--text-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); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #7a242c;
    border-color: #7a242c;
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* --- Hero Section (Floating Card) --- */
.hero-floating-card {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.floating-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.floating-card h1 {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
}

/* --- General Section Styling --- */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--surface-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: var(--font-primary);
}
.stat-item .stat-description {
    font-size: 1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    padding-left: 80px;
    margin-bottom: 30px;
}
.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 0;
    background-color: var(--surface-color);
    border: 3px solid var(--primary-color);
    top: 0;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.timeline-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}
.timeline-content {
    padding: 10px 20px;
    background-color: var(--surface-color);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .timeline-container::after { left: 30px; }
    .timeline-item { padding-left: 80px; }
    .timeline-icon { left: 0px; }
}

/* --- Split Section --- */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.split-image img {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .split-container { grid-template-columns: 1fr; }
    .split-image { order: -1; }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--secondary-color);
}
.cta-container {
    text-align: center;
}
.cta-section h2, .cta-section p {
    color: var(--light-text-color);
}
.cta-section .btn-primary {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border-color: var(--light-text-color);
}
.cta-section .btn-primary:hover {
    background-color: var(--background-color);
}

/* --- Page Header --- */
.page-header {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1, .page-header p {
    color: var(--light-text-color);
}

/* --- Program Page (Numbered Sections) --- */
.numbered-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.numbered-digit {
    font-size: 5rem;
    font-family: var(--font-primary);
    color: var(--border-color);
    line-height: 1;
    min-width: 100px;
    text-align: center;
}
.numbered-content h2 {
    margin-top: 0;
}
.numbered-item.reverse-layout {
    flex-direction: row-reverse;
}
.numbered-content .content-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .numbered-item, .numbered-item.reverse-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Mission Page --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.value-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-icon svg {
    stroke: var(--primary-color);
    width: 28px;
    height: 28px;
}
.manifesto-section {
    background-color: var(--surface-color);
}
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-primary);
}
@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* --- Contact Page --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(199, 130, 106, 0.2);
}
.contact-form button {
    width: 100%;
}
.contact-info-cards {
    padding-top: 60px;
}
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.info-card {
    text-align: center;
}
.info-card-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card-icon svg {
    stroke: var(--light-text-color);
}
@media (max-width: 768px) {
    .info-cards-grid { grid-template-columns: 1fr; }
}

/* --- Legal & Thank You Pages --- */
.legal-page .container, .thank-you-section .container {
    max-width: 800px;
}
.legal-page h2 {
    margin-top: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.thank-you-content {
    text-align: center;
    padding: 40px;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 40px;
}
.next-steps h2 {
    text-align: center;
}
.next-steps-list {
    display: grid;
    gap: 20px;
}
.next-steps-list a {
    display: block;
    padding: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.next-steps-list a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    color: var(--text-color);
}
.next-steps-list strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.next-steps-list span {
    color: var(--text-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer h3 {
    color: var(--light-text-color) !important;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--light-text-color) !important;
}
.site-footer p, .site-footer a {
    color: var(--footer-text) !important;
    opacity: 0.8;
}
.site-footer a:hover {
    opacity: 1;
    color: var(--light-text-color) !important;
}
.footer-links ul li, .footer-legal ul li {
    margin-bottom: 8px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- 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(--footer-bg);
    color: var(--footer-text);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { 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-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}
.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--footer-text);
    color: var(--footer-text);
}

@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; }
}