/*
 * Avada / Fusion UI-overrides.
 *
 * Globaal ingeladen via inc/enqueue.php (na style.css). Bevat alleen
 * theme-overrides — feature-CSS hoort in eigen files, conditioneel
 * ingeladen vanuit een module.
 *
 * Onderwerp-blokken:
 *   1. Hero sectie (.herosection)
 *   2. Image clip-path utility (.imagechange)
 *   3. Merken-carousel (.fusion-post-cards)
 */


/* ============================================================
   1. Hero sectie — edge-to-edge ondanks Avada's
   .nonhundred-percent-fullwidth container instelling.
   100vw-breakout met negatieve margin trekt 'm uit de Site Width.
   ============================================================ */
.herosection {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;

    height: 600px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.herosection > .fusion-row,
.herosection .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.herosection::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 140, 0.85);
    clip-path: polygon(0 0, 45% 0, 60% 50%, 45% 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 45% 0, 60% 50%, 45% 100%, 0 100%);
    z-index: 1;
}

.herosection > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .herosection {
        height: 480px;
    }
    .herosection::before {
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
}


/* ============================================================
   2. Image utility — afgeschuinde hoeken (linksboven + rechtsonder).
   Voeg .imagechange toe via Avada Builder → Element → CSS Classes.
   ============================================================ */
.imagechange img {
    clip-path: polygon(
        90px 0,
        100% 0,
        100% calc(100% - 90px),
        calc(100% - 90px) 100%,
        0 100%,
        0 90px
    );
}


/* ============================================================
   3. Merken-carousel — logo's op 100×100 met 30px tussenruimte.
   Swiper zet width/margin inline; !important overschrijft dat.
   ============================================================ */
.fusion-post-cards .post-card img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.fusion-post-cards .post-card .fusion-imageframe {
    display: block;
    text-align: center;
}

.fusion-post-cards .post-card.swiper-slide {
    width: 100px !important;
    margin-right: 50px !important;
}
