/* =========================================================
   HOME RESOURCE STRIP
========================================================= */

.home-resource-strip {
    --resource-gold: #f2cf6f;
    --resource-leaf: #b9e86c;

    position: relative;
    padding:
        60px
        var(--page-padding)
        60px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(114, 201, 0, 0.13),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #0a3f25 0%,
            var(--color-primary) 48%,
            #0d4a2b 100%
        );

    font-family: var(--font-main);
}

.home-resource-strip::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0) 46%
        );

    pointer-events: none;
}

.home-resource-strip__container {
    position: relative;
    z-index: 2;

    width: min(100%, var(--container));
    margin-inline: auto;
}

/* =========================================================
   SECTION HEAD
========================================================= */

.home-resource-strip__head {
    max-width: 760px;
    margin: 0 auto 58px;

    text-align: center;
}

.home-resource-strip__title {
    margin: 0;

    color: #ffffff;
    font-size: var(--font-h2);
    line-height: var(--line-heading-soft);
    font-weight: var(--weight-black);
    letter-spacing: var(--letter-heading);
}

/* =========================================================
   ITEMS LIST
========================================================= */

.home-resource-strip__list {
    position: relative;

    display: grid;
    grid-template-columns:
        repeat(
            var(--resource-count),
            minmax(0, 1fr)
        );
    gap: 34px;

    counter-reset: resource-item;
}

.home-resource-strip__list::before {
    content: "";

    position: absolute;
    top: 74px;
    right: 7%;
    left: 7%;
    z-index: 0;

    height: 2px;

    background-image:
        linear-gradient(
            90deg,
            rgba(242, 207, 111, 0.95) 50%,
            transparent 50%
        );
    background-size: 13px 2px;
    background-repeat: repeat-x;

    opacity: 0.75;
}

.home-resource-strip__list--1::before {
    display: none;
}

.home-resource-strip__item {
    position: relative;
    z-index: 2;

    min-width: 0;

    text-align: center;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.home-resource-strip__item:hover {
    transform: translateY(-6px);
}

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

.home-resource-strip__icon-wrap {
    position: relative;

    width: 148px;
    height: 148px;
    margin: 0 auto 44px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.home-resource-strip__icon-wrap::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        radial-gradient(
            circle at 32% 22%,
            rgba(255, 255, 255, 0.98) 0%,
            #fff7dc 42%,
            #f0d899 100%
        );

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    box-shadow:
        inset 0 5px 12px rgba(255, 255, 255, 0.72),
        inset 0 -10px 18px rgba(119, 80, 19, 0.12),
        0 24px 42px rgba(0, 0, 0, 0.2),
        0 0 0 9px rgba(255, 255, 255, 0.08);
}

.home-resource-strip__icon-wrap::after {
    content: "";

    position: absolute;
    inset: -18px;
    z-index: 0;

    border-radius: 50%;

    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23F2CF6F' stroke-width='2' stroke-dasharray='7' stroke-linecap='round'/%3E%3C/svg%3E");

    background-size: 100% 100%;
    background-repeat: no-repeat;

    opacity: 0;
    transform: rotate(0deg);

    animation:
        home-resource-rotate
        10s
        linear
        infinite;

    animation-play-state: paused;

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.home-resource-strip__item:hover
.home-resource-strip__icon-wrap::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes home-resource-rotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

.home-resource-strip__icon {
    position: relative;
    z-index: 3;

    width: 82px;
    height: 82px;

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

    color: var(--color-primary);

    transform: translateY(0);

    transition:
        transform var(--transition),
        filter var(--transition);
}

.home-resource-strip__item:hover
.home-resource-strip__icon {
    transform:
        translateY(-3px)
        scale(1.04);

    filter:
        drop-shadow(
            0 10px 12px
            rgba(16, 80, 36, 0.24)
        );
}

.home-resource-strip__icon svg {
    width: 58px;
    height: 58px;

    display: block;

    filter:
        drop-shadow(
            0 6px 8px
            rgba(16, 80, 36, 0.16)
        );
}

.home-resource-strip__icon img {
    width: 82px;
    height: 82px;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 12px
            rgba(16, 80, 36, 0.2)
        );
}

/* =========================================================
   DECORATIVE LEAVES
========================================================= */

.home-resource-strip__icon-wrap
+ .home-resource-strip__item-title::before {
    content: "";

    position: absolute;
    top: -24px;
    left: 50%;

    width: 54px;
    height: 14px;

    background:
        radial-gradient(
            ellipse at 30% 50%,
            var(--resource-leaf) 0 18%,
            transparent 19%
        ),
        radial-gradient(
            ellipse at 50% 50%,
            var(--resource-leaf) 0 18%,
            transparent 19%
        ),
        radial-gradient(
            ellipse at 70% 50%,
            var(--resource-leaf) 0 18%,
            transparent 19%
        );

    opacity: 0.86;
    transform: translateX(-50%);
}

/* =========================================================
   ITEM TYPOGRAPHY
========================================================= */

.home-resource-strip__item-title {
    position: relative;

    max-width: 310px;
    margin: 0 auto 18px;

    color: #ffffff;
    font-size: var(--font-card-title);
    line-height: var(--line-card-title);
    font-weight: var(--weight-black);
    letter-spacing: var(--letter-card);

    text-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.16);

    transition: color var(--transition);
}

