/**
 * Homepage (front-page.php). Ontwerp: design-canvas/project/S8-Combinatie.dc.html.
 * Gebruikt alleen variabelen uit assets/css/tokens.css.
 */

/* ---------- Kop ---------- */

.bh-home-hero { position: relative; overflow: hidden; background: var(--bh-sky); padding: 56px 0 128px; text-align: center; }
.bh-home-hero__inner { position: relative; z-index: 1; }
.bh-home-hero__text { max-width: 760px; margin: 0 auto; }
.bh-home-hero__pill {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px;
	background: var(--bh-white); border-radius: var(--bh-radius-badge); font-size: 14px; font-weight: 700;
}
.bh-home-hero__pill span { width: 10px; height: 10px; border-radius: 50%; background: var(--bh-accent); }
.bh-home-hero__title { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.bh-home-hero__intro { margin: 0 auto 36px; max-width: 580px; font-size: 19px; line-height: 1.6; color: #3E5368; }

.bh-home-search {
	display: flex; text-align: left; flex-wrap: wrap; gap: 8px; padding: 8px;
	background: var(--bh-white); border-radius: var(--bh-radius-btn-lg); box-shadow: 0 20px 40px rgba(14, 34, 51, .10);
}
.bh-home-search__field { flex: 2 1 220px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px; color: var(--bh-muted); }
.bh-home-search input { width: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; color: var(--bh-ink); }
.bh-home-search__field:focus-within { box-shadow: inset 0 -2px 0 var(--bh-ink); }
.bh-home-search .bh-btn { min-height: 64px; padding: 0 34px; font-size: 17px; }
@media (max-width: 560px) {
	.bh-home-search__field { flex-basis: 100%; }
	.bh-home-search .bh-btn { flex: 1 1 100%; }
}
.bh-home-hero__popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: #3E5368; }
.bh-home-hero__chip { padding: 8px 14px; background: var(--bh-white); border-radius: var(--bh-radius-badge); font-weight: 600; color: var(--bh-ink); }
.bh-home-hero__chip:hover { box-shadow: inset 0 0 0 2px var(--bh-ink); }

/* Koolzaadveld langs de onderrand; de categoriebalk valt er half overheen. */
.bh-home-hero__fields { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; display: block; }
@media (max-width: 640px) {
	.bh-home-hero { padding: 40px 0 112px; }
	.bh-home-hero__fields { height: 90px; }
}

/* Datumblokje (agenda) */
.bh-home-date {
	flex: 0 0 auto; min-width: 56px; height: 60px; padding: 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-date); line-height: 1;
}
.bh-home-date strong { font-size: 20px; font-weight: 800; }
.bh-home-date span { margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--bh-accent); }

/* ---------- Categoriebalk over de kop ---------- */

.bh-home-cats {
	position: relative; margin-top: -60px; padding: 28px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px;
	background: var(--bh-white); border-radius: var(--bh-radius-block); box-shadow: var(--bh-shadow-float);
}
.bh-home-cats a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; text-align: center; font-size: 14px; font-weight: 600; border-radius: var(--bh-radius-btn); }
.bh-home-cats a:hover { background: var(--bh-bg); }
.bh-home-cats__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: var(--bh-ink); border-radius: var(--bh-radius-date); }
@media (max-width: 640px) {
	.bh-home-cats { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 10px; }
	.bh-home-cats a { gap: 6px; padding: 10px 2px; font-size: 12px; line-height: 1.25; }
	.bh-home-cats__icon { width: 44px; height: 44px; }
}

/* ---------- Secties ---------- */

.bh-home-section { padding-top: 80px; }
.bh-home-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.bh-home-section__head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.bh-home-section__more { box-shadow: 0 0 0 1px var(--bh-line) inset; }
.bh-home-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--bh-green); text-transform: uppercase; letter-spacing: .08em; }
.bh-home-link { font-weight: 700; font-size: 15px; }
.bh-home-link:hover { text-decoration: underline; }

/* Uitgelichte ondernemers */
.bh-home-businesses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.bh-home-business { display: flex; flex-direction: column; overflow: hidden; background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); transition: transform .15s ease, box-shadow .15s ease; }
.bh-home-business:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow-float); }
.bh-home-business:hover .bh-home-business__name { text-decoration: underline; }
.bh-home-business__media { position: relative; height: 170px; margin: 8px; overflow: hidden; border-radius: var(--bh-radius-img); }
/* Uitnodiging als laatste tegel: stippelkader met een plusje in plaats van een foto. */
.bh-home-business--uitnodiging .bh-home-business__media {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	border: 2px dashed #C9D6E2; color: var(--bh-muted);
}
.bh-home-business__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 800; align-self: flex-start; box-shadow: inset 0 -2px 0 var(--bh-accent); }
.bh-home-business__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-home-business__media .bh-badge { position: absolute; left: 12px; top: 12px; font-size: 12px; }
.bh-home-business__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 20px 20px; }
.bh-home-business__cat { font-size: 13px; font-weight: 600; color: var(--bh-muted); }
.bh-home-business__name { font-size: 19px; letter-spacing: -0.015em; }
.bh-home-business__text { font-size: 14px; line-height: 1.55; color: var(--bh-muted); }
.bh-home-business__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--bh-muted); }

