/* Brigade Vacatures – front-end. Prefix: .bv  |  Kleuren/fonts erven van Elementor Global Styles. */
:root {
	--bv-accent: var(--e-global-color-accent, var(--e-global-color-primary, #111));
	--bv-text: var(--e-global-color-text, #1b1b1b);
	--bv-muted: #6b7280;
	--bv-border: #e5e7eb;
	--bv-bg: #ffffff;
	--bv-bg-soft: #f6f7f9;
	--bv-radius: 14px;
	--bv-heading-font: var(--e-global-typography-primary-font-family, inherit);
}

.bv, .bv * { box-sizing: border-box; }
.bv { color: var(--bv-text); }
.bv a { text-decoration: none; }

/* ---------- Knoppen ---------- */
.bv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--bv-accent); color: #fff !important;
	padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--bv-accent);
	font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
	font-size: 1rem;
}
.bv-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.14); opacity: .95; }
.bv-btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.bv-btn-lg { padding: 1em 2.1em; font-size: 1.05rem; }
.bv-btn-block { width: 100%; }
.bv-link { font-weight: 600; color: var(--bv-accent); white-space: nowrap; }
.bv-link:hover { text-decoration: underline; }

/* ---------- Tags ---------- */
.bv-tag {
	display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: .35em .8em; border-radius: 999px; background: var(--bv-bg-soft); color: var(--bv-text); border: 1px solid var(--bv-border);
}
.bv-tag-urgent { background: #fff1f0; border-color: #ffc9c4; color: #b42318; }
.bv-tag-new { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.bv-tag-soon { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.bv-tag-closed { background: #f2f4f7; border-color: #d0d5dd; color: #475467; }

/* ---------- Facts ---------- */
.bv-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em 1.1em; font-size: .9rem; color: var(--bv-muted); }
.bv-facts li { display: inline-flex; align-items: center; gap: .45em; }
.bv-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bv-accent); opacity: .8; }
.bv-facts-lg { font-size: 1rem; margin: 1rem 0 .5rem; }

/* ---------- Overzicht ---------- */
.bv-overview { margin: 0; }
.bv-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.bv-filter {
	background: transparent; border: 1px solid var(--bv-border); color: var(--bv-text);
	padding: .5em 1.1em; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.bv-filter.is-active { background: var(--bv-text); color: #fff; border-color: var(--bv-text); }
.bv-filter-count { opacity: .6; font-weight: 500; margin-left: .25em; }
.bv-empty { padding: 1.5rem; border: 1px dashed var(--bv-border); border-radius: var(--bv-radius); color: var(--bv-muted); }

.bv-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 700px) {
	.bv-cols-2 .bv-grid, .bv-cols-3 .bv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.bv-cols-3 .bv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bv-card {
	position: relative; display: flex; flex-direction: column; gap: .8rem;
	background: var(--bv-bg); border: 1px solid var(--bv-border); border-radius: var(--bv-radius);
	padding: 1.6rem 1.6rem 1.4rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bv-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--bv-accent); }
.bv-card.is-hidden { display: none; }
.bv-card.is-soon { opacity: .75; }
.bv-card-top { display: flex; flex-wrap: wrap; gap: .4rem; }
.bv-card-title { margin: 0; font-size: 1.35rem; line-height: 1.25; font-family: var(--bv-heading-font); }
.bv-card-title a { color: inherit; }
.bv-card-title a::after { content: ""; position: absolute; inset: 0; } /* hele kaart klikbaar */
.bv-card-intro { margin: 0; color: var(--bv-muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.bv-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--bv-border); font-size: .9rem; }
.bv-salary { font-weight: 600; }
.bv-card-open { background: var(--bv-bg-soft); border-style: dashed; }
.bv-card-open .bv-link { position: relative; z-index: 1; }
.bv-open-form { margin-top: 2rem; padding: 2rem; background: var(--bv-bg-soft); border-radius: var(--bv-radius); }
.bv-open-form h3 { margin-top: 0; }

/* ---------- Teller in menu ---------- */
.bv-menu-badge {
	display: inline-block; min-width: 1.5em; padding: 0 .45em; margin-left: .35em; border-radius: 999px;
	background: var(--bv-accent); color: #fff; font-size: .7em; font-weight: 700; line-height: 1.5em; text-align: center; vertical-align: middle;
}

/* ---------- Single ---------- */
.bv-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.bv-single-page { padding-bottom: 11rem; } /* Brigade-footer schuift 100px over de vorige sectie heen; netto ~75px lucht */
body.bv-single { overflow-x: hidden; }
.bv-hero {
	background: var(--bv-bg-soft); padding: 4rem 0 3.5rem; border-bottom: 1px solid var(--bv-border);
	/* Full-width balk, ook binnen een thema-container (Astra/Hello) */
	width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.bv-back { display: inline-block; color: var(--bv-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.bv-back:hover { color: var(--bv-text); }
.bv-hero-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.bv-hero-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-family: var(--bv-heading-font); }
.bv-hero-salary { font-size: 1.1rem; font-weight: 600; margin: .4rem 0 1.4rem; }
.bv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .bv-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.bv-sticky { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.2rem; }
.bv-thumb { margin: 0 0 2rem; border-radius: var(--bv-radius); overflow: hidden; }
.bv-thumb img { display: block; width: 100%; height: auto; }
.bv-notice { padding: 1rem 1.2rem; background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; margin-bottom: 2rem; }

.bv-prose { font-size: 1.05rem; line-height: 1.7; }
.bv-prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; padding-top: .4rem; font-family: var(--bv-heading-font); position: relative; }
.bv-prose h2:first-child { margin-top: 0; }
.bv-prose h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--bv-accent); margin-bottom: .7rem; border-radius: 2px; }
.bv-prose ul { padding-left: 0; list-style: none; margin: 1rem 0 1.5rem; }
.bv-prose ul li { position: relative; padding-left: 1.7em; margin: .45em 0; }
.bv-prose ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--bv-accent); font-weight: 700; }

