/* ==========================================================================
   WAPIM WORK PAGE V2 — CASE STUDIES & PROVEN SYSTEMS (work-v2.css)
   Executive Obsidian & Specular 24K Bullion Gold Editorial Design
   Purpose: Empirical Proof for Established Founders, Operators & CEOs
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WORK HERO SECTION
   -------------------------------------------------------------------------- */
.work-hero {
    position: relative;
    padding: calc(85px + 4rem) 0 5rem;
    background: radial-gradient(circle at 50% 15%, rgba(200, 153, 44, 0.09) 0%, rgba(2, 3, 5, 0.88) 75%);
    border-bottom: 1px solid rgba(200, 153, 44, 0.22);
    text-align: center;
}

.v2-breadcrumb-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    width: 100%;
}

.v2-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--w-text-muted);
    margin-bottom: 0;
    padding: 6px 16px;
    background: rgba(12, 15, 21, 0.85);
    border: 1px solid rgba(200, 153, 44, 0.2);
    border-radius: 999px;
}

.v2-breadcrumb a {
    color: var(--w-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.v2-breadcrumb a:hover {
    color: var(--w-gold-light);
}

.v2-breadcrumb span.sep {
    color: rgba(200, 153, 44, 0.4);
    font-size: 0.72rem;
}

.v2-breadcrumb span.current {
    color: var(--w-gold-light);
    font-weight: 700;
}

.work-hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 1.25rem auto 1.5rem;
    max-width: 980px;
}

.work-hero-desc {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--w-text-muted);
    max-width: 780px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.work-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.work-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.work-stat-item {
    background: rgba(10, 14, 21, 0.6);
    border: 1px solid rgba(200, 153, 44, 0.18);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.work-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.work-stat-val i,
.work-stat-val svg {
    color: var(--w-gold-light);
    font-size: 1rem;
}

.work-stat-lbl {
    font-size: 0.8rem;
    color: var(--w-text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .work-hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --------------------------------------------------------------------------
   2. FEATURED CASE STUDIES SECTION
   -------------------------------------------------------------------------- */
.work-featured-section {
    padding: 6.5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(200, 153, 44, 0.15);
}

.case-study-showcase {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3.5rem;
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.94) 0%, rgba(6, 8, 12, 0.98) 100%);
    border: 1px solid rgba(200, 153, 44, 0.28);
    border-radius: 14px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 245, 214, 0.12);
    margin-bottom: 4.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s var(--w-ease), box-shadow 0.35s var(--w-ease);
}

.case-study-showcase:hover {
    border-color: var(--w-border-gold-shine);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.95), 0 0 35px rgba(200, 153, 44, 0.2);
}

.case-study-showcase.reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.case-study-showcase.reverse .case-content {
    order: 2;
}

.case-study-showcase.reverse .case-visual {
    order: 1;
}

/* Case Study Content Elements */
.case-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-num {
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 9px;
    background: rgba(200, 153, 44, 0.14);
    border: 1px solid rgba(200, 153, 44, 0.32);
    border-radius: 4px;
    color: #FFD700;
}

.case-industry {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--w-gold-light);
}

.case-client-note {
    font-size: 0.72rem;
    color: var(--w-text-dim);
    font-style: italic;
    margin-left: auto;
}

.case-title {
    font-size: clamp(1.75rem, 2.7vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.22;
    color: #FFFFFF;
    margin: 0 0 1.25rem;
}

/* Problem Callout Box */
.case-problem-box {
    background: rgba(18, 12, 12, 0.75);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 3px solid #EF4444;
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.4rem;
}

.case-problem-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F87171;
    margin-bottom: 0.4rem;
}

.case-problem-text {
    font-size: 0.92rem;
    color: #E2E8F0;
    line-height: 1.55;
    margin: 0;
}

/* Solution Description */
.case-solution-block {
    margin-bottom: 1.4rem;
}

.case-solution-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--w-gold-light);
    margin-bottom: 0.4rem;
}

.case-solution-text {
    font-size: 0.94rem;
    color: var(--w-text-soft);
    line-height: 1.62;
    margin: 0;
}

/* Workflow Stepper / How It Works */
.case-workflow-box {
    background: rgba(8, 11, 16, 0.85);
    border: 1px solid rgba(200, 153, 44, 0.2);
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.4rem;
}

.case-workflow-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #CBD5E1;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-workflow-stepper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.step-node {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(200, 153, 44, 0.1);
    border: 1px solid rgba(200, 153, 44, 0.28);
    border-radius: 4px;
    color: #FFFFFF;
    white-space: nowrap;
}

.step-arrow {
    color: var(--w-gold-mid);
    font-size: 0.72rem;
}