/* Agenda + nieuws */
.bh-home-split { display: flex; flex-wrap: wrap; gap: 40px; }
.bh-home-split__agenda { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.bh-home-split__news { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
/* Advertentietegel: onder de agenda (of onder het nieuws), duidelijk los van de berichten. */
.bh-home-split__ad { margin-top: 24px; }
.bh-home-split h2 { font-size: 32px; }
.bh-home-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bh-home-event { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); }
.bh-home-event:hover strong { text-decoration: underline; }
.bh-home-event__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bh-home-event__body strong { font-size: 16px; }
.bh-home-event__body small { font-size: 14px; color: var(--bh-muted); }

.bh-home-addevent {
	display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px;
	font-size: 15px; color: var(--bh-muted); border-radius: var(--bh-radius-card); box-shadow: inset 0 0 0 1.5px var(--bh-line);
}
.bh-home-addevent strong { color: var(--bh-ink); }
.bh-home-addevent:hover strong { text-decoration: underline; }
.bh-home-addevent__icon {
	width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	font-size: 24px; font-weight: 600; color: var(--bh-ink); background: var(--bh-sky); border-radius: var(--bh-radius-date);
}

.bh-home-noevents {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px;
	background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card);
}
.bh-home-noevents__icon { width: 44px; height: 44px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; background: var(--bh-sky); border-radius: var(--bh-radius-date); }
.bh-home-noevents strong { font-size: 17px; }
.bh-home-noevents p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--bh-muted); }

/* Groot bericht links, rechts de kleine berichten. Beide kolommen even hoog. */
.bh-home-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.bh-home-news.is-single { grid-template-columns: 1fr; }
.bh-home-news__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bh-home-news__side .bh-home-post { flex: 1; }
.bh-home-post { display: flex; flex-direction: column; overflow: hidden; background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); }
.bh-home-post:hover .bh-home-post__title { text-decoration: underline; }
.bh-home-post__media { position: relative; height: 110px; margin: 8px; overflow: hidden; border-radius: var(--bh-radius-img); }
.bh-home-post.is-big .bh-home-post__media { height: 260px; }
.bh-home-news__side .bh-home-post__media { height: 140px; }
.bh-home-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-home-post__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px 18px 18px; }
.bh-home-post.is-big .bh-home-post__body { gap: 10px; padding: 14px 22px 22px; }
.bh-home-post__cat { font-size: 13px; font-weight: 700; color: var(--bh-green); }
.bh-home-post__title { font-size: 17px; line-height: 1.35; }
.bh-home-post.is-big .bh-home-post__title { font-size: 23px; letter-spacing: -0.02em; line-height: 1.25; }
.bh-home-post__text { font-size: 15px; line-height: 1.6; color: var(--bh-muted); }
.bh-home-post__date { margin-top: auto; font-size: 13px; color: var(--bh-muted); }

/* Meedoen */
.bh-home-join { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.bh-home-join__block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 6vw, 40px); }
.bh-home-join__block h2 { margin: 0; font-size: 28px; letter-spacing: -0.025em; }
.bh-home-join__block p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.6; }
.bh-home-join__block .bh-btn { margin-top: 8px; }
.bh-home-join__block--accent { background: var(--bh-accent); border-radius: var(--bh-radius-block); }
.bh-home-join__block--dark { background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-block-alt); }
.bh-home-join__block--dark p { color: var(--bh-on-dark-muted); }

/* Nieuwsbrief of agenda-abonnement */
.bh-home-letter-wrap { padding-bottom: 8px; }
.bh-home-letter {
	display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
	padding: clamp(24px, 6vw, 36px) clamp(24px, 6vw, 40px); background: var(--bh-sky); border-radius: var(--bh-radius-block);
}
.bh-home-letter > div { flex: 1 1 360px; }
.bh-home-letter h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.bh-home-letter p { margin: 0; font-size: 15px; color: #3E5368; }
.bh-home-letter > .bh-btn { gap: 8px; }
.bh-home-letter__form { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; }
.bh-home-letter__form label { flex: 1 1 220px; }
.bh-home-letter__form input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--bh-radius-btn); font: inherit; font-size: 15px; }
