/**
 * Homepage-specifieke styles
 * Wordt alleen geladen op de homepage (page-home template / front page).
 */

/* ========== Hero sectie ========== */
#home-hero-wrapper {
    height: 80vh;
    position: relative;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}


.home-hero-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(3, 7, 18, 1) 0%, rgba(3, 7, 18, 0.3) 100%);
    pointer-events: none;
}

.home-hero-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.home-hero-content {
    max-width: 640px;
    pointer-events: auto;
}

.home-hero-content .reivews-full-wrapper {
    margin-bottom: 5px;
}

h1.home-hero-title {
    height: 1.1em;
}

.home-hero-text {
    position: relative;
    box-sizing: border-box;
    padding: 0 0 0 24px;
    z-index: 1;
    max-width: 560px;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    height: auto;
    max-height: 96px;
}

.home-hero-text p {
    color: var(--white);

}

.home-hero-text:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background-color: var(--first-color);
}

.home-hero-text p {
    font-size: 18px;
    line-height: 32px;
    height: auto;
    max-height: 96px;
}

.home-hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.link-blocks {
    background-color: var(--dark-bg-2);
    padding: 60px 0;
    position: relative;
}

.link-blocks:before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 80px;
    background-color: var(--dark-bg);
    -webkit-clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.link-blocks-holder {
    display: flex;
    flex-wrap: wrap;
}

.link-block {
    box-sizing: border-box;
    padding: 0 65px;
    width: calc(100% / 3);
    border-right: 1px solid var(--dark-border);
}

.link-block:last-of-type {
    border-right: none;
}

.link-block-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.link-block-image {
    height: 50px;
    margin: 0 0 30px 0;
    width: 100%;
    max-width: 180px;

}

.link-block-image svg,
.link-block-image img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: left center;
    object-position: left center;
}

h3.link-block-title {
    font-size: 28px;
    line-height: 44px;
    height: 44px;
    margin: 0 0 10px 0;
    color: var(--white);
}

.link-block-text {
    font-size: 16px;
    line-height: 29px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    color: var(--text-color);
}

.section-title-wrapper.category-highlights-title {
    text-align: center;
}

.category-highlights-inner {
    box-sizing: border-box;
    padding: 120px 0 0 0;
    position: relative;
}

.category-highlights-inner:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--dark-bg-2);
    width: 100vw;
    right: calc(100% - 300px);
}

.category-wrapper {
    display: block;
    width: calc(100% / 3 - 15px);
}

.category-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    border: 1px solid var(--dark-border);
}

.category-image {
    width: 100%;
    height: 515px;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;

}

.category-link:hover .category-image img {
    transform: scale(1.05);
}


.category-content {
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.4) 0%, rgba(16, 24, 40, 1) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-end;
}

.category-content .category-titel {
    font-size: 28px;
    line-height: 35px;
    height: 35px;
    margin: 0;
    color: var(--white);
}

.product-highlights-wrapper {
    box-sizing: border-box;
    padding-top: 100px;
}

.product-highlights-inner {
    position: relative;
    box-sizing: border-box;
    padding-top: 20px;
}

.product-highlights-inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(100% - 300px);
    bottom: 0;
    width: 100vw;
    background: var(--dark-bg-2);
}

.product-highlights-swiper.swiper {
    overflow: visible;
}

.text-image-row-full-wrapper-1 .text-image-row-full-inner:before {
    content: "";
    position: absolute;
    top: 0;
    background: var(--dark-bg-2);
    width: 100vw;
    right: calc(100% - 300px);
    height: 450px;
}

.text-image-row-full-wrapper-2 .text-image-row-full-inner:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--dark-bg-2);
    width: 100vw;
    left: calc(100% - 300px);
}

.text-image-row-full-wrapper-1 .text-image-row-full-inner {
    position: relative;
    padding: 120px 0 0 0;
    box-sizing: border-box;
}


/* Wrapper variant 2: afbeelding rechts */
.text-image-row-full-wrapper-2 .text-image-row-full-inner {
    position: relative;
    padding: 120px 0;
    box-sizing: border-box;
}

/* ========== Media queries ========== */
@media (max-width: 1300px) {

    .product-highlights-swiper.swiper,
    .category-highlights-swiper.swiper {
        margin-left: -3vw !important;
        margin-right: -3vw !important;
        width: auto;
        box-sizing: border-box;
        padding: 0 3vw !important;
    }

    .section-title-wrapper.category-highlights-title .section-title {
        width: 100%;
    }

    .section-title-wrapper.category-highlights-title {
        text-align: left;
    }
}

