/*
 * Café Kremer HLR — design system & front-end polish
 * Text domain classes: hlr-*
 */

:root {
	/* Afgestemd op theme.json — café / “clean template”-richting (inspiratie o.a. warme horecasites) */
	--cafekremer-black: #0a0908;
	--cafekremer-charcoal: #1f1c18;
	--cafekremer-warm-ink: #2a2621;
	--cafekremer-red: #c41e1e;
	--cafekremer-cream: #e4d4b5;
	--cafekremer-sand: #b8a078;
	--cafekremer-offwhite: #f4f1ea;
	--cafekremer-paper-tint: #ede8de;
	--hlr-radius: 22px;
	--hlr-radius-sm: 14px;
	--hlr-outline: 1px solid rgba(244, 241, 234, 0.12);
	--hlr-sticker-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0, 0, 0, 0.18);
}

body.hlr-theme {
	color: var(--cafekremer-offwhite);
	background-color: var(--cafekremer-black);
	background-image:
		radial-gradient(ellipse 120% 80% at 15% 0%, rgba(180, 130, 90, 0.12), transparent 50%),
		radial-gradient(ellipse 90% 50% at 100% 20%, rgba(228, 212, 181, 0.06), transparent 45%),
		linear-gradient(180deg, #1a1714 0%, var(--cafekremer-black) 42%, #050403 100%);
	background-attachment: fixed;
}

html {
	scroll-behavior: smooth;
}

/* Typografisch ritme (globaal) */
.hlr-theme p {
	max-width: 70ch;
}

.hlr-theme :is(h1, h2, h3, h4) {
	margin-top: 0;
	margin-bottom: 0.65rem;
}

.hlr-theme :is(h1, h2) + p {
	margin-top: 0.65rem;
}

.hlr-theme p + p {
	margin-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

a.hlr-skip-link.skip-link {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 99999;
	padding: 0.75rem 1rem;
	background: var(--cafekremer-red);
	color: var(--cafekremer-offwhite) !important;
	border: 2px solid rgba(244, 241, 234, 0.35);
	border-radius: var(--hlr-radius-sm);
	text-decoration: none;
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform 0.2s ease;
}

a.hlr-skip-link.skip-link:focus {
	transform: translateY(0);
	outline: 3px solid var(--cafekremer-cream);
	outline-offset: 3px;
}

.hlr-theme :focus-visible {
	outline: 3px solid var(--cafekremer-cream);
	outline-offset: 3px;
}

/* Header band */
.hlr-site-header {
	border-bottom: 1px solid rgba(244, 241, 234, 0.1);
	background: linear-gradient(180deg, rgba(42, 38, 33, 0.92) 0%, rgba(31, 28, 24, 0.88) 100%);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.hlr-brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	justify-content: flex-start;
	text-align: left;
}

/* Sitetitel soms centraal door editor/theme: we forceren pub-merk links */
.hlr-brand.wp-block-group.is-layout-flex {
	justify-content: flex-start !important;
}

.hlr-brand .wp-block-site-title {
	text-align: left !important;
}

.hlr-brand .wp-block-site-title .wp-block-site-title__link {
	text-align: left !important;
	display: inline-block;
}

/* Lege site-logo-placeholder verbergen tot er echt een logo is gezet */
.wp-block-site-logo:not(:has(img)) {
	display: none;
}

.hlr-site-logo img {
	max-height: 4rem;
	width: auto;
	display: block;
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
	background: rgba(10, 9, 8, 0.65);
	border: 1px solid rgba(244, 241, 234, 0.18);
	border-radius: 16px;
	padding: 0.25rem 0.35rem;
}

.hlr-site-title {
	margin: 0;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hlr-nav-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.hlr-nav-wrap > .hlr-brand {
	flex: 1 1 auto;
	min-width: min(100%, 14rem);
}

.hlr-nav-wrap > .hlr-primary-nav {
	flex: 0 0 auto;
}

.hlr-primary-nav .wp-block-navigation__container {
	gap: 0.25rem 1rem;
	flex-wrap: wrap;
}

.hlr-primary-nav a {
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	border: 2px solid transparent;
}

.hlr-primary-nav a[aria-current="page"],
.hlr-primary-nav a.is-active {
	border-color: rgba(228, 212, 181, 0.45);
	background: rgba(228, 212, 181, 0.1);
}

.hlr-primary-nav a:hover,
.hlr-primary-nav a:focus-visible {
	border-color: rgba(228, 212, 181, 0.45);
	background: rgba(228, 212, 181, 0.1);
}

/* Badges & cards */
.hlr-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(244, 241, 234, 0.22);
	background: rgba(42, 38, 33, 0.65);
	color: var(--cafekremer-offwhite);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hlr-badge--cream {
	background: rgba(228, 212, 181, 0.95);
	color: var(--cafekremer-black);
	border-color: rgba(10, 9, 8, 0.12);
}

.hlr-card {
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: var(--hlr-radius);
	background: linear-gradient(165deg, rgba(42, 38, 33, 0.55) 0%, rgba(31, 28, 24, 0.92) 100%);
	color: var(--cafekremer-offwhite);
	box-shadow: var(--hlr-sticker-shadow);
	padding: 1.35rem 1.65rem;
	position: relative;
}

.hlr-card::after {
	content: "";
	position: absolute;
	inset: 10px 12px auto 12px;
	height: 1px;
	background: rgba(228, 212, 181, 0.15);
	pointer-events: none;
}

.hlr-card:hover {
	transform: translateY(-1px);
	transition: transform 0.15s ease;
}

.hlr-section {
	padding-top: clamp(2.5rem, 5.5vw, 5rem);
	padding-bottom: clamp(2.5rem, 5.5vw, 5rem);
	position: relative;
}

/* Subtiele section-separator voor premium ritme */
.hlr-section::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: min(980px, calc(100% - 3rem));
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(228, 212, 181, 0.22) 12%,
		rgba(244, 241, 234, 0.14) 50%,
		rgba(228, 212, 181, 0.22) 88%,
		transparent 100%
	);
	pointer-events: none;
	opacity: 0.9;
}

/* Geen separator bovenaan de eerste sectie (meestal hero) */
.hlr-hero.hlr-section::before,
.hlr-site-header + * .hlr-section:first-child::before {
	display: none;
}

.hlr-section--tint {
	background: linear-gradient(
		180deg,
		rgba(228, 212, 181, 0.07) 0%,
		transparent 48%
	),
	rgba(10, 9, 8, 0.25);
}

.hlr-section--paper {
	background: linear-gradient(180deg, rgba(237, 232, 222, 0.95) 0%, rgba(244, 241, 234, 0.98) 60%, rgba(237, 232, 222, 0.92) 100%);
	color: #1a1714;
}

.hlr-section--paper::before {
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(31, 28, 24, 0.08) 12%,
		rgba(31, 28, 24, 0.06) 50%,
		rgba(31, 28, 24, 0.08) 88%,
		transparent 100%
	);
	opacity: 1;
}

