/* 
   Palette Name: Earthy Warm (Terracotta & Sand)
   Colors: #C85A17 (Terracotta), #F4EBD0 (Sand), #3E2723 (Dark Brown), #FFB74D (Soft Orange)
   NO BLUE, NO GREEN.
*/

:root {
    --primary-color: #C85A17; /* Terracotta */
    --secondary-color: #FFB74D; /* Soft Orange */
    --dark-bg: #3E2723; /* Dark Brown */
    --light-bg: #F4EBD0; /* Sand */
    --text-dark: #2D1B15;
    --text-light: #FFFFFF;
    --white: #FFFFFF;
    --gray-light: #EFEBE4;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

.paragraph-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4A3B32;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--dark-bg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ================= HEADER (STRICT TEMPLATE) ================= */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.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(--secondary-color);
}

.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(--text-light);
    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: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(--dark-bg);
}

.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);
}

@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); }
}

/* ================= UNIQUE V3 COMPONENTS ================= */

/* Hero Floating Card (Index) */
.hero-floating {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70%;
    background-size: cover;
    background-position: center;
}

.hero-card-wrapper {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 0 20px 40px 20px;
    display: flex;
    justify-content: center;
}

.hero-floating-card {
    background-color: var(--white);
    padding: 50px;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.1);
    border-top: 5px solid var(--primary-color);
}

.badge {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Asymmetric Split (Index) */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
}

.split-image-wrapper {
    position: relative;
}

.split-image {
    border-radius: 0 100px 0 100px;
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: -20px; right: -20px; bottom: 20px; left: 20px;
    background-color: var(--secondary-color);
    border-radius: 0 100px 0 100px;
    z-index: 1;
}

/* Masonry Grid (Index) */
.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-large {
        grid-row: span 2;
    }
    .card-wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.masonry-card {
    background-color: var(--white);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.masonry-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-bg);
    -webkit-text-stroke: 1px var(--primary-color);
    margin-bottom: 15px;
}

/* Stats Circular (Index) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border: 8px solid var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Horizontal Scroll Feedback (Index) */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--light-bg);
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

.feedback-card {
    min-width: 300px;
    max-width: 400px;
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.feedback-text {
    font-style: italic;
    margin-bottom: 20px;
}

.feedback-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Minimal Hero (Program) */
.minimal-hero {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--gray-light);
}

.hero-title-dark {
    color: var(--dark-bg);
}

/* Image Banner */
.image-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Numbered Modules (Program) */
.module-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    position: relative;
    padding: 40px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .module-row {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .module-row.reverse {
        flex-direction: row-reverse;
    }
}

.module-number-bg {
    font-size: 8rem;
    font-weight: 900;
    color: var(--light-bg);
    line-height: 1;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .module-number-bg {
        margin-bottom: 0;
        width: 30%;
        text-align: center;
    }
}

.module-content {
    flex: 1;
}

/* Custom Accordion (Program) */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.custom-accordion {
    background-color: var(--white);
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
}

.custom-accordion summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-accordion summary::-webkit-details-marker {
    display: none;
}

.custom-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.custom-accordion[open] summary::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px 20px 20px;
    color: #555;
}

/* Split CTA (Program) */
.split-cta {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

@media (min-width: 768px) {
    .split-cta { grid-template-columns: 1fr 1fr; }
}

.cta-text-side {
    padding: 60px 40px;
    background-color: var(--primary-color);
}

.cta-text-side h2 { color: var(--text-light); }

.cta-action-side {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-action-side .btn-secondary {
    border-color: var(--text-light);
    color: var(--text-light);
}

.cta-action-side .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

/* Diagonal Hero (Mission) */
.diagonal-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 60vh;
}

@media (min-width: 768px) {
    .diagonal-hero { grid-template-columns: 1fr 1fr; }
}

.diagonal-content {
    padding: 60px 40px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagonal-content h1 { color: var(--secondary-color); }

.diagonal-image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
    .diagonal-image {
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
        margin-left: -12%;
        margin-top: -1px;
    }

    .diagonal-content p {
        max-width: 90%;
    }
}

/* Vertical Storytelling (Mission) */
.story-block {
    margin-bottom: 60px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
}

.reverse-story {
    margin-left: auto;
    border-left: none;
    border-right: 4px solid var(--secondary-color);
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
}

/* Circle Grid Values (Mission) */
.circle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 600px) { .circle-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .circle-grid { grid-template-columns: repeat(4, 1fr); } }

.circle-shape {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Manifesto (Mission) */
.manifesto-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    border-top: 2px solid var(--gray-light);
    border-bottom: 2px solid var(--gray-light);
    padding: 40px 0;
}

/* Contact Layout V3 */
.contact-grid-v3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .contact-grid-v3 { grid-template-columns: 0.4fr 0.6fr; }
}

.contact-info-card {
    padding: 50px 40px;
}

.dark-card {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dark-card h3 { color: var(--secondary-color); }

.light-card {
    background-color: var(--white);
    padding: 50px 40px;
}

.info-item { margin-bottom: 20px; }
.info-label { font-weight: bold; color: var(--secondary-color); display: block; margin-bottom: 5px; }
.mt-custom { margin-top: 40px; }
.text-link { color: var(--secondary-color); text-decoration: underline; }

/* Form */
.custom-form .form-group { margin-bottom: 20px; }
.custom-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.full-width { width: 100%; }

/* Legal Pages */
.legal-container { max-width: 800px; }
.last-updated { color: #777; margin-bottom: 30px; font-style: italic; }
.legal-content h2 { margin-top: 30px; font-size: 1.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; }

/* Thank You Page */
.thank-you-card {
    background: var(--light-bg);
    padding: 60px 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.thank-you-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ================= FOOTER (STRICT TEMPLATE) ================= */
.site-footer {
    background-color: #2D1B15 !important;
    color: #FFFFFF !important;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-logo {
    font-size: 24px;
    color: #FFB74D !important;
    margin-bottom: 15px;
}

.footer-desc {
    color: #EFEBE4 !important;
    font-size: 0.9rem;
}

.footer-title {
    color: #FFFFFF !important;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: #EFEBE4 !important;
    text-decoration: none;
}

.footer-links a:hover { color: #FFB74D !important; }

.footer-contact-info {
    color: #EFEBE4 !important;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact-info a {
    color: #FFB74D !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #EFEBE4 !important;
    font-size: 0.85rem;
}

/* ================= COOKIE BANNER ================= */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    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(--primary-color);
}
#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(--secondary-color); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
    background-color: var(--primary-color); color: var(--text-light);
    border: none; padding: 8px 16px; cursor: pointer; border-radius: 4px; font-weight: bold;
}
.cookie-btn-decline {
    background-color: transparent; color: var(--text-light);
    border: 1px solid var(--text-light); padding: 8px 16px; 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; }
}