/* Palette: Burgundy, Terracotta, Sand, Dark Charcoal */
:root {
    --color-primary: #8B2635;
    --color-secondary: #D96C06;
    --color-bg: #FDFBF7;
    --color-bg-light: #F4EFE6;
    --color-text: #2D2A26;
    --color-text-light: #5A554E;
    --color-white: #FFFFFF;
    
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--color-white); }

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-30 { margin-bottom: 30px; }

.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b85a05;
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header Layout (Strictly from prompt) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.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(--color-white);
}

.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;
    margin: 5px 0;
    background-color: var(--color-white);
    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(--color-white);
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--color-secondary);
}

.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(--color-primary);
}

.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(--color-white);
    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); }
}

/* Hero Fullscreen (Index) */
.hero-fullscreen {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 42, 38, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Header (Inner pages) */
.page-header {
    background-color: var(--color-bg-light);
    padding: 60px 0;
    border-bottom: 1px solid #e0dcd3;
}

/* Grids */
.grid-3-cols, .grid-4-cols, .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-2-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-3-cols { grid-template-columns: repeat(3, 1fr); }
    .grid-4-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4-cols { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.benefit-card, .value-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.benefit-card:hover, .value-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Split Section */
.split-wrapper, .story-layout, .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-wrapper, .story-layout { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 3fr 2fr; align-items: start; }
}

.rounded-img { border-radius: 8px; }
.shadow-img { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Stats */
.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Timeline (Program) */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%;
    width: 2px;
    background: var(--color-secondary);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 11px; top: 5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 4px solid var(--color-bg-light);
}

.timeline-content {
    background: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Accordion FAQ */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-white);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-title {
    padding: 20px;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.accordion-title::-webkit-details-marker { display: none; }

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

details[open] .accordion-title::after { content: '-'; }

.accordion-content {
    padding: 0 20px 20px;
}

/* Manifesto */
.manifesto-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.8;
    position: relative;
    padding: 0 40px;
}

/* Forms */
.custom-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.contact-info-wrapper {
    padding: 40px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h4 { margin-bottom: 5px; }

/* Legal Pages */
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

/* Success Page */
.success-icon {
    font-size: 5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.action-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer (Hardcoded colors for protection) */
.site-footer {
    background-color: #2D2A26 !important;
    color: #FFFFFF !important;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-logo {
    color: #FFFFFF !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.site-footer h4 {
    color: #D96C06 !important;
    margin-bottom: 20px;
}

.site-footer p, .site-footer li {
    color: #CCCCCC !important;
    margin-bottom: 10px;
}

.site-footer ul {
    list-style: none;
}

.site-footer a {
    color: #CCCCCC !important;
}

.site-footer a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444444 !important;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom 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: #1a1a1a;
    color: #fff;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 16px;
    transform: translateY(0); 
    transition: transform 0.4s ease;
}

#cookie-banner.hidden { 
    transform: translateY(110%); 
}

#cookie-banner p { 
    margin: 0; 
    flex: 1; 
    min-width: 200px; 
    color: #fff;
    font-size: 0.9rem;
}

#cookie-banner a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.cookie-btns { 
    display: flex; 
    gap: 10px; 
    flex-shrink: 0; 
    flex-wrap: wrap; 
}

.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-accept {
    background-color: var(--color-secondary);
    color: #fff;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #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; }
}