/* Defensible Before / After Grid */
.case-shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.shift-col {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.shift-col.before {
    background: rgba(24, 14, 14, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.shift-col.after {
    background: rgba(10, 24, 18, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.shift-badge {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.shift-col.before .shift-badge {
    color: #F87171;
}

.shift-col.after .shift-badge {
    color: #34D399;
}

.shift-col p {
    margin: 0;
    color: #CBD5E1;
}

/* Technical Architecture Tags */
.case-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    align-items: center;
}

.case-tech-label {
    font-size: 0.74rem;
    color: var(--w-text-dim);
    margin-right: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-tag {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #94A3B8;
}

/* Case Visual Container (The Proof Hero) */
.case-visual {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #080B10;
    border: 1px solid rgba(200, 153, 44, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transition: transform 0.35s var(--w-ease);
}

.case-study-showcase:hover .case-visual {
    transform: scale(1.01);
}

.case-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.case-visual-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(7, 9, 13, 0.88);
    border: 1px solid var(--w-border-gold-shine);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.case-visual-badge .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

@media (max-width: 992px) {
    .case-study-showcase,
    .case-study-showcase.reverse {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.75rem;
        gap: 2.5rem;
    }
    .case-study-showcase.reverse .case-content {
        order: 1;
    }
    .case-study-showcase.reverse .case-visual {
        order: 2;
    }
}

@media (max-width: 640px) {
    .case-study-showcase,
    .case-study-showcase.reverse {
        padding: 1.5rem 1.1rem;
        gap: 1.75rem;
    }
    .case-shift-grid {
        grid-template-columns: 1fr;
    }
    .case-visual-badge {
        font-size: 0.68rem;
        padding: 4px 9px;
        top: 10px;
        left: 10px;
    }
}

/* --------------------------------------------------------------------------
   3. ADDITIONAL SYSTEM COMPACT SHOWCASE (System 04)
   -------------------------------------------------------------------------- */
.additional-system-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    background: rgba(10, 14, 22, 0.85);
    border: 1px solid rgba(200, 153, 44, 0.22);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.additional-system-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.additional-system-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.additional-system-info h3 {
    font-size: 1.55rem;
    color: #FFFFFF;
    font-weight: 800;
    margin: 0.5rem 0 0.85rem;
}

.additional-system-info p {
    font-size: 0.92rem;
    color: var(--w-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

@media (max-width: 860px) {
    .additional-system-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .additional-system-card {
        padding: 1.5rem 1.1rem;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   4. HOW AN OPERATIONAL BOTTLENECK BECOMES A SYSTEM (BLUEPRINT)
   -------------------------------------------------------------------------- */
.work-blueprint-section {
    padding: 6.5rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(200, 153, 44, 0.05) 0%, transparent 70%);
    border-bottom: 1px solid rgba(200, 153, 44, 0.15);
    text-align: center;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    text-align: left;
}

.blueprint-card {
    background: rgba(10, 14, 22, 0.8);
    border: 1px solid rgba(200, 153, 44, 0.2);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.25s var(--w-ease), border-color 0.25s var(--w-ease);
}

.blueprint-card:hover {
    transform: translateY(-4px);
    border-color: var(--w-border-gold-shine);
}

.blueprint-num {
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--w-gold-light);
    margin-bottom: 0.85rem;
}

.blueprint-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.blueprint-card p {
    font-size: 0.88rem;
    color: var(--w-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. BEFORE & AFTER: THE OPERATIONAL SHIFT MATRIX
   -------------------------------------------------------------------------- */
.work-matrix-section {
    padding: 6.5rem 0;
    border-bottom: 1px solid rgba(200, 153, 44, 0.15);
    text-align: center;
}

.matrix-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
    text-align: left;
}

.matrix-col {
    padding: 2.5rem;
    border-radius: 12px;
}

.matrix-col.bad {
    background: rgba(22, 10, 10, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.matrix-col.good {
    background: rgba(10, 20, 16, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.08);
}

.matrix-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.matrix-col.bad .matrix-col-header {
    color: #F87171;
}

.matrix-col.good .matrix-col-header {
    color: #34D399;
}

.matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.matrix-list li {
    font-size: 0.94rem;
    color: #E2E8F0;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.matrix-list li i,
.matrix-list li svg {
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.matrix-col.bad li i,
.matrix-col.bad li svg {
    color: #F87171;
}

.matrix-col.good li i,
.matrix-col.good li svg {
    color: #10B981;
}

@media (max-width: 768px) {
    .matrix-table {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   6. WORK FAQ SECTION
   -------------------------------------------------------------------------- */
.work-faq-section {
    padding: 6.5rem 0;
    border-bottom: 1px solid rgba(200, 153, 44, 0.15);
}

.faq-accordion {
    max-width: 860px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: rgba(12, 16, 24, 0.7);
    border: 1px solid rgba(200, 153, 44, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-card:hover {
    border-color: rgba(200, 153, 44, 0.4);
}

.faq-card details {
    width: 100%;
}

.faq-card summary {
    padding: 1.35rem 1.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary i,
.faq-card summary svg {
    color: var(--w-gold-light);
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.faq-card details[open] summary i,
.faq-card details[open] summary svg {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.65rem 1.5rem;
    font-size: 0.94rem;
    color: var(--w-text-muted);
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.15rem;
}

.faq-body p {
    margin: 0 0 0.85rem;
}

.faq-body p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. FINAL CONVERSION CTA SECTION
   -------------------------------------------------------------------------- */
.work-cta-section {
    padding: 8rem 0;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(200, 153, 44, 0.12) 0%, transparent 70%);
}

.work-cta-section h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.work-cta-section p {
    font-size: 1.22rem;
    color: var(--w-text-muted);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.65;
}

.work-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.work-cta-sla {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94A3B8;
}

.work-cta-sla i,
.work-cta-sla svg {
    color: #10B981;
}
