/* 
   Color Palette: Amethyst & Slate
   - Primary: #5B2C6F (Deep Purple)
   - Secondary: #D7BDE2 (Light Lavender)
   - Accent: #F1C40F (Vibrant Yellow)
   - Text: #343a40 (Dark Gray)
   - Background: #F8F9FA (Light Gray)
*/

:root {
    --primary-color: #5B2C6F;
    --secondary-color: #D7BDE2;
    --accent-color: #F1C40F;
    --text-color: #343a40;
    --bg-color: #FFFFFF;
    --light-bg-color: #F8F9FA;
    --header-bg: #FFFFFF;
    --footer-bg: #343a40;
    --footer-text: #EAECEE;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Global Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(40px, 8vw, 80px) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.text-center-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid 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(--header-bg);
    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(--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(--primary-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;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    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;
    text-align: center;
    border-bottom: 1px solid #eee;
}

@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 (Diagonal) --- */
.hero-diagonal {
    display: flex;
    min-height: 90vh;
    background-color: var(--light-bg-color);
}
.hero-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-image-container {
    width: 50%;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 900px) {
    .hero-diagonal { flex-direction: column; min-height: auto; }
    .hero-content, .hero-image-container { width: 100%; }
    .hero-image-container { clip-path: none; max-height: 400px; }
    .hero-content { padding: 40px 20px; text-align: center; }
}

/* --- Benefits Section (4-Grid) --- */
.benefits-section-v2 { background-color: var(--light-bg-color); }
.benefits-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 600px) {
    .benefits-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.benefit-card-v2 {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-left: 5px solid var(--primary-color);
}

/* --- Vertical Timeline --- */
.timeline-vertical {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-vertical::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    top: 15px;
    left: 6px;
    z-index: 1;
}
@media (max-width: 600px) {
    .timeline-vertical::after { left: 10px; }
    .timeline-item { padding-left: 40px; }
    .timeline-dot { left: 1px; }
}

/* --- Image-Text Split Section --- */
.image-text-container, .image-text-split-reverse .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 768px) {
    .image-text-container { grid-template-columns: 1fr 1fr; }
    .image-text-split-reverse .container { grid-template-columns: 1fr 1fr; }
    .image-text-split-reverse .image-text-visual { order: -1; }
}
.responsive-image { border-radius: 8px; }

/* --- Testimonials --- */
.testimonials-section { background-color: var(--light-bg-color); }
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--secondary-color);
}
.testimonial-text { font-style: italic; margin-bottom: 1rem; }
.testimonial-author { font-weight: bold; text-align: right; color: var(--primary-color); }

/* --- Program Page: Accordion --- */
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.accordion-header.active::after {
    transform: rotate(45deg);
}
.accordion-header:hover {
    background-color: var(--light-bg-color);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}
.accordion-content p {
    padding: 10px 0 20px;
}

/* --- Mission Page --- */
.page-header-section {
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.page-header-section .container { position: relative; z-index: 2; }
.page-header-section .page-title, .page-header-section .page-subtitle { color: #fff; }

.mission-story-layout {
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 768px) {
    .mission-story-layout { grid-template-columns: 2fr 1fr; }
}
.rounded-image { border-radius: 8px; }

.values-section { background-color: var(--light-bg-color); }
.values-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}
.value-card { text-align: center; padding: 20px; }
.value-title { color: var(--primary-color); }

.manifesto-section { background-color: var(--primary-color); color: #fff; }
.manifesto-section .section-title, .manifesto-section .manifesto-text { color: #fff; }
.manifesto-text { font-size: 1.2rem; font-style: italic; max-width: 900px; margin: 0 auto; }

/* --- Contact Page --- */
.contact-info-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .contact-info-block { grid-template-columns: repeat(3, 1fr); }
}
.contact-form-container { max-width: 800px; margin: 0 auto; }
.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 #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-submit-btn { width: 100%; }

/* --- Policy & Thank You Pages --- */
.policy-section, .thank-you-section { padding-top: 40px; }
.thank-you-section { padding: 120px 0 }
.policy-section h2 { margin-top: 30px; }
.policy-section ul { margin-left: 20px; margin-bottom: 1rem; }
.thank-you-message { font-size: 1.2rem; margin-bottom: 40px; }
.next-steps h2 { font-size: 1.5rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 20px; }

/* --- 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: 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: #fff !important; }
.site-footer p, .site-footer li, .site-footer a { color: var(--footer-text) !important; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #555;
    text-align: center;
    padding: 20px 0;
}

/* --- 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 -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) !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: 4px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--accent-color); color: var(--text-color); }
.cookie-btn-decline { background-color: #777; color: #fff; }
@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; }
}