.hlr-section--paper a {
	color: #1a1714;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.hlr-section--paper a:hover {
	color: var(--cafekremer-red);
}

.hlr-section--paper .hlr-card {
	background: rgba(255, 255, 255, 0.86);
	color: #1a1714;
	border: 1px solid rgba(31, 28, 24, 0.12);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hlr-section--paper .hlr-card::after {
	background: rgba(31, 28, 24, 0.08);
}

.hlr-section--paper .hlr-badge {
	background: rgba(255, 255, 255, 0.86);
	border-color: rgba(31, 28, 24, 0.15);
	color: #1a1714;
}

.hlr-section--paper .hlr-badge--cream {
	background: rgba(228, 212, 181, 0.9);
}

.hlr-section--paper .wp-block-heading {
	color: #1a1714;
}

.hlr-section--paper .wp-block-button__link.hlr-cta-ghost,
.hlr-section--paper a.hlr-cta-ghost {
	color: #1a1714 !important;
}

/* Buttons (blocks + links styled as CTA) */
.wp-block-button__link.hlr-cta-primary,
a.hlr-cta-primary {
	background: var(--cafekremer-red) !important;
	color: var(--cafekremer-offwhite) !important;
	border: 1px solid rgba(244, 241, 234, 0.18);
	border-radius: 999px;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(196, 30, 30, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link.hlr-cta-primary:hover,
a.hlr-cta-primary:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(196, 30, 30, 0.4), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.wp-block-button__link.hlr-cta-ghost,
a.hlr-cta-ghost {
	background: rgba(244, 241, 234, 0.04) !important;
	color: var(--cafekremer-offwhite) !important;
	border: 1px solid rgba(228, 212, 181, 0.35);
	border-radius: 999px;
	font-weight: 600;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wp-block-button__link.hlr-cta-ghost:hover,
a.hlr-cta-ghost:hover {
	background: rgba(244, 241, 234, 0.08) !important;
	border-color: rgba(228, 212, 181, 0.55);
	transform: translateY(-1px);
}

/* Hero */
.hlr-hero {
	position: relative;
	border: 1px solid rgba(244, 241, 234, 0.12);
	border-radius: max(20px, min(26px, 3vw));
	overflow: hidden;
	background: linear-gradient(
		145deg,
		rgba(47, 42, 36, 0.95) 0%,
		var(--cafekremer-charcoal) 48%,
		rgba(18, 16, 14, 0.98) 100%
	);
	box-shadow:
		var(--hlr-sticker-shadow),
		0 0 0 1px rgba(228, 212, 181, 0.08) inset;
}

.hlr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 12%, rgba(228, 212, 181, 0.14), transparent 48%),
		radial-gradient(circle at 90% 80%, rgba(196, 30, 30, 0.08), transparent 42%),
		repeating-linear-gradient(
			90deg,
			rgba(244, 241, 234, 0.03) 0px,
			rgba(244, 241, 234, 0.03) 1px,
			transparent 1px,
			transparent 22px
		);
	opacity: 0.65;
	pointer-events: none;
}

.hlr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../img/hlr-logo.png");
	background-repeat: no-repeat;
	background-position: right clamp(1rem, 3vw, 2.5rem) bottom clamp(1rem, 3vw, 2.5rem);
	background-size: clamp(140px, 22vw, 280px);
	opacity: 0.12;
	filter: saturate(0.95) contrast(1.05);
	pointer-events: none;
	mix-blend-mode: screen;
}

/* Homepage hero — interieurfoto + overlay voor contrast (zie assets/img/home-hero-interieur.png) */
.hlr-hero.hlr-hero--photo {
	background:
		linear-gradient(
			105deg,
			rgba(0, 0, 0, 0.72) 0%,
			rgba(0, 0, 0, 0.45) 42%,
			rgba(0, 0, 0, 0.55) 100%
		),
		radial-gradient(circle at 55% 35%, transparent 0%, rgba(0, 0, 0, 0.35) 100%),
		url("../img/home-hero-interieur.png") center 42% / cover no-repeat;
}

.hlr-hero.hlr-hero--photo::before {
	opacity: 0.35;
	background:
		radial-gradient(circle at 18% 20%, rgba(228, 212, 181, 0.12), transparent 40%),
		radial-gradient(circle at 88% 85%, rgba(196, 30, 30, 0.06), transparent 45%);
}

.hlr-hero.hlr-hero--photo::after {
	opacity: 0.1;
	mix-blend-mode: soft-light;
}

.hlr-hero__inner {
	padding: clamp(1.5rem, 4vw, 3rem);
	position: relative;
	z-index: 1;
}

.hlr-hero h1 {
	text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
	letter-spacing: 0.01em;
}

.hlr-hero .wp-block-heading {
	max-width: 20ch;
}

.hlr-hero .has-large-font-size,
.hlr-hero p {
	max-width: 52ch;
}

.hlr-doel-tile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hlr-doel-tile .hlr-doel-link {
	margin-top: auto;
	padding-top: 0.35rem;
}

.hlr-doel-tile .hlr-doel-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 650;
	text-decoration: none;
	padding: 0.35rem 0.1rem;
}

