/* Case Studies - Override Styles
   Created: 2026-03-19
   Purpose: Styles specific to case study pages (hero, metrics bar, data tables, growth chart, callout)
   Linked AFTER style.css per REK CSS workflow
*/

/* ===== Page Banner Override (case study pages) ===== */
.page-banner.bg-swirl {
    min-height: 280px;
}
.page-banner .lead {
    font-size: 13px;
    max-width: 640px;
}

/* ===== Case Study Hero (legacy) ===== */
.cs-hero {
    background: #0b2447;
    padding: 8rem 0 4rem;
    color: #fff;
}
.cs-hero .breadcrumb-nav {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.7);
}
.cs-hero .breadcrumb-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.cs-hero .breadcrumb-nav a:hover {
    color: #fff;
    text-decoration: underline;
}
.cs-hero .breadcrumb-nav .separator {
    margin: 0 0.5rem;
}
.cs-hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .cs-hero h1 {
        font-size: 3rem;
    }
}
@media (min-width: 992px) {
    .cs-hero h1 {
        font-size: 3.25rem;
    }
}
.cs-hero .subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    line-height: 1.6;
}
.cs-hero .tag-pill {
    display: inline-block;
    background: #f0f9f9;
    color: #4ba29f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-top: 1.25rem;
    letter-spacing: 0.3px;
}

/* ===== Metrics Bar ===== */
.cs-metrics {
    background: #4ba29f;
    padding: 1rem 0;
}
.cs-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
    color: #fff;
}
@media (min-width: 768px) {
    .cs-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.cs-metric-item .metric-value {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .cs-metric-item .metric-value {
        font-size: 1.75rem;
    }
}
.cs-metric-item .metric-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

/* ===== Client Snapshot ===== */
.cs-snapshot {
    padding: 2rem 0 2.5rem;
}
.cs-about-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.cs-about-card h2 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0b2447;
    margin-bottom: 0.75rem;
}
.cs-about-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #222;
    margin: 0;
}
.cs-snapshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 768px) {
    .cs-snapshot-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.cs-snapshot-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 2rem;
}
.cs-snapshot-card h2 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0b2447;
    margin-bottom: 0.75rem;
}
.cs-snapshot-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}
.cs-facts-table {
    width: 100%;
    border-collapse: collapse;
}
.cs-facts-table tr:nth-child(even) {
    background: #f0f9f9;
}
.cs-facts-table td {
    padding: 0.65rem 0.75rem;
    font-size: 13px;
    border: none;
}
.cs-facts-table td:first-child {
    font-weight: 600;
    color: #0b2447;
    white-space: nowrap;
    width: 40%;
}

/* ===== Challenge / Solution / Results Sections ===== */
.cs-section {
    padding: 2.5rem 0;
}
@media (min-width: 992px) {
    .cs-section {
        padding: 3rem 0;
    }
}
.cs-section-gray {
    background: #F9F8F6;
}
.cs-section h2 {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4ba29f;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .cs-section h2 {
        font-size: 24px;
    }
}
.cs-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 1rem;
}

/* Solution blocks with teal left border */
.cs-solution-block {
    border-left: 4px solid #4ba29f;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.cs-solution-block h3 {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0b2447;
    margin-bottom: 0.5rem;
}
.cs-solution-block p {
    margin-bottom: 0;
}

/* ===== Data Table ===== */
.cs-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}
.cs-data-table thead th {
    background: #0b2447;
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 13px;
    text-align: left;
}
.cs-data-table tbody td {
    padding: 0.65rem 1rem;
    font-size: 13px;
    border-bottom: 1px solid #e9ecef;
}
.cs-data-table tbody tr:nth-child(even) {
    background: #f0f9f9;
}
.cs-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Quarterly Growth Chart ===== */
.cs-growth-chart {
    margin: 2.5rem 0 0;
}
.cs-growth-chart h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b2447;
    margin-bottom: 1.25rem;
}
.cs-growth-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 180px;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}
.cs-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.cs-bar-value {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0b2447;
    margin-bottom: 0.35rem;
}
.cs-bar {
    width: 100%;
    max-width: 80px;
    background: linear-gradient(180deg, #4ba29f, #55b5b2);
    border-radius: 6px 6px 0 0;
    min-height: 12px;
    transition: height 0.5s ease;
}
.cs-bar-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===== Key Takeaway Callout ===== */
.cs-takeaway {
    padding: 2.5rem 0;
}
@media (min-width: 992px) {
    .cs-takeaway {
        padding: 3rem 0;
    }
}
.cs-callout {
    border-left: 6px solid #4ba29f;
    background: #f0f9f9;
    padding: 2rem 2.5rem;
    border-radius: 0 16px 16px 0;
}
.cs-callout p {
    font-size: 14px;
    line-height: 1.7;
    color: #222;
    margin: 0;
    font-style: italic;
}

/* ===== CTA Section ===== */
.cs-cta {
    background: linear-gradient(135deg, #4ba29f, #3a8a87);
    padding: 3rem 0;
    text-align: center;
    color: #fff;
}
@media (min-width: 992px) {
    .cs-cta {
        padding: 3.5rem 0;
    }
}
.cs-cta h2 {
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .cs-cta h2 {
        font-size: 2.5rem;
    }
}
.cs-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #fff;
}
.cs-cta .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}
.cs-cta .btn-outline-light:hover {
    background: #fff;
    color: #4ba29f;
}
.cs-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 576px) {
    .cs-cta .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===== Index Page (resource-card pattern) ===== */
.resource-card .cs-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.resource-card .cs-card-metric {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #4ba29f;
    margin-bottom: 0.75rem;
}

/* Card layout: push CTA to bottom */
.resource-card.h-100 {
    display: flex;
    flex-direction: column;
}
.resource-card.h-100 .btn {
    margin-top: auto;
    align-self: center;
}
