/* Hero - Old Hero with diagonal
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;

    min-height: 30rem;

    --tw-gradient-from: rgb(208 224 252 / 0.22);
    --tw-gradient-to: white;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);

    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.hero__diagonal {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -20rem;
    z-index: -10;
    width: 200%;
    transform-origin: top right;
    background-color: white;

    --tw-skew-x: -30deg;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));

    box-shadow: 0 20px 25px -5px rgba(13, 97, 242, 0.08), 0 10px 10px -5px rgba(13, 97, 242, 0.04);
}

.hero__headlines {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.hero__heading h1 {
    font-size: var(--text-5xl);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--black);
}

.hero__heading {
    width: 35ch;
}

.hero__subheading {
    width: 40ch;
    line-height: 1.5;
    font-size: var(--text-sm);
    color: var(--slate-700);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero__logos {
    padding: 1rem 0;
    position: relative;
    top: -3rem;


    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /*backdrop-filter: blur(6.7px);*/
    /*-webkit-backdrop-filter: blur(6.7px);*/
    /*
    border: 1px solid var(--slate-200);
}

.hero__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero__logo {
    --hero-items: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% / var(--hero-items)) - (((var(--hero-items) - 1) / var(--hero-items)) * 1rem));
}

.hero__img {
    width: 86px;
    height: auto;
}

.hero__ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.hero__about-us {
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    padding: 0.75em 1.5em;
    font-size: var(--text-sm);
    display: flex;
    gap: 6px;
}

.hero__icon {
    color: var(--primary-500);
}

@media only screen and (min-width: 769px) {
    .hero__diagonal {
        margin-right: -24rem;
    }

    .hero__headlines {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero__heading {
        width: auto;
    }

    .hero__heading h1 {
        font-size: var(--text-5xl);
    }

    .hero__subheading {
        width: 60ch;
        line-height: 1.75rem;
        font-size: var(--text-base);
        color: var(--grey-700);
        font-weight: 300;
        margin-bottom: 1.5rem;
    }

    .hero__grid {
        justify-content: space-between;
    }

    .hero__logo {
        --hero-items: 5;
    }

    .hero__img {
        width: 94px;
    }
}

@media only screen and (min-width: 993px) {
    .hero__heading h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero__img {
        width: 116px;
    }
}
*/

/* Hero
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 30rem;
    overflow: hidden;
    position: relative;

    background-size: cover !important;
    background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.6)), url(/assets/img/home/boisedrone__sm.jpg) no-repeat center center scroll;
}

.hero__headlines {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.hero__rsd-logo {
    width: 160px;
    margin-bottom: 2rem;
}

.hero__subheading {
    width: 40ch;
    line-height: 1.5;
    font-size: var(--text-sm);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--slate-200);
}

.hero__logos {
    padding: 1rem 0;
    position: relative;
    top: -3rem;


    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /*backdrop-filter: blur(6.7px);*/
    /*-webkit-backdrop-filter: blur(6.7px);*/

    border: 1px solid var(--slate-200);
}

.hero__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero__logo {
    --hero-items: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% / var(--hero-items)) - (((var(--hero-items) - 1) / var(--hero-items)) * 1rem));
}

.hero__img {
    width: 86px;
    height: auto;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.hero__cta {
    width: 40%;
}

.hero__about-us {
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    padding: 0.75em 1.5em;
    font-size: var(--text-sm);
    display: flex;
    gap: 6px;
    color: var(--slate-200);
}

.hero__icon {
    color: var(--primary-500);
}

@media only screen and (min-width: 769px) {
    .hero {
        min-height: 35rem;
        background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.6)), url(/assets/img/home/boisedrone.jpg) no-repeat center center scroll;
    }

    .hero__rsd-logo {
        width: 180px;
    }

    .hero__headlines {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero__subheading {
        width: 60ch;
        line-height: 1.75rem;
        font-size: var(--text-base);
        color: var(--grey-100);
        font-weight: 300;
        margin-bottom: 1.5rem;
    }

    .hero__cta {
        width: auto;
    }

    .hero__grid {
        justify-content: space-between;
    }

    .hero__logo {
        --hero-items: 5;
    }

    .hero__img {
        width: 94px;
    }
}

@media only screen and (min-width: 993px) {
    .hero__img {
        width: 116px;
    }
}


/* Categories Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.categories__section {
    padding: 0 0 3rem 0;
    background-color: var(--primary-50);
    border-top: 1px solid var(--slate-200);
}

.categories__title {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: var(--text-base);
}

.categories__grid {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.categories__box {
    background-color: white;
    --categories-items: 2;
    position: relative;
    box-sizing: border-box;
    border: 1px solid var(--slate-200);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc((100% / var(--categories-items)) - (((var(--categories-items) - 1) / var(--categories-items)) * 1rem));
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    gap: 1rem;
    color: var(--slate-700);
    font-size: var(--text-xs);
}


.categories__box:hover {
    border: 1px solid var(--primary-blue);
}

/*
.categories__box:hover .categories__img {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}
*/

