/* ========================================
   Certificeringen-pagina — Spaar Electra
   Pagina-specifieke styling (mobile-first)
   Hergebruikt pd-* basis uit project-detail.css
   ======================================== */

/* ----------------------------------------
   HERO — vult het volledige scherm bij openen
   (100svh minus header van 80px / 70px mobiel)
   ---------------------------------------- */
.pd-hero.cert-hero {
    height: auto;
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
}

.pd-hero.cert-hero::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.12) 100%);
}

.pd-hero.cert-hero .pd-hero-content {
    padding-bottom: clamp(60px, 10vw, 110px);
}

.cert-hero-sub {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
    .pd-hero.cert-hero {
        min-height: calc(100vh - 70px);
        min-height: calc(100svh - 70px);
    }
}

/* ----------------------------------------
   BADGE-STRIP (klikbare ankers naar de blokken)
   ---------------------------------------- */
.certs--page {
    padding: 36px 0 64px;
    background: transparent;
}

a.cert-badge {
    text-decoration: none;
    cursor: pointer;
}

a.cert-badge .cert-name {
    color: var(--text-light, #6b7275);
}

a.cert-badge:hover .cert-name {
    color: var(--accent);
}

.cert-logo--sbb {
    height: 96px;
    max-width: none;
}

/* ----------------------------------------
   CERTIFICERING-DETAILBLOKKEN
   ---------------------------------------- */
.cert-detail {
    padding: 56px 0;
    scroll-margin-top: 100px;
}

.cert-detail--alt {
    background: #f6f6f6;
}

.cert-detail-inner {
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Logo-paneel */
.cert-detail-media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.cert-detail-logocard {
    background: var(--white);
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
    padding: 44px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    min-height: 200px;
}

.cert-detail-logocard img {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tekstkolom */
.cert-detail-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 12px;
}

.cert-detail-body h2 {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin: 0 0 18px;
}

.cert-detail-body p {
    font-size: 17px;
    line-height: 1.75;
    color: #6b7275;
    margin-bottom: 16px;
}

.cert-detail-body p:last-child {
    margin-bottom: 0;
}

/* Voordelen-kader: wat levert het de klant op */
.cert-benefits {
    margin-top: 26px;
    background: var(--white);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 24px 26px;
}

.cert-detail--alt .cert-benefits {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cert-detail:not(.cert-detail--alt) .cert-benefits {
    background: #fafafa;
}

.cert-benefits-title {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 14px;
}

.cert-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-benefits li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #565c5f;
}

.cert-benefits li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(-45deg);
}

.cert-benefits a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.cert-benefits a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   NORMEN-SECTIE (NEN 1010 / NEN 3140)
   ---------------------------------------- */
.cert-norms {
    padding: 64px 0 72px;
    background: #f6f6f6;
}

.cert-norms-inner {
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.cert-norms-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 12px;
}

.cert-norms h2 {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.4px;
    margin: 0 0 16px;
}

.cert-norms-intro {
    font-size: 17px;
    line-height: 1.7;
    color: #6b7275;
    max-width: 680px;
    margin: 0 auto 40px;
}

.cert-norms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
}

.cert-norm-card {
    background: var(--white);
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cert-norm-card h3 {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 10px;
}

.cert-norm-card p {
    font-size: 16px;
    line-height: 1.65;
    color: #6b7275;
    margin: 0;
}

/* ----------------------------------------
   DONKERE CTA-BAND
   ---------------------------------------- */
.cert-cta {
    background: var(--bg-dark, #1a1a1a);
    padding: 76px 0 84px;
    position: relative;
    overflow: hidden;
}

.cert-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -12%;
    width: 55%;
    height: 200%;
    background: rgba(225, 4, 16, 0.12);
    transform: rotate(-15deg);
    pointer-events: none;
}

.cert-cta-inner {
    width: 88%;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cert-cta h2 {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.4px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cert-cta p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto 32px;
    max-width: 560px;
}

.cert-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cert-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.cert-cta-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.cert-cta-phone {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
}

.cert-cta-phone strong {
    color: var(--white);
}

.cert-cta-phone:hover strong {
    color: var(--accent);
}

/* ----------------------------------------
   TABLET & DESKTOP
   ---------------------------------------- */
@media (min-width: 768px) {
    .cert-norms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .cert-cta-actions {
        flex-direction: row;
        justify-content: center;
        gap: 28px;
    }
}

@media (min-width: 1025px) {
    .cert-detail {
        padding: 84px 0;
    }

    .cert-detail-inner {
        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 72px;
        align-items: start;
    }

    /* logo rechts bij afwisselende blokken */
    .cert-detail--alt .cert-detail-inner {
        grid-template-columns: 1fr 340px;
    }

    .cert-detail--alt .cert-detail-media {
        order: 2;
    }

    .cert-detail-logocard {
        min-height: 230px;
        position: sticky;
        top: 110px;
    }
}
