/* =========================================================
   ANALYSE HERO
   Eén component voor Home, Particulier, Wonen en vervolgpagina's
========================================================= */


/* =========================================================
   1. HERO BUITENKADER
========================================================= */

.analyse-hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    overflow: hidden;

    display: flex;
    align-items: center;
}


/* Zachte blauwe gloed - op iedere hero gelijk */
.analyse-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;

    width: 700px;
    height: 700px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(20, 118, 212, .08) 0%,
        rgba(20, 118, 212, .04) 35%,
        transparent 70%
    );

    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   2. HERO GRID
========================================================= */

.analyse-hero > .kt-row-column-wrap {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 64px), 1280px) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;

    display: grid !important;
    grid-template-columns: 560px 600px !important;
    column-gap: 80px !important;

    justify-content: space-between !important;
    align-items: center !important;
}


/* Kadence mag onze kolombreedtes niet aanpassen */
.analyse-hero > .kt-row-column-wrap > .wp-block-kadence-column {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
}


/* =========================================================
   3. LINKERKOLOM
========================================================= */

.analyse-hero__content {
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
}


/* Gutenberg/Kadence marges neutraliseren */
.analyse-hero__content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   4. EYEBROW
========================================================= */

.analyse-hero__content .analyse-eyebrow {
    margin: 0 !important;

    color: var(--analyse-primary);
    font-size: .90rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

.analyse-hero__content .analyse-eyebrow::before {
    content: "";

    width: 42px;
    height: 2px;
    flex: 0 0 42px;

    background: var(--analyse-primary);
}


/* =========================================================
   5. TITEL
========================================================= */

.analyse-hero__content h2 {
    width: 100%;
    max-width: 22ch;

    margin-top: 3rem !important;
    margin-bottom: 0 !important;

    color: var(--analyse-navy);
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}


/* =========================================================
   6. INTRO
========================================================= */

.analyse-hero__content .analyse-hero__intro {
    width: 100%;
    max-width: 44ch;

    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;

    color: var(--analyse-text);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}


/* =========================================================
   7. KNOPPEN
========================================================= */

.analyse-hero__content .analyse-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;

    margin-top: 1.5rem !important;
    padding-top: 0 !important;
}

.analyse-hero__buttons .wp-block-button__link {
    min-width: 0;
}


/* =========================================================
   8. RECHTER VISUAL
   ALTIJD exact hetzelfde bouwblok
========================================================= */

.analyse-hero__visual {
    position: relative !important;

    width: 600px !important;
    max-width: 600px !important;
    height: 420px !important;
    min-height: 420px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 24px !important;
    overflow: hidden !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    box-sizing: border-box !important;
}


/* Kadence binnencontainer vult uitsluitend de visual */
.analyse-hero__visual > .kt-inside-inner-col {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: inherit !important;
    overflow: hidden !important;

    box-sizing: border-box !important;
}


/* =========================================================
   9. AFBEELDING IN VISUAL
========================================================= */

.analyse-hero__visual figure {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.analyse-hero__visual img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   10. HERO OVERLAY
========================================================= */

.analyse-hero__overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;

    z-index: 2;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;

    width: auto !important;
    max-width: none !important;
}


/* =========================================================
   11. OVERLAY TEGELS
========================================================= */

.analyse-hero__overlay > .analyse-hero-tile {
    position: relative;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 16px 18px !important;

    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;

    column-gap: 12px !important;
    row-gap: 2px !important;

    align-items: center !important;
    align-content: center !important;

    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(20, 45, 75, .10);

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.analyse-hero__overlay > .analyse-hero-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 45, 75, .18);
}


/* Icoon */
.analyse-hero__overlay > .analyse-hero-tile .analyse-card__icon {
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;

    background-color: var(--analyse-primary) !important;
}


/* Titel tegel */
.analyse-hero__overlay > .analyse-hero-tile h3 {
    grid-column: 2;
    grid-row: 1;

    margin: 0 !important;

    font-size: 17px !important;
    line-height: 1.2 !important;
}


/* Tekst tegel */
.analyse-hero__overlay > .analyse-hero-tile p {
    grid-column: 2;
    grid-row: 2;

    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.3 !important;
}


/* Hele tegel klikbaar */
.analyse-hero-tile p a {
    color: inherit !important;
    text-decoration: none !important;
}

.analyse-hero-tile p a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}


/* =========================================================
   12. TABLET
========================================================= */

@media (max-width: 1100px) {

    .analyse-hero {
        min-height: auto;
        padding-block: 64px;
    }

    .analyse-hero > .kt-row-column-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 40px !important;
    }

    .analyse-hero__content {
        width: 100% !important;
        max-width: none !important;
    }

    .analyse-hero__visual {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 10 / 7;
    }
}


/* =========================================================
   13. MOBIEL
========================================================= */

@media (max-width: 767px) {

    .analyse-hero {
        min-height: auto;
        padding-block: 48px;
    }

    .analyse-hero > .kt-row-column-wrap {
        width: calc(100% - 40px) !important;

        grid-template-columns: 1fr !important;
        row-gap: 36px !important;
    }

    .analyse-hero__content {
        width: 100% !important;
        max-width: none !important;
    }

    .analyse-hero__content h2 {
        max-width: none;
        margin-top: 2rem !important;

        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .analyse-hero__content .analyse-hero__intro {
        max-width: none;
        margin-top: 1.25rem !important;
    }

    .analyse-hero__content .analyse-hero__buttons {
        margin-top: 1.5rem !important;

        flex-direction: column;
        align-items: stretch;
    }

    .analyse-hero__buttons .wp-block-button,
    .analyse-hero__buttons .wp-block-button__link {
        width: 100%;
    }

    .analyse-hero__visual {
        width: 100% !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        aspect-ratio: 10 / 7;

        border-radius: 20px !important;
    }

    .analyse-hero__overlay {
        top: 14px;
        left: 14px;
        right: 14px;

        gap: 10px;
    }
    /* Mobiel: omschrijving verbergen,
       link blijft de volledige tegel afdekken */
    .analyse-hero__overlay > .analyse-hero-tile p {
        margin: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .analyse-hero__overlay > .analyse-hero-tile p a {
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
    }

    .analyse-hero__overlay > .analyse-hero-tile p a::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 20 !important;
        cursor: pointer !important;
    }

    
}