@media (max-width: 1200px) {
    #home-hero-wrapper {
        height: 75vh;
        min-height: 500px;
    }

    .home-hero-content {
        max-width: 100%;
    }

    h1.home-hero-title {
        font-size: 56px;
    }

    .home-hero-text {
        max-width: 100%;
        padding-left: 20px;
    }

    .home-hero-text:before {
        width: 3px;
    }

    .home-hero-text p {
        font-size: 17px;
        line-height: 28px;
        max-height: 84px;
    }

    .home-hero-buttons {
        margin-top: 28px;
        gap: 16px;
    }

    .category-image {
        height: 450px;
    }
}

@media (max-width: 1024px) {

    .text-image-row-full-wrapper-2 .text-image-row-full-inner:before,
    .product-highlights-inner:before,
    .text-image-row-full-wrapper-1 .text-image-row-full-inner:before,
    .category-highlights-inner:before {
        display: none;
    }

    .category-highlights-inner {
        padding: 100px 0 0 0;
    }

    .category-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    #home-hero-wrapper {
        height: 70vh;
        min-height: 450px;
    }

    .home-hero-overlay {
        background: linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.85) 50%, rgba(3, 7, 18, 1) 100%);
    }

    .home-hero-container {
        align-items: flex-end;
        padding-bottom: 3vw;
    }

    .home-hero-content .reivews-full-wrapper {
        margin-bottom: 8px;
    }

    h1.home-hero-title {
        font-size: 42px;
        line-height: 1.15em;
    }

    .home-hero-text {
        padding-left: 16px;
        max-height: none;
    }

    .home-hero-text:before {
        width: 3px;
    }

    .home-hero-text p {
        font-size: 16px;
        line-height: 26px;
        max-height: none;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .home-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-top: 24px;
        gap: 12px;
    }

    .home-hero-buttons .custom-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .category-highlights-inner {
        padding: 60px 0 0 0;
    }

    .category-image {
        height: 400px;
    }

}

@media (max-width: 480px) {
    #home-hero-wrapper {
        height: 65vh;
        min-height: 400px;
    }

    .home-hero-container {
        padding-bottom: 32px;
    }

    h1.home-hero-title {
        font-size: 32px;
        line-height: 1.2em;
    }

    .home-hero-text p {
        font-size: 15px;
        line-height: 24px;
    }

    .home-hero-buttons {
        margin-top: 20px;
        gap: 10px;
    }

    .home-hero-buttons .custom-button {
        padding: 12px 18px;
        font-size: 14px;
    }

    .reviews-text {
        font-size: 14px;
    }

    .category-image {
        height: 375px;
    }
}

/* ========== Link-blocks responsive ========== */
@media (max-width: 1024px) {

    .text-image-row-full-wrapper-1 .text-image-row-full-inner {
        padding: 80px 0 0 0;
    }

    .text-image-row-full-wrapper-2 .text-image-row-full-inner {
        padding: 80px 0;
    }

    .link-blocks {
        padding: 48px 0;
    }

    .link-block {
        width: calc(50% - 1px);
        padding: 0 40px;
        border-right: 1px solid var(--dark-border);
        border-bottom: 1px solid var(--dark-border);
    }

    .link-block:nth-child(2n) {
        border-right: none;
    }

    .link-block:last-of-type,
    .link-block:nth-last-of-type(2):nth-child(2n+1) {
        border-bottom: none;
    }

    h3.link-block-title {
        font-size: 24px;
        line-height: 1.3em;
        height: auto;
    }

    .link-block-image {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {

    .text-image-row-full-wrapper-1 .text-image-row-full-inner {
        padding: 60px 0 0 0;
    }

    .text-image-row-full-wrapper-2 .text-image-row-full-inner {
        padding: 60px 0;
    }

    .link-blocks {
        padding: 40px 0;
    }

    .link-blocks:before {
        width: 60px;
        height: 60px;
    }

    .link-block {
        width: 100%;
        padding: 28px 0;
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
    }

    .link-block:nth-child(2n) {
        border-right: none;
    }

    .link-block:last-of-type {
        border-bottom: none;
    }

    .link-block-image {
        height: 44px;
        margin-bottom: 20px;
    }

    h3.link-block-title {
        font-size: 22px;
        line-height: 1.3em;
    }

    .link-block-text {
        font-size: 15px;
        line-height: 26px;
    }
}

@media (max-width: 480px) {

    .link-blocks {
        padding: 32px 0;
    }

    .link-blocks:before {
        width: 50px;
        height: 50px;
    }

    .link-block {
        padding: 24px 0;
    }

    .link-block-image {
        height: 40px;
        margin-bottom: 16px;
    }

    h3.link-block-title {
        font-size: 20px;
    }

    .link-block-text {
        font-size: 14px;
        line-height: 24px;
    }

    .link-block-button {
        margin-top: 16px;
    }
}
