/* Palette: Dark Purple, Gold, Warm Sand, Dark Red */
:root {
    --primary-color: #2C1A3D;
    --secondary-color: #D4AF37;
    --accent-color: #8B0000;
    --bg-color: #FDFBF7;
    --text-color: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --footer-bg: #1A0F24;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 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;
    color: var(--text-light);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--primary-color);
    color: var(--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(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.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(--white);
    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(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.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(--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(--white);
    font-size: 1.2rem;
}

@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); }
}

/* V4 Unique: Hero Overlap */
.hero-overlap-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
}

.hero-overlap-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    box-shadow: -20px 20px 0 var(--secondary-color);
}

.hero-content-wrapper {
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .hero-overlap-container {
        grid-template-columns: 5fr 6fr;
    }
    .hero-content-wrapper {
        margin-left: -100px;
        position: relative;
        z-index: 2;
        padding: 60px;
    }
}

/* V4 Unique: Vertical Timeline */
.timeline-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
}

/* V4 Unique: Dark Split Section */
.dark-split-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-split-container {
    display: grid;
    grid-template-columns: 1fr;
}

.dark-split-text {
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.dark-split-text h2 {
    color: var(--secondary-color);
}

.dark-split-text p {
    color: #ddd;
}

.custom-list {
    list-style: none;
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.dark-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

@media (min-width: 992px) {
    .dark-split-container {
        grid-template-columns: 1fr 1fr;
    }
    .dark-split-text {
        padding: 100px 60px;
        margin: 0 0 0 auto;
    }
}

/* V4 Unique: Stats Bar */
.stats-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 576px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* V4 Unique: Masonry Testimonials */
.masonry-testimonials {
    padding: 80px 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.masonry-item {
    background-color: var(--white);
    padding: 40px;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-item {
    background-color: var(--primary-color);
    color: var(--white);
    border-top-color: var(--secondary-color);
}

.highlight-item .quote-text, .highlight-item .quote-author {
    color: var(--white);
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author {
    font-weight: bold;
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .highlight-item {
        grid-column: 1 / -1;
        text-align: center;
    }
}
@media (min-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .highlight-item {
        grid-column: auto;
        text-align: left;
    }
}

/* Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-banner p {
    color: #ddd;
    font-size: 1.2rem;
}

/* V4 Unique: Numbered Modules (Program) */
.numbered-modules-section {
    padding: 80px 0;
}

.numbered-module {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}

.module-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.2); /* Faded Gold */
    line-height: 0.8;
    text-align: center;
}

.module-content {
    background-color: var(--white);
    padding: 40px;
    border-left: 4px solid var(--primary-color);
}

@media (min-width: 768px) {
    .numbered-module {
        grid-template-columns: 1fr 3fr;
    }
    .reverse-module {
        grid-template-columns: 3fr 1fr;
    }
    .reverse-module .module-number {
        grid-column: 2;
        grid-row: 1;
    }
    .reverse-module .module-content {
        grid-column: 1;
        grid-row: 1;
        border-left: none;
        border-right: 4px solid var(--primary-color);
        text-align: right;
    }
}

/* Image Break Section */
.image-break-section {
    position: relative;
    height: 400px;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-break-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 26, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.image-break-overlay h3 {
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 800px;
}

/* V4 Unique: FAQ Grid */
.faq-grid-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.faq-card {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.faq-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.faq-card h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .faq-grid { grid-template-columns: 1fr 1fr; }
}

/* V4 Unique: Split Mission */
.split-mission-section {
    padding: 0;
}

.split-mission-container {
    display: grid;
    grid-template-columns: 1fr;
}

.split-mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.split-mission-content {
    padding: 60px 20px;
    background-color: var(--white);
}

.values-title {
    margin-top: 40px;
    color: var(--accent-color);
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--secondary-color);
}

@media (min-width: 992px) {
    .split-mission-container {
        grid-template-columns: 1fr 1fr;
    }
    .split-mission-content {
        padding: 80px 60px;
    }
}

/* Manifesto Block */
.manifesto-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.manifesto-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    border: 2px solid var(--secondary-color);
}

.manifesto-box h2 {
    color: var(--secondary-color);
}

.manifesto-text {
    color: var(--white);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

/* V4 Unique: Contact Layout */
.contact-layout-section {
    padding: 80px 0;
}

.center-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    background-color: var(--white);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.form-intro {
    margin-bottom: 30px;
}

.contact-form {
    text-align: left;
}

.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: 15px;
    border: 1px solid #ccc;
    background-color: var(--bg-color);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.contact-info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #ddd;
    margin-bottom: 5px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

@media (min-width: 576px) {
    .contact-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .contact-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Legal Pages */
.legal-section {
    padding: 80px 0;
    background-color: var(--white);
}

.legal-container {
    max-width: 800px;
}

.legal-container h1 {
    margin-bottom: 10px;
}

.legal-container h2 {
    margin-top: 40px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Thank You Page */
.thank-you-section {
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thank-container {
    max-width: 600px;
}

.thank-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.next-steps {
    background-color: var(--white);
    padding: 30px;
    margin: 40px 0;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.thank-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: #D4AF37 !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: #D4AF37 !important;
}

.footer-contact 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);
}

.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;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(0);
    transition: transform 0.4s ease;
    border-top: 2px solid var(--secondary-color);
}

#cookie-banner.hidden {
    transform: translateY(110%);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
    color: var(--white);
    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, .cookie-btn-decline {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.cookie-btn-accept {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

@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;
    }
}