/* 
   Palette Version 7: Warm Sunset / Earthy Terracotta & Deep Burgundy
   NO BLUE, NO GREEN.
*/
:root {
    --primary-color: #5C1A1B; /* Deep Burgundy */
    --secondary-color: #D96C4A; /* Warm Terracotta */
    --accent-color: #E89A7E; /* Soft Peach/Coral */
    --bg-light: #FCEEE9; /* Very light peach background */
    --text-dark: #2D2D2D; /* Charcoal */
    --text-light: #FFFFFF;
    --footer-bg: #3A1011; /* Darker Burgundy */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 15px; font-size: 1.05rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit-full {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.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 Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--primary-color);
    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(--text-light);
}

.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 {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-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(--primary-color);
}

.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(--text-light);
    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); }
}

/* UNIQUE LAYOUTS FOR VERSION 7 */

/* 1. Diagonal Hero */
.hero-diagonal {
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
    padding: 60px 20px;
}

.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-text-area {
    flex: 1;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-image-area {
    flex: 1;
    width: 100%;
}

.hero-img-clip {
    width: 100%;
    height: 400px;
    object-fit: cover;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    box-shadow: 0 20px 40px rgba(92, 26, 27, 0.2);
}

@media (min-width: 992px) {
    .hero-diagonal { padding: 100px 20px; }
    .hero-content-wrapper { flex-direction: row; }
    .hero-img-clip { height: 600px; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
}

/* 2. Overlapping Cards */
.overlap-intro {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.overlap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.overlap-card {
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dark-card { background-color: var(--primary-color); color: var(--text-light); }
.dark-card h3 { color: var(--accent-color); }
.light-card { background-color: #FFFFFF; }
.accent-card { background-color: var(--secondary-color); color: var(--text-light); }
.accent-card h3 { color: var(--bg-light); }

@media (min-width: 768px) {
    .overlap-grid { grid-template-columns: repeat(3, 1fr); }
    .overlap-card { transform: translateY(0); transition: transform 0.3s; }
    .overlap-card:nth-child(2) { transform: translateY(-30px); }
}

/* 3. Masonry Benefits */
.masonry-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.section-heading-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.masonry-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.masonry-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: bold;
    color: rgba(217, 108, 74, 0.1);
    line-height: 1;
}

.masonry-content { position: relative; z-index: 2; }

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .tall-item { grid-row: span 2; }
}

/* 4. Floating Split */
.floating-split {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.split-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.split-image-box {
    position: relative;
    width: 100%;
}

.floating-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.floating-stat {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    border-radius: 10px;
    max-width: 200px;
    box-shadow: 0 10px 20px rgba(92, 26, 27, 0.3);
}

.stat-num { display: block; font-size: 3rem; font-weight: bold; line-height: 1; color: var(--accent-color); }
.stat-text { font-size: 0.9rem; }

.custom-list {
    list-style: none;
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (min-width: 992px) {
    .split-wrapper { flex-direction: row; }
    .split-image-box { flex: 1; }
    .split-text-box { flex: 1; padding-left: 40px; }
    .floating-stat { right: -30px; }
}

/* 5. Horizontal Scroll Snap */
.scroll-snap-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-heading-left {
    margin-bottom: 40px;
}

.section-heading-left h2 { color: var(--accent-color); }

.snap-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--primary-color);
}

.snap-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background-color: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.quote-text { font-size: 1.2rem; font-style: italic; margin-bottom: 20px; }
.quote-author { font-weight: bold; color: var(--accent-color); }

@media (min-width: 768px) {
    .snap-card { flex: 0 0 400px; }
}

/* 6. Zigzag Modules (Program Page) */
.page-header-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 60px;
}

.page-header-dark h1 { color: var(--bg-light); }
.subtitle-large { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

.zigzag-modules {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.zigzag-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.zigzag-image { flex: 1; width: 100%; }
.zigzag-image img { width: 100%; border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.zigzag-text { flex: 1; }

.module-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .zigzag-row { flex-direction: row; }
    .reverse-row { flex-direction: row-reverse; }
    .zigzag-text { padding: 0 40px; }
}

/* 7. Circular Stats */
.circular-stats-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.stats-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.stat-circle-item {
    text-align: center;
    max-width: 300px;
}

.circle-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) 75%, #E0E0E0 0);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circle-num { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); line-height: 1; }
.circle-unit { font-size: 1rem; color: var(--text-dark); }

@media (min-width: 768px) {
    .stats-flex { flex-direction: row; justify-content: space-around; }
}

/* 8. CTA Sidebar Layout */
.cta-sidebar-layout {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.cta-sidebar-box {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--secondary-color);
    text-align: center;
}

@media (min-width: 992px) {
    .cta-grid { grid-template-columns: 2fr 1fr; }
}

/* 9. Vertical Timeline (Mission Page) */
.hero-image-overlay {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.overlay-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-image-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(92, 26, 27, 0.8);
    z-index: 2;
}

.overlay-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.overlay-content h1 { color: var(--text-light); }

.timeline-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.vertical-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 20px;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-date {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .vertical-timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 40px; text-align: right; }
    .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 40px; padding-right: 0; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-dot { right: -10px; left: auto; }
    .timeline-item:nth-child(even) .timeline-dot { left: -10px; }
}

/* 10. Values Grid */
.values-grid-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.values-header { text-align: center; margin-bottom: 50px; }

.values-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.value-card-box {
    background-color: #FFFFFF;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-card-box:hover { transform: translateY(-10px); }

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .values-cards-container { grid-template-columns: repeat(3, 1fr); }
}

/* 11. Contact Form Layout */
.contact-hero {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact-hero h1 { color: var(--bg-light); }

.contact-main-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.form-wrapper-centered {
    max-width: 800px;
    margin: 0 auto 60px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-header { text-align: center; margin-bottom: 30px; }

.custom-form .form-group { margin-bottom: 20px; }
.custom-form label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--primary-color); }
.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 1rem;
}
.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}
.btn-submit-full {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 1.1rem;
}
.btn-submit-full:hover { background-color: var(--primary-color); }

