/* ============================================================
   YVOKE: Dark Theme Override (MBL-007)
   Unifies subpages with the Prototype E dark-green homepage.
   Loaded AFTER all other CSS in base.html.
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES: override the light palette
   ============================================================ */
:root {
    --yvoke-purple:       #820935;
    --yvoke-purple-light: #9B0F40;
    --yvoke-purple-pale:  rgba(130, 9, 53, 0.12);
    --yvoke-text:         #F4ECD9;
    --yvoke-text-mid:     rgba(244, 236, 217, 0.70);
    --yvoke-text-light:   rgba(244, 236, 217, 0.50);
    --yvoke-border:       rgba(244, 236, 217, 0.10);
    --yvoke-white:        #132B20;
    --yvoke-bg:           #172E23;
}


/* ============================================================
   BODY & GLOBAL
   ============================================================ */
body {
    background: #132B20;
    color: #F4ECD9;
}

a {
    color: #58A39D;
}

a:hover {
    color: #A46F4F;
}

::selection {
    background: rgba(130, 9, 53, 0.35);
    color: #F4ECD9;
}


/* ============================================================
   FILM GRAIN OVERLAY (matches homepage)
   ============================================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    color: #F4ECD9;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.yvoke-nav {
    background: rgba(19, 43, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.3);
}

.yvoke-nav-scrolled {
    background: rgba(19, 43, 32, 0.95);
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.4);
}

.yvoke-nav-logo img {
    filter: brightness(0) invert(1);
}

.yvoke-nav-links a {
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-nav-links a::after {
    background: #A46F4F;
}

.yvoke-nav-links a:hover {
    color: #F4ECD9;
}

.yvoke-nav-links .yvoke-nav-cta,
.yvoke-nav-cta {
    background: #820935;
    color: #F4ECD9 !important;
}

.yvoke-nav-cta:hover {
    background: #9B0F40;
    box-shadow: 0 4px 12px rgba(130, 9, 53, 0.35);
    color: #F4ECD9 !important;
}

/* Hamburger */
.yvoke-nav-toggle span {
    background: #F4ECD9;
}

