/*
 * Color Palette: Warm (Orange-Terracotta)
 * Primary: #E67E22 (Carrot Orange)
 * Secondary: #D35400 (Pumpkin Orange)
 * Accent: #F39C12 (Orange)
 * Dark: #34495E (Wet Asphalt)
 * Light: #ECF0F1 (Clouds)
 * Text: #2C3E50 (Midnight Blue)
*/

:root {
    --primary-color: #E67E22;
    --secondary-color: #D35400;
    --accent-color: #F39C12;
    --dark-color: #34495E;
    --light-color: #ECF0F1;
    --text-color: #2C3E50;
    --background-color: #FFFFFF;
    --footer-bg-color: #2C3E50;
    --footer-text-color: #ECF0F1;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

.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 {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

.section-header {
    margin-bottom: 4rem;
}

section {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.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(--dark-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(--dark-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: 600;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav 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 a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
    background-color: var(--background-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* --- Hero Section (Floating Card) --- */
.hero-section-floating-card {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.6);
}

.hero-section-floating-card .container {
    position: relative;
    z-index: 2;
}

.floating-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.floating-card h1 {
    color: var(--dark-color);
}

.floating-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Stats Bar --- */
.stats-bar-section {
    background-color: var(--light-color);
    padding: 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 5px;
}

/* --- Asymmetric Benefits Grid --- */
.asymmetric-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.benefit-card-asymmetric {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.benefit-card-asymmetric h3 {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .benefit-card-asymmetric.item-1 { grid-column: 1 / 3; }
    .benefit-card-asymmetric.item-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
    .benefit-card-asymmetric.item-3 { grid-column: 1 / 2; }
    .benefit-card-asymmetric.item-4 { grid-column: 2 / 3; }
    .benefit-card-asymmetric.item-5 { grid-column: 1 / 4; }
}

/* --- Split Section Overlap --- */
.split-section-overlap {
    background-color: var(--light-color);
}
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.split-image-overlap img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
@media (min-width: 992px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .split-image-overlap {
        position: relative;
        z-index: 1;
        transform: translateX(50px);
    }
    .split-content-overlap {
        background: var(--background-color);
        padding: 50px;
        border-radius: 10px;
        box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
        position: relative;
        z-index: 2;
    }
}

/* --- Testimonials Masonry --- */
.masonry-container {
    column-count: 1;
    column-gap: 24px;
}
.testimonial-card-masonry {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    break-inside: avoid;
    border-top: 4px solid var(--accent-color);
}
.testimonial-card-masonry p {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-card-masonry cite {
    font-weight: bold;
    color: var(--primary-color);
}
@media (min-width: 768px) {
    .masonry-container { column-count: 2; }
}
@media (min-width: 992px) {
    .masonry-container { column-count: 3; }
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--dark-color);
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #f9f9f9;
}
.faq-answer p {
    padding: 20px;
}

/* --- Page Header --- */
.page-header-section {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}
.page-title { color: white; }
.page-subtitle { color: var(--light-color); max-width: 800px; margin: 0 auto; }

/* --- Numbered Program Section --- */
.numbered-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}
.number-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}
.numbered-content { flex: 1; text-align: center; }
.numbered-content .content-image {
    margin: 30px auto 0;
    border-radius: 8px;
    max-width: 80%;
}
@media (min-width: 768px) {
    .numbered-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .number-circle { margin: 0; }
    .numbered-content { text-align: left; }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}
.cta-container {
    text-align: center;
}
.cta-container h2 {
    color: white;
}
.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}
.cta-section .btn-primary:hover {
    background-color: var(--light-color);
}

/* --- Storytelling Section (Mission) --- */
.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 80px;
}
.story-image img {
    border-radius: 10px;
}
@media (min-width: 992px) {
    .story-block {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .story-block.reverse .story-image {
        order: -1;
    }
}

/* --- Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Manifesto Section --- */
.manifesto-section {
    background-color: var(--light-color);
}
.manifesto-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-left: 5px solid var(--primary-color);
    padding-left: 30px;
}

/* --- Centered Contact Form --- */
.contact-form-centered {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}
.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 #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}
.contact-form-centered button {
    width: 100%;
}

/* --- Contact Cards --- */
.contact-cards-section { background-color: var(--light-color); }
.contact-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-card h3 { color: var(--secondary-color); }
@media (min-width: 768px) {
    .contact-cards-container { grid-template-columns: repeat(3, 1fr); }
}


/* --- Legal & Thank You Pages --- */
.legal-page-section, .thank-you-section {
    padding: 80px 0;
}
.legal-page-section h1, .thank-you-section h1 {
    margin-bottom: 2rem;
}
.legal-page-section h2 {
    margin-top: 2.5rem;
}
.legal-page-section p, .legal-page-section ul {
    margin-bottom: 1.5rem;
}
.legal-page-section ul {
    padding-left: 20px;
}
.text-center { text-align: center; }
.next-steps { margin-top: 4rem; }
.popular-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2rem;
}
.popular-link-card {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    color: var(--text-color);
}
.popular-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.popular-link-card h3 { color: var(--primary-color); }
@media (min-width: 768px) {
    .popular-links { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg-color) !important;
    color: var(--footer-text-color) !important;
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer h4 {
    color: white !important;
    margin-bottom: 1.5rem;
}
.site-footer p, .site-footer address {
    color: var(--footer-text-color) !important;
    font-style: normal;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a, .footer-contact a {
    color: var(--footer-text-color) !important;
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary-color) !important;
}
.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--dark-color);
    color: white;
    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(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent-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: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}
.cookie-btn-decline {
    background-color: #555;
    color: white;
}

@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; }
}

/* --- Mobile Navigation --- */
@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);
    }
}