/*
* Color Palette: Cool Amethyst
* --primary-color: #7D3C98 (Deep Purple)
* --secondary-color: #2C3E50 (Dark Slate)
* --accent-color: #D7BDE2 (Light Lavender)
* --text-color: #34495E (Slightly lighter slate for text)
* --bg-color: #FDFEFE (Almost white)
*/

:root {
    --primary-color: #7D3C98;
    --secondary-color: #2C3E50;
    --accent-color: #D7BDE2;
    --text-color: #34495E;
    --bg-color: #FDFEFE;
    --light-gray: #ECF0F1;
    --white-color: #FFFFFF;
    --footer-bg: #2C3E50;
    --footer-text: #FDFEFE !important;
}

/* --- 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, Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

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(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-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(--secondary-color);
}
.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(--secondary-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 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}
.desktop-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.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;
    z-index: 99;
    background-color: var(--white-color);
    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;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    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;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* --- Hero Section (Diagonal) --- */
.hero-section-diagonal {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url(img/bg.jpg);
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%);
}
.hero-content-container {
    position: relative;
    z-index: 2;
}
.hero-text-content {
    max-width: 50%;
}
.hero-subtitle {
    font-size: 1.1rem;
    margin: 20px 0 30px;
}
@media (max-width: 992px) {
    .hero-text-content {
        max-width: 60%;
    }
    .hero-background-image {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
    }
}
@media (max-width: 768px) {
    .hero-section-diagonal {
        text-align: center;
        min-height: 60vh;
        padding: 40px 0;
    }
    .hero-background-image {
        opacity: 0.2;
        clip-path: none;
    }
    .hero-text-content {
        max-width: 100%;
        color: var(--secondary-color);
    }
}

/* --- Benefits Grid 2x2 --- */
.benefits-section-grid {
    background-color: var(--light-gray);
}
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.benefit-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}
.card-title {
    color: var(--primary-color);
}
@media (min-width: 768px) {
    .benefits-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Split Section --- */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.responsive-image {
    border-radius: 12px;
}
@media (min-width: 768px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Accordion FAQ --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--white-color);
}
.accordion-header {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Remove marker */
}
.accordion-header::-webkit-details-marker {
    display: none; /* For Chrome/Safari */
}
.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-item[open] .accordion-header::after {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 20px 20px;
}

/* --- Page Hero --- */
.page-hero {
    background-color: var(--accent-color);
    text-align: center;
    padding: 50px 0;
}
.page-title {
    margin-bottom: 10px;
}
.page-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Program Page --- */
.image-container {
    max-width: 900px;
}
.rounded-image {
    border-radius: 12px;
}

/* --- Mission Page --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .story-container {
        grid-template-columns: 40% 1fr;
    }
}
.values-section {
    background-color: var(--light-gray);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.manifesto-section blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

/* --- Contact Page --- */
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.contact-detail-card {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
@media (min-width: 768px) {
    .contact-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .contact-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.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(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* --- Legal & Thank You Pages --- */
.legal-page h2 {
    margin-top: 30px;
}
.thank-you-section .next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}
.thank-you-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.site-footer h3 {
    color: var(--white-color);
    font-size: 1.2rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer li {
    margin-bottom: 10px;
}
.site-footer a {
    color: var(--footer-text);
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    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; font-size: 0.9rem; }
#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: 600;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-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; }
}