/* 
   COLOR PALETTE: Earthy Terracotta & Sage
   Primary: #C05A3E (Terracotta)
   Secondary: #7A8B76 (Sage Green)
   Background: #F9F6F0 (Warm Sand)
   Text: #2C2A29 (Deep Brown)
*/

:root {
    --primary: #C05A3E;
    --primary-hover: #A04A32;
    --secondary: #7A8B76;
    --bg-color: #F9F6F0;
    --bg-light: #FFFFFF;
    --text-main: #2C2A29;
    --text-muted: #5A5755;
    --footer-bg: #2C2A29;
    --footer-text: #F9F6F0;
    --border-color: #E2DCD0;
    
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.center-text { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { color: var(--text-main); margin-bottom: 16px; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 16px; color: var(--text-muted); font-size: 1.05rem; }

/* BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-secondary:hover { background-color: var(--primary); color: #fff; }
.btn-full { width: 100%; }

/* HEADER & NAVIGATION (STRICT TEMPLATE) */
.site-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 10px; /* STRICT MOBILE PADDING */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.desktop-nav .nav-list {
    display: flex;
    gap: 30px;
}
.desktop-nav a {
    font-weight: 600;
    color: var(--text-main);
}
.desktop-nav a:hover { color: var(--primary); }

/* BURGER MENU */
.menu-checkbox { display: none; }
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger .line {
    width: 25px; height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 15px; }
.mobile-nav a { display: block; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border-color); }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    #menu-toggle:checked ~ .mobile-nav { display: block; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* HERO V5 (ASYMMETRICAL CLIP-PATH) */
.hero-v5 {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
    background-color: var(--bg-light);
}
.hero-content-wrapper {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: #fff;
}
.hero-text-box { max-width: 500px; }
.hero-text-box h1, .hero-text-box p { color: #fff; }
.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-image-wrapper {
    position: relative;
    height: 400px;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.floating-stats {
    position: absolute;
    bottom: 30px; left: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

@media (min-width: 992px) {
    .hero-v5 { grid-template-columns: 1.2fr 1fr; }
    .hero-content-wrapper {
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
        padding-right: 100px;
    }
    .hero-image-wrapper { height: auto; }
    .floating-stats { bottom: 50px; left: -50px; }
}

/* MASONRY GRID */
.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.masonry-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
@media (min-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .card-large { grid-column: span 2; }
}

/* ORGANIC SPLIT (SHAPE-OUTSIDE) */
.organic-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.shape-wrap-img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    margin: 0 auto 30px;
}
@media (min-width: 768px) {
    .shape-wrap-img {
        float: right;
        shape-outside: circle(50%);
        margin: 0 0 20px 40px;
    }
}

/* HORIZONTAL SCROLL TESTIMONIALS */
.scroll-snap-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    margin-top: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border-color);
}
.snap-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    position: relative;
}
.quote-icon {
    font-size: 4rem;
    color: var(--border-color);
    position: absolute;
    top: 10px; left: 20px;
    line-height: 1;
    font-family: serif;
}
.quote-text { position: relative; z-index: 2; font-style: italic; }
.quote-author { font-weight: 700; margin-top: 20px; color: var(--primary); }
@media (min-width: 768px) {
    .snap-card { flex: 0 0 400px; }
}

/* ZIGZAG TIMELINE (PROGRAM) */
.page-header { padding: 60px 20px; background: var(--secondary); color: #fff; }
.page-header h1, .page-header p { color: #fff; }
.zigzag-timeline {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}
.zigzag-timeline::before {
    content: '';
    position: absolute;
    left: 20px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 50px;
    position: relative;
}
.timeline-visual {
    position: absolute;
    left: 0; top: 0;
}
.circle-indicator {
    width: 40px; height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    z-index: 2;
}
.module-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block; margin-bottom: 10px;
}
@media (min-width: 768px) {
    .zigzag-timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item {
        flex-direction: row;
        align-items: center;
        padding-left: 0;
        width: 100%;
    }
    .timeline-item:nth-child(odd) .timeline-content { width: 45%; padding-right: 40px; text-align: right; }
    .timeline-item:nth-child(odd) .timeline-visual { left: 50%; transform: translateX(-50%); }
    .timeline-item:nth-child(even) { flex-direction: row-reverse; }
    .timeline-item:nth-child(even) .timeline-content { width: 45%; padding-left: 40px; }
    .timeline-item:nth-child(even) .timeline-visual { left: 50%; transform: translateX(-50%); }
}

/* PARALLAX STATS */
.parallax-stats {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}
.parallax-overlay {
    background: rgba(44, 42, 41, 0.85);
    padding: 80px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}
.stat-num { font-size: 3.5rem; font-weight: 800; color: var(--primary); }
.stat-text { color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ GRID */
.faq-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 900px; margin: 40px auto 0;
}
.faq-card {
    background: #fff; padding: 25px; border-radius: 8px; border-left: 4px solid var(--secondary);
}
@media (min-width: 768px) { .faq-grid { grid-template-columns: 1fr 1fr; } }

/* MISSION HERO & MULTI-COLUMN */
.mission-hero { position: relative; padding: 100px 0; color: #fff; text-align: center; }
.mission-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.4); z-index: -1;
}
.mission-hero-content { max-width: 800px; margin: 0 auto; }
.mission-hero h1, .mission-hero p { color: #fff; }
.multi-column-text { column-count: 1; column-gap: 40px; }
@media (min-width: 768px) { .multi-column-text { column-count: 2; } }

/* MANIFESTO GRID */
.manifesto-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px;
}
.manifesto-card {
    background: #fff; padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 8px 8px 0 var(--primary);
    transition: transform 0.3s ease;
}
.manifesto-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--primary); }
.card-number {
    font-size: 3rem; font-weight: 800; color: var(--bg-color);
    position: absolute; top: 10px; right: 20px; line-height: 1;
}
@media (min-width: 768px) { .manifesto-grid { grid-template-columns: repeat(2, 1fr); } }

/* CONTACT FORM & LAYOUT */
.contact-layout {
    display: grid; grid-template-columns: 1fr; gap: 50px; margin-top: 40px;
}
.info-list li { margin-bottom: 20px; }
.custom-form {
    background: var(--bg-light); padding: 40px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 800px; margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px;
    border: 1px solid var(--border-color); border-radius: 4px;
    font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1.5fr; } }

/* LEGAL PAGES */
.legal-container { max-width: 800px; }
.last-updated { font-style: italic; margin-bottom: 30px; }
.legal-content h2 { margin-top: 40px; font-size: 1.5rem; }

/* THANK YOU PAGE */
.thank-you-box {
    max-width: 600px; margin: 0 auto; background: var(--bg-light);
    padding: 50px; border-radius: 12px; text-align: center;
}
.action-links { display: flex; gap: 15px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* FOOTER (STRICT PROTECTION) */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 60px 0 20px;
}
.site-footer h4, .site-footer p, .site-footer a { color: var(--footer-text) !important; }
.footer-grid {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 1fr; gap: 40px;
}
.footer-brand .logo { color: var(--primary) !important; }
.footer-links ul, .footer-legal ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-bottom {
    max-width: var(--container-width); margin: 40px auto 0; padding: 20px;
    text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}
@media (min-width: 768px) { .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;
    background-color: var(--bg-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--primary); text-decoration: underline; }
.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: 4px; cursor: pointer; font-weight: 600;
}
.cookie-btn-accept { background-color: var(--primary); color: #fff; }
.cookie-btn-decline { background-color: #ddd; color: #333; }
@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; }
}