.contact-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.info-card h3 { color: var(--accent-color); margin-bottom: 15px; }

@media (min-width: 768px) {
    .contact-cards-row { grid-template-columns: repeat(3, 1fr); }
}

/* Legal Pages & Thank You */
.legal-section { padding: 80px 0; background-color: #FFFFFF; }
.legal-container { max-width: 800px; }
.legal-content h3 { margin-top: 30px; }
.legal-content ul { margin-left: 20px; margin-bottom: 15px; }

.thank-you-section { padding: 100px 0; background-color: var(--bg-light); min-height: 60vh; display: flex; align-items: center; }
.thank-you-box { max-width: 600px; margin: 0 auto; background: #FFF; padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.check-icon { font-size: 60px; color: var(--secondary-color); margin-bottom: 20px; }
.next-steps { margin-top: 40px; padding-top: 30px; border-top: 1px solid #EEE; }
.thank-links { display: flex; gap: 15px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Footer (Strict Rules) */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: #FFFFFF !important;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF !important;
    display: block;
    margin-bottom: 15px;
}

.footer-desc { color: #CCCCCC !important; }

.site-footer h4 {
    color: #FFFFFF !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #CCCCCC !important; transition: color 0.3s; }
.site-footer a:hover { color: var(--accent-color) !important; }
.site-footer p { color: #CCCCCC !important; margin-bottom: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p { color: #999999 !important; font-size: 0.9rem; }

@media (min-width: 768px) {
    .footer-container { 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;
    background-color: #2D2D2D;
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; color: #FFF; }
#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, .cookie-btn-decline {
    padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold;
}
.cookie-btn-accept { background-color: var(--secondary-color); 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; }
}