/* ==========================================================================
   THÍCH LÀM BÁNH
   JOURNEY.CSS
   ========================================================================== */


/* ==========================================================================
   FONT
   ========================================================================== */

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/font/BeVietnamPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/font/BeVietnamPro-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/font/BeVietnamPro-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/font/BeVietnamPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    --tlb-journey-pink: #ed0754;
    --tlb-journey-text: #2b1820;
}


/* ==========================================================================
   RESET
   ========================================================================== */

.tlb-journey-wrap,
.tlb-journey-wrap *,
.tlb-journey-wrap *::before,
.tlb-journey-wrap *::after {
    box-sizing: border-box;
}


/* ==========================================================================
   WRAPPER
   ========================================================================== */

.tlb-journey-wrap {
    width: 100%;

    padding:
        10px
        20px
        0;

    color: var(--tlb-journey-text);

    font-family:
        "Be Vietnam Pro",
        Arial,
        sans-serif;

    font-synthesis: none;
}


.tlb-journey {
    width: min(1440px, 100%);

    margin: 0 auto;
}


/* ==========================================================================
   TITLE
   ========================================================================== */

.tlb-journey__heading {
    margin:
        0
        0
        7px
        17px;
}


.tlb-journey__heading h2 {
    margin: 0;

    color: var(--tlb-journey-pink);

    font-size: 14px;
    line-height: 1.25;

    font-weight: 700;
}


.tlb-journey__heading p {
    margin:
        2px
        0
        0;

    color: #62545a;

    font-size: 9px;
    line-height: 1.4;

    font-weight: 400;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.tlb-journey__grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.tlb-journey-card {
    position: relative;

    height: 115px;

    overflow: hidden;

    border:
        1px
        solid
        #f1e3e8;

    border-radius: 11px;

    background:
        linear-gradient(
            115deg,
            #fff9fa 0%,
            #fff2f5 100%
        );
}


.tlb-journey-card:nth-child(2) {
    background:
        linear-gradient(
            115deg,
            #fffaf7 0%,
            #fff2ea 100%
        );
}


.tlb-journey-card:nth-child(3) {
    background:
        linear-gradient(
            115deg,
            #fffaf7 0%,
            #fff1e8 100%
        );
}


.tlb-journey-card:nth-child(4) {
    background:
        linear-gradient(
            115deg,
            #fffaf7 0%,
            #fff3e9 100%
        );
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.tlb-journey-card__content {
    position: relative;
    z-index: 3;

    width: 64%;

    padding:
        15px
        0
        12px
        18px;
}


.tlb-journey-card__title {
    display: flex;

    align-items: center;

    gap: 8px;
}


.tlb-journey-card__title h3 {
    margin: 0;

    color: #342128;

    font-size: 13px;
    line-height: 1.25;

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================================================
   ICON
   ========================================================================== */

.tlb-journey-card__icon {
    display: grid;

    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    place-items: center;

    color: var(--tlb-journey-pink);
}


.tlb-journey-card__icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.tlb-journey-card__content p {
    width: 90%;

    min-height: 30px;

    margin:
        8px
        0
        7px;

    color: #45373c;

    font-size: 9px;
    line-height: 1.45;

    font-weight: 400;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.tlb-journey-card__content a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--tlb-journey-pink);

    font-size: 9px;
    line-height: 1;

    font-weight: 600;

    text-decoration: none;
}


.tlb-journey-card__content a:hover {
    text-decoration: underline;
}


.tlb-journey-card__content a:focus-visible {
    outline: 2px solid var(--tlb-journey-pink);
    outline-offset: 3px;

    border-radius: 3px;
}


/* ==========================================================================
   PRODUCT ART
   ========================================================================== */

.tlb-journey-card__visual {
    position: absolute;
    z-index: 2;

    right: 3px;
    bottom: 0;

    display: flex;

    width: 42%;
    height: 100%;

    align-items: flex-end;
    justify-content: center;

    pointer-events: none;
}


.tlb-journey-card__visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(
            0 7px 8px rgba(90, 35, 45, .10)
        );
}


/* ==========================================================================
   <= 1050
   ========================================================================== */

@media (max-width: 1050px) {

    .tlb-journey__grid {
        gap: 11px;
    }


    .tlb-journey-card__content {
        width: 68%;

        padding-left: 14px;
    }


    .tlb-journey-card__title h3 {
        font-size: 11px;
    }


    .tlb-journey-card__visual {
        right: -3px;

        width: 40%;
    }

}


/* ==========================================================================
   <= 800
   ========================================================================== */

@media (max-width: 800px) {

    .tlb-journey-wrap {
        padding:
            12px
            12px
            0;
    }


    .tlb-journey__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .tlb-journey-card {
        height: 120px;
    }

}


/* ==========================================================================
   <= 520
   ========================================================================== */

@media (max-width: 520px) {

    .tlb-journey__heading {
        margin-left: 3px;
    }


    .tlb-journey__grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .tlb-journey-card {
        height: 120px;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tlb-journey-wrap *,
    .tlb-journey-wrap *::before,
    .tlb-journey-wrap *::after {
        transition: none !important;
        animation: none !important;
    }

}