/* ============================================================
   Case Study Page  —  css/case-study.css
   Design tokens match service-page.css / chain-of-custody.css
   Prefix: cs-
   Colors: teal #079393, brown #7a4010, orange #e8952a, dark #1c2b2b
   ============================================================ */

/* ============================================================
   Hero Section
   ============================================================ */
#csHeroSection {
    position: relative;
    background: #1c2b2b;
    padding: 90px 0 80px;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cs-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12, 25, 25, 0.90) 0%,
        rgba(12, 25, 25, 0.75) 55%,
        rgba(12, 25, 25, 0.30) 100%
    );
    z-index: 1;
}

#csHeroSection .container {
    position: relative;
    z-index: 2;
}

.cs-hero-content {
    padding-right: 20px;
}

.cs-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e8952a;
    background: rgba(232, 149, 42, 0.15);
    border: 1px solid rgba(232, 149, 42, 0.4);
    border-radius: 3px;
    padding: 5px 12px;
    margin-bottom: 18px;
}

.cs-hero-h1 {
    font-size: 38px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin: 0 0 18px !important;
    letter-spacing: 0.3px !important;
}

.cs-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 600px;
    letter-spacing: 0.2px;
}

.cs-client-logo {
    margin-bottom: 28px;
}

.cs-client-logo img {
    max-height: 80px;
    width: auto;
    opacity: 1;
    display: block;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 18px;
    border-radius: 6px;
}

.cs-hero-btn {
    display: inline-block;
    background: #e8952a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.cs-hero-btn:hover,
.cs-hero-btn:focus {
    background: #c97c1e;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================================
   Snapshot Section
   ============================================================ */
#csSnapshotSection {
    background: #ffffff;
    padding: 36px 0 40px;
    border-top: 1px solid #e0ecec;
}

.cs-snapshot-heading-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.cs-snapshot-heading-row::before,
.cs-snapshot-heading-row::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cde0e0;
}

.cs-snapshot-section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #079393;
    white-space: nowrap;
}

.cs-snap-card {
    border: 1px solid #d4e8e8;
    border-radius: 6px;
    padding: 24px 16px;
    text-align: center;
    background: #ffffff;
    margin-bottom: 16px;
    height: 100%;
}

/* equal-height columns */
#csSnapshotSection .row {
    display: flex;
    flex-wrap: wrap;
}

#csSnapshotSection .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.cs-snap-icon {
    margin-bottom: 10px;
}

.cs-snap-icon .fa {
    font-size: 40px;
    color: #079393;
}

.cs-snap-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #079393;
    margin-bottom: 6px;
}

.cs-snap-value {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   Quote Section
   ============================================================ */
#csQuoteSection {
    background: #ffffff;
    padding: 60px 0;
}

.cs-quote-card {
    background: #f4fafa;
    border-left: 4px solid #079393;
    border-radius: 8px;
    padding: 40px 44px;
    position: relative;
}

.cs-quote-mark {
    font-size: 80px;
    line-height: 1;
    color: #079393;
    opacity: 0.18;
    position: absolute;
    top: 10px;
    left: 30px;
    font-family: Georgia, serif;
    pointer-events: none;
}

.cs-quote-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.cs-quote-headshot {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #079393;
}

.cs-quote-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-quote-headshot--placeholder {
    background: #e0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-quote-headshot--placeholder .fa {
    font-size: 34px;
    color: #079393;
}

.cs-quote-body {
    flex: 1;
}

.cs-quote-text {
    font-size: 17px;
    font-style: italic;
    color: #333;
    line-height: 1.75;
    margin: 0 0 18px;
    padding: 0;
    border: none;
    letter-spacing: 0.2px;
}

.cs-quote-attr {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cs-quote-name {
    font-size: 15px;
    font-weight: 700;
    color: #079393;
    letter-spacing: 0.3px;
}

.cs-quote-meta {
    font-size: 15px;
    color: #777;
    letter-spacing: 0.2px;
}

/* ============================================================
   Details Section  (About + Challenge + Solution + Results)
   One outer bordered card, stacked rows with separators
   ============================================================ */
#csDetailsSection {
    background: #ffffff;
    padding: 50px 0 60px;
}

.cs-details-card {
    border: 1px solid #dde8e8;
    border-radius: 8px;
    overflow: hidden;
}

.cs-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 32px;
    border-bottom: 1px solid #eef2f2;
}

.cs-detail-row:last-child {
    border-bottom: none;
}

.cs-detail-icon-col {
    flex-shrink: 0;
    padding-top: 2px;
}

.cs-detail-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f0f4f4;
    border: 1px solid #ccdede;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-detail-icon .fa {
    font-size: 40px;
    color: #555;
}

.cs-detail-icon .fa.fa-building {
    margin-left: 4px;
}
.cs-detail-content {
    flex: 1;
    min-width: 0;
}

.cs-detail-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #333 !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
}

