/**
Theme Name: Commit Portal
Theme URI: https://commitadvies.com/
Author: Pim van Gerwen
Description: Licht portaalthema voor commitadvies.com - schermvullende video met alle content (logo, titel, cards, footer) transparant daaroverheen. Vervangt de zware pixomi/Revolution Slider/WPBakery-opzet.
Version: 1.6.0
Requires at least: 5.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: commit-portal
*/

/* ============================================================
   Tokens
   ============================================================ */
:root {
	--goud:  #af8f47;
	--groen: #6a9739;
	--donker: #262626;
	--wit: #ffffff;
	--font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: #101010;
	color: var(--wit);
	font-family: var(--font-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Hero - schermvullende video, alle content eroverheen
   ============================================================ */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	overflow: hidden;
	background: #101010;
}

/* WordPress-adminbalk (alleen zichtbaar voor ingelogde gebruikers) verrekenen,
   anders valt de footer onder het scherm */
.admin-bar .hero,
.admin-bar .hero__overlay { min-height: calc(100svh - 32px); }
@media screen and (max-width: 782px) {
	.admin-bar .hero,
	.admin-bar .hero__overlay { min-height: calc(100svh - 46px); }
}

.hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
/* Lokale video: echt schermvullend, geen balken */
.hero__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
/* 16:9 iframe altijd het scherm laten vullen (cover) */
.hero__video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	height: 56.25vw;      /* 16:9 op basis van breedte */
	min-height: 100vh;
	min-width: 177.78vh;  /* 16:9 op basis van hoogte  */
	border: 0;
}

/* Subtiele scrim voor leesbaarheid */
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.12) 28%, rgba(0,0,0,.20) 68%, rgba(0,0,0,.50) 100%);
}

/* Alle content in de flow, over de video */
.hero__overlay {
	position: relative;
	z-index: 2;
	flex: 1;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 0 24px 14px;
	width: 100%;
}

/* Logo - transparant, geen vlak */
.hero__logo img {
	width: 118px;
	height: auto;
	filter: drop-shadow(0 6px 20px rgba(0,0,0,.55));
}

/* Midden: naam + titel + cards */
.hero__center {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 3vh, 32px);
	width: 100%;
	padding: 6px 0;
}
.hero__brand {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(.95rem, 2vw, 1.4rem);
	letter-spacing: .04em;
	margin: 0 0 .1em;
	text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero__claim {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(2.1rem, 6vw, 4.4rem);
	line-height: 1.02;
	margin: 0;
	text-shadow: 0 4px 30px rgba(0,0,0,.6);
}

/* ============================================================
   Cards - half-transparant over de video
   ============================================================ */
.cards {
	display: flex;
	gap: 30px;
	justify-content: center;
	align-items: stretch;
	width: 100%;
	max-width: 860px;
}
.card {
	flex: 1 1 50%;
	min-width: 0;
	color: var(--wit);
	padding: 26px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,.22);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	box-shadow: 0 14px 40px rgba(0,0,0,.30);
}
.card--werkt  { background: rgba(175, 143, 71, .78); }   /* #af8f47 */
.card--kracht { background: rgba(106, 151, 57, .78); }   /* #6a9739 */

.card h2 {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.5rem;
	margin: 0 0 10px;
	text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.card p { margin: 0 0 18px; font-size: 1.02rem; }
.card p strong { font-weight: 700; }

.card__btn {
	display: inline-block;
	background: var(--wit);
	color: var(--donker);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .95rem;
	padding: 12px 26px;
	border-radius: 6px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.card__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }

/* ============================================================
   Footer - transparant onderaan de video
   ============================================================ */
.site-footer {
	color: rgba(255,255,255,.92);
	text-align: center;
	font-size: .9rem;
	text-shadow: 0 2px 10px rgba(0,0,0,.6);
	padding: 4px 10px;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { opacity: .5; margin: 0 8px; }

/* ============================================================
   Lightbox pop-ups
   ============================================================ */
.lb {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0,0,0,.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.lb:target { display: flex; }
.lb__box {
	background: var(--wit);
	color: #333;
	max-width: 760px;
	width: 100%;
	max-height: 84vh;
	overflow-y: auto;
	border-radius: 12px;
	padding: 40px 44px 48px;
	box-shadow: 0 30px 80px rgba(0,0,0,.4);
	line-height: 1.7;
}
/* Alle tekst in de lightbox zwart (overschrijft witte inline-kleuren uit de legacy-content) */
.lb__box, .lb__box * { color: #000 !important; }
.lb__box h1 { font-family: var(--font-head); font-size: 1.8rem; margin-top: 0; }
.lb__box h2, .lb__box h3 { font-family: var(--font-head); }
.lb__box a { text-decoration: underline; }
.lb__close {
	position: sticky;
	top: 0;
	float: right;
	font-size: 1.6rem;
	line-height: 1;
	text-decoration: none;
	margin: -8px -12px 0 0;
}
.lb__box .lb__close { color: #999 !important; }
.lb__box .lb__close:hover { color: #000 !important; }

/* ============================================================
   Losse pagina's (page.php fallback)
   ============================================================ */
.page-wrap {
	max-width: 780px;
	margin: 0 auto;
	background: var(--wit);
	color: #333;
	padding: 60px 40px 80px;
	min-height: 100vh;
	line-height: 1.7;
}
.page-wrap h1 { font-family: var(--font-head); color: var(--groen); }
.page-wrap a { color: var(--groen); }
.page-wrap .back { display: inline-block; margin-bottom: 30px; color: var(--groen); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.hero__overlay { padding: 0 18px 14px; gap: 16px; }
	.hero__center { gap: 30px; }
	.cards { flex-direction: column; gap: 18px; max-width: 420px; }
	.card { flex-basis: auto; padding: 28px 24px; }
	.hero__logo img { width: 92px; }
	.lb__box { padding: 30px 24px 36px; }
}
