/* Grande Creation Pop-up: warm, rustig, natuurlijk */

.gcp-popup {
	/* Standaardwaarden; de plugin zet per pop-up de gekozen kleuren inline. */
	--gcp-accent: #5f6b4e;
	--gcp-accent-dark: #4c563e;
	--gcp-accent-soft: rgba(95, 107, 78, 0.12);
	--gcp-accent-shadow: rgba(95, 107, 78, 0.8);
	--gcp-cream: #fbf7f1;
	--gcp-sand: #efe6d8;
	--gcp-line: rgba(180, 138, 90, 0.28);
	--gcp-oak: #b48a5a;
	--gcp-ink: #2f2a24;
	--gcp-muted: #72695d;
	--gcp-radius: 22px;
	--gcp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--gcp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	padding: 0;
	border: 0;
	background: transparent;
	width: min(880px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	overflow: visible;
	color: var(--gcp-ink);
	font-family: var(--gcp-sans);
}

/* Altijd precies in het midden, ook als het thema een CSS-reset heeft
   (bijv. * { margin: 0 }) of dialog-elementen anders positioneert. */
.gcp-popup.gcp-popup--center {
	position: fixed !important;
	inset: 0 !important;
	margin: auto !important;
	height: fit-content !important;
	transform: none !important;
	z-index: 999999;
}

.gcp-popup::backdrop {
	background: rgba(38, 32, 24, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: gcp-fade 0.4s ease both;
}

html.gcp-lock { overflow: hidden; }

.gcp-popup[open] .gcp-popup__card { animation: gcp-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.gcp-popup.gcp-is-closing .gcp-popup__card { animation: gcp-sink 0.26s ease both; }
.gcp-popup.gcp-is-closing::backdrop { animation: gcp-fade 0.26s ease reverse both; }

.gcp-popup__card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.08fr;
	background: var(--gcp-cream);
	border-radius: var(--gcp-radius);
	overflow: hidden;
	box-shadow: 0 30px 80px -20px rgba(40, 30, 15, 0.45), 0 0 0 1px rgba(180, 138, 90, 0.12);
	max-height: calc(100dvh - 32px);
}

/* Afbeelding */
.gcp-popup__media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	background: var(--gcp-sand);
}
.gcp-popup__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	animation: gcp-zoom 8s ease-out both;
}
.gcp-popup__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(35,25,12,0.3) 100%);
	pointer-events: none;
}

/* Tekstkant */
.gcp-popup__body {
	position: relative;
	padding: 52px 48px 40px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.gcp-popup__body::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--gcp-accent-soft), transparent 70%);
	pointer-events: none;
}

.gcp-popup__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gcp-accent);
}
.gcp-popup__eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: currentColor;
}

.gcp-popup__title {
	margin: 0 0 16px;
	font-family: var(--gcp-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--gcp-ink);
}

.gcp-popup__text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--gcp-muted);
}

/* Kerngegevens */
.gcp-popup__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 30px;
	border-top: 1px solid var(--gcp-line);
	border-bottom: 1px solid var(--gcp-line);
}
.gcp-popup__facts--1 { grid-template-columns: 1fr; }
.gcp-popup__facts > div {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	padding: 18px 0;
}
.gcp-popup__facts > div + div {
	padding-left: 24px;
	border-left: 1px solid var(--gcp-line);
}
.gcp-popup__facts dt { font-size: 13px; color: var(--gcp-muted); }
.gcp-popup__facts dd {
	margin: 0;
	font-family: var(--gcp-serif);
	font-size: 30px;
	line-height: 1.1;
	color: var(--gcp-accent-dark);
}

/* Knoppen */
.gcp-popup__actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 22px;
}
/* De knop staat vast met !important: thema's geven links (vooral mailto- en tel-links)
   vaak een eigen achtergrond, rand of kleur die anders de accentkleur overschrijft. */
