/* -------------------------------------------------------------------------
   Parelhoeve - koppeling met de kernblokken

   De secties zijn met gewone WordPress-blokken opgebouwd zodat ze bewerkbaar
   blijven in de site-editor. Hieronder trekken we die blokmarkup naar het
   ontwerp toe.
---------------------------------------------------------------------------- */

/* Hero op basis van een cover-blok. */

/* Het cover-blok is een kolom-flexbox: align-items regelt links/rechts en
   justify-content regelt boven/onder. We zetten dat hier expliciet. */
.ph-hero.wp-block-cover {
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	padding-inline: 0;
}

.ph-hero .wp-block-cover__image-background {
	object-position: center 38%;
}

.ph-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--ph-wide);
	margin-inline: auto;
	padding-inline: var(--ph-gutter);
}

.ph-hero .ph-hero__content {
	max-width: 34rem;
	margin-inline: 0;
}

.ph-hero .ph-hero__content > * {
	margin-block: 0 1.1rem;
}

.ph-hero h1 {
	color: #fff;
	margin-block: 0 1.25rem;
}

.ph-hero p:not(.ph-eyebrow):not(.ph-hero__script) {
	color: rgba(244, 242, 234, 0.82);
	max-width: 40ch;
}

.ph-hero .wp-block-buttons {
	margin-top: 2rem;
	gap: 0.85rem;
}

/* De omlijnde knop naast de gouden knop. */
.ph-hero .is-style-outline .wp-block-button__link,
.wp-block-button.ph-btn--ghost .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(244, 242, 234, 0.45);
	color: #f4f2ea;
}

.ph-hero .is-style-outline .wp-block-button__link:hover,
.wp-block-button.ph-btn--ghost .wp-block-button__link:hover {
	background: rgba(244, 242, 234, 0.12);
	border-color: #f4f2ea;
	color: #fff;
}

.ph-hero__script {
	position: absolute;
	right: var(--ph-gutter);
	bottom: 20%;
	z-index: 3;
	margin: 0;
	text-align: right;
	font-family: var(--ph-script);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.3;
	color: var(--ph-gold);
	transform: rotate(-6deg);
	pointer-events: none;
	/* De foto is hier licht, dus de dunne letters hebben wat steun nodig. */
	text-shadow: 0 1px 12px rgba(21, 32, 26, 0.85), 0 0 3px rgba(21, 32, 26, 0.6);
}

/* Fotocollage. */

.ph-collage.wp-block-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.ph-collage .wp-block-image {
	margin: 0;
	background: #fff;
	padding: 0.5rem 0.5rem 1.4rem;
	box-shadow: var(--ph-shadow);
}

.ph-collage .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ph-collage .wp-block-image:nth-child(1) {
	transform: rotate(-4deg);
	margin-top: 1.25rem;
}

.ph-collage .wp-block-image:nth-child(2) {
	transform: rotate(1.5deg);
}

.ph-collage .wp-block-image:nth-child(3) {
	transform: rotate(-1.5deg);
	margin-top: 2.25rem;
}

.ph-collage-col {
	position: relative;
}

.ph-collage__note {
	margin: 0.5rem 0 0;
	transform: rotate(-7deg);
	display: inline-block;
}

/* Split op basis van kolommen. */

.ph-split.wp-block-columns {
	gap: clamp(2rem, 6vw, 4.5rem);
	align-items: center;
}

.ph-split .wp-block-column > * {
	margin-block: 0 1.15rem;
}

.ph-split .wp-block-column > *:last-child {
	margin-bottom: 0;
}

/* Categoriekaarten. */

.ph-cats.wp-block-columns {
	gap: 1.25rem;
}

.ph-cats > .wp-block-column {
	flex-basis: 0;
	flex-grow: 1;
	min-width: 0;
}

.ph-cat.wp-block-cover {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	padding: 1.4rem;
	min-height: 320px;
}

.ph-cat .wp-block-cover__inner-container {
	width: 100%;
}

.ph-cat .wp-block-cover__image-background {
	transition: transform 0.6s ease;
}

.ph-cat:hover .wp-block-cover__image-background {
	transform: scale(1.05);
}

.ph-cat .wp-block-cover__inner-container > * {
	margin-block: 0 0.4rem;
}

.ph-cat__title {
	font-size: 1.3rem;
	font-weight: 500;
	color: #fff;
}

.ph-cat__text {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgba(244, 242, 234, 0.82);
	margin-bottom: 0.9rem !important;
}

.ph-cat__arrow {
	margin-bottom: 0 !important;
}

/* De link wordt een pijl; de tekst blijft er voor schermlezers. */
.ph-cat__arrow a {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 12px;
	color: var(--ph-gold);
	text-indent: -9999px;
	overflow: hidden;
	text-decoration: none;
}

