/* =========================================================
   BEAVER - KEY FEATURES
========================================================= */

.features-section {

    position: relative;

    padding: 110px 0 120px;

    background: #ffffff;

    color: #111;

    overflow: hidden;
}


/* subtle background */

.features-section::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: 50%;
    top: 45%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(200, 16, 16, .055),
        transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   HEADING
========================================================= */

.features-heading {

    position: relative;

    text-align: center;

    margin-bottom: 70px;

}


.section-label {

    display: block;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 5px;

    color: #999;

    margin-bottom: 14px;

}


.features-heading h2 {

    margin: 0;

    font-family: "Barlow Condensed", sans-serif;

    font-size: clamp(50px, 6vw, 82px);

    line-height: .85;

    font-weight: 900;

    letter-spacing: -1px;

    text-transform: uppercase;

}


.features-heading h2 span {

    color: #c81010;

}


.heading-line {

    position: relative;

    width: 100px;

    height: 3px;

    background: #c81010;

    margin: 25px auto 0;

}


.heading-line::before {

    content: "";

    position: absolute;

    width: 30px;

    height: 3px;

    background: #111;

    left: -35px;

}


/* =========================================================
   FEATURE GRID
========================================================= */

.features-grid {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 20px;

    align-items: start;

}


/* =========================================================
   FEATURE ITEM
========================================================= */

.feature-item {

    position: relative;

    text-align: center;

    cursor: pointer;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1);

}


/* =========================================================
   CIRCLE
========================================================= */

.feature-circle {

    position: relative;

    width: clamp(130px, 13vw, 190px);

    aspect-ratio: 1 / 1;

    margin: 0 auto 25px;

    border-radius: 50%;

    padding: 6px;

    background: #fff;

    border: 5px solid #a70d0d;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);

    transition:
        transform .55s cubic-bezier(.2,.8,.2,1),
        border-color .35s ease,
        box-shadow .45s ease;

    z-index: 2;

}


/* image */

.feature-circle img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    transition:
        transform .7s cubic-bezier(.2,.8,.2,1);

}


/* =========================================================
   HOVER OVERLAY
========================================================= */

.feature-overlay {

    position: absolute;

    inset: 6px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(120,0,0,.45);

    opacity: 0;

    transform: scale(.8);

    transition:
        opacity .35s ease,
        transform .4s ease;

}


.feature-overlay i {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #c81010;

    color: #fff;

    font-size: 17px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.25);

}


/* =========================================================
   HOVER EFFECT
========================================================= */

.feature-item:hover {

    transform: translateY(-12px);

}


.feature-item:hover .feature-circle {

    transform: scale(1.22);

    border-color: #c81010;

    box-shadow:
        0 20px 55px rgba(200,16,16,.28);

}


.feature-item:hover .feature-circle img {

    transform: scale(1.16);

}


.feature-item:hover .feature-overlay {

    opacity: 1;

    transform: scale(1);

}


/* =========================================================
   FEATURE TITLE
========================================================= */

.feature-title {

    position: relative;

    z-index: 5;

    min-height: 42px;

    font-size: 12px;

    line-height: 1.45;

    font-weight: 800;

    letter-spacing: .4px;

    text-transform: uppercase;

    transition:
        transform .35s ease,
        color .35s ease;

}


.feature-item:hover .feature-title {

    color: #c81010;

    transform: translateY(8px);

}


/* =========================================================
   RED UNDERLINE
========================================================= */

.feature-line {

    width: 38px;

    height: 3px;

    margin: 15px auto 0;

    background: #c81010;

    transition:
        width .35s ease,
        transform .35s ease;

}


.feature-item:hover .feature-line {

    width: 65px;

    transform: translateY(8px);

}


/* =========================================================
   OTHER ITEMS FADE WHEN ONE IS HOVERED
========================================================= */

.features-grid.has-hover
.feature-item:not(.is-hovered) {

    opacity: .48;

    transform: scale(.96);

}


.features-grid.has-hover
.feature-item.is-hovered {

    opacity: 1;

    z-index: 20;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .features-grid {

        grid-template-columns:
            repeat(3, 1fr);

        row-gap: 55px;

    }

}


@media (max-width: 650px) {

    .features-section {

        padding: 75px 0 80px;

    }


    .features-heading {

        margin-bottom: 50px;

    }


    .features-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 45px 15px;

    }


    .feature-circle {

        width: 145px;

    }


    /*
       Disable large scale on small
       screens so circles don't overlap.
    */

    .feature-item:hover .feature-circle {

        transform: scale(1.08);

    }


    .feature-title {

        font-size: 10px;

    }

}


@media (max-width: 400px) {

    .feature-circle {

        width: 125px;

    }

}