/* BJ Condoleance – moderne condoleancepagina */
:root {
	--bjc-navy: #1c244b;
	--bjc-navy-deep: #011640;
	--bjc-sky: #def4ff;
	--bjc-mist: #f3f5f8;
	--bjc-text: #333;
	--bjc-muted: #6b7280;
	--bjc-line: #e5e8ef;
	--bjc-cream: #fff7f1;
	--bjc-radius: 18px;
	--bjc-serif: "DM Serif Display", Georgia, serif;
	--bjc-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.bjc-page {
	position: relative;
	margin: 0;
	background: #fff;
	color: var(--bjc-text);
	font-family: var(--bjc-sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
.bjc-page *, .bjc-page *::before, .bjc-page *::after { box-sizing: border-box; }
.bjc-page img { max-width: 100%; height: auto; }
.bjc-page a { color: var(--bjc-navy); }

/* Kopbalk */
.bjc-head {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 5;
	color: #fff;
}
.bjc-head__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 34px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.bjc-head__brand {
	font-family: var(--bjc-serif);
	font-size: 22px;
	color: #fff !important;
	text-decoration: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
	line-height: 1.2;
	min-width: 0;
}
.bjc-head__brand img { max-height: 54px; width: auto; display: block; }
.bjc-head__link {
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 9px 18px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	white-space: nowrap;
	flex: none;
	backdrop-filter: blur(6px);
	background: rgba(28, 36, 75, .18);
	transition: background .2s;
}
.bjc-head__link:hover { background: rgba(28, 36, 75, .45); }

/* Slider / headerbeeld */
.bjc-hero {
	position: relative;
	height: clamp(280px, 52vh, 520px);
	background: var(--bjc-hero) center / cover no-repeat, var(--bjc-navy);
}
.bjc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(1, 22, 64, .45) 0%, rgba(1, 22, 64, 0) 35%),
		linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 38%);
}
.bjc-hero--plain {
	background: linear-gradient(135deg, var(--bjc-navy) 0%, #324a6d 100%);
}

/* Kaart met foto en naam */
.bjc-main {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 20px 80px;
}
.bjc-card {
	position: relative;
	z-index: 2;
	margin-top: -170px;
	background: #fff;
	border-radius: var(--bjc-radius);
	box-shadow: 0 30px 60px -20px rgba(28, 36, 75, .25), 0 0 0 1px rgba(28, 36, 75, .04);
	display: grid;
	grid-template-columns: minmax(0, 380px) 1fr;
	overflow: hidden;
}
.bjc-card__photo {
	margin: 0;
	background: var(--bjc-mist);
	min-height: 100%;
}
.bjc-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 560px;
	object-fit: cover;
}
.bjc-card__body {
	padding: clamp(32px, 5vw, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bjc-card:not(:has(.bjc-card__photo)) { grid-template-columns: 1fr; text-align: center; }
.bjc-card:not(:has(.bjc-card__photo)) .bjc-life,
.bjc-card:not(:has(.bjc-card__photo)) .bjc-card__actions { justify-content: center; }

.bjc-card__intro {
	margin: 0 0 18px;
	font-family: var(--bjc-serif);
	font-style: italic;
	font-size: 19px;
	line-height: 1.55;
	color: var(--bjc-muted);
}
.bjc-card__name {
	margin: 0;
	font-family: var(--bjc-serif);
	font-weight: 400;
	font-size: clamp(38px, 5.2vw, 60px);
	line-height: 1.08;
	color: var(--bjc-navy);
	letter-spacing: -.01em;
}
.bjc-card__dates {
	margin: 20px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-size: 16px;
	font-weight: 500;
	color: var(--bjc-text);
}
.bjc-sym { color: var(--bjc-muted); font-weight: 400; }

/* Geboorte / overlijden */
.bjc-life {
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px 24px;
}
.bjc-life__item { display: flex; flex-direction: column; }
.bjc-life__date { font-size: 16px; font-weight: 600; color: var(--bjc-text); }
.bjc-life__place { font-size: 15px; color: var(--bjc-muted); padding-left: 14px; }
.bjc-life__divider { width: 1px; background: var(--bjc-line); }
.bjc-card__sep { width: 28px; height: 1px; background: var(--bjc-line); }

.bjc-card__actions {
	margin-top: 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.bjc-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--bjc-navy-deep);
	color: var(--bjc-cream) !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid var(--bjc-navy-deep);
	transition: transform .15s, box-shadow .2s, background .2s;
}
.bjc-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(1, 22, 64, .6); }
.bjc-button--ghost {
	background: transparent;
	color: var(--bjc-navy-deep) !important;
	border-color: var(--bjc-line);
}
.bjc-button--ghost:hover { background: var(--bjc-sky); border-color: var(--bjc-sky); box-shadow: none; }

/* Beschrijving */
.bjc-story {
	max-width: 680px;
	margin: 56px auto 0;
	text-align: center;
	font-size: 18px;
	line-height: 1.8;
}
.bjc-story p { margin: 0 0 1.2em; }
.bjc-story h2, .bjc-story h3 { font-family: var(--bjc-serif); font-weight: 400; color: var(--bjc-navy); }
.bjc-story blockquote {
	margin: 1.6em 0;
	padding: 0;
	border: 0;
	font-family: var(--bjc-serif);
	font-style: italic;
	color: var(--bjc-muted);
}

