/*
  Color Palette: Pastel Terracotta & Peach
  Primary: #AF601A (Terracotta)
  Secondary: #EB984E (Soft Orange)
  Accent: #FADBD8 (Light Peach)
  Text: #2E4053 (Dark Slate Blue)
  Background: #FEF9E7 (Pale Yellow)
*/

:root {
    --color-primary: #AF601A;
    --color-secondary: #EB984E;
    --color-accent: #FADBD8;
    --color-background: #FEF9E7;
    --color-background-light: #FFFFFF;
    --color-text: #2E4053;
    --color-text-light: #5D6D7E;
    --border-radius-main: 16px;
    --border-radius-btn: 8px;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.07);
    --font-family-main: 'Helvetica Neue', Arial, sans-serif;
}
* {
    box-sizing: border-box;
}
/* Global Styles */
body {
    font-family: var(--font-family-main);
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

h1, h2, h3, h4 {
    margin: 0 0 16px 0;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 3rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 24px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    color: var(--color-text-light);
}

.section-light-accent {
    background: linear-gradient(135deg, var(--color-background), #fff);
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    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;
    color: var(--color-text);
    z-index: 100;
}

.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(--color-text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.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;
    color: var(--color-text-light);
    padding: 8px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    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(--color-background-light);
    box-shadow: var(--shadow-subtle);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}

@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); }
    .tabs-nav label {width: 100%;text-align: center;}
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 96, 26, 0.3);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Hero Section (Grid Overlap) */
.hero-section-overlap {
    padding: 48px 0;
    overflow: hidden;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.hero-image-wrapper {
    order: 1;
}

.hero-content-wrapper {
    order: 2;
    background-color: var(--color-background-light);
    padding: 32px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius-main);
    object-fit: cover;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    margin-bottom: 32px;
    color: var(--color-text-light);
}

@media (min-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .hero-image-wrapper { order: 1; }
    .hero-content-wrapper {
        order: 2;
        transform: translateX(-80px);
        padding: 48px;
    }
}

/* Benefits Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 24px;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    padding-left: 70px;
    padding-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 0;
    background-color: var(--color-background-light);
    border: 3px solid var(--color-accent);
    top: 0;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.timeline-title {
    color: var(--color-primary);
}

/* Two Column Layout */
.two-col-layout, .two-col-layout-reversed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.two-col-image img {
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
}

.styled-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

@media (min-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .two-col-layout-reversed {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .two-col-layout-reversed .two-col-image {
        order: 2;
    }
}

/* Numbered Steps */
.numbered-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.step-card {
    background: var(--color-background-light);
    padding: 24px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-accent);
    z-index: 0;
}

.step-title {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .numbered-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Icon Features */
.icon-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    background: var(--color-background-light);
    padding: 24px;
    border-radius: var(--border-radius-main);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-subtle);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .icon-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
@media (min-width: 1024px) {
    .icon-features-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* CTA Banner */
.cta-banner-section {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    padding: 64px 0;
    color: #fff;
    border-radius: var(--border-radius-main);
    margin: 48px 16px;
}

.cta-banner-content {
    text-align: center;
}

.cta-title {
    margin-bottom: 16px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 32px auto;
    opacity: 0.9;
}

.cta-banner-section .btn-secondary {
    background-color: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.cta-banner-section .btn-secondary:hover {
    background-color: var(--color-accent);
}

/* Program Page - Tabs */
.tabs {
    max-width: 900px;
    margin: 0 auto;
}
input[name="tabs"] { display: none; }
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 24px;
    justify-content: center;
}
.tabs-nav label {
    padding: 12px 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    transition: color 0.3s;
}
.tabs-nav label:hover {
    color: var(--color-primary);
}
.tabs-nav label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tab-panel { display: none; }
#t1:checked ~ .tabs-nav label[for="t1"],
#t2:checked ~ .tabs-nav label[for="t2"],
#t3:checked ~ .tabs-nav label[for="t3"],
#t4:checked ~ .tabs-nav label[for="t4"] {
    color: var(--color-primary);
}
#t1:checked ~ .tabs-nav label[for="t1"]::after,
#t2:checked ~ .tabs-nav label[for="t2"]::after,
#t3:checked ~ .tabs-nav label[for="t3"]::after,
#t4:checked ~ .tabs-nav label[for="t4"]::after {
    transform: scaleX(1);
}
#t1:checked ~ .tabs-content #p1,
#t2:checked ~ .tabs-content #p2,
#t3:checked ~ .tabs-content #p3,
#t4:checked ~ .tabs-content #p4 {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tab-title {
    margin-bottom: 16px;
}

/* Mission Page */
.story-team-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.story-image img {
    border-radius: var(--border-radius-main);
}
.image-caption {
    font-style: italic;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background: var(--color-background-light);
    padding: 24px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
    border-left: 5px solid var(--color-secondary);
}
@media (min-width: 992px) {
    .story-team-layout {
        grid-template-columns: 2fr 1fr;
        gap: 48px;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.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 #ddd;
    border-radius: var(--border-radius-btn);
    background-color: #fff;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-accent);
}
.contact-info-card {
    background: var(--color-background-light);
    padding: 32px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
}
.contact-info-card h3 {
    color: var(--color-primary);
}
.contact-info-card hr {
    border: 0;
    height: 1px;
    background-color: var(--color-accent);
    margin: 16px 0;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 60fr 40fr;
    }
}

/* Page Headers & Legal Content */
.page-header {
    text-align: center;
    padding-bottom: 0;
}
.page-title {
    margin-bottom: 16px;
}
.page-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-light);
}
.legal-content {
    max-width: 800px;
}
.legal-content h1, .legal-content h2 {
    margin-bottom: 24px;
}
.legal-content p, .legal-content li {
    margin-bottom: 16px;
}

/* Thank You Page */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thank-you-content {
    text-align: center;
    background-color: var(--color-background-light);
    padding: 48px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
}
.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}
.what-next {
    margin: 40px 0;
    padding: 24px;
    border-top: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--color-text) !important;
    color: #fff !important;
    padding: 48px 0 0 0;
    margin-top: 48px;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.site-footer a, .site-footer p {
    color: #EAECEE !important;
}
.site-footer a:hover {
    color: var(--color-secondary) !important;
}
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #fff !important;
}
.footer-about p {
    color: #BDC3C7 !important;
}
.footer-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff !important;
}
.footer-bottom {
    border-top: 1px solid #4D5656;
    text-align: center;
    padding: 20px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #BDC3C7 !important;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* 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(--color-background-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
.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: var(--border-radius-btn);
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--color-primary);
    color: #fff;
}
.cookie-btn-decline {
    background-color: #eee;
    color: var(--color-text-light);
}
@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; }
}