.cs-detail-text {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

.cs-detail-text p {
    margin: 0 0 12px;
}

.cs-detail-text p:last-child {
    margin-bottom: 0;
}

.cs-text-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #079393;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.cs-text-link:hover,
.cs-text-link:focus {
    color: #056868;
    text-decoration: underline;
}

/* Results Stat Cards — inside the last detail row */
.cs-results-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.cs-stat-card {
    background: #f4fafa;
    border: 1px solid #cde4e4;
    border-radius: 6px;
    padding: 16px 20px;
    text-align: center;
    flex: 1 1 130px;
    min-width: 120px;
    max-width: 200px;
}

.cs-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #079393;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.cs-stat-label {
    display: block;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* ============================================================
   Final CTA Section
   ============================================================ */
#csFinalCta {
    background: #ffffff;
    padding: 40px 0 50px;
}

.cs-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #3f6b6b;
    border-radius: 10px;
    padding: 28px 36px;
}

.cs-final-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.cs-final-cta-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-final-cta-icon .fa {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.75);
}

.cs-final-cta-text {
    min-width: 0;
}

.cs-final-heading {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 5px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.2px !important;
}

.cs-final-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    margin: 0;
}

.cs-final-cta-right {
    flex-shrink: 0;
}

.cs-final-btn {
    display: inline-block;
    background: #e8952a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 13px 26px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s, transform 0.2s;
}

.cs-final-btn:hover,
.cs-final-btn:focus {
    background: #cf7e1c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================================
   Related Case Studies Section
   ============================================================ */
#csRelatedSection {
    background: #f8f9fc;
    padding: 60px 0 70px;
    border-top: 1px solid #e0ecec;
}

.cs-related-row {
    display: flex;
    flex-wrap: wrap;
}

.cs-related-row > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.cs-related-card {
    background: #ffffff;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cs-related-card:hover {
    box-shadow: 0 8px 24px rgba(7, 147, 147, 0.13);
    transform: translateY(-3px);
}

.cs-related-img {
    height: 180px;
    overflow: hidden;
}

.cs-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cs-related-card:hover .cs-related-img img {
    transform: scale(1.04);
}

.cs-related-img--placeholder {
    background: #e0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-related-img--placeholder .fa {
    font-size: 48px;
    color: #079393;
    opacity: 0.4;
}

.cs-related-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-related-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #e8952a;
    margin-bottom: 8px;
}

.cs-related-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
}

.cs-related-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.cs-related-link {
    font-size: 15px;
    font-weight: 600;
    color: #079393;
    text-decoration: none;
    letter-spacing: 0.2px;
    margin-top: auto;
    transition: color 0.2s;
}

.cs-related-link .fa {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.cs-related-link:hover,
.cs-related-link:focus {
    color: #056868;
    text-decoration: none;
}

.cs-related-link:hover .fa {
    transform: translateX(3px);
}

/* ============================================================
   Responsive — Tablet (max 991px)
   ============================================================ */
@media (max-width: 991px) {
    #csHeroSection {
        padding: 70px 0 60px;
        min-height: 400px;
    }

    .cs-hero-h1 {
        font-size: 30px !important;
    }

    .cs-snap-card {
        padding: 20px 16px;
    }

    .cs-detail-row {
        padding: 22px 24px;
    }

    .cs-csr-block--results {
        padding: 24px 24px;
    }

    .cs-quote-card {
        padding: 32px 28px;
    }

    .cs-about-card {
        padding: 24px 24px;
    }

    .cs-csr-block--results {
        padding: 24px 24px;
    }
}

/* ============================================================
   Responsive — Mobile (max 767px)
   ============================================================ */
@media (max-width: 767px) {
    #csHeroSection {
        padding: 50px 0 44px;
        min-height: unset;
    }

    .cs-hero-overlay {
        background: rgba(12, 25, 25, 0.82);
    }

    .cs-hero-h1 {
        font-size: 24px !important;
    }

    .cs-hero-subtitle {
        font-size: 15px;
    }

    .cs-client-logo img {
        max-height: 80px;
    }

    /* Snapshot: 2 per row on small mobile */
    .cs-snap-card {
        padding: 18px 12px;
    }

    .cs-snapshot-heading-row {
        gap: 12px;
    }

    /* Quote: stack headshot above text */
    .cs-quote-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .cs-quote-attr {
        align-items: center;
    }

    .cs-quote-card {
        padding: 28px 20px;
    }

    .cs-quote-mark {
        font-size: 60px;
        top: 6px;
        left: 16px;
    }

    /* About */
    .cs-about-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
    }

    /* CSR */
    .cs-csr-block {
        flex-direction: column;
        gap: 14px;
        padding: 28px 0;
    }

    .cs-detail-row {
        flex-direction: column;
        gap: 14px;
        padding: 20px 18px;
    }

    .cs-results-stats {
        gap: 10px;
    }

    .cs-stat-card {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }

    .cs-final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 22px;
    }

    .cs-final-cta-right {
        width: 100%;
    }

    .cs-final-btn {
        display: block;
        text-align: center;
    }

    .cs-related-img {
        height: 160px;
    }
}