.gcp-popup a.gcp-popup__cta,
.gcp-popup a.gcp-popup__cta:link,
.gcp-popup a.gcp-popup__cta:visited {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	width: auto;
	height: auto;
	margin: 0 !important;
	padding: 15px 26px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--gcp-accent) !important;
	background-image: none !important;
	color: #fff !important;
	font-family: var(--gcp-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	box-shadow: 0 10px 24px -10px var(--gcp-accent-shadow) !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.gcp-popup a.gcp-popup__cta::before,
.gcp-popup a.gcp-popup__cta::after { content: none !important; }
.gcp-popup a.gcp-popup__cta:hover,
.gcp-popup a.gcp-popup__cta:focus-visible,
.gcp-popup a.gcp-popup__cta:active {
	background: var(--gcp-accent-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
.gcp-popup a.gcp-popup__cta svg { flex: none; fill: none; color: inherit; }
.gcp-popup a.gcp-popup__cta span { color: inherit !important; }
.gcp-popup__arrow { order: 2; transition: transform 0.2s ease; }
.gcp-popup__cta:hover .gcp-popup__arrow { transform: translateX(3px); }

.gcp-popup__later {
	padding: 6px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: var(--gcp-muted);
	text-decoration: underline;
	text-decoration-color: rgba(122, 112, 100, 0.35);
	text-underline-offset: 4px;
	cursor: pointer;
}
.gcp-popup__later:hover { color: var(--gcp-ink); }

.gcp-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(251, 247, 241, 0.92);
	color: var(--gcp-ink);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	transition: transform 0.2s ease, background 0.2s ease;
}
.gcp-popup__close:hover { transform: rotate(90deg); background: #fff; }

.gcp-popup :focus-visible {
	outline: 2px solid var(--gcp-oak);
	outline-offset: 3px;
}

/* ---------- Layouts ---------- */

.gcp-popup--image-right .gcp-popup__card { grid-template-columns: 1.08fr 1fr; }
.gcp-popup--image-right .gcp-popup__media { order: 2; }

.gcp-popup--image-top.gcp-popup--center { width: min(560px, calc(100vw - 32px)); }
.gcp-popup--image-top .gcp-popup__card { grid-template-columns: 1fr; overflow-y: auto; }
.gcp-popup--image-top .gcp-popup__media { min-height: 0; height: 260px; }
.gcp-popup--image-top .gcp-popup__body { padding: 36px 40px 34px; overflow: visible; }

.gcp-popup--no-image.gcp-popup--center { width: min(560px, calc(100vw - 32px)); }
.gcp-popup--no-image .gcp-popup__card { grid-template-columns: 1fr; }

/* ---------- Hoek (slide-in rechtsonder, niet blokkerend) ---------- */

.gcp-popup.gcp-popup--corner {
	position: fixed !important;
	inset: auto 24px 24px auto !important;
	margin: 0 !important;
	width: min(380px, calc(100vw - 32px));
	z-index: 999999;
}
.gcp-popup--corner[open] .gcp-popup__card { animation: gcp-slide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.gcp-popup--corner .gcp-popup__card { border-radius: 18px; box-shadow: 0 20px 50px -12px rgba(40, 30, 15, 0.4), 0 0 0 1px rgba(180, 138, 90, 0.15); }
.gcp-popup--corner .gcp-popup__media { height: 170px; }
.gcp-popup--corner .gcp-popup__body { padding: 24px 24px 22px; }
.gcp-popup--corner .gcp-popup__eyebrow { margin-bottom: 10px; font-size: 11px; }
.gcp-popup--corner .gcp-popup__title { font-size: 23px; margin-bottom: 10px; }
.gcp-popup--corner .gcp-popup__text { font-size: 14px; margin-bottom: 18px; }
.gcp-popup--corner .gcp-popup__facts { margin-bottom: 18px; }
.gcp-popup--corner .gcp-popup__facts > div { padding: 12px 0; }
.gcp-popup--corner .gcp-popup__facts > div + div { padding-left: 16px; }
.gcp-popup--corner .gcp-popup__facts dd { font-size: 22px; }
.gcp-popup--corner a.gcp-popup__cta { padding: 12px 20px !important; font-size: 14px; }
.gcp-popup--corner .gcp-popup__close { top: 12px; right: 12px; width: 34px; height: 34px; }
.gcp-popup--corner .gcp-popup__body::before { display: none; }

/* ---------- Mobiel ---------- */

@media (max-width: 720px) {
	.gcp-popup--center { width: calc(100vw - 24px); }
	.gcp-popup--center .gcp-popup__card { grid-template-columns: 1fr; overflow-y: auto; }
	.gcp-popup--center .gcp-popup__media { order: 0; min-height: 0; height: 34vh; max-height: 260px; }
	.gcp-popup--center .gcp-popup__body { padding: 28px 24px 26px; overflow: visible; }
	.gcp-popup__title { font-size: 26px; }
	.gcp-popup__text { font-size: 15px; margin-bottom: 22px; }
	.gcp-popup__facts { margin-bottom: 24px; }
	.gcp-popup__facts dd { font-size: 25px; }
	.gcp-popup--center a.gcp-popup__cta { flex: 1 1 100%; justify-content: center; }
	.gcp-popup--center .gcp-popup__later { margin: 0 auto; }

	.gcp-popup.gcp-popup--corner { inset: auto 12px 12px 12px !important; width: auto; }
	.gcp-popup--corner .gcp-popup__media { height: 130px; }
}

@keyframes gcp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gcp-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes gcp-slide { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes gcp-sink { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes gcp-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	.gcp-popup *, .gcp-popup::backdrop { animation: none !important; transition: none !important; }
}