.home-resource-strip__item-title::after {
    content: "";

    position: absolute;
    bottom: -13px;
    left: 50%;

    width: 44px;
    height: 2px;

    background: var(--resource-gold);
    border-radius: 999px;

    opacity: 0.85;
    transform: translateX(-50%);
}

.home-resource-strip__text {
    max-width: 340px;
    margin-inline: auto;
    padding-top: 16px;

    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-body);
    line-height: var(--line-body);
    font-weight: var(--weight-semibold);
}

.home-resource-strip__text p {
    margin: 0;
}

.home-resource-strip__text p + p {
    margin-top: 12px;
}

.home-resource-strip__item:hover
.home-resource-strip__item-title {
    color: var(--resource-gold);
}

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

@media (max-width: 1180px) {

    .home-resource-strip__list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 64px 34px;
    }

    .home-resource-strip__list::before {
        display: none;
    }

    .home-resource-strip__icon-wrap {
        margin-bottom: 38px;
    }
}

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

@media (max-width: 680px) {

    .home-resource-strip {
        padding:
            62px
            var(--page-padding)
            72px;
    }

    .home-resource-strip__head {
        margin-bottom: 42px;
    }

    .home-resource-strip__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 46px;
    }

    .home-resource-strip__icon-wrap {
        width: 126px;
        height: 126px;
        margin-bottom: 34px;
    }

    .home-resource-strip__icon-wrap::after {
        inset: -14px;
    }

    .home-resource-strip__icon {
        width: 70px;
        height: 70px;
    }

    .home-resource-strip__icon svg {
        width: 50px;
        height: 50px;
    }

    .home-resource-strip__icon img {
        width: 70px;
        height: 70px;
    }

    .home-resource-strip__item-title {
        margin-bottom: 16px;
    }

    .home-resource-strip__text {
        max-width: 360px;
    }
}

/* =========================================================
   HOVER DEVICES
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .home-resource-strip__item:hover {
        transform: translateY(-6px);
    }

    .home-resource-strip__item:hover
    .home-resource-strip__icon-wrap::after {
        opacity: 1;
        animation-play-state: running;
    }

    .home-resource-strip__item:hover
    .home-resource-strip__icon {
        transform:
            translateY(-3px)
            scale(1.04);
    }
}

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

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

    .home-resource-strip__item,
    .home-resource-strip__icon-wrap::after,
    .home-resource-strip__icon,
    .home-resource-strip__item-title {
        transition: none !important;
    }

    .home-resource-strip__icon-wrap::after {
        animation: none !important;
    }

    .home-resource-strip__item:hover {
        transform: none;
    }

    .home-resource-strip__item:hover
    .home-resource-strip__icon {
        transform: none;
    }
}