.bps-section,
.bps-section * {
    box-sizing: border-box;
}

.bps-section button,
.bps-section input,
.bps-section textarea,
.bps-section select {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.bps-section {
    --bps-bg: #383c22;
    --bps-border: #60654a;
    --bps-text: #f2f0e8;
    --bps-muted: #a2a493;
    --bps-accent: #aaa96b;
    --bps-max-width: 2048px;
    width: 100%;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    background: var(--bps-bg);
    color: var(--bps-text);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.bps-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, var(--bps-max-width));
    height: auto !important;
    min-height: 0;
    margin: 0 auto;
}

.bps-company {
    min-width: 0;
    height: auto !important;
    min-height: 0;
    padding: clamp(30px, 3.2vw, 58px) clamp(26px, 3.4vw, 58px) clamp(32px, 3.4vw, 58px);
}

.bps-company + .bps-company {
    border-left: 1px solid var(--bps-border);
}

.bps-company-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.bps-brand {
    min-width: 0;
}

/* Logo's bewust compact gehouden. Ook oudere blokken met een grotere opgeslagen
   logobreedte worden door de PHP nu op maximaal 160px begrensd. */
.bps-logo {
    display: block;
    width: min(var(--bps-logo-width), 100%);
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.bps-company-name {
    color: var(--bps-text);
    font-size: clamp(32px, 2.4vw, 44px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.035em;
}

.bps-eyebrow {
    color: var(--bps-accent);
    font-size: clamp(11px, .7vw, 13px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .16em;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

.bps-description {
    max-width: 900px;
    margin-top: clamp(24px, 2vw, 34px);
    color: var(--bps-muted);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -.01em;
}

.bps-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
        var(--bps-stat-row-1, auto)
        var(--bps-stat-row-2, auto);
    width: 100%;
    height: auto !important;
    min-height: 0;
    margin-top: clamp(26px, 2.4vw, 38px);
    border: 1px solid var(--bps-border);
    border-radius: 18px;
    overflow: hidden;
}

.bps-stat {
    min-width: 0;
    min-height: clamp(118px, 10vw, 142px);
    padding: clamp(20px, 1.8vw, 28px);
}

/* Interne rasterlijnen zonder dubbele buitenrand. */
.bps-stat:nth-child(odd) {
    border-right: 1px solid var(--bps-border);
}

.bps-stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--bps-border);
}

.bps-stat-value {
    color: var(--bps-text);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.bps-stat-label {
    margin-top: clamp(14px, 1.2vw, 20px);
    color: var(--bps-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* Tablet / small laptop: panels stack, stats blijven 2x2. */
@media (max-width: 980px) {
    .bps-company {
        padding: clamp(28px, 5vw, 46px) clamp(22px, 5vw, 42px);
    }

    .bps-inner {
        grid-template-columns: 1fr;
    }

    .bps-company + .bps-company {
        border-left: 0;
        border-top: 1px solid var(--bps-border);
    }

    .bps-company-header {
        min-height: 60px;
    }

    .bps-logo {
        max-height: 58px;
    }

    .bps-description {
        font-size: 18px;
    }

    .bps-stat-value {
        font-size: clamp(28px, 4vw, 34px);
    }
}

/* Mobiel: compacte header en één statistiek per rij. */
@media (max-width: 560px) {
    .bps-section {
        font-size: 16px;
    }

    .bps-company-header {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
    }

    .bps-eyebrow {
        font-size: 11px;
        text-align: left;
        white-space: normal;
    }

    .bps-logo {
        width: min(var(--bps-logo-width), 120px);
        max-height: 48px;
    }

    .bps-company-name {
        font-size: 32px;
    }

    .bps-description {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.6;
    }

    .bps-stats {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        margin-top: 24px;
        border-radius: 16px;
    }

    .bps-stat {
        min-height: 0;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--bps-border);
    }

    .bps-stat:last-child {
        border-bottom: 0;
    }

    .bps-stat-value {
        font-size: 28px;
    }

    .bps-stat-label {
        margin-top: 10px;
        font-size: 13px;
    }
}
