.home-page {
    overflow: hidden;
    background: #fff;
}

.home-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-intro {
    padding: clamp(42px, 5vw, 76px) 0;
    background: #fff;
}

.home-intro__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-intro__item {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 0 clamp(24px, 4vw, 64px);
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.home-intro__item + .home-intro__item::before {
    position: absolute;
    top: 12%;
    bottom: 4%;
    left: 0;
    width: 1px;
    background: #ded8d0;
    content: "";
}

.home-intro__icon {
    width: 90px;
    height: 107px;
    margin-bottom: 12px;
    object-fit: contain;
}

.home-intro h3,
.home-certification h3,
.home-location-card h3 {
    font-family: var(--site-font-family);
}

.home-intro h3 {
    margin: 0 0 8px;
    color: var(--site-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.15;
}

.home-intro p {
    max-width: 290px;
    margin: 0;
    color: #555d59;
    font-size: clamp(.95rem, 1.25vw, 1.08rem);
    line-height: 1.45;
}

.home-section {
    padding: clamp(64px, 8vw, 116px) 0;
}

.home-discovery,
.home-recipes,
.home-locations {
    background: #f3f3f3;
}

.home-section__title {
    margin: 0;
    color: var(--site-primary);
    font-family: var(--site-font-family);
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    text-align: center;
}

.home-section__heading-row {
    position: relative;
    margin-bottom: clamp(38px, 5vw, 68px);
}

.home-section__heading-row > a {
    position: absolute;
    right: 0;
    bottom: 6px;
    color: var(--site-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 4px;
}

.home-section__heading-row > a:hover,
.home-section__heading-row > a:focus-visible {
    text-decoration: underline;
}

.home-discovery .home-section__title {
    margin-bottom: clamp(38px, 5vw, 68px);
}

.home-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 86px);
}

.home-discovery-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
}

.home-discovery-card__media {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    place-items: center;
    background: #ece8e1;
}

.home-discovery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-discovery-card:hover .home-discovery-card__media img {
    transform: scale(1.025);
}

.home-primary-link {
    display: inline-flex;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--site-primary);
    background: var(--site-primary);
    color: var(--site-white);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.home-primary-link:hover,
.home-primary-link:focus-visible {
    background: transparent;
    color: var(--site-primary);
}

.home-products .product-card__media,
.home-recipes .recipe-card__media {
    background: #f3eee5;
}

.home-products__actions {
    display: flex;
    margin-top: clamp(28px, 4vw, 48px);
    justify-content: flex-end;
}

.home-products__view-all {
    display: inline-flex;
    min-height: 50px;
    padding: 14px clamp(20px, 4vw, 54px);
    align-items: center;
    justify-content: center;
    border: 2px solid var(--site-primary);
    background: var(--site-primary);
    color: var(--site-white);
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.home-products__view-all:hover,
.home-products__view-all:focus-visible {
    background: transparent;
    color: var(--site-primary);
}

.home-certifications {
    padding: clamp(54px, 7vw, 96px) 0;
    background: #fff;
}

.home-certifications__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-certification {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 0 clamp(18px, 2.7vw, 42px);
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.home-certification + .home-certification::before {
    position: absolute;
    top: 8%;
    bottom: 2%;
    left: 0;
    width: 1px;
    background: #ded8d0;
    content: "";
}

.home-certification img {
    width: 90px;
    height: 107px;
    margin-bottom: 10px;
    object-fit: contain;
}

.home-certification h3 {
    margin: 0 0 8px;
    color: var(--site-primary);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.1;
}

.home-certification p {
    max-width: 240px;
    margin: 0;
    color: #555d59;
    font-size: clamp(.86rem, 1.1vw, 1rem);
    line-height: 1.4;
}

.home-locations__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 30px);
}

.home-location-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
}

.home-location-card__media {
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    background: #ece8e1;
}

.home-location-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.home-location-card__body {
    display: flex;
    min-height: 118px;
    padding: 18px;
    justify-content: center;
    flex-direction: column;
}

.home-location-card h3 {
    margin: 0;
    color: var(--site-primary);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.15;
}

.home-location-card__cta {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    align-items: center;
    gap: 9px;
    color: var(--site-primary);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.home-location-card__cta:hover,
.home-location-card__cta:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-media-placeholder {
    display: grid;
    width: 64%;
    aspect-ratio: 1 / 1;
    place-items: center;
    border-radius: 50%;
    background: var(--site-primary);
    color: var(--site-white);
    font-size: clamp(.85rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: .03em;
}

.home-empty {
    margin: 0;
    padding: 40px 24px;
    background: #f5f0e7;
    color: #68766f;
    font-size: 1.05rem;
    text-align: center;
}

@media (max-width: 991px) {
    .home-intro__grid,
    .home-discovery__grid,
    .home-certifications__grid,
    .home-locations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-intro__item,
    .home-certification {
        padding: 28px;
    }

    .home-intro__item + .home-intro__item::before,
    .home-certification + .home-certification::before {
        display: none;
    }

    .home-intro__item:nth-child(odd),
    .home-certification:nth-child(odd) {
        border-right: 1px solid #ded8d0;
    }

    .home-intro__item:nth-child(n + 3),
    .home-certification:nth-child(n + 3) {
        border-top: 1px solid #ded8d0;
    }
}

@media (max-width: 639px) {
    .home-intro__grid,
    .home-discovery__grid,
    .home-products .products-grid,
    .home-recipes .recipes-grid,
    .home-certifications__grid,
    .home-locations__grid {
        grid-template-columns: 1fr;
    }

    .home-intro__item,
    .home-certification {
        padding: 30px 14px;
        border-top: 1px solid #ded8d0;
        border-right: 0;
    }

    .home-intro__item:first-child,
    .home-certification:first-child {
        border-top: 0;
    }

    .home-section__heading-row {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 18px;
    }

    .home-section__heading-row > a {
        position: static;
    }

    .home-discovery-card__media {
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-discovery-card__media img,
    .home-location-card__media img,
    .home-primary-link,
    .home-products__view-all {
        transition: none;
    }
}
