/*
  Color Palette: Terracotta Earth Tones
  - Dark Brown/Charcoal (Text): #3D2C2E
  - Warm Beige (Background): #F5EFE6
  - Terracotta/Orange (Primary Accent): #E87A5D
  - Muted Green (Secondary Accent): #7A9E7E
*/

:root {
    --color-text: #3D2C2E;
    --color-background: #F5EFE6;
    --color-primary: #E87A5D;
    --color-secondary: #7A9E7E;
    --color-light-gray: #e0d8cd;
    --color-white: #FFFFFF;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-heading: 'Georgia', serif;
    --header-height: 80px;
}

/* --- GLOBAL RESETS & TYPOGRAPHY --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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;
}

/* --- LAYOUT & CONTAINERS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 10px auto 0;
}

.section-intro {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 40px;
    color: #5c4b4e;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 15px 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text);
}

.navigation ul {
    display: none; /* Hidden on mobile by default */
    list-style: none;
}

.navigation a {
    color: var(--color-text);
    padding: 10px 15px;
    font-weight: 600;
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: calc(100% - 30px);
}

.hidden-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-light-gray);
}

#menu-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
}

#menu-toggle:checked ~ .hamburger .line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
#menu-toggle:checked ~ .hamburger .line:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked ~ .hamburger .line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger, .mobile-nav {
        display: none;
    }
    .navigation ul {
        display: flex;
        gap: 10px;
    }
    .header-container {
        padding: 0 20px;
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #d66a4f;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* --- HERO SECTION (INDEX) --- */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    color: var(--color-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 44, 46, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- PILLARS SECTION (INDEX) --- */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.pillar-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

@media (min-width: 576px) {
    .pillars-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- SPLIT SECTION (INDEX) --- */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.split-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .split-container { grid-template-columns: 1fr 1fr; }
    .split-container > .split-image { order: -1; }
}

/* --- TESTIMONIALS SECTION (INDEX) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: transparent;
    border: 2px solid var(--color-light-gray);
    padding: 30px;
    border-radius: 8px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- ACCORDION (PROGRAM) --- */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: var(--color-white);
}
.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    list-style: none; /* remove marker */
}
.accordion-header::-webkit-details-marker { display: none; }
.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;
}
.inline-image {
    width: 100%;
    max-width: 300px;
    float: right;
    margin: 0 0 15px 15px;
    border-radius: 5px;
}

/* --- MISSION PAGE --- */
.mission-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.mission-image img {
    border-radius: 10px;
}
@media (min-width: 768px) {
    .mission-container { grid-template-columns: 2fr 1fr; }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    background-color: var(--color-white);
    padding: 30px;
    border-left: 5px solid var(--color-secondary);
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.manifesto-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    padding-left: 30px;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}
.section-title-small {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.info-item {
    margin-bottom: 20px;
}
.info-item h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
}
.contact-form {
    max-width: 800px;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- LEGAL & THANK YOU PAGES --- */
.page-header {
    background-color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}
.legal-content h2 {
    margin-top: 30px;
}
.legal-content ul {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.thank-you-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}
.next-steps {
    margin-top: 40px;
    border-top: 1px solid var(--color-light-gray);
    padding-top: 30px;
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #3D2C2E !important;
    color: #F5EFE6 !important;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h3, .footer-column p, .footer-column a {
    color: #F5EFE6 !important;
}
.footer-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #5c4b4e;
    padding-top: 20px;
    font-size: 0.9rem;
}
@media (min-width: 576px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .footer-grid { 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-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
.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(--color-secondary);
    color: var(--color-white);
}
.cookie-btn-decline {
    background-color: var(--color-light-gray);
    color: var(--color-text);
}
@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; }
}