/*
 * Pillar Design — Case Study Styles
 * case-study.css — place in stockholm-child/
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ── Scroll fade-in and fade-out ─────────────────────────────────────────────── */

.cs-fade {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

.cs-fade--in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hide Stockholm title/breadcrumb bar ─────────────────────────────────────── */

body.single-case-studies .title_outer,
body.single-case-studies #title_outer_holder,
body.single-case-studies .title_outer_holder,
body.single-case-studies #title_holder,
body.single-case-studies .title_holder,
body.single-case-studies .page-title-area,
body.single-case-studies .page-title,
body.single-case-studies #page-title,
body.single-case-studies .entry-header,
body.single-case-studies .post-header,
body.single-case-studies .breadcrumbs,
body.single-case-studies .breadcrumb,
body.single-case-studies #breadcrumbs,
body.single-case-studies .title_subtitle_holder,
body.single-case-studies .title_subtitle_holder_inner,
body.single-case-studies .title_without_animation {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* ── Break out of Stockholm's content container ──────────────────────────────── */

body.single-case-studies #content,
body.single-case-studies #content_wrapper,
body.single-case-studies .content_wrapper,
body.single-case-studies .container,
body.single-case-studies .post_content_holder,
body.single-case-studies .post_content,
body.single-case-studies .entry-content,
body.single-case-studies .single_post_content,
body.single-case-studies .wpb_wrapper,
body.single-case-studies .content_inner,
body.single-case-studies .vc_column-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

body.single-case-studies .title_outer_holder,
body.single-case-studies .title_outer,
body.single-case-studies #title_outer_holder,
body.single-case-studies .title_holder,
body.single-case-studies .page-title-area,
body.single-case-studies .post_title,
body.single-case-studies h2.entry-title,
body.single-case-studies .breadcrumbs {
    display: none !important;
}

/* ── Force no italic on any heading anywhere on the page ─────────────────────── */

.cs-page h1,
.cs-page h2,
.cs-page h3,
.cs-page h4,
.cs-page h5,
.cs-page h6,
.cs-proc-text h1,
.cs-proc-text h2,
.cs-proc-text h3,
.cs-sec-body h1,
.cs-sec-body h2,
.cs-sec-body h3 {
    font-style: normal !important;
}



.cs-page *,
.cs-page *::before,
.cs-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cs-page {
    font-family: 'Barlow', sans-serif;
    color: #1a1a1a;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.cs-hero {
    width: 100%;
    line-height: 0;
}

.cs-hero__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Intro Grid ──────────────────────────────────────────────────────────────── */

.cs-intro-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cs-meta-panel {
    padding: 56px 28px 56px 48px;
}

.cs-mlabel {
    font-family: 'Barlow', sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 10px !important;
    font-style: italic;
    display: block;
}

.cs-mval {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 32px !important;
    display: block;
}

.cs-mlink {
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cs-mlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-mlist li {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 2;
}

.cs-intro-content {
    padding: 56px 56px 48px;
    min-width: 0;
}

/* ── Typography ──────────────────────────────────────────────────────────────── */

.cs-page h1,
.cs-title {
    font-family: 'Barlow', sans-serif !important;
    font-size: 46px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1.0 !important;
    letter-spacing: -0.03em !important;
    color: #000 !important;
    margin-bottom: 36px !important;
    padding: 0 !important;
}

.cs-page h2 {
    font-family: 'Barlow', sans-serif !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #000 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.cs-page h3 {
    font-family: 'Barlow', sans-serif !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    color: #000 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
}

.cs-body {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    font-weight: 400;
    margin-bottom: 20px !important;
}

.cs-body p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    font-weight: 400;
    margin-bottom: 16px !important;
}

.cs-body p:last-child,
.cs-body:last-child {
    margin-bottom: 0 !important;
}

/* ── Two-column intro text ───────────────────────────────────────────────────── */

.cs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cs-two-col__item {
    min-width: 0;
}

.cs-two-col__item p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    font-weight: 400;
    margin: 0;
}

/* ── Specs Row ───────────────────────────────────────────────────────────────── */

.cs-specs-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    padding: 48px 0 56px;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cs-specs-label {
    padding: 0 28px 0 48px;
}

.cs-specs-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 56px;
    min-width: 0;
}

.cs-spec {
    min-width: 0;
}

.cs-spec__label {
    font-family: 'Barlow', sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px !important;
    font-style: italic;
    display: block;
}

.cs-spec__val {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.6;
    display: block;
}

/* ── Full-bleed Images ───────────────────────────────────────────────────────── */

.cs-img-full {
    width: 100%;
    line-height: 0;
    display: block;
}

.cs-img-full img {
    width: 100%;
    display: block;
    height: auto;
}

.cs-img-full--final {
    margin-top: 100px !important;
}

/* ── Section: Meta + Body Layout ─────────────────────────────────────────────── */

