/* ── Portfolio Page ─────────────────────────────────────── */

.hero-section {
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.hero-content { max-width: 760px; }

.hero-title    { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }

.hero-features { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.feature-tag   { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); color: #d4af37; padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Portfolio Grid ────────────────────────────────────── */
.portfolio-section {
    padding: 4rem 2rem 6rem;
    /* // cls-fix: min-height reserveert ruimte voor het grid — browser toewijst de hoogte
       al vóór alle kaart-stijlen geladen zijn; voorkomt dat CTA en footer omhoog springen */
    min-height: 900px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.section-title span { color: #d4af37; }

/* // a11y: opacity verhoogd van 0.4 naar 0.6 — WCAG AA vereist ≥4.5:1 contrast tegen #050505 */
.section-sub {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    max-width: 1140px;
    margin: 0 auto;
    /* // perf: contain:layout isoleert layout-berekeningen — wijzigingen binnen het grid
       triggeren geen reflow van elementen buiten het grid (footer, CTA-sectie) */
    contain: layout;
}

.portfolio-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    /* // perf: alleen transform animeren — compositor-thread, geen layout/paint op main-thread */
    /* border-color en box-shadow worden instant toegepast op :hover (geen transition) */
    transition: transform 0.3s ease;
    will-change: transform;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.06);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.card-thumb-dd   { background: linear-gradient(135deg, #050505 0%, #0e0e0e 100%); }
.card-thumb-tt   { background: linear-gradient(135deg, #0a0a14 0%, #12121e 100%); }
.card-thumb-rest { background: linear-gradient(135deg, #0d0a06 0%, #1a1408 100%); }
.card-thumb-zorg { background: linear-gradient(135deg, #060d0a 0%, #0c1810 100%); }
.card-thumb-schade { background: linear-gradient(135deg, #080807 0%, #141108 60%, #1c1606 100%); }
.card-thumb-vastgoed { background: linear-gradient(135deg, #080810 0%, #10101a 100%); }

.card-thumb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.card-mock-bar {
    width: 80%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.card-mock-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 55%;
    background: linear-gradient(90deg, #d4af37, #b8902e);
    border-radius: 4px;
}
.card-mock-line {
    width: 70%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
}
.card-mock-line.short { width: 45%; }

.card-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.04em;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.35);
    color: #d4af37;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.card-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

/* // a11y: opacity verwijderd — #d4af37 vol gebruikt; gold-op-donker (#050505) haalt ~8:1 contrast */
.card-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* // a11y: opacity verhoogd van 0.45 naar 0.6 — 4.43:1 zakte net onder WCAG AA grens */
.card-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

/* // a11y: .tag ontbrak in CSS — toegevoegd met WCAG-compliant contrast (wit op donker kaart) */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Foto in kaart ────────────────────────────────────── */
.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    z-index: 1;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.9;
}
.portfolio-card:hover .card-thumb img {
    transform: scale(1.04);
    opacity: 1;
}
/* Geen foto (src leeg): verberg de broken image */
.card-thumb img[src=""],
.card-thumb img:not([src]) {
    display: none;
}
/* Badge altijd boven de foto */
.card-badge {
    z-index: 3;
}

/* ── Website link knop ─────────────────────────────────── */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 0.6rem;
    flex-wrap: wrap;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(212,175,55,0.35);
    color: #d4af37;
    background: rgba(212,175,55,0.06);
    /* // perf: alleen opacity animeren — compositor-thread */
    /* background/color/border-color worden instant toegepast op :hover */
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.card-link:hover {
    opacity: 0.85;
    background: rgba(212,175,55,0.14);
    border-color: rgba(212,175,55,0.7);
    color: #e8c96a;
}
.card-link svg { flex-shrink: 0; }
.card-link--disabled {
    border-color: rgba(255,255,255,0.12);
    /* // a11y: opacity verhoogd van 0.25 naar 0.45 — decoratieve staat, toch leesbaar houden */
    color: rgba(255,255,255,0.45);
    background: transparent;
    cursor: default;
    pointer-events: none;
}

/* ── CTA sectie ───────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 3rem 2rem 6rem;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-section h2 span { color: #d4af37; }

/* // a11y: opacity verhoogd van 0.45 naar 0.6 */
.cta-section p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gold {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    background: linear-gradient(135deg, #d4af37, #b8902e);
    color: #111;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    transition: opacity 0.25s, transform 0.25s;
}
.btn-gold:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────── */
.main-footer        { border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 2rem 2rem; margin-top: 2rem; }
.footer-container   { max-width: 1140px; margin: 0 auto; }
.footer-title       { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 2rem; text-align: center; }
.footer-title span  { color: #d4af37; }
/* // a11y: city-list 0.35→0.55, footer-bottom 0.45→0.55 — 0.45 was 4.41:1 (net onder WCAG AA grens) */
.provincie-grid     { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.provincie-card     { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.9rem 1rem; }
.provincie-name     { font-weight: 700; font-size: 0.8rem; color: #d4af37; margin-bottom: 0.3rem; }
.city-list          { font-size: 0.72rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-bottom      { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); font-size: 0.75rem; }

/* ── Mobiel ────────────────────────────────────────────── */
/* // cls-fix mobiel: op 360-768px staan 6 kaarten verticaal gestapeld (~400px per kaart)
   min-height:2200px reserveert de ruimte zodat CTA en footer niet omhoog springen
   terwijl het grid wordt gebouwd; gap vergroot voor betere leesbaarheid */
@media (max-width: 768px) {
    .portfolio-section {
        min-height: 2200px;
    }
    .portfolio-grid {
        gap: 2rem;
    }
}
