/*
* Color Palette: Bordeaux-Cream
* Primary: #8D2828 (Bordeaux Red)
* Secondary: #F4EAD5 (Cream)
* Accent: #C88E6A (Muted Copper)
* Text/Dark: #3D2B1F (Dark Brown)
* Background: #FCF8F3 (Light Cream)
*/

:root {
    --primary-color: #8D2828;
    --secondary-color: #F4EAD5;
    --accent-color: #C88E6A;
    --text-color: #3D2B1F;
    --background-color: #FCF8F3;
    --light-text-color: #FCF8F3;
    --border-color: #E0D8C8;
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.section-paragraph {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #6e1f1f;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 100;
}
.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-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;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}
.desktop-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: var(--background-color);
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 10px 20px;
}

.mobile-nav li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.2rem;
    display: block;
    width: 100%;
}

@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); }
}

/* Hero Section: Fullscreen */
.hero-fullscreen {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 43, 31, 0.6);
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content-centered h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Introduction Section */
.section-intro .section-paragraph {
    text-align: center;
}

/* Benefits Section: 3-Card Grid */
.benefits-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefit-card {
    background-color: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-title {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .benefits-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Split Section */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.split-image img {
    border-radius: 8px;
}

.split-content .section-title {
    text-align: left;
}

.split-content .section-paragraph {
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 992px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Stats Bar */
.section-stats {
    background-color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* CTA Section */
.section-cta {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.cta-container {
    text-align: center;
}

.cta-container .section-title, .cta-title {
    color: var(--light-text-color);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta .btn-primary {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.section-cta .btn-primary:hover {
    background-color: var(--secondary-color);
}


/* Footer */
.site-footer {
    background-color: var(--text-color) !important;
    color: var(--light-text-color) !important;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h3, .site-footer p, .site-footer a {
    color: var(--light-text-color) !important;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-text-color) !important;
}

.footer-about p {
    line-height: 1.6;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    text-decoration: none;
}

.footer-links a:hover, .footer-legal a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #5a4a3e;
    text-align: center;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}


/* Page-specific Styles */
.page-header {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline (Program Page) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 18px;
}

.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 4px solid var(--accent-color);
    top: 15px;
    left: 9px;
    z-index: 1;
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.image-container .full-width-image {
    width: 100%;
    border-radius: 8px;
}

/* Mission Page */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.story-image img { border-radius: 8px; }
.story-content .section-title { text-align: left; }

@media (min-width: 992px) {
    .story-container { grid-template-columns: 3fr 2fr; }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.section-manifesto { background-color: var(--secondary-color); }
.manifesto-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding-left: 30px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .contact-layout { grid-template-columns: 3fr 2fr; }
}

.contact-form-container .section-title,
.contact-info-container .section-title {
    text-align: left;
}

.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 var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-secondary);
}
.contact-form .form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
.contact-info-block {
    margin-bottom: 25px;
}
.contact-info-block h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 5px;
}
.contact-info-block p {
    line-height: 1.5;
}

/* Policy & Thank You Pages */
.policy-page .container, .thank-you-section .container {
    max-width: 800px;
}
.policy-page h2 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 10px;
}
.policy-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
.text-center { text-align: center; }
.thank-you-content { margin-top: 40px; }
.thank-you-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--text-color);
    color: var(--light-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.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(--accent-color) !important; 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: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--accent-color); color: var(--light-text-color); }
.cookie-btn-decline { background-color: #5a4a3e; color: var(--light-text-color); }

@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; }
}