.bv-info { background: var(--bv-bg); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); padding: 1.4rem 1.5rem; }
.bv-info-title { margin: 0 0 .9rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bv-muted); }
.bv-info-list { margin: 0; }
.bv-info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--bv-border); font-size: .95rem; }
.bv-info-row:first-child { border-top: 0; }
.bv-info-row dt { color: var(--bv-muted); margin: 0; }
.bv-info-row dd { margin: 0; font-weight: 600; text-align: right; }
.bv-share { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; }
.bv-share-label { color: var(--bv-muted); width: 100%; }
.bv-share a { color: var(--bv-text); font-weight: 600; border-bottom: 1px solid var(--bv-border); }
.bv-share a:hover { border-color: var(--bv-accent); }

.bv-apply { max-width: 860px; margin: 0 auto 1rem; padding: 2.5rem; background: var(--bv-bg-soft); border-radius: var(--bv-radius); scroll-margin-top: 100px; }
.bv-apply h2 { margin: 0 0 1.2rem; font-family: var(--bv-heading-font); text-align: center; }
.bv-layout { padding-bottom: 1.5rem; }
.bv-others { padding-top: 4rem; padding-bottom: 0; }
.bv-others h2 { margin-bottom: 1.5rem; font-family: var(--bv-heading-font); }

/* ---------- Formulier ---------- */
.bv-form { position: relative; }
.bv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bv-form-position { margin: 0 0 1.2rem; color: var(--bv-muted); }
.bv-form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bv-form-grid { grid-template-columns: 1fr 1fr; } .bv-field-wide { grid-column: 1 / -1; } }
.bv-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.bv-field input[type="text"], .bv-field input[type="email"], .bv-field input[type="tel"], .bv-field input[type="url"], .bv-field textarea {
	width: 100%; padding: .8em 1em; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; color: inherit;
}
.bv-field input:focus, .bv-field textarea:focus { outline: 2px solid var(--bv-accent); outline-offset: 1px; border-color: transparent; }
.bv-field input[type="file"] { width: 100%; padding: .6em; border: 1px dashed #d0d5dd; border-radius: 10px; background: #fff; font-size: .9rem; }
.bv-field-consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.5; }
.bv-field-consent input { margin-top: .3em; flex: none; }
.bv-field-consent a { text-decoration: underline; color: inherit; }
.bv-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.bv-form-message { margin: 0; font-size: .92rem; color: #b42318; min-height: 1.2em; }
.bv-form-success { padding: 1.5rem; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 10px; }
.bv-form-success h3 { margin: 0 0 .4rem; }
.bv-form-success p { margin: 0; }
.bv-field.has-error input, .bv-field.has-error textarea { border-color: #b42318; }

/* Fallback zonder JS: ankerlink #bv-open-application toont het formulier */
.bv-open-form[hidden]:target { display: block; }