.categories__img {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: contain;
    
    
    /*-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    /*filter: grayscale(100%);*/
}


.categories__link {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@media only screen and (min-width: 769px) {
    .categories__section {
        padding: 0 0 3.5rem 0;
    }

    .categories__title {
        font-size: var(--text-lg);
    }

    .categories__grid {
        gap: 1rem;
    }

    .categories__box {
        --categories-items: 4;
        font-size: var(--text-sm);
    }
}

@media only screen and (min-width: 1200px) {
    .categories__section {
        padding: 0 0 4.5rem 0;
    }

    .categories__box {
        --categories-items: 5;
    }
}

/* Panel with Images
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.panels {
    padding: 3rem 0;
    border-top: solid 1px var(--slate-200);
    background-color: var(--grey-50);
}

.panel__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel {
    height: 14rem;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    --cards: 1;
    width: calc((100% / var(--cards)) - (((var(--cards) - 1) / var(--cards)) * 1rem));

    isolation: isolate;
    overflow: hidden;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.panel__text {
    display: none;
    text-align: right;
    z-index: 3;
    width: 40%;
}

.panel__text-mobile--first {
    margin-bottom: 2rem;
}

.panel__title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--grey-700);
    font-size: var(--text-sm);
}

.panel__description {
    /* color: var(--slate-400); */
    color: var(--slate-700);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: var(--text-sm);
}

.panel__link {
    color: var(--primary-500);
    font-size: var(--text-sm);
    text-decoration: underline;
}

.panel__background {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; /* Adjusted to fill the area under the skewed pseudo-element */
    left: 0; /* Adjusted to fill the whole panel */
    z-index: 0;
    background-size: cover;
}

.panel__background--refrigerant {
    background-image: url("/assets/img/home/refrigerant.jpg");
}

.panel__background--store {
    background-image: url("/assets/img/home/branch.jpg");
}

.panel__background::before {
    display: none;

    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; /* Aligns the pseudo-element with the panel edge */
    left: 50%; /* Covers the left half, under the skew */
    margin-left: 6rem;
    background-color: white;
    transform-origin: top right;
    transform: skewX(-30deg);
    z-index: -1; /* Sit behind the image but above any other background */

    /*box-shadow: 20px 0 25px -5px rgba(13, 97, 242, 0.08) inset, 10px 0 10px -5px rgba(13, 97, 242, 0.04) inset;*/

    width: 100%;

    --tw-gradient-from: rgb(208 224 252 / 0.22);
    --tw-gradient-to: white;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);

    /*background-image: linear-gradient(to bottom, var(--tw-gradient-stops));*/
}

@media only screen and (min-width: 769px) {
    .panels {
        padding: 3.5rem 0;
    }

    .panel__text {
        display: block;
    }

    .panel__text-mobile {
        display: none;
    }

    .panel__background::before {
        display: block;
    }
}

@media only screen and (min-width: 993px) {
    .panels {
        padding: 4.5rem 0;
    }

    .panel {
        --cards: 2;
    }

    .panel__background--store {
        background-image: url("/assets/img/home/branch__lg.jpg");
    }

    .panel__background::before {
        margin-left: 2rem;
    }

    .panel__text {
        width: 45%;
    }
}

@media only screen and (min-width: 1440px) {
    .panel__background::before {
        margin-left: 6rem;
    }

    .panel__background--store {
        background-image: url("/assets/img/home/branch.jpg");
    }

    .panel__text {
        width: 40%;
    }
}



/* Cards
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.cards {
    padding: 3rem 0;
    border-top: solid 1px var(--grey-200);
    /* border-top: solid 1px var(--slate-200); */
    /* background-color: var(--primary-navy); */
    background-color: var(--primary-50);
}

.cards__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.card {
    border: solid 1px var(--grey-200);
    /*border: 1px solid var(--slate-800);*/
    background-color: white;
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    --cards: 1;
    width: calc((100% / var(--cards)) - (((var(--cards) - 1) / var(--cards)) * 1rem));

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card__icon {
    width: 3rem;
    height: 3rem;
    border: solid 1px var(--primary-200);
    /* border: 1px solid var(--slate-800); */
    border-radius: 10px;
    /* background-color: rgba(30,41,59,.6); */
    background-color: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__icon-img {
    width: 1.5rem;
    height: 1.5rem;
}

.card__text {
    flex: 1;
    flex-basis: 100%;
}

.card__title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--grey-700);
    font-size: var(--text-sm);
}

.card__description {
    /* color: var(--slate-400); */
    color: var(--slate-700);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: var(--text-sm);
}

.card__link {
    color: var(--grey-700);
    font-size: var(--text-sm);
    text-decoration: underline;
}

@media only screen and (min-width: 769px) {
    .cards {
        padding: 3.5rem 0;
    }

    .card {
        --cards: 2;
    }
}

@media only screen and (min-width: 993px) {
    .card {
        --cards: 3;
    }

    .cards {
        padding: 4.5rem 0;
    }
}

@media only screen and (min-width: 1200px) {
    .card {
        flex-wrap: nowrap;
    }

    .card__text {
        flex: 1;
    }
}