/**
 * Woonhof Sellingen — site polish
 * Brand colors from logo: navy, sky, red, yellow
 */

:root {
	--whs-navy: #004070;
	--whs-sky: #0090d0;
	--whs-red: #e03020;
	--whs-yellow: #f0e030;
	--whs-ink: #1a2430;
	--whs-muted: #5a6570;
	--whs-surface: #f3f6f8;
	--whs-border: #d8e0e6;
	--whs-radius: 6px;
	--whs-shadow: 0 8px 24px rgba(0, 64, 112, 0.1);

	/* Tighten Twenty Twenty-Five spacing */
	--wp--preset--spacing--20: clamp(8px, 1.2vw, 12px) !important;
	--wp--preset--spacing--30: clamp(12px, 1.8vw, 18px) !important;
	--wp--preset--spacing--40: clamp(16px, 2.4vw, 28px) !important;
	--wp--preset--spacing--50: clamp(20px, 3vw, 36px) !important;
	--wp--preset--spacing--60: clamp(24px, 3.5vw, 44px) !important;
	--wp--preset--spacing--70: clamp(32px, 4.5vw, 56px) !important;
	--wp--preset--spacing--80: clamp(40px, 5.5vw, 72px) !important;

	--wp--style--global--content-size: 720px;
	--wp--style--global--wide-size: 1120px;
}

body {
	color: var(--whs-ink);
	background: #fff;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--whs-border);
	box-shadow: 0 1px 0 rgba(0, 64, 112, 0.04);
}

header.wp-block-template-part > .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

header.wp-block-template-part .wp-block-group.alignwide {
	padding-top: 0.65rem !important;
	padding-bottom: 0.65rem !important;
	align-items: center;
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	width: 100%;
}

/* Logo already includes the name — hide duplicate site title */
header.wp-block-template-part .wp-block-site-title {
	display: none !important;
}

header.wp-block-template-part .wp-block-site-logo {
	line-height: 0;
}

header.wp-block-template-part .wp-block-site-logo img,
header.wp-block-template-part .custom-logo {
	max-height: 52px !important;
	width: auto !important;
	height: auto !important;
}

header.wp-block-template-part .wp-block-navigation a {
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	color: var(--whs-navy);
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation a:hover,
header.wp-block-template-part .wp-block-navigation a[aria-current="page"] {
	color: var(--whs-sky);
}

header.wp-block-template-part .wp-block-navigation .current-menu-item > a,
header.wp-block-template-part .wp-block-navigation a[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--whs-yellow);
}

/* -------------------------------------------------------------------------
   Main content rhythm
   ------------------------------------------------------------------------- */

main#wp--skip-link--target {
	margin-top: 1.25rem !important;
}

main#wp--skip-link--target > .wp-block-group {
	padding-top: 1.25rem !important;
	padding-bottom: 2.5rem !important;
}

.wp-block-post-title {
	color: var(--whs-navy);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 0 !important;
	margin-bottom: 0.85rem !important;
	line-height: 1.15;
	max-width: var(--wp--style--global--content-size);
}

.entry-content > * + * {
	margin-block-start: 1.15rem !important;
}

.entry-content h2.wp-block-heading {
	color: var(--whs-navy);
	margin-top: 2rem !important;
	margin-bottom: 0.65rem !important;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	line-height: 1.25;
}

.entry-content p {
	line-height: 1.65;
	color: var(--whs-ink);
}

