/* ========================================
   DIENSTEN
======================================== */

.diensten {
    padding: 76px 0 98px;

    background: #f3f4f5;
}


/* ========================================
   SECTIEKOP
======================================== */

.sectie-kop {
    max-width: 760px;

    margin: 0 auto 48px;

    text-align: center;
}

.sectie-bovenkop {
    display: block;

    margin-bottom: 11px;

    color: #222222;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.sectie-kop h2 {
    margin: 0;

    color: var(--wespi-zwart);

    font-size: clamp(38px, 4vw, 50px);
    line-height: 1.06;

    letter-spacing: -1.7px;
}

.sectie-kop p {
    max-width: 620px;

    margin: 18px auto 0;

    color: #62656a;

    font-size: 16px;
    line-height: 1.65;
}


/* ========================================
   GRID
======================================== */

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* ========================================
   DIENSTKAART
======================================== */

.dienst-kaart {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 15px;

    background: #ffffff;

    color: var(--wespi-zwart);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.055);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dienst-kaart:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 0, 0, 0.13);

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.10);
}


/* ========================================
   VISUAL
======================================== */

.dienst-visual {
    position: relative;

    height: 185px;

    overflow: hidden;

    background: #f4f4f2;
}

.dienst-visual::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 65%,
            rgba(255, 255, 255, 0.18) 100%
        );

    pointer-events: none;
}

.dienst-visual img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.dienst-kaart:hover .dienst-visual img {
    transform: scale(1.035);
}


/* ========================================
   INHOUD
======================================== */

.dienst-inhoud {
    min-height: 255px;

    display: flex;
    flex-direction: column;

    padding: 24px 26px 26px;
}


/* ========================================
   LABEL
======================================== */

.dienst-label {
    margin-bottom: 8px;

    color: #55585c;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* ========================================
   TITEL
======================================== */

.dienst-kaart h3 {
    margin: 0 0 13px;

    color: var(--wespi-zwart);

    font-size: 27px;
    line-height: 1.08;

    letter-spacing: -0.8px;
}


/* ========================================
   TEKST
======================================== */

.dienst-kaart p {
    margin: 0;

    color: #62656a;

    font-size: 14px;
    line-height: 1.65;
}


/* ========================================
   LINK
======================================== */

.dienst-link {
    margin-top: auto;

    padding-top: 24px;

    color: var(--wespi-zwart);

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.dienst-kaart:hover .dienst-link {
    color: #000000;

    transform: translateX(3px);
}


/* ========================================
   SLIMMER WERKEN
======================================== */

.dienst-kaart-accent {
    border-color: rgba(223, 185, 26, 0.48);
}

.dienst-kaart-accent .dienst-inhoud {
    position: relative;
}

.dienst-kaart-accent .dienst-inhoud::before {
    content: "";

    position: absolute;

    top: 0;
    left: 26px;

    width: 48px;
    height: 3px;

    background: var(--wespi-goud);

    transform: translateY(-1px);
}

.dienst-kaart-accent:hover {
    border-color: rgba(223, 185, 26, 0.85);
}


/* ========================================
   OUDE GOLF UITZETTEN
======================================== */

.diensten-golf {
    display: none;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .diensten-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diensten .sectie-kop {
        margin-left: 0;
        margin-right: 0;

        text-align: left;
    }

    .diensten .sectie-kop p {
        margin-left: 0;
        margin-right: 0;
    }

}


/* ========================================
   MOBIEL
======================================== */

@media (max-width: 620px) {

    .diensten {
        padding: 48px 0 76px;
    }

    .diensten-grid {
        grid-template-columns: 1fr;
    }

    .dienst-visual {
        height: 220px;
    }

    .dienst-inhoud {
        min-height: 235px;
    }

}

/* Gerichte mobiele verfijning, fase 3. */

@media (max-width: 620px) {
    .dienst-inhoud { min-height: 0; }
    .diensten { padding-bottom: 56px; }
}