/* Mobile nav */
.yvoke-nav-mobile {
    background: #132B20;
    border-bottom: 1px solid rgba(244, 236, 217, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.yvoke-nav-mobile a {
    color: rgba(244, 236, 217, 0.70);
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-nav-mobile a:hover {
    color: #F4ECD9;
}

.yvoke-nav-mobile .yvoke-nav-cta {
    background: #820935;
    color: #F4ECD9 !important;
}


/* ============================================================
   HERO (subpage heroes)
   ============================================================ */
.yvoke-hero {
    background: linear-gradient(135deg, #132B20 40%, #1C3628 100%);
    border-bottom: 1px solid rgba(244, 236, 217, 0.08);
}

.yvoke-hero-eyebrow {
    color: #58A39D;
}

.yvoke-hero-lead {
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-hero-quote {
    border-top-color: rgba(244, 236, 217, 0.10);
}

.yvoke-hero-quote blockquote {
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-hero-quote cite {
    color: rgba(244, 236, 217, 0.50);
}

/* Hero SVG nodes: change purple to teal/copper */
.yvoke-hero-svg line {
    stroke: #58A39D;
}

.yvoke-hero-svg circle {
    fill: #58A39D;
}

.yvoke-hero-svg circle[fill="none"] {
    fill: none;
    stroke: #58A39D;
}


/* ============================================================
   PAGE HEADER (non-home pages)
   ============================================================ */
.yvoke-page-header {
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-section-label {
    color: #58A39D;
}

.yvoke-page-lead {
    color: rgba(244, 236, 217, 0.70);
}


/* ============================================================
   ESSAY HEADER & BODY
   ============================================================ */
.yvoke-essay-header {
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-essay-lead {
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-breadcrumb {
    color: rgba(244, 236, 217, 0.50);
}

.yvoke-breadcrumb a {
    color: #58A39D;
}

.yvoke-essay-body p {
    color: rgba(244, 236, 217, 0.80);
}

.yvoke-essay-body h2,
.yvoke-essay-body h3 {
    color: #F4ECD9;
}

.yvoke-essay-body blockquote {
    background: rgba(130, 9, 53, 0.10);
    border-left-color: #A46F4F;
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-essay-body blockquote cite {
    color: rgba(244, 236, 217, 0.50);
}


/* ============================================================
   PULL QUOTE
   ============================================================ */
.yvoke-pull-quote {
    border-left-color: #A46F4F;
    background: rgba(164, 111, 79, 0.08);
}

.yvoke-pull-quote blockquote {
    color: rgba(244, 236, 217, 0.85);
    background: none;
    border: none;
}

.yvoke-pull-quote cite {
    color: rgba(244, 236, 217, 0.50);
}


/* ============================================================
   KEY RESULT CALLOUT
   ============================================================ */
.yvoke-key-result {
    background: rgba(88, 163, 157, 0.08);
    border-left-color: #58A39D;
}

.yvoke-key-result-label {
    color: #58A39D;
}

.yvoke-key-result-text {
    color: #F4ECD9;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.yvoke-btn {
    background: #820935;
    color: #F4ECD9;
}

.yvoke-btn:hover {
    background: #9B0F40;
    box-shadow: 0 4px 16px rgba(130, 9, 53, 0.35);
    color: #F4ECD9;
}

.yvoke-btn-white {
    background: #F4ECD9;
    color: #132B20;
}

.yvoke-btn-white:hover {
    background: #e8dfc9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
    color: #132B20;
}

.yvoke-btn-outline {
    color: #F4ECD9;
    border-color: rgba(244, 236, 217, 0.30);
}

.yvoke-btn-outline:hover {
    background: rgba(244, 236, 217, 0.10);
    color: #F4ECD9;
    border-color: rgba(244, 236, 217, 0.50);
}


/* ============================================================
   CASE STUDY CARDS
   ============================================================ */
.yvoke-cs-card {
    border-color: rgba(244, 236, 217, 0.08);
    background: #172E23;
    border-radius: 6px;
}

.yvoke-cs-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.yvoke-cs-card-image {
    background: #1C3628;
}

.yvoke-cs-card-content {
    background: #172E23;
}

.yvoke-cs-card-client {
    color: #58A39D;
}

.yvoke-cs-card-title a {
    color: #F4ECD9;
}

.yvoke-cs-card-title a:hover {
    color: #A46F4F;
}

.yvoke-cs-card-desc {
    color: rgba(244, 236, 217, 0.65);
}

.yvoke-cs-card-sector {
    color: rgba(244, 236, 217, 0.50);
    background: rgba(244, 236, 217, 0.06);
}

/* Case study detail hero */
.yvoke-case-meta {
    border-top-color: rgba(244, 236, 217, 0.10);
    border-bottom-color: rgba(244, 236, 217, 0.10);
}

.yvoke-case-meta-item strong {
    color: rgba(244, 236, 217, 0.50);
}


/* ============================================================
   QUOTE CARDS / STRIP
   ============================================================ */
.yvoke-quotes-strip {
    background: #172E23;
    border-top-color: rgba(244, 236, 217, 0.08);
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-quote-card {
    border-left-color: #A46F4F;
    background: #1C3628;
}

.yvoke-quote-card blockquote {
    color: rgba(244, 236, 217, 0.80);
}

.yvoke-quote-card cite {
    color: rgba(244, 236, 217, 0.50);
}


/* ============================================================
   ESSAY LIST
   ============================================================ */
.yvoke-essay-item {
    border-bottom-color: rgba(244, 236, 217, 0.08);
    color: #F4ECD9;
}

.yvoke-essay-item:first-child {
    border-top-color: rgba(244, 236, 217, 0.08);
}

.yvoke-essay-item:hover {
    color: #F4ECD9;
}

.yvoke-essay-item:hover .yvoke-essay-item-title {
    color: #A46F4F;
}

.yvoke-essay-num {
    color: rgba(244, 236, 217, 0.40);
}

.yvoke-essay-item-title {
    color: #F4ECD9;
}

.yvoke-essay-item-desc {
    color: rgba(244, 236, 217, 0.60);
}


/* ============================================================
   SERVICES GRID
   ============================================================ */
.yvoke-service-card {
    border-color: rgba(244, 236, 217, 0.08);
    background: #172E23;
}

.yvoke-service-card:hover {
    border-color: #A46F4F;
}

.yvoke-service-card h3 {
    color: #58A39D;
}

.yvoke-service-card p {
    color: rgba(244, 236, 217, 0.70);
}


/* ============================================================
   PRINCIPLES LIST
   ============================================================ */
.yvoke-principles-list li {
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-principles-list li:first-child {
    border-top-color: rgba(244, 236, 217, 0.08);
}

.yvoke-principles-list li::before {
    color: #58A39D;
}

.yvoke-principle-title {
    color: #F4ECD9;
}

.yvoke-principle-desc {
    color: rgba(244, 236, 217, 0.70);
}


/* ============================================================
   CONTACT CARD
   ============================================================ */
.yvoke-contact-card {
    border-color: rgba(244, 236, 217, 0.10);
    background: #172E23;
}

.yvoke-contact-card h3 {
    color: #F4ECD9;
}

.yvoke-contact-card p {
    color: rgba(244, 236, 217, 0.70);
}

.yvoke-contact-card a {
    color: #58A39D;
}


/* ============================================================
   CTA STRIP
   ============================================================ */
.yvoke-cta-strip {
    background: linear-gradient(135deg, #0E1F17 0%, #820935 100%);
}

.yvoke-cta-strip h2 {
    color: #F4ECD9;
}

.yvoke-cta-strip p {
    color: rgba(244, 236, 217, 0.75);
}


/* ============================================================
   HERITAGE STRIP
   ============================================================ */
.yvoke-heritage-strip {
    background: #172E23;
}

.yvoke-heritage-strip p {
    color: rgba(244, 236, 217, 0.70);
}


/* ============================================================
   HOME INTRO
   ============================================================ */
.yvoke-home-intro {
    border-bottom-color: rgba(244, 236, 217, 0.08);
}

.yvoke-home-intro p {
    color: rgba(244, 236, 217, 0.70);
}


/* ============================================================
   SECTION BORDERS
   ============================================================ */
.yvoke-section-bordered {
    border-bottom-color: rgba(244, 236, 217, 0.08);
}


/* ============================================================
   FOOTER
   ============================================================ */
.yvoke-footer {
    background: #132B20;
    border-top: 1px solid rgba(244, 236, 217, 0.05);
}

.yvoke-footer-tagline {
    color: rgba(244, 236, 217, 0.45);
}

.yvoke-footer-nav a {
    color: rgba(244, 236, 217, 0.55);
}

.yvoke-footer-nav a:hover {
    color: #F4ECD9;
}

.yvoke-footer-bottom {
    border-top-color: rgba(244, 236, 217, 0.08);
}

.yvoke-footer-copy {
    color: rgba(244, 236, 217, 0.30);
}


/* ============================================================
   RICH TEXT CONTENT (Wagtail StreamField)
   ============================================================ */
.yvoke-essay-body a,
.yvoke-container a:not(.yvoke-btn):not(.yvoke-btn-white):not(.yvoke-btn-outline):not(.yvoke-nav-cta) {
    color: #58A39D;
}

.yvoke-essay-body a:hover,
.yvoke-container a:not(.yvoke-btn):not(.yvoke-btn-white):not(.yvoke-btn-outline):not(.yvoke-nav-cta):hover {
    color: #A46F4F;
}

/* Lists inside content */
.yvoke-essay-body ul,
.yvoke-essay-body ol {
    color: rgba(244, 236, 217, 0.80);
}

/* Horizontal rules */
.yvoke-essay-body hr {
    border-color: rgba(244, 236, 217, 0.10);
}

/* Tables if any */
.yvoke-essay-body table {
    border-color: rgba(244, 236, 217, 0.10);
}

.yvoke-essay-body th {
    background: #1C3628;
    color: #F4ECD9;
    border-color: rgba(244, 236, 217, 0.10);
}

.yvoke-essay-body td {
    color: rgba(244, 236, 217, 0.80);
    border-color: rgba(244, 236, 217, 0.10);
}


/* ============================================================
   OVERFLOW FIX (matches homepage)
   ============================================================ */
html, body, main {
    max-width: 100vw;
    overflow-x: hidden;
}


/* ============================================================
   PRINT: reset dark theme for printing
   ============================================================ */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    body::after {
        display: none;
    }

    h1, h2, h3, h4 {
        color: #000;
    }

    a {
        color: #000;
    }

    .yvoke-nav, .yvoke-footer {
        display: none !important;
    }
}