.ph-cat__arrow a::after {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 26px;
	height: 1px;
	background: currentColor;
	transition: width 0.2s ease;
}

.ph-cat__arrow a::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 3px;
	width: 7px;
	height: 7px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

.ph-cat:hover .ph-cat__arrow a::after {
	width: 32px;
}

/* Donkere media-text secties. */

.ph-feature.wp-block-media-text,
.ph-cta.wp-block-media-text {
	align-items: center;
}

.ph-feature .wp-block-media-text__media,
.ph-cta .wp-block-media-text__media {
	height: 100%;
	min-height: 380px;
}

.ph-feature .wp-block-media-text__media img,
.ph-cta .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ph-feature .wp-block-media-text__content,
.ph-cta .wp-block-media-text__content {
	padding: clamp(2.5rem, 6vw, 5rem);
	max-width: 38rem;
}

.ph-feature .wp-block-media-text__content > *,
.ph-cta .wp-block-media-text__content > * {
	margin-block: 0 1.15rem;
}

.ph-feature .wp-block-media-text__content > *:last-child,
.ph-cta .wp-block-media-text__content > *:last-child {
	margin-bottom: 0;
}

.ph-feature h2,
.ph-cta h2 {
	color: #f4f2ea;
}

.ph-feature p,
.ph-cta p {
	color: rgba(232, 230, 221, 0.78);
}

.ph-feature .ph-eyebrow,
.ph-cta .ph-eyebrow {
	color: var(--ph-gold);
}

.ph-cta__export {
	display: block;
	margin-top: 1.5rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(244, 242, 234, 0.2);
	font-size: 0.8125rem;
}

.ph-cta__export strong {
	display: block;
	margin-bottom: 0.25rem;
	color: #f4f2ea;
	font-weight: 600;
}

/* Wedstrijdsectie. */

.ph-awards.wp-block-columns {
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.ph-awards .wp-block-column > * {
	margin-block: 0 1.15rem;
}

.ph-awards__media .wp-block-image {
	margin: 0;
}

.ph-awards__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ph-awards__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	padding: 2.5rem 1.25rem;
	background: var(--ph-sand);
}

.ph-awards__panel::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 1.25rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0V4Z' stroke='%23c2a166' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M7 5H4.5v1.5A3.5 3.5 0 0 0 8 10' stroke='%23c2a166' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M17 5h2.5v1.5A3.5 3.5 0 0 1 16 10' stroke='%23c2a166' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M12 14v3m-3.5 3h7l-.7-3h-5.6l-.7 3Z' stroke='%23c2a166' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ph-awards__values {
	margin: 0 !important;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 2.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ph-ink);
}

/* Pagina- en berichtkoppen. */

.ph-page-hero .wp-block-post-title,
.ph-page-hero h1 {
	margin: 0;
	color: #fff;
}

.ph-page-hero .wp-block-post-date,
.ph-page-hero .ph-eyebrow {
	margin-bottom: 0.75rem;
	color: var(--ph-gold);
}

.ph-page-hero .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

/* Berichtenraster. */

.wp-block-post-template.ph-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-post-template.ph-grid > li {
	margin: 0;
}

.ph-post-card {
	height: 100%;
}

.ph-post-card .wp-block-post-featured-image {
	margin: 0;
}

.ph-post-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.ph-post-card__body > * {
	margin-block: 0 0.6rem;
}

.ph-post-card .wp-block-post-date {
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ph-muted);
}

/* Paginering van de kernquery. */

.wp-block-query-pagination.ph-pagination {
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.wp-block-query-pagination.ph-pagination a,
.wp-block-query-pagination.ph-pagination .current {
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--ph-line);
	background: #fff;
	font-size: 0.8125rem;
	text-decoration: none;
}

.wp-block-query-pagination.ph-pagination .current {
	background: var(--ph-forest);
	border-color: var(--ph-forest);
	color: #f4f2ea;
}

/* Losse pagina-inhoud. */

.ph-section .wp-block-post-content > * {
	margin-block: 1.35rem;
}

.ph-paard .wp-block-post-content {
	margin-top: 2rem;
}

.ph-paard__media .wp-block-post-featured-image {
	margin: 0;
}

.ph-paard__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Responsief. */

/* Op smalle schermen staat de tekst over de foto in plaats van ernaast, dus
   draaien we de sluier van links-naar-rechts om naar boven-naar-onder. */
@media (max-width: 860px) {
	.ph-hero .wp-block-cover__background.has-photo-veil-gradient-background {
		background: linear-gradient(
			180deg,
			rgba(21, 32, 26, 0.62) 0%,
			rgba(21, 32, 26, 0.78) 40%,
			rgba(21, 32, 26, 0.93) 100%
		) !important;
	}

	.ph-hero .wp-block-cover__image-background {
		object-position: center 30%;
	}
}

