/*
  Palette: Graphite & Amber
  - Primary: #F39C12 (Amber)
  - Dark: #2C3E50 (Graphite)
  - Text: #34495E (Wet Asphalt)
  - Background: #FFFFFF (White)
  - Light Gray: #ECF0F1 (Clouds)
*/

:root {
    --primary-color: #F39C12;
    --dark-color: #2C3E50;
    --text-color: #34495E;
    --background-color: #FFFFFF;
    --light-gray-color: #ECF0F1;
    --white-color: #FFFFFF;
    --border-color: #bdc3c7;
    --footer-bg-color: #2C3E50;
    --footer-text-color: #ECF0F1;
}

/* Global Resets & Typography */
* {
    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;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
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;
}

ul {
    list-style-position: inside;
    padding-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto;
    color: #7f8c8d;
}

.text-center {
    text-align: center;
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--light-gray-color);
}

.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;
    color: var(--dark-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(--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 {
    color: var(--text-color);
    font-weight: 600;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 69px; /* Adjust based on header height */
    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(--dark-color);
}

.mobile-nav ul { list-style: none; padding: 20px; margin: 0; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { color: var(--white-color); font-size: 1.1rem; }

@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;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
}

.btn-secondary {
    background-color: var(--dark-color);
    color: var(--white-color);
    border-color: var(--dark-color);
}
.btn-secondary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

/* Hero Section: Vertical Stack */
.hero-vertical-stack {
    display: flex;
    flex-direction: column;
}
.hero-image-container {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-container {
    padding: clamp(40px, 8vw, 80px) 0;
    background-color: var(--light-gray-color);
}
.hero-content-container h1 {
    max-width: 800px;
}
.hero-content-container p {
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Benefits Section: Asymmetric Grid */
.benefits-grid-asymm {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.benefit-card-asymm {
    background-color: var(--background-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
}
.benefit-card-asymm .card-title {
    color: var(--primary-color);
}
.benefit-card-asymm.featured-card {
    background-color: var(--dark-color);
    color: var(--white-color);
}
.featured-card .card-title, .featured-card p {
    color: var(--white-color);
}

@media (min-width: 768px) {
    .benefits-grid-asymm {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-row: span 2;
    }
}
@media (min-width: 1024px) {
    .benefits-grid-asymm {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-card {
        grid-column: span 1;
        grid-row: span 2;
    }
}

/* Numbered Steps Section */
.steps-section { background-color: var(--light-gray-color); }
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.step-card {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--background-color);
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-gray-color);
    line-height: 1;
}
.step-title { margin-top: 0.5rem; }

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
.testimonial-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background-color: var(--background-color);
}
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--light-gray-color);
    border: 2px solid var(--primary-color);
}
.testimonial-name { font-weight: bold; margin: 0; }
.testimonial-rating { color: var(--primary-color); }
.testimonial-text { font-style: italic; }

@media(min-width: 768px) {
    .testimonials-container { grid-template-columns: repeat(3, 1fr); }
}

/* CTA Banner Section */
.cta-banner-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}
.cta-banner-content h2 {
    color: var(--white-color);
}
.cta-banner-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-banner-content .btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.cta-banner-content .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
    border-color: var(--white-color);
}

/* FAQ Section */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    position: relative;
    padding-right: 2rem;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding-top: 1rem;
    max-width: 95%;
}

/* Program Page: Numbered Sections */
.page-header-section {
    background-color: var(--light-gray-color);
    text-align: center;
    padding: 4rem 0;
}
.page-title { margin-bottom: 0.5rem; }
.program-module { padding: 4rem 0; }
.program-module:nth-child(odd) { background-color: var(--background-color); }
.program-module:nth-child(even) { background-color: var(--light-gray-color); }

.module-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.module-number-container {
    display: none; /* Hidden on mobile */
}
.embedded-image {
    margin-bottom: 1rem;
    border: 5px solid var(--white-color);
}

@media (min-width: 768px) {
    .module-content-wrapper {
        grid-template-columns: 150px 1fr;
    }
    .program-module.alt-layout .module-content-wrapper {
        grid-template-columns: 1fr 150px;
    }
    .program-module.alt-layout .module-text-container {
        order: -1;
    }
    .module-number-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .module-number {
        font-size: clamp(6rem, 15vw, 10rem);
        font-weight: 800;
        color: var(--primary-color);
        opacity: 0.2;
        line-height: 1;
    }
}

/* Mission Page: Timeline */
.timeline-section { background-color: var(--light-gray-color); }
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}
@media (max-width: 768px) {
.timeline-item:nth-child(even) .timeline-dot {
    left: 0px;
}
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-color);
    position: relative;
    border: 1px solid var(--border-color);
}
.timeline-date {
    position: absolute;
    top: 22px;
    font-weight: bold;
    color: var(--dark-color);
}
.timeline-item:nth-child(odd) .timeline-date {
    right: -100px;
}
.timeline-item:nth-child(even) .timeline-date {
    left: -100px;
}

/* Mission Page: Values */
.values-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.values-text ul {
    list-style: none;
    padding: 0;
}
.values-text li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}
.values-text li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
@media (min-width: 768px) {
    .values-content-wrapper { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .timeline::after { left: 10px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; left: 0 !important; }
    .timeline-dot { left: 0; }
    .timeline-date { display: none; }
}

/* Contact Page */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.contact-info-block { margin-bottom: 1.5rem; }
.contact-info-block h3 { margin-bottom: 0.5rem; }

@media (min-width: 992px) {
    .contact-grid-layout { grid-template-columns: 1fr 1.5fr; }
}

/* Form Styles */
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--light-gray-color);
    border-radius: 0;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
}
.contact-form button { width: 100%; }

/* Legal & Thank You Pages */
.legal-page-section, .thank-you-section { padding: 4rem 0; }
.legal-page-section h1, .legal-page-section h2 { margin-bottom: 1.5rem; margin-top: 2rem; }
.thank-you-section h1 { margin-bottom: 1rem; }
.thank-you-section p { max-width: 600px; margin-left: auto; margin-right: auto; }
.next-steps {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-gray-color);
    border: 1px solid var(--border-color);
}
.next-steps-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.back-to-home { display: inline-block; margin-top: 2rem; font-weight: bold; }

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color) !important;
    color: var(--footer-text-color) !important;
    padding: 4rem 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-column p, .footer-column a {
    color: var(--footer-text-color) !important;
}
.logo-footer {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.footer-column h3 {
    color: var(--white-color) !important;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid #4e5d6c;
    text-align: center;
    padding: 1.5rem 0;
}

@media (min-width: 576px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-container { grid-template-columns: repeat(4, 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: 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;
    border-top: 2px solid var(--primary-color);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--primary-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-radius: 0;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-decline {
    background-color: var(--light-gray-color);
    color: var(--dark-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; }
}