/* HERO (full background) */
.edm-hero-bg{
    position: relative;
    min-height: 64vh;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--line);
}

.edm-hero-bg__overlay{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.55);
}

.edm-hero-bg__inner{
    position:relative;
    z-index:1;
    text-align:center;
    padding: 56px 0;
    color: #fff;
    max-width: 900px;
}

.edm-hero-kicker{
    margin: 0 0 10px;
    font-weight: 600;       /* softer */
    letter-spacing: 0;      /* no spread */
    text-transform: none;   /* not shouting */
    opacity: .95;
}

.edm-hero-title{
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;       /* was 950 */
    letter-spacing: 0;
    line-height: 1.12;
    text-transform: none;
}

.edm-hero-title span{
    display:block;
    font-weight: 950;
}

.edm-hero-subtitle{
    margin: 0 0 18px;
    opacity: .95;
}

/* Make buttons look good on dark hero */
.edm-hero-bg .edm-btn--outline{
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.edm-hero-bg .edm-btn--outline:hover{
    background: rgba(255,255,255,.12);
}

/* Section spacing */
.edm-section{
    padding: 26px 0 54px;
    background: #f5f3ed;
}

/* Diensten pairs */
.edm-pair{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0;
}

.edm-box{
    border: 1px solid var(--line);
    box-shadow: none;
    background: #fff;
}

.edm-box--image img{
    width:100%;
    height: 220px; /* mobile */
    object-fit: cover;
}

.edm-box--text{
    padding: 16px;
}
.edm-box--text p{
    margin:0;
    color: var(--muted);
}

/* Divider */
.edm-divider{
    height:1px;
    background: var(--line);
    margin: 26px 0;
}

/* CTA */
.edm-cta{
    border: 1px solid var(--line);
    box-shadow: none;
    background: #fff;
    max-width: 820px;     /* controls width on desktop */
    margin: 0 auto;       /* centers it */
}

/* Desktop tweaks */
@media (min-width: 900px){
    .edm-hero-bg{
        min-height: 72vh;
    }

    /* more square-ish boxes */
    .edm-pair{
        grid-template-columns: minmax(0, 360px) minmax(0, 360px);
        justify-content: center;
        gap: 18px;
        align-items: stretch;
    }

    .edm-pair--reverse .edm-box--image{ order:2; }
    .edm-pair--reverse .edm-box--text { order:1; }

    .edm-box{
        aspect-ratio: 1 / 1;
    }
    .edm-box--image img{
        height: 100%;
    }
    .edm-box--text{
        display:flex;
        flex-direction:column;
        justify-content:center;
    }

    .edm-cta{
        flex-direction: row;
        align-items:center;
        justify-content: space-between;
        text-align: center;
        align-items: center;   /* for flex */
    }
}