@media (max-width: 860px) {
	.ph-hero__script {
		display: none;
	}

	.ph-feature .wp-block-media-text__media,
	.ph-cta .wp-block-media-text__media {
		min-height: 260px;
	}

	.ph-cats.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.ph-cats > .wp-block-column {
		flex-basis: calc(50% - 0.625rem) !important;
	}

	.ph-awards .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 600px) {
	.ph-cats > .wp-block-column {
		flex-basis: 100% !important;
	}

	.ph-collage.wp-block-group {
		grid-template-columns: repeat(2, 1fr);
	}

	.ph-collage .wp-block-image:nth-child(3) {
		display: none;
	}

	.ph-hero .wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.ph-hero .wp-block-buttons .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* Internationale verkoop onderaan de verkooppagina. */

.ph-export-section.wp-block-cover {
	padding-block: clamp(3rem, 7vw, 5rem);
	padding-inline: 0;
	min-height: 0;
}

.ph-export-section .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--ph-wide);
	margin-inline: auto;
	padding-inline: var(--ph-gutter);
}

.ph-export.wp-block-columns {
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.ph-export h2 {
	color: #f4f2ea;
}

.ph-export p {
	color: rgba(232, 230, 221, 0.78);
	margin: 0;
}

.ph-export__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
	font-size: 1.6rem;
	font-weight: 400;
}

.ph-export__title::before {
	content: "";
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23c2a166' stroke-width='1.2'/%3E%3Cpath d='M3 12h18' stroke='%23c2a166' stroke-width='1.2'/%3E%3Cpath d='M12 3c2.5 2.6 3.8 5.7 3.8 9S14.5 18.4 12 21c-2.5-2.6-3.8-5.7-3.8-9S9.5 5.6 12 3Z' stroke='%23c2a166' stroke-width='1.2'/%3E%3C/svg%3E");
}

.ph-export__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
	font-size: 0.875rem;
	color: rgba(232, 230, 221, 0.9);
}

.ph-export__list li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ph-export__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' stroke='%23c2a166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Landenrij in de hero van de verkooppagina. */
.ph-hero__countries {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: none !important;
	margin-block: 1.25rem 0 !important;
	font-size: 0.8125rem;
	color: rgba(244, 242, 234, 0.8) !important;
}

.ph-hero__countries::before {
	content: "";
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23c2a166' stroke-width='1.3'/%3E%3Cpath d='M3 12h18' stroke='%23c2a166' stroke-width='1.3'/%3E%3Cpath d='M12 3c2.5 2.6 3.8 5.7 3.8 9S14.5 18.4 12 21c-2.5-2.6-3.8-5.7-3.8-9S9.5 5.6 12 3Z' stroke='%23c2a166' stroke-width='1.3'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
	.ph-export .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Berichtkaarten: de kop uit theme.json is hier te groot, dus zetten we hem
   expliciet op kaartformaat. */

.ph-post-card .wp-block-post-title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.3;
	font-weight: 500;
}

.ph-post-card .wp-block-post-excerpt {
	margin: 0;
}

.ph-post-card .wp-block-post-excerpt__excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--ph-muted);
	margin: 0;
}

.ph-post-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.6rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-ink);
	border-bottom: 1px solid var(--ph-line);
}

/* De datum hoort boven de titel te staan. */
.ph-post-card__body {
	display: flex;
	flex-direction: column;
}

.ph-post-card__body .wp-block-post-date {
	order: -1;
}

/* Query-loops die de beheerders zelf plaatsen (zoals het nieuwsoverzicht)
   krijgen dezelfde kaartopmaak als de rest van de site. */

.wp-block-query .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: clamp(1rem, 2vw, 1.5rem);
}

.wp-block-query .wp-block-post-template > li {
	margin: 0;
	background: #fff;
	border: 1px solid var(--ph-line);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-query .wp-block-post-template > li:hover {
	transform: translateY(-3px);
	box-shadow: var(--ph-shadow);
}

.wp-block-query .wp-block-post-template > li > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
}

.wp-block-query .wp-block-post-title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.3;
	font-weight: 500;
}

.wp-block-query .wp-block-post-title a {
	text-decoration: none;
}

.wp-block-query .wp-block-post-excerpt,
.wp-block-query .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--ph-muted);
}

.wp-block-query .wp-block-post-date {
	order: -1;
	margin: 0;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ph-muted);
}

.wp-block-query .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

.wp-block-query .wp-block-post-featured-image {
	margin: 0 0 0.25rem;
}

.wp-block-query .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
