/* ==========================================================
   THE SOFA FURNITURE
   Sustainability UX Builder Elements
   ========================================================== */

.tsf-sus {
    --tsf-primary: #657f7f;
    --tsf-brown: #56371f;
    --tsf-text: #292c2a;
    --tsf-muted: #717772;
    --tsf-line: #e4e5e1;
    --tsf-cream: #f6f2ec;
    --tsf-soft: #f6f6f3;
    --tsf-white: #ffffff;
    --tsf-container: 1220px;

    box-sizing: border-box;
    color: var(--tsf-text);
    font-family: "Montserrat", Arial, sans-serif;
}

.tsf-sus *,
.tsf-sus *::before,
.tsf-sus *::after {
    box-sizing: border-box;
}


/* CONTAINER */

.tsf-sus-container {
    width: 100%;
    max-width: var(--tsf-container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* TYPOGRAPHY */

.tsf-sus h1,
.tsf-sus h2,
.tsf-sus h3,
.tsf-sus p {
    margin-top: 0;
}

.tsf-sus h1,
.tsf-sus h2,
.tsf-sus h3 {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--tsf-text);
    line-height: 1.22;
}

.tsf-sus h1 {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.tsf-sus h2 {
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.tsf-sus h3 {
    font-size: 16px;
    font-weight: 500;
}

.tsf-sus p {
    color: var(--tsf-muted);
    font-size: 14px;
    line-height: 1.9;
}


/* LABELS */

.tsf-sus-eyebrow,
.tsf-sus-number {
    color: var(--tsf-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ==========================================================
   HERO
   ========================================================== */

.tsf-sus-hero {
    background: #fff;
}

.tsf-sus-hero-copy {
    max-width: 880px;
    padding-top: 70px;
    padding-bottom: 70px;
    text-align: center;
}

.tsf-sus-hero-copy h1 {
    margin: 16px 0 18px;
}

.tsf-sus-lead {
    color: #4e5550;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tsf-sus-hero-copy p {
    max-width: 760px;
    margin: 0 auto;
}

.tsf-sus-hero-image {
    width: 100%;
    height: clamp(340px, 46vw, 650px);
    overflow: hidden;
}

.tsf-sus-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.tsf-sus-hero-image:hover img {
    transform: scale(1.02);
}


/* ==========================================================
   GENERAL SECTION
   ========================================================== */

.tsf-sus-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background: #fff;
}

.tsf-sus-alt {
    background: var(--tsf-soft);
}


/* ==========================================================
   SPLIT SECTIONS
   ========================================================== */

.tsf-sus-split {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(70px, 7vw, 110px);
    align-items: center;
}

.tsf-sus-split-reverse {
    grid-template-columns: 0.88fr 1.12fr;
}

.tsf-sus-copy {
    max-width: 560px;
}

.tsf-sus-copy .tsf-sus-number {
    margin-bottom: 18px;
}

.tsf-sus-copy h2 {
    margin-bottom: 22px;
}

.tsf-sus-copy > p {
    margin-bottom: 0;
}


/* PHOTO */

.tsf-sus-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #deded8;
}

.tsf-sus-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tsf-sus-photo:hover img {
    transform: scale(1.035);
}


/* TAGS */

.tsf-sus-tags {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 9px;
    margin-top: 28px;
    width: max-content;
    max-width: none;
}

.tsf-sus-tags span {
    display: block;
    white-space: nowrap;
    border: 1px solid #d8dcd8;
    color: #5e6861;
    font-size: 11px;
    line-height: 1.4;
    padding: 8px 13px;
}


/* ==========================================================
   SECTION HEADER
   ========================================================== */

.tsf-sus-section-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.tsf-sus-section-head h2 {
    margin: 14px 0 17px;
}

.tsf-sus-section-head p {
    margin: 0 auto;
}


/* ==========================================================
   MATERIALS
   ========================================================== */

.tsf-sus-material-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.tsf-sus-material-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #deded8;
}

.tsf-sus-material-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tsf-sus-material:hover img {
    transform: scale(1.04);
}

.tsf-sus-material h3 {
    margin: 18px 0 7px;
}

.tsf-sus-material p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
}

.tsf-sus-note {
    margin-top: 30px;
    color: #8a8d89;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}


/* ==========================================================
   WASTE LESS PROCESS
   ========================================================== */

.tsf-sus-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
    border-top: 1px solid var(--tsf-line);
}

.tsf-sus-process > div {
    padding: 18px 10px 0 0;
    color: #606861;
    font-size: 11px;
}

.tsf-sus-process b {
    color: var(--tsf-primary);
    font-size: 10px;
    font-weight: 600;
    margin-right: 5px;
}


/* ==========================================================
   BUILD TO LAST
   ========================================================== */

.tsf-sus-build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tsf-sus-build-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #deded8;
}

.tsf-sus-build-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tsf-sus-build-main:hover img {
    transform: scale(1.025);
}

.tsf-sus-build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.tsf-sus-build-details {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.tsf-sus-build-details > div {
    min-height: 0;
    overflow: hidden;
    background: #deded8;
}

.tsf-sus-build-details img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tsf-sus-build-details > div:hover img {
    transform: scale(1.035);
}


/* VALUES */

.tsf-sus-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 36px;
    border-top: 1px solid var(--tsf-line);
    border-bottom: 1px solid var(--tsf-line);
}

