/* =========================================================
   ECOM CORE — FALLBACK HOMEPAGE
   ========================================================= */

.ec-home {

    padding-bottom: 90px;
}


/* =========================================================
   HERO
   ========================================================= */

.ec-home-hero {

    overflow: hidden;

    background:
        var(--ec-ink);

    color: #fff;
}


.ec-home-hero-inner {

    min-height:
        min(
            680px,
            72vh
        );

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(
            300px,
            .72fr
        );

    align-items: center;

    gap: 50px;

    padding:
        clamp(
            55px,
            8vw,
            120px
        )
        0;
}


.ec-home-hero-copy {

    position: relative;

    z-index: 2;

    max-width: 870px;
}


.ec-home-hero-kicker {

    margin-bottom: 14px;

    color:
        rgba(
            255,
            255,
            255,
            .53
        );

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .12em;

    text-transform:
        uppercase;
}


.ec-home-hero h1 {

    max-width: 850px;

    margin: 0;

    color: #fff;

    font-size:
        clamp(
            62px,
            8vw,
            126px
        );

    font-weight: 900;

    line-height: .84;

    letter-spacing:
        -.07em;
}


.ec-home-hero p {

    max-width: 560px;

    margin:
        27px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            .63
        );

    font-size:
        clamp(
            15px,
            1.5vw,
            19px
        );

    line-height: 1.5;
}


.ec-home-hero-actions {

    display: flex;

    gap: 10px;

    margin-top: 30px;
}


.ec-home-primary {

    min-height: 48px;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    padding:
        0 22px !important;

    background: #fff !important;

    color:
        var(--ec-ink) !important;

    border:
        1px solid #fff !important;
}


/* =========================================================
   ABSTRACT VISUAL
   ========================================================= */

.ec-home-hero-visual {

    position: relative;

    width:
        min(
            33vw,
            480px
        );

    aspect-ratio:
        1 / 1;

    justify-self: end;
}


.ec-home-hero-visual strong {

    position: absolute;

    inset: 50% auto auto 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    width: 82px;

    height: 82px;

    display: grid;

    place-items: center;

    background:
        var(--ec-accent);

    border-radius:
        50%;

    color: #fff;

    font-size: 35px;

    font-weight: 300;
}


.ec-home-orbit {

    position: absolute;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );

    border-radius:
        50%;
}


.ec-home-orbit-a {

    inset: 0;
}


.ec-home-orbit-b {

    inset: 17%;
}


.ec-home-orbit-c {

    inset: 34%;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.ec-home-section-heading {

    margin-bottom: 22px;
}


.ec-home-section-heading span {

    color:
        var(--ec-accent);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .11em;

    text-transform:
        uppercase;
}


.ec-home-section-heading h2 {

    margin:
        7px 0 0;

    font-size:
        clamp(
            30px,
            4vw,
            49px
        );

    line-height: 1;

    letter-spacing:
        -.05em;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.ec-home-categories {

    padding:
        clamp(
            55px,
            7vw,
            90px
        )
        0;
}


.ec-home-category-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 10px;
}


.ec-home-category {

    min-width: 0;

    display: grid;

    grid-template-columns:
        100px
        minmax(0,1fr);

    align-items: center;

    min-height: 115px;

    padding: 10px;

    background: #fff;

    border:
        1px solid
        var(--ec-line);

    transition:
        transform .17s ease,
        border-color .17s ease;
}


.ec-home-category:hover {

    transform:
        translateY(-3px);

    border-color:
        #bfc5cb;
}


.ec-home-category-image {

    width: 90px;

    height: 90px;

    display: grid;

    place-items: center;

    overflow: hidden;

    background:
        var(--ec-bg);

    color:
        #aeb3b8;

    font-size: 25px;
}


.ec-home-category-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 8px;
}


.ec-home-category-copy {

    min-width: 0;

    display: flex;

    flex-direction: column;

    padding-left: 12px;
}


.ec-home-category-copy strong {

    color:
        var(--ec-ink);

    font-size: 13px;

    line-height: 1.2;

    font-weight: 800;
}


.ec-home-category-copy small {

    margin-top: 6px;

    color:
        var(--ec-muted);

    font-size: 10px;
}


/* =========================================================
   RAILS
   ========================================================= */

.ec-home-rails
.ec-product-rail {

    margin-bottom:
        clamp(
            60px,
            8vw,
            105px
        );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width: 1050px
) {

    .ec-home-category-grid {

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

}


@media (
    max-width: 800px
) {

    .ec-home-hero-inner {

        grid-template-columns:
            1fr;

        min-height: 0;
    }


    .ec-home-hero-visual {

        display: none;
    }


    .ec-home-category-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

}


@media (
    max-width: 520px
) {

    .ec-home-hero-inner {

        padding:
            58px 0 65px;
    }


    .ec-home-hero h1 {

        font-size:
            clamp(
                56px,
                18vw,
                82px
            );
    }


    .ec-home-category-grid {

        gap: 7px;
    }


    .ec-home-category {

        grid-template-columns:
            1fr;

        min-height: 0;
    }


    .ec-home-category-image {

        width: 100%;

        height: auto;

        aspect-ratio:
            1 / .72;
    }


    .ec-home-category-copy {

        padding:
            10px 3px 4px;
    }

}
