/* Homepage "Featured Products" (resources/views/pages/home.blade.php): product cards from the catalogue and the
   Cross-Pollination Seeds promotion. It replaced the Reports & News slider. Loaded after professional-fixes.css. */

.wp-featured-home {
    padding: 90px 0 96px;
    background: #fff;
}

.wp-featured-home .title-solution-products {
    padding: 0 0 22px;
    background: transparent;
}

.home-featured__head {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.home-featured__lead {
    max-width: 720px;
    margin: 0;
    color: #62736d;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.home-featured__all,
.home-featured__promo-btn {
    min-height: 46px;
    padding: 11px 24px;
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    background: #118657;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.home-featured__all::after {
    margin-left: 8px;
    content: "\2192";
}

.home-featured__all:hover,
.home-featured__all:focus-visible {
    background: #063d2b;
}

.home-featured__grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    list-style: none;
}

.home-featured__card {
    min-width: 0;
    margin: 0;
}

.home-featured__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    background: #fff;
    border: 1px solid #dce8e1;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-featured__link:hover {
    border-color: rgba(17, 134, 87, .35);
    box-shadow: 0 14px 30px rgba(7, 72, 48, .1);
    transform: translateY(-4px);
}

.home-featured__link:focus-visible,
.home-featured__all:focus-visible,
.home-featured__promo-btn:focus-visible {
    outline: 3px solid rgba(32, 170, 104, .45);
    outline-offset: 3px;
}

.home-featured__media {
    height: 220px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, #fff 0, #eef6f0 55%, #dcebe1 100%);
}

.home-featured__media img {
    width: min(150px, 62%);
    height: auto;
    aspect-ratio: 195 / 200;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(7, 72, 48, .16);
    transition: transform .3s ease;
}

.home-featured__link:hover .home-featured__media img {
    transform: scale(1.04);
}

.home-featured__body {
    flex: 1;
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
}

.home-featured__cat {
    margin-bottom: 8px;
    color: #118657;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-featured__name {
    margin-bottom: 8px;
    color: #063d2b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.home-featured__text {
    margin-bottom: 16px;
    color: #62736d;
    font-size: 13.5px;
    line-height: 1.6;
}

.home-featured__more {
    margin-top: auto;
    color: #118657;
    font-size: 13px;
    font-weight: 700;
}

.home-featured__more::after {
    margin-left: 6px;
    content: "\2192";
}

.home-featured__promo {
    margin-top: 34px;
    padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 40px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(169, 213, 65, .25), transparent 45%),
        linear-gradient(120deg, #063d2b, #07563b);
}

.home-featured__eyebrow {
    margin: 0 0 6px;
    color: #a9d541;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-featured__promo h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
}

.home-featured__promo p:not(.home-featured__eyebrow) {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.home-featured__promo-btn {
    color: #063d2b !important;
    background: #fff;
}

.home-featured__promo-btn:hover {
    background: #a9d541;
}

@media (max-width: 991.98px) {
    .home-featured__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .wp-featured-home {
        padding: 60px 0 64px;
    }

    .home-featured__grid {
        gap: 14px;
    }

    .home-featured__media {
        height: 170px;
    }

    .home-featured__body {
        padding: 16px;
    }

    .home-featured__name {
        font-size: 15px;
    }

    .home-featured__text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured__link,
    .home-featured__media img {
        transition: none;
    }
}