/* Condoleanceregister */
.bjc-register {
	margin: 80px auto 0;
	max-width: 820px;
	background: var(--bjc-mist);
	border-radius: var(--bjc-radius);
	padding: clamp(28px, 5vw, 56px);
	scroll-margin-top: 24px;
}
.bjc-register__head { text-align: center; margin-bottom: 28px; }
.bjc-register__head h2 {
	margin: 0 0 6px;
	font-family: var(--bjc-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.6vw, 38px);
	color: var(--bjc-navy);
}
.bjc-register__head p { margin: 0; color: var(--bjc-muted); }

/* wpDiscuz laten aansluiten bij de huisstijl */
.bjc-register #wpdcom,
.bjc-register #wpdcom * { font-family: var(--bjc-sans) !important; }
.bjc-register #wpdcom { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.bjc-register #wpdcom .wpd-form-wrap,
.bjc-register #wpdcom .wpd-thread-list .wpd-comment .wpd-comment-wrap {
	background: #fff;
	border-radius: 14px;
}
.bjc-register #wpdcom .wpd-thread-list .wpd-comment .wpd-comment-wrap { padding: 20px 22px; margin-bottom: 12px; }
.bjc-register #wpdcom .wpd-comment-author,
.bjc-register #wpdcom .wpd-comment-author a { color: var(--bjc-navy) !important; font-weight: 700; }
.bjc-register #wpdcom .wpd-prim-button,
.bjc-register #wpdcom input[type="submit"] {
	background: var(--bjc-navy-deep) !important;
	color: var(--bjc-cream) !important;
	border-radius: 999px !important;
	padding: 10px 24px !important;
	border: 0 !important;
}
.bjc-register #wpdcom .wpd-thread-head { border-bottom-color: var(--bjc-line) !important; }

/* Standaard WordPress-reacties (als wpDiscuz uit staat) */
.bjc-register .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.bjc-register .comment-list li { background: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.bjc-register .comment-form input[type="text"],
.bjc-register .comment-form input[type="email"],
.bjc-register .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bjc-line);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}
.bjc-register .comment-form .submit {
	background: var(--bjc-navy-deep);
	color: var(--bjc-cream);
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Voet */
.bjc-foot {
	text-align: center;
	padding: 36px 20px 48px;
	color: var(--bjc-muted);
	font-size: 14px;
}

/* Mobiel */
@media (max-width: 780px) {
	.bjc-head__inner { padding: 22px 18px; gap: 12px; }
	.bjc-head__brand { font-size: 17px; }
	.bjc-head__brand img { max-height: 40px; }
	.bjc-head__link { font-size: 11px; padding: 7px 12px; letter-spacing: .03em; }
	.bjc-card { grid-template-columns: 1fr; margin-top: -120px; text-align: center; }
	.bjc-card__photo { max-width: 260px; margin: 32px auto 0; border-radius: 14px; overflow: hidden; min-height: 0; }
	.bjc-card__photo img { max-height: 340px; }
	.bjc-card__body { padding: 28px 24px 36px; }
	.bjc-card__dates, .bjc-card__actions, .bjc-life { justify-content: center; }
	.bjc-life { flex-direction: column; align-items: center; gap: 12px; }
	.bjc-life__divider { display: none; }
	.bjc-life__place { padding-left: 0; }
	.bjc-life__item { align-items: center; }
	.bjc-card__sep { display: none; }
	.bjc-card__dates { gap: 4px 14px; }
	.bjc-button { width: 100%; justify-content: center; }
	.bjc-story { margin-top: 48px; font-size: 17px; }
	.bjc-register { margin-top: 56px; }
}

.bjc-register__notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--bjc-sky);
	color: var(--bjc-navy);
	font-size: 15px;
	text-align: center;
}

@media (max-width: 600px) {
	.bjc-head__link { font-size: 0; padding: 8px 12px; }
	.bjc-head__link::after { content: "Overzicht"; font-size: 11px; }
}


/* Lijsten in een gecentreerde beschrijving netjes houden */
.bjc-story ul, .bjc-story ol { display: inline-block; text-align: left; margin: 0 auto 1.2em; }

/* Sierlijnen boven en onder de beschrijving */
.bjc-story::before,
.bjc-story::after {
	content: "";
	display: block;
	width: 120px;
	height: 14px;
	margin: 0 auto 28px;
	background:
		radial-gradient(circle, var(--bjc-navy) 2.5px, transparent 3px) center / 100% 100% no-repeat,
		linear-gradient(#cfd6e3, #cfd6e3) left center / 44px 1px no-repeat,
		linear-gradient(#cfd6e3, #cfd6e3) right center / 44px 1px no-repeat;
}
.bjc-story::after { margin: 28px auto 0; }

/* Korte tekst (zoals "Echtgenoot van …") in de sierletter, als op een rouwkaart */
.bjc-story--short {
	max-width: 620px;
	font-family: var(--bjc-serif);
	font-size: 24px;
	line-height: 1.45;
	color: var(--bjc-navy);
}
.bjc-story--short p { margin: 0 0 .35em; }
.bjc-story--short p:last-of-type { margin-bottom: 0; }
.bjc-story--short strong, .bjc-story--short b { font-weight: 400; font-size: 1.25em; }
@media (max-width: 780px) {
	.bjc-story--short { font-size: 21px; }
}
