/* Apex – extra pagebuilder-lagen (Kerncijfers, Kaarten, Stappen, Tekst met foto). Kleuren en typografie volgen het theme. */

.apex-laag{ padding: 64px 0; }
.apex-laag--licht{ background-color: #ededef; }
.apex-laag--wit{ background-color: #ffffff; }
.apex-laag--donker{ background-color: #141734; color: #ffffff; }
.apex-laag h2{ color: #141734; margin-bottom: 0; }
.apex-laag--donker h2{ color: #ffffff; }
.apex-laag h3{ font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 12px; color: #141734; }
.apex-laag p{ line-height: 1.6; }
.apex-laag.apex-laag--donker h2, .apex-laag.apex-laag--donker h3, .apex-laag.apex-laag--donker p{ color: #ffffff; }
.apex-laag__kop{ max-width: 760px; margin-bottom: 40px; }
.apex-laag__intro{ margin-top: 20px; font-size: 18px; }
/* donker blok direct na de donkere paginakop: geen dubbele witruimte */
.hoofdlaag + .apex-laag--donker{ padding-top: 0 !important; }
.apex-laag__knoppen{ display: flex; flex-wrap: wrap; gap: 16px 64px; margin-top: 32px; }

/* Kerncijfers */
.apex-cijfers{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.apex-cijfers__item{ display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid #A27F33; }
.apex-cijfers__getal{ font-size: 40px; font-weight: 700; line-height: 1; color: #A27F33; }
.apex-cijfers__label{ font-size: 16px; line-height: 1.45; }
.apex-laag--donker .apex-cijfers__label{ color: rgba(255, 255, 255, 0.85); }

/* Kaarten */
.apex-kaarten{ display: grid; grid-template-columns: 1fr; gap: 24px; }
.apex-kaart{ background: #ffffff; display: flex; flex-direction: column; overflow: hidden; }
.apex-laag--wit .apex-kaart{ background: #ededef; }
.apex-laag--donker .apex-kaart{ background: #1d2146; }
.apex-kaart__foto{ aspect-ratio: 4 / 3; overflow: hidden; }
.apex-kaart__foto img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.apex-kaart:hover .apex-kaart__foto img{ transform: scale(1.04); }
.apex-kaart__body{ padding: 28px; display: flex; flex-direction: column; flex: 1; }
.apex-kaart__icoon{ width: 56px; height: 56px; border-radius: 100%; background: #141734; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.apex-laag--donker .apex-kaart__icoon{ background: #A27F33; }
.apex-kaart__label{ font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #A27F33; margin-bottom: 10px; }
.apex-kaart__tekst p{ margin-bottom: 10px; }
.apex-kaart__tekst p:last-child{ margin-bottom: 0; }
.apex-kaart__tekst a{ color: #141734; text-decoration: underline; }
.apex-laag--donker .apex-kaart__tekst a{ color: #ffffff; }
.apex-kaart__link{ align-self: flex-start; margin-top: auto; padding-top: 20px; font-weight: 700; color: #A27F33; display: inline-flex; align-items: center; gap: 10px; }
.apex-kaart__link::after{ content: ""; width: 18px; height: 18px; background: url(https://apex-investments.nl/wp-content/uploads/2024/10/arrow-gold.svg) center / contain no-repeat; transition: transform 0.2s; }
.apex-kaart__link:hover::after{ transform: translateX(4px); }

/* Stappen */
.apex-stappen{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 32px; counter-reset: apexstap; }
.apex-stap{ counter-increment: apexstap; position: relative; }
.apex-stap__nummer{ width: 56px; height: 56px; border-radius: 100%; background: #A27F33; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 22px; position: relative; z-index: 1; }
.apex-stap__nummer::before{ content: counter(apexstap); }

/* Tekst met foto */
.apex-tekstfoto{ display: flex; flex-direction: column; gap: 32px; }
.apex-tekstfoto__body{ margin-top: 24px; }
.apex-tekstfoto__body p{ margin-bottom: 16px; }
.apex-tekstfoto__body p:last-child{ margin-bottom: 0; }
.apex-tekstfoto__body a{ color: inherit; text-decoration: underline; }
.apex-tekstfoto__foto img{ width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }

/* Team (automatisch uit berichttype Team) */
.apex-team{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 300px)); gap: 24px; }
.apex-teamlid{ position: relative; height: 380px; overflow: hidden; background: #1d2146; }
.apex-teamlid__foto{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.apex-teamlid::before{ content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(15, 9, 30, 0.85) 100%); }
.apex-teamlid__info{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; color: #ffffff; }
.apex-laag .apex-teamlid__info p{ color: #ffffff; margin: 0; }
.apex-laag .apex-teamlid__naam{ font-size: 22px; font-weight: 700; line-height: 1.2; }
.apex-laag .apex-teamlid__functie{ margin: 6px 0 14px; }
.apex-teamlid__linkedin{ display: block; width: 40px; height: 40px; border-radius: 100%; background: #A27F33 url(https://apex-investments.nl/wp-content/uploads/2024/10/LinkedIn.svg) center / 20px no-repeat; transition: opacity 0.3s; }
.apex-teamlid__linkedin:hover{ opacity: 0.8; }

@media (min-width: 768px){
	.apex-cijfers{ grid-template-columns: repeat(4, 1fr); }
	.apex-kaarten--2, .apex-kaarten--3, .apex-kaarten--4, .apex-kaarten--5{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
	.apex-laag{ padding: 120px 0; }
	.apex-laag__kop{ margin-bottom: 56px; }
	.apex-cijfers__getal{ font-size: 56px; }
	.apex-kaarten--3{ grid-template-columns: repeat(3, 1fr); }
	.apex-kaarten--4{ grid-template-columns: repeat(4, 1fr); }
	.apex-kaarten--5{ grid-template-columns: repeat(3, 1fr); }
	.apex-stappen{ grid-template-columns: repeat(var(--apex-stappen, 3), 1fr); gap: 40px; }
	.apex-stappen--2{ --apex-stappen: 2; } .apex-stappen--3{ --apex-stappen: 3; } .apex-stappen--4{ --apex-stappen: 4; }
	.apex-stap:not(:last-child)::after{ content: ""; position: absolute; top: 28px; left: 72px; right: -24px; height: 2px; background: #A27F33; opacity: 0.4; }
	.apex-tekstfoto{ flex-direction: row; align-items: center; gap: 80px; }
	.apex-tekstfoto__tekst, .apex-tekstfoto__foto{ flex: 1 1 50%; }
	.apex-tekstfoto--foto-links{ flex-direction: row-reverse; }
	.apex-tekstfoto__foto img{ min-height: 520px; }
}
@media (min-width: 1280px){
	.apex-kaarten--5{ grid-template-columns: repeat(5, 1fr); }
	.apex-kaarten--5 .apex-kaart__body{ padding: 22px; }
}