.entry-content p + p {
	margin-top: 0.85rem !important;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li {
	margin-bottom: 0.4rem;
	line-height: 1.55;
}

.entry-content li::marker {
	color: var(--whs-sky);
}

/* -------------------------------------------------------------------------
   Images & media
   ------------------------------------------------------------------------- */

.entry-content .wp-block-image,
.entry-content .wp-block-video,
.entry-content figure {
	margin-top: 1.35rem !important;
	margin-bottom: 1.35rem !important;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-video video,
.entry-content .wp-block-media-text__media img {
	border-radius: var(--whs-radius);
	display: block;
	width: 100%;
	height: auto;
	box-shadow: var(--whs-shadow);
}

.entry-content .wp-block-image.alignwide,
.entry-content .wp-block-image.alignfull {
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-element-caption {
	margin-top: 0.55rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--whs-navy);
	text-align: left;
}

/*
 * Home hero: the media-text block repeats the logo already in the header.
 * Show a wide pullquote banner aligned with the lead photo below.
 */
.home .entry-content > .wp-block-media-text {
	display: block !important;
	width: 100%;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background:
		linear-gradient(135deg, rgba(0, 64, 112, 0.06), rgba(0, 144, 208, 0.08)),
		var(--whs-surface);
	border: 1px solid var(--whs-border);
	border-left: 5px solid var(--whs-sky);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 0.75rem !important;
}

.home .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
}

.home .entry-content > .wp-block-media-text .wp-block-media-text__media {
	display: none !important;
}

.home .entry-content > .wp-block-media-text .wp-block-media-text__content {
	padding: 0 !important;
}

.entry-content .wp-block-media-text {
	align-items: center;
	gap: 1.5rem !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__media img {
	box-shadow: none;
	max-height: 200px;
	width: auto;
	margin-inline: auto;
}

.entry-content .wp-block-quote {
	border-left: 4px solid var(--whs-sky);
	margin: 0;
	padding: 0.25rem 0 0.25rem 1.1rem;
	background: transparent;
}

.home .entry-content .wp-block-quote {
	border-left: none;
	padding-left: 0;
}

.entry-content .wp-block-quote p {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-style: italic;
	line-height: 1.45;
	color: var(--whs-navy);
	margin: 0;
}

.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.65rem;
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 600;
	color: var(--whs-muted);
	letter-spacing: 0.02em;
}

/* Lead photo under the intro sits tighter against the quote */
.home .entry-content > .wp-block-image.alignwide {
	margin-top: 1rem !important;
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

.home .entry-content > .wp-block-image.alignwide img {
	max-height: min(52vh, 480px);
	width: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.entry-content .wp-block-video video {
	background: #000;
}

/* -------------------------------------------------------------------------
   Woningtypen: stacked column → 2×2 gallery
   ------------------------------------------------------------------------- */

.page-id-22 .wp-block-post-title,
.page-id-26 .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size) !important;
}

.page-id-22 .entry-content > .wp-block-columns {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
}

.page-id-22 .entry-content .wp-block-column {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 700px) {
	.page-id-22 .entry-content .wp-block-column {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
}

.page-id-22 .entry-content .wp-block-image {
	margin: 0 !important;
	background: var(--whs-surface);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--whs-border);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-id-22 .entry-content .wp-block-image:hover {
	transform: translateY(-3px);
	box-shadow: var(--whs-shadow);
}

.page-id-22 .entry-content .wp-block-image img {
	border-radius: 0;
	box-shadow: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.page-id-22 .entry-content .wp-block-image figcaption {
	padding: 0.65rem 0.85rem 0.85rem;
	margin: 0;
	background: #fff;
}

/* -------------------------------------------------------------------------
   Plan page list emphasis
   ------------------------------------------------------------------------- */

.page-id-26 .entry-content ul {
	display: grid;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0 1.5rem;
}

.page-id-26 .entry-content ul li {
	position: relative;
	padding: 0.75rem 1rem 0.75rem 2.5rem;
	background: var(--whs-surface);
	border: 1px solid var(--whs-border);
	border-radius: var(--whs-radius);
	margin: 0;
	font-weight: 600;
	color: var(--whs-navy);
}

.page-id-26 .entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--whs-sky);
	transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

footer.wp-block-template-part {
	margin-top: 0;
	background: var(--whs-navy);
	color: #fff;
	border-top: 4px solid var(--whs-yellow);
}

footer.wp-block-template-part .wp-block-group {
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
}

footer.wp-block-template-part a,
footer.wp-block-template-part h2,
footer.wp-block-template-part p,
footer.wp-block-template-part .wp-block-site-title a {
	color: #fff !important;
}

footer.wp-block-template-part .custom-logo {
	max-height: 56px;
	width: auto;
	background: #fff;
	border-radius: 6px;
	padding: 0.35rem 0.55rem;
}

footer.wp-block-template-part .wp-block-site-title {
	font-size: 1.25rem;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   Forms (Contact Form 7 / WPForms)
   ------------------------------------------------------------------------- */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
	border: 1px solid var(--whs-border) !important;
	border-radius: var(--whs-radius) !important;
	padding: 0.65rem 0.85rem !important;
}

.wpcf7 input[type="submit"],
.wpforms-submit {
	background: var(--whs-navy) !important;
	border: none !important;
	border-radius: var(--whs-radius) !important;
	color: #fff !important;
	font-weight: 600 !important;
	padding: 0.7rem 1.35rem !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpforms-submit:hover {
	background: var(--whs-sky) !important;
}

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.whs-reveal {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.55s ease, transform 0.55s ease;
	}

	.whs-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 781px) {
	header.wp-block-template-part .custom-logo {
		max-height: 44px;
	}

	.entry-content .wp-block-media-text {
		padding: 1rem;
	}

	.entry-content .wp-block-media-text .wp-block-media-text__media img {
		max-height: 160px;
	}
}
