/* ============================================================
   case-studies.css — Case Studies list + Case Study Details
   List page: teal hero (base), stacked case cards on cream,
   Numbers band (base).
   Details page: photo hero with overlay, statement (base),
   labelled article blocks and image rows.
   ============================================================ */

/* ------------------------------------------------------------
   List page — stacked case study cards
   ------------------------------------------------------------ */
.case-list {
    background: var(--cream);
    padding: var(--section-py) 0 120px;
}

.case-card {
    display: block;
    margin-bottom: 72px;
}

.case-card:last-child {
    margin-bottom: 0;
}

.case-card img {
    width: 100%;
    aspect-ratio: 1240 / 530;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.case-card h2 {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--teal-accent);
}

.case-card p {
    margin-top: 12px;
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 760px;
}

/* ------------------------------------------------------------
   Details page — hero photo with dark overlay
   ------------------------------------------------------------ */
.case-hero {
    position: relative;
    background: url('../assets/images/case-study-1.jpg') center / cover no-repeat;
    padding: 56px 0 96px;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.case-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.case-hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-hero h1 {
    margin-top: auto;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--white);
    max-width: 900px;
}

/* ------------------------------------------------------------
   Details page — labelled content blocks
   (also reused by article.html via article.css equivalents)
   ------------------------------------------------------------ */
.case-body {
    padding: var(--section-py) 0 120px;
}

.case-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding: 48px 0;
}

.case-block-label {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.case-block-content h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 24px;
}

.case-block-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.case-block-content p:last-child {
    margin-bottom: 0;
}

.case-block-content ul {
    list-style: disc;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

/* Image rows between blocks */
.case-image-full {
    padding: 24px 0;
}

.case-image-full img {
    width: 100%;
    aspect-ratio: 1240 / 520;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.case-image-pair {
    padding: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-image-pair img {
    width: 100%;
    aspect-ratio: 600 / 700;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .case-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .case-card {
        margin-bottom: 56px;
    }

    .case-card img,
    .case-image-full img {
        aspect-ratio: 4 / 3;
    }

    .case-hero {
        min-height: 440px;
        padding: 32px 0 64px;
    }

    .case-image-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