.hlr-doel-tile .hlr-doel-link a:hover {
	color: var(--cafekremer-red);
}

.hlr-hero .hlr-badge {
	margin-bottom: 0.9rem;
}

.hlr-hero .has-large-font-size,
.hlr-hero p {
	max-width: 38rem;
}

/* Forms (Fluent Forms / WP) */
.hlr-form-wrap input[type="text"],
.hlr-form-wrap input[type="email"],
.hlr-form-wrap input[type="tel"],
.hlr-form-wrap input[type="url"],
.hlr-form-wrap textarea,
.hlr-form-wrap select {
	width: 100%;
	max-width: 100%;
	border-radius: var(--hlr-radius-sm);
	border: 2px solid var(--cafekremer-cream);
	background: var(--cafekremer-offwhite);
	color: var(--cafekremer-black);
	padding: 0.65rem 0.85rem;
}

.hlr-form-wrap label {
	font-weight: 600;
}

.ff-errors,
.ff-error,
.hlr-form-wrap .error {
	color: #ffd0d0;
	font-weight: 600;
}

/* Footer */
.hlr-site-footer {
	border-top: 1px solid rgba(244, 241, 234, 0.1);
	background: linear-gradient(180deg, rgba(31, 28, 24, 0.95) 0%, #16130f 100%);
	margin-top: 0;
}

/* Countdown */
.hlr-countdown {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hlr-countdown__unit {
	min-width: 5rem;
	padding: 0.75rem 1rem;
	border-radius: var(--hlr-radius-sm);
	border: 2px solid var(--cafekremer-offwhite);
	text-align: center;
	background: rgba(0, 0, 0, 0.35);
}

.hlr-countdown__val {
	font-size: 1.75rem;
	font-weight: 800;
	font-family: "Bowlby One SC", var(--wp--preset--font-family--bowlby-one, sans-serif);
}

.hlr-countdown__lbl {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

.hlr-timeline-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.hlr-timeline-list li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.65rem;
	line-height: 1.55;
}

.hlr-timeline-list li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.55rem;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 999px;
	border: 3px solid var(--cafekremer-cream);
	background: rgba(208, 192, 144, 0.1);
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

/* Mobile nav toggle area */
@media (max-width: 781px) {
	.hlr-primary-nav .wp-block-navigation__responsive-container-open:not(:focus) {
		border: 2px solid var(--cafekremer-cream);
		border-radius: 12px;
	}

	.hlr-site-logo img {
		max-height: 3rem;
	}

	.hlr-card::after {
		inset: 8px 12px auto 12px;
	}
}

/* Project 2026 / kalender / FAQ */
.hlr-project-kaders .wp-block-heading:is(h2, h3),
.hlr-kalender-highlights .wp-block-heading:is(h2, h3) {
	scroll-margin-top: 6rem;
}

.hlr-timeline-list li strong {
	color: var(--cafekremer-cream);
}

.hlr-munten-faq .hlr-faq-item {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.hlr-munten-faq .hlr-faq-item summary,
.wp-block-details.hlr-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	padding: 0.5rem 0;
	position: relative;
	padding-right: 2rem;
}

.hlr-munten-faq .hlr-faq-item summary::-webkit-details-marker,
.wp-block-details.hlr-faq-item summary::-webkit-details-marker {
	display: none;
}

.hlr-munten-faq .hlr-faq-item summary::after,
.wp-block-details.hlr-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0.45rem;
	color: var(--cafekremer-cream);
	font-weight: 900;
}

.hlr-munten-faq .hlr-faq-item[open] summary::after,
.wp-block-details.hlr-faq-item[open] summary::after {
	content: "–";
}

.hlr-munten-faq .hlr-faq-item[open] summary,
.wp-block-details.hlr-faq-item[open] summary {
	color: var(--cafekremer-cream);
}

.hlr-doel-tile h3 {
	font-size: 1.1rem;
	margin-top: 0;
}

.hlr-collecte-notice {
	border-color: var(--cafekremer-cream);
}

.hlr-doelen-grid-wrap .hlr-card a {
	font-weight: 700;
}

.hlr-muur-herinneringen .hlr-card {
	min-height: 5rem;
	transform: rotate(-1deg);
}

.hlr-muur-herinneringen .hlr-card:nth-of-type(2n) {
	transform: rotate(1deg);
}

.hlr-muur-herinneringen .hlr-card strong {
	color: var(--cafekremer-cream);
}

.hlr-merch-teaser em {
	color: var(--cafekremer-cream);
}

.hlr-site-footer em {
	opacity: 0.88;
	font-style: normal;
	font-size: 0.92em;
}