.tsf-sus-values > div {
    padding: 22px 12px;
    border-right: 1px solid var(--tsf-line);
    color: #565d57;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.tsf-sus-values > div:last-child {
    border-right: 0;
}


/* ==========================================================
   IMAGE PLACEHOLDER
   ========================================================== */

.tsf-sus-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #ecece8 0%,
            #dedfd9 100%
        );

    border: 1px dashed #bdc2bb;

    color: #777d78;
    text-align: center;
}

.tsf-sus-placeholder strong {
    display: block;
    color: var(--tsf-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.tsf-sus-placeholder span {
    display: block;
    font-size: 11px;
    line-height: 1.6;
}

.tsf-sus-placeholder-hero {
    min-height: clamp(340px, 46vw, 650px);
}

/* ==========================================================
   CLOSING
   ========================================================== */

.tsf-sus-closing {
    padding: 72px 0 76px;
    background: #f7f7f5;
}

.tsf-sus-closing-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.tsf-sus-closing .tsf-sus-eyebrow {
    margin-bottom: 16px;
}

.tsf-sus-closing h2 {
    margin: 0 0 15px;

    font-size: clamp(27px, 2.7vw, 36px);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.tsf-sus-closing p {
    max-width: 700px;
    margin: 0 auto;

    font-size: 14px;
    line-height: 1.85;
    color: var(--tsf-muted);
}

@media (max-width: 700px) {

    .tsf-sus-closing {
        padding: 55px 0 58px;
    }

    .tsf-sus-closing h2 {
        font-size: 27px;
    }

}


/* ==========================================================
   SUBTLE REVEAL
   UX BUILDER / FRONTEND FRIENDLY
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {

    .tsf-sus-photo,
    .tsf-sus-material,
    .tsf-sus-build-main,
    .tsf-sus-build-details > div {
        animation: tsfSusFade 0.65s ease both;
    }

}

@keyframes tsfSusFade {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .tsf-sus-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .tsf-sus-split,
    .tsf-sus-split-reverse {
        gap: 45px;
    }

    .tsf-sus-material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 18px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .tsf-sus-container {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* HERO */

    .tsf-sus-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .tsf-sus-hero-image {
        height: 300px;
    }


    /* SECTION */

    .tsf-sus-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }


    /* SPLIT */

    .tsf-sus-split,
    .tsf-sus-split-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tsf-sus-split-reverse .tsf-sus-copy {
        order: 2;
    }

    .tsf-sus-split-reverse .tsf-sus-photo {
        order: 1;
    }

    .tsf-sus-copy {
        max-width: none;
    }


    /* MATERIALS */

    .tsf-sus-material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 14px;
    }

    .tsf-sus-material h3 {
        font-size: 14px;
    }

    .tsf-sus-material p {
        font-size: 11px;
    }


    /* PROCESS */

    .tsf-sus-process {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }


    /* BUILD */

    .tsf-sus-build-grid {
        grid-template-columns: 1fr;
    }

    .tsf-sus-build-details {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        gap: 12px;
    }

    .tsf-sus-build-details > div {
        aspect-ratio: 16 / 9;
    }


    /* VALUES */

    .tsf-sus-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .tsf-sus-values > div:nth-child(2) {
        border-right: 0;
    }

    .tsf-sus-values > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--tsf-line);
    }
	.tsf-sus-tags {
    display: flex;
    flex-wrap: wrap;
    width: auto;
}

.tsf-sus-tags span {
    white-space: normal;
}
}


/* VERY SMALL MOBILE */

@media (max-width: 420px) {

    .tsf-sus-material-grid {
        grid-template-columns: 1fr;
    }

    .tsf-sus-build-details {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   SUSTAINABILITY - FINAL DESKTOP FIX
   ========================================================= */

@media (min-width: 901px) {

    /* SOURCE CLOSER */

    .tsf-sus .tsf-sus-split {
        grid-template-columns: 1.12fr 0.88fr;
        gap: clamp(70px, 7vw, 110px);
        align-items: center;
    }

    .tsf-sus .tsf-sus-copy {
        max-width: 560px;
    }

    /* Keep all 3 tags on one row */
    .tsf-sus .tsf-sus-tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
        width: max-content !important;
        max-width: none !important;
    }

    .tsf-sus .tsf-sus-tags span {
        white-space: nowrap !important;
    }

    /* BUILD TO LAST */

.tsf-sus .tsf-sus-build-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
}

/* Main image determines the height of the whole grid */
.tsf-sus .tsf-sus-build-main {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

/* Right column fills exactly the same height as the main image */
.tsf-sus .tsf-sus-build-details {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;

    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: calc((100% - 24px) / 2) !important;
}

/* Grid becomes positioning reference */
.tsf-sus .tsf-sus-build-grid {
    position: relative !important;
}

/* Reserve right column */
.tsf-sus .tsf-sus-build-main {
    grid-column: 1 !important;
}

.tsf-sus .tsf-sus-build-details > div {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.tsf-sus .tsf-sus-build-main img,
.tsf-sus .tsf-sus-build-details img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
   }
}