/* =========================================================
   QTECH — HOMEPAGE VALUE PROPOSITION
   FINAL POLISH
   ========================================================= */

.qtech-home-value {
    position: relative;
    width: 100%;
    padding: 68px 30px 74px;
    background: #f5f6f5;
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   INNER
   ========================================================= */

.qtech-home-value__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.qtech-home-value__intro {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}


.qtech-home-value__eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #8bc53f;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
    line-height: 1.4;

    text-transform: uppercase;
}


.qtech-home-value__intro h2 {
    margin: 0 0 15px;

    color: #252525;

    font-family: "Oswald", Arial, sans-serif;

    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;

    line-height: 1.08;
    letter-spacing: 0.4px;

    text-transform: uppercase;
}


.qtech-home-value__intro h2::after {
    content: "";

    display: block;

    width: 40px;
    height: 3px;

    margin: 14px auto 0;

    background: #8bc53f;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}


.qtech-home-value.is-visible
.qtech-home-value__intro h2::after {
    transform: scaleX(1);
}


.qtech-home-value__intro p {
    max-width: 650px;

    margin: 0 auto;

    color: #727772;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   WORKFLOW
   ========================================================= */

.qtech-home-value__workflow {
    position: relative;
}


/* =========================================================
   WORKFLOW LINE
   ========================================================= */

.qtech-home-value__line {
    position: absolute;

    top: 27px;

    left: 12.5%;
    right: 12.5%;

    height: 1px;

    background: #d9ddd8;

    overflow: visible;

    z-index: 0;
}


/* Green animated line */

.qtech-home-value__line span {
    display: block;

    width: 0;
    height: 2px;

    background: #8bc53f;

    transform: translateY(-0.5px);

    transition:
        width 1.1s cubic-bezier(.22, 1, .36, 1);

    transition-delay: 0.25s;
}


.qtech-home-value.is-visible
.qtech-home-value__line span {
    width: 100%;
}


/* =========================================================
   GRID
   ========================================================= */

.qtech-home-value__grid {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;

    z-index: 1;
}


/* =========================================================
   CARD
   ========================================================= */

.qtech-value-card {
    position: relative;

    min-height: 315px;

    padding: 22px 28px 28px;

    background: #ffffff;

    border: 1px solid #e2e5e1;
    border-radius: 4px;

    box-sizing: border-box;

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.045);

    opacity: 0;

    transform:
        translateY(18px)
        scale(0.985);

    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   CARD REVEAL
   ========================================================= */

.qtech-home-value.is-visible
.qtech-value-card {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.qtech-value-card:hover {
    transform:
        translateY(-7px)
        scale(1.008);

    border-color: #d2dacf;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.085);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.qtech-value-card__top {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    height: 28px;

    margin-bottom: 19px;
}


/* =========================================================
   NUMBER
   ========================================================= */

.qtech-value-card__number {
    color: #b5bab5;

    font-family: "Oswald", Arial, sans-serif;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 1.5px;

    transition:
        color 0.25s ease;
}


.qtech-value-card:hover
.qtech-value-card__number {
    color: #8bc53f;
}


/* =========================================================
   TOP ACCENT
   ========================================================= */

.qtech-value-card__accent {
    display: block;

    width: 22px;
    height: 2px;

    background: #dfe3de;

    transition:
        width 0.35s cubic-bezier(.22, 1, .36, 1),
        background 0.25s ease;
}


.qtech-value-card:hover
.qtech-value-card__accent {
    width: 40px;

    background: #8bc53f;
}


/* =========================================================
   ICON
   ========================================================= */

.qtech-value-card__icon {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    width: 88px;
    height: 88px;

    margin-bottom: 21px;

    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1);
}


.qtech-value-card__icon img {
    display: block;

    width: 84px;
    height: 84px;

    object-fit: contain;

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}


/* Small green interaction node */

.qtech-value-card__icon::after {
    content: "";

    position: absolute;

    right: -2px;
    bottom: 0;

    width: 6px;
    height: 6px;

    background: #8bc53f;

    border-radius: 50%;

    opacity: 0;

    transform: scale(0);

    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(.22, 1, .36, 1);
}


.qtech-value-card:hover
.qtech-value-card__icon::after {
    opacity: 1;

    transform: scale(1);
}


.qtech-value-card:hover
.qtech-value-card__icon {
    transform:
        translateY(-2px);
}


.qtech-value-card:hover
.qtech-value-card__icon img {
    transform:
        scale(1.05);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.qtech-value-card__content h3 {
    margin: 0 0 10px;

    color: #252525;

    font-family: "Oswald", Arial, sans-serif;

    font-size: 21px;
    font-weight: 600;

    line-height: 1.15;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}


.qtech-value-card__content p {
    margin: 0;

    color: #727772;

    font-size: 13.5px;

    line-height: 1.68;
}


/* =========================================================
   BOTTOM GREEN ACCENT
   ========================================================= */

.qtech-value-card__bottom {
    position: absolute;

    right: 28px;
    bottom: 0;
    left: 28px;

    height: 2px;

    overflow: hidden;
}


.qtech-value-card__bottom span {
    display: block;

    width: 0;
    height: 100%;

    background: #8bc53f;

    transition:
        width 0.45s cubic-bezier(.22, 1, .36, 1);
}


.qtech-value-card:hover
.qtech-value-card__bottom span {
    width: 100%;
}


/* =========================================================
   ENTRANCE ANIMATION
   ========================================================= */

.qtech-home-value.is-visible
.qtech-value-card {
    animation:
        qtechValueCardIn 0.65s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


@keyframes qtechValueCardIn {

    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .qtech-home-value {
        padding: 62px 25px 72px;
    }

    .qtech-home-value__intro {
        margin-bottom: 40px;
    }

    .qtech-home-value__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .qtech-home-value__line {
        display: none;
    }

    .qtech-value-card {
        min-height: 300px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .qtech-home-value {
        padding: 55px 18px 62px;
    }

    .qtech-home-value__intro {
        margin-bottom: 34px;
    }

    .qtech-home-value__intro h2 {
        font-size: 31px;
    }

    .qtech-home-value__intro p {
        font-size: 14px;
    }

    .qtech-home-value__grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .qtech-value-card {
        min-height: auto;

        padding: 23px 24px 28px;
    }

    .qtech-value-card__icon {
        width: 78px;
        height: 78px;

        margin-bottom: 20px;
    }

    .qtech-value-card__icon img {
        width: 76px;
        height: 76px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .qtech-value-card,
    .qtech-value-card *,
    .qtech-home-value__line span,
    .qtech-home-value__intro h2::after {

        animation: none !important;

        transition: none !important;
    }

}