/* 
  Palette Name: Warm Earth & Terracotta
  Colors: #8B3A3A (Burgundy), #D2691E (Terracotta), #FAF0E6 (Linen), #E9967A (Soft Peach), #333333 (Dark Grey)
*/

:root {
    --primary-color: #8B3A3A;
    --secondary-color: #D2691E;
    --bg-color: #FAF0E6;
    --bg-light: #FFFFFF;
    --accent-color: #E9967A;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, 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(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.italic { font-style: italic; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.w-100 { width: 100%; }

/* LAYOUT UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-color); }
.bg-accent { background-color: var(--primary-color); color: var(--white); }

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* HEADER (CRITICAL RULES) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white);
    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;
    color: var(--primary-color);
    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(--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 {
    color: var(--text-main);
    font-weight: 600;
}

.desktop-nav a:hover {
    color: var(--secondary-color);
}

.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(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    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 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(40, 15, 15, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #eee;
}

/* GRIDS */
.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.align-center {
    align-items: center;
}

@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
    .grid-2-col { grid-template-columns: 1fr 1fr; }
}

/* CARDS */
.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* SPLIT SECTION */
.split-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.split-content { flex: 1; }
.split-image { flex: 1; }

.shadow-img {
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--accent-color);
}

@media (min-width: 992px) {
    .split-wrapper { flex-direction: row; }
}

/* INSIGHTS / TESTIMONIALS */
.insight-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.insight-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.insight-author {
    font-weight: bold;
    color: var(--accent-color);
}

/* PAGE HEADER (INTERNAL PAGES) */
.page-header {
    padding: 80px 0 40px;
    background-color: var(--bg-color);
    border-bottom: 1px solid #e0d5c1;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* TIMELINE (PROGRAM) */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 4px solid var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* FAQ ACCORDION */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    background: var(--bg-color);
    color: var(--primary-color);
    list-style: none;
    position: relative;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

details[open] .faq-question::after { content: '-'; }

.faq-answer {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* MISSION STORY */
.float-img-right {
    float: right;
    width: 40%;
    margin: 0 0 20px 30px;
}

.clear-float { clear: both; }

@media (max-width: 768px) {
    .float-img-right {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

.value-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.value-title {
    color: var(--secondary-color);
}

/* CONTACT FORM */
.contact-split {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .contact-split { flex-direction: row; }
    .contact-form-wrapper { flex: 3; }
    .contact-info-wrapper { flex: 2; }
}

.custom-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-info-wrapper {
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 15px;
}

/* LEGAL PAGES */
.legal-content h2 {
    margin-top: 30px;
    font-size: 1.5rem;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

/* SUCCESS PAGE */
.success-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FOOTER (CRITICAL RULES) */
.site-footer {
    background-color: #2A1B1B !important;
    color: #FFFFFF !important;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-heading {
    color: #E9967A !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-desc, .footer-contact {
    color: #DDDDDD !important;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: #DDDDDD !important;
    text-decoration: none;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444444 !important;
    color: #AAAAAA !important;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 9999;
    padding: 18px 24px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 16px;
    transform: translateY(0); 
    transition: transform 0.4s ease;
    border-top: 3px solid var(--secondary-color);
}

#cookie-banner.hidden { 
    transform: translateY(110%); 
}

#cookie-banner p { 
    margin: 0; 
    flex: 1; 
    min-width: 200px; 
    font-size: 14px;
}

#cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-btns { 
    display: flex; 
    gap: 10px; 
    flex-shrink: 0; 
    flex-wrap: wrap; 
}

.cookie-btn-accept {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.cookie-btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
}

@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; }
}