/*
================================================

Space Vanta Theme 1.0

Module:
Trust Component

Version:
1.0

================================================
*/


/* --------------------------------------------------
   Trust Section
-------------------------------------------------- */

.sv-trust {
    width: 100%;

    padding-block: 56px;
}


/* --------------------------------------------------
   Trust Heading
-------------------------------------------------- */

.sv-trust__heading {
    width: 100%;
    max-width: var(--page-width);

    padding-inline: var(--page-padding);
    margin-inline: auto;

    margin-bottom: 34px;

    text-align: center;
}


.sv-trust__title {
    margin: 0;

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

    font-weight: 500;

    letter-spacing: .015em;
}


/* --------------------------------------------------
   Trust Grid
-------------------------------------------------- */

.sv-trust__inner {
    width: 100%;
    max-width: var(--page-width);

    padding-inline: var(--page-padding);
    margin-inline: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    align-items: center;
}


/* --------------------------------------------------
   Trust Item
-------------------------------------------------- */

.sv-trust__item {
    display: flex;

    flex-direction: column;

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

    min-width: 0;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}


/* --------------------------------------------------
   Geometry Container
-------------------------------------------------- */

.sv-trust__fragment {
    width: 68px;
    height: 68px;

    display: flex;

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

    flex: 0 0 auto;
}


/* --------------------------------------------------
   SVG Geometry
-------------------------------------------------- */

.sv-fragment {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;

    transform-origin:
        center center;

    transition:
        transform 520ms cubic-bezier(.2, .7, .2, 1);
}


/* --------------------------------------------------
   Faceted Surfaces
-------------------------------------------------- */

.sv-fragment__surface {
    fill: #eeeeee;
}


.sv-fragment__front {
    fill: #e1e1e1;
}


.sv-fragment__side {
    fill: #d5d5d5;
}


.sv-fragment__facet {
    fill: #e8e8e8;
}


.sv-fragment__facet--light {
    fill: #f3f3f3;
}


.sv-fragment__facet--mid {
    fill: #dedede;
}


.sv-fragment__facet--dark {
    fill: #d0d0d0;
}


/* --------------------------------------------------
   Structural Geometry
-------------------------------------------------- */

.sv-fragment__structure {
    fill: none;

    stroke: #9a9a9a;

    stroke-width: 1;

    stroke-linecap: square;
    stroke-linejoin: miter;

    vector-effect:
        non-scaling-stroke;

    opacity: .42;

    transition:
        opacity 420ms ease;
}


/* --------------------------------------------------
   Static Blue Edge
--------------------------------------------------

   Hidden during idle state.
   Blue exists only as interaction light.

-------------------------------------------------- */

.sv-fragment__edge {
    fill: none;

    stroke: #2f80ff;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect:
        non-scaling-stroke;

    opacity: 0;

    filter:
        drop-shadow(0 0 2px rgba(47, 128, 255, .3));
}


/* --------------------------------------------------
   Moving Blue Reflection
-------------------------------------------------- */

.sv-fragment__highlight {
    fill: none;

    stroke: #5aa0ff;

    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect:
        non-scaling-stroke;

    opacity: 0;

    stroke-dasharray:
        18 102;

    stroke-dashoffset:
        120;

    filter:
        drop-shadow(0 0 3px rgba(47, 128, 255, .45));
}


/* --------------------------------------------------
   Reflection Sweep
-------------------------------------------------- */

@keyframes sv-trust-reflection {

    0% {
        opacity: 0;

        stroke-dashoffset: 120;

        filter:
            drop-shadow(0 0 1px rgba(47, 128, 255, .15));
    }


    15% {
        opacity: .85;
    }


    48% {
        opacity: 1;

        stroke-dashoffset: 45;

        filter:
            drop-shadow(0 0 4px rgba(47, 128, 255, .45));
    }


    76% {
        opacity: .5;

        stroke-dashoffset: 0;

        filter:
            drop-shadow(0 0 2px rgba(47, 128, 255, .3));
    }


    100% {
        opacity: 0;

        stroke-dashoffset: -18;

        filter:
            drop-shadow(0 0 1px rgba(47, 128, 255, .1));
    }

}


/* --------------------------------------------------
   Hover — Geometry Movement
-------------------------------------------------- */

.sv-trust__item:hover .sv-fragment {

    transform:
        translateY(-2px) rotateX(2deg) rotateY(-2deg);
}


/* --------------------------------------------------
   Hover — Structure
-------------------------------------------------- */

.sv-trust__item:hover .sv-fragment__structure {

    opacity: .58;
}


/* --------------------------------------------------
   Hover — Blue Reflection
-------------------------------------------------- */

.sv-trust__item:hover .sv-fragment__edge {

    opacity: .5;
}


.sv-trust__item:hover .sv-fragment__highlight {

    animation:
        sv-trust-reflection 720ms cubic-bezier(.4, 0, .2, 1) both;
}


/* --------------------------------------------------
   Hover — Facet Response
-------------------------------------------------- */

.sv-trust__item:hover .sv-fragment__facet--light {

    fill: #f7f7f7;
}


.sv-trust__item:hover .sv-fragment__facet--mid {

    fill: #e2e2e2;
}


.sv-trust__item:hover .sv-fragment__facet--dark {

    fill: #d5d5d5;
}


/* --------------------------------------------------
   Trust Text
-------------------------------------------------- */

.sv-trust__text {
    margin-top: 13px;
    margin-bottom: 0;

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

    font-weight: 500;

    text-align: center;

    letter-spacing: .01em;
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 959px) {

    .sv-trust {

        padding-block: 34px;
    }


    .sv-trust__heading {

        margin-bottom: 26px;
    }


    .sv-trust__title {

        font-size: 19px;
    }


    .sv-trust__inner {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .sv-trust__item {

        flex-direction: row;

        justify-content: flex-start;

        width: 100%;
    }


    .sv-trust__fragment {

        width: 46px;
        height: 46px;

        flex: 0 0 46px;
    }


    .sv-trust__text {

        margin:
            0 0 0 17px;

        text-align: left;
    }

}


/* --------------------------------------------------
   Reduced Motion
-------------------------------------------------- */

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

    .sv-fragment__highlight,
    .sv-fragment__edge {

        animation: none !important;

        opacity: 0 !important;
    }


    .sv-trust__item,
    .sv-fragment {

        transition: none !important;

        transform: none !important;
    }

}