.cs-sec-with-meta {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cs-sec-meta {
    padding: 64px 28px 64px 48px;
    min-width: 0;
}

.cs-sec-body {
    padding: 64px 56px;
    min-width: 0;
}

.cs-sec-meta--tight {
    padding: 36px 28px 36px 48px;
}

.cs-sec-body--tight {
    padding: 36px 56px;
}

.cs-sec-num {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: #ccc;
    margin-bottom: 10px !important;
    font-style: normal;
    display: block;
}

/* ── Image Pair ──────────────────────────────────────────────────────────────── */

.cs-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 32px !important;
}

.cs-img-pair img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Process Section ─────────────────────────────────────────────────────────── */

.cs-process-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cs-process-label {
    padding: 0 28px 32px 48px;
}

.cs-process-intro {
    padding: 0 56px 32px;
    min-width: 0;
}

.cs-proc-block {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch;
    width: 100%;
}

.cs-proc-block--flip {
    grid-template-columns: 50% 50%;
}

.cs-proc-img {
    display: block;
    overflow: hidden;
    line-height: 0;
    min-height: 400px;
}

.cs-proc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

.cs-proc-text {
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    background: #fff;
}

.cs-proc-block--flip .cs-proc-text {
    padding: 52px 48px 52px 56px;
    order: -1;
}

/* ── Pull Quote ──────────────────────────────────────────────────────────────── */

.cs-pullquote {
    font-family: 'Barlow', sans-serif;
    font-size: 26px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.45;
    color: #000;
    padding: 80px 56px;
    margin-top: 80px !important;
    margin-bottom: 80px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: none;
    border-top: 1px solid #e8e8e8;
    max-width: 1400px;
}

.cs-pullquote cite {
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: #aaa;
    margin-top: 12px !important;
}

/* ── Outcomes ────────────────────────────────────────────────────────────────── */

.cs-outcomes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px !important;
}

.cs-outcome {
    padding: 20px 20px 28px;
    min-width: 0;
}

.cs-outcome__val {
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px !important;
    display: block;
}

.cs-outcome__label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    font-style: italic;
    display: block;
}

/* ── Extra Images ────────────────────────────────────────────────────────────── */

.cs-extra-images {
    margin-top: 4px !important;
}

.cs-extra-images__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cs-extra-images__pair img,
.cs-extra-images__full img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-extra-images__full {
    margin-top: 100px !important;
}

/* ── More Work Grid ──────────────────────────────────────────────────────────── */

.cs-more-work {
    padding: 72px 48px 64px;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cs-more-work__label {
    font-family: 'Barlow', sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 24px !important;
    font-style: italic;
    display: block;
}

.cs-more-work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.cs-more-card {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
}

.cs-more-card__thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.cs-more-card:hover .cs-more-card__thumb img {
    transform: scale(1.03);
}

.cs-more-card__title {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px !important;
    display: block;
}

.cs-more-card__sub {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px !important;
    font-style: italic;
    display: block;
}

.cs-outcome-body {
    margin-top: 28px !important;
}

@media ( max-width: 768px ) {

    .cs-hero {
        width: 100%;
    }

    .cs-hero__img {
        width: 100%;
        height: auto;
    }

    .cs-img-full--final img {
        height: 380px;
        object-fit: cover;
    }

    .cs-intro-grid,
    .cs-sec-with-meta,
    .cs-specs-row,
    .cs-process-header {
        grid-template-columns: 1fr;
    }

    .cs-meta-panel {
        padding: 32px 24px 0;
    }

    .cs-intro-content {
        padding: 24px 24px 32px;
    }

    .cs-page h1,
    .cs-title {
        font-size: 40px !important;
    }

    .cs-two-col,
    .cs-img-pair,
    .cs-more-work__grid,
    .cs-extra-images__pair {
        grid-template-columns: 1fr;
    }

    .cs-specs-row {
        padding: 24px 0 32px;
    }

    .cs-specs-label {
        padding: 0 24px;
    }

    .cs-specs-content {
        grid-template-columns: 1fr 1fr;
        padding: 16px 24px 0;
        gap: 20px;
    }

    .cs-sec-meta,
    .cs-sec-meta--tight {
        padding: 40px 24px 8px;
    }

    .cs-sec-body,
    .cs-sec-body--tight {
        padding: 16px 24px 40px;
    }

    .cs-process-label {
        padding: 0 24px 16px;
    }

    .cs-process-intro {
        padding: 0 24px 24px;
    }

    .cs-proc-block,
    .cs-proc-block--flip {
        grid-template-columns: 1fr !important;
    }

    .cs-proc-img,
    .cs-proc-img img {
        min-height: 260px;
        width: 100% !important;
    }

    .cs-proc-img {
        order: 0 !important;
    }

    .cs-proc-text,
    .cs-proc-block--flip .cs-proc-text {
        padding: 28px 24px !important;
        order: 1 !important;
    }

    .cs-proc-block--flip .cs-proc-img {
        order: 0 !important;
    }

    .cs-pullquote {
        font-size: 17px;
        padding: 40px 24px 32px;
    }

    .cs-outcomes {
        grid-template-columns: 1fr 1fr;
    }

    .cs-img-full--final {
        margin-top: 56px !important;
    }

    .cs-more-work {
        padding: 48px 24px 40px;
    }
}
