/*
Theme Name: River
Theme URI: https://river-innovation.nl
Author: River Innovation Support
Description: Blokthema voor River Innovation Support – laadinfra, energieopslag en netcongestie. Pagina's zijn opgebouwd uit bewerkbare blokken en patronen.
Version: 1.6.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: river
*/

/* ---------- Basis ---------- */
:root {
	--river-navy: var(--wp--preset--color--navy, #0E1F32);
	--river-navy-2: var(--wp--preset--color--navy-2, #16304A);
	--river-amber: var(--wp--preset--color--amber, #F2A541);
	--river-sand: var(--wp--preset--color--sand, #F6F4F1);
	--river-warm: var(--wp--preset--color--warm, #ECE8E5);
	--river-line: var(--wp--preset--color--line, #E0DAD3);
	--river-ink: var(--wp--preset--color--ink, #2C3A4B);
	--river-muted: var(--wp--preset--color--muted, #3D4A5A);
	--river-mist: var(--wp--preset--color--mist, #C9D2DC);
	--river-line-dark: #2A4562;
	--river-display: var(--wp--preset--font-family--space-grotesk, 'Space Grotesk', sans-serif);
	--river-mono: var(--wp--preset--font-family--ibm-plex-mono, ui-monospace, monospace);
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-post-content > .river-section,
.entry-content > .river-section {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---------- Secties en container ---------- */
.river-section {
	padding: 88px 0;
	margin: 0;
}

.river-section--tight {
	padding-top: 0;
}

.river-section--white {
	background: #FFFFFF;
	border-top: 1px solid #E6E1DB;
	border-bottom: 1px solid #E6E1DB;
}

.river-section--warm {
	background: var(--river-warm);
}

.river-section--navy {
	background: var(--river-navy);
	color: #FFFFFF;
}

.river-wrap,
.wp-block-columns.river-wrap {
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.river-narrow {
	max-width: 820px;
}

.river-section .wp-block-columns {
	gap: 24px 40px;
	margin-bottom: 0;
}

.river-grid {
	margin-top: 36px !important;
}

.river-grid + .river-grid {
	margin-top: 24px !important;
}

.wp-block-column > .river-card,
.wp-block-column > .river-service,
.wp-block-column > .river-point,
.wp-block-column > .river-trait {
	height: 100%;
	box-sizing: border-box;
}

/* ---------- Typografie ---------- */
.river-section h1,
.river-section .wp-block-heading:is(h1) {
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
}

.river-section h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin-top: 0;
}

.river-section h3 {
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0;
	hyphens: auto;
	overflow-wrap: break-word;
}

.river-section h3 + ul {
	margin-top: 0.6rem;
}

.river-section .river-label {
	margin-top: 1.6rem;
}

.river-label + ul {
	margin-top: 10px !important;
}

.river-box > .river-label:first-child {
	margin-top: 0;
}

.river-kicker {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--river-muted);
	margin: 0;
}

.river-kicker--accent,
.river-section--navy .river-kicker--accent,
.river-cta .river-kicker--accent {
	color: var(--river-amber);
}

.river-lead {
	font-size: 1.25rem;
	line-height: 1.55;
	color: var(--river-ink);
	max-width: 34em;
}

.river-intro {
	font-size: 1.125rem;
	color: var(--river-ink);
	max-width: 760px;
}

.river-label {
	font-family: var(--wp--preset--font-family--inter, Inter, sans-serif) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--river-muted);
}

.river-note {
	font-size: 0.9375rem;
	color: var(--river-muted);
}

.river-more {
	font-weight: 600;
	margin: 0;
}

.river-section--navy h2,
.river-section--navy h3,
.river-section--navy p,
.river-section--navy li {
	color: #FFFFFF;
}

.river-section--navy .river-intro,
.river-section--navy .river-card p,
.river-section--navy .river-trait p {
	color: var(--river-mist);
}

.river-section--navy a,
.river-section--navy .river-more a {
	color: var(--river-amber);
}

/* ---------- Knoppen ---------- */
.river-section .wp-block-buttons {
	margin-top: 8px;
	gap: 12px;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important;
	color: var(--river-navy) !important;
	border: 1.5px solid currentColor;
	padding: 14px 21px;
}

.river-section--navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.river-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--river-amber);
	color: var(--river-navy);
	font-weight: 700;
}

.river-section--navy .wp-block-button.is-style-outline > .wp-block-button__link,
.river-cta .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #FFFFFF !important;
}

/* ---------- Header en navigatie ---------- */
/* Header blijft bovenaan staan tijdens scrollen */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* Bij een klik op een menu-item (bijv. Diensten) niet onder de header verdwijnen */
html {
	scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.river-header {
	background: var(--river-sand);
	border-bottom: 1px solid #DDD7D0;
}

.river-header__inner {
	padding-top: 16px;
	padding-bottom: 16px;
	align-items: center;
	justify-content: space-between;
}

.river-logo {
	margin: 0;
}

.river-logo img {
	height: 46px;
	width: auto;
	display: block;
}

.river-nav {
	font-size: 0.9375rem;
	font-weight: 500;
	gap: 8px 28px;
}

.river-nav .wp-block-navigation-item__content {
	color: var(--river-navy);
	text-decoration: none;
}

.river-nav .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.river-nav .river-nav-cta > .wp-block-navigation-item__content {
	background: var(--river-navy);
	color: #FFFFFF !important;
	padding: 12px 18px;
	border-radius: 6px;
}

.river-nav .river-nav-cta > .wp-block-navigation-item__content:hover {
	background: #24476E;
	text-decoration: none;
}

/* ---------- Foto's ---------- */
.river-photo {
	margin: 0;
}

.river-photo img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.river-chart {
	margin: 0;
}

.river-chart img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
}

.river-portrait {
	margin: 0;
}

.river-portrait img {
	width: 240px;
	height: 240px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.river-portrait--square img {
	width: 280px;
	height: 280px;
	border-radius: 16px;
}

/* ---------- Kaarten ---------- */
.river-card {
	background: #FFFFFF;
	border: 1px solid var(--river-line);
	border-radius: 12px;
	padding: 28px;
	display: flex;
	flex-direction: column;
}

.river-card > * {
	margin-top: 0;
	margin-bottom: 0;
}

.river-card > * + * {
	margin-top: 12px !important;
}

.river-section--white .river-card {
	background: #FBFAF8;
}

.river-section--navy .river-card {
	background: var(--river-navy-2);
	border-color: transparent;
}

.river-num {
	font-family: var(--river-display);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--river-amber) !important;
}

.river-for {
	font-size: 0.875rem;
	border-top: 1px solid var(--river-line-dark);
	padding-top: 12px;
	margin-top: auto !important;
	color: #FFFFFF !important;
}

.river-role {
	font-size: 0.875rem;
	color: var(--river-muted);
	border-top: 1px solid #E6E1DB;
	padding-top: 12px;
	margin-top: auto !important;
}

.river-pill {
	display: inline-block;
	width: fit-content;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	background: var(--river-navy);
	color: #FFFFFF;
	padding: 5px 10px;
	border-radius: 999px;
}

.river-pill--accent {
	background: var(--river-amber);
	color: var(--river-navy);
}

.river-meta {
	justify-content: space-between;
	align-items: center;
}

.river-meta p {
	margin: 0;
}

.river-card .river-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.river-year {
	font-size: 0.8125rem;
	color: var(--river-muted);
}

/* Lijst als labels (opdrachtgevers, certificaten) */
ul.river-pills {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.river-pills li {
	font-size: 0.875rem;
	line-height: 1.35;
	background: var(--river-navy);
	color: #FFFFFF;
	padding: 7px 12px;
	border-radius: 999px;
	margin: 0;
}

ul.river-pills--light li {
	background: transparent;
	color: var(--river-navy);
	border: 1px solid #C9C1B8;
}

/* Vaktermen in monospace */
.river-chips {
	margin: 0;
	line-height: 2.1;
}

.river-chips code {
	font-family: var(--river-mono);
	font-size: 0.75rem;
	color: var(--river-navy);
	background: transparent;
	border: 1px solid #C9C1B8;
	border-radius: 4px;
	padding: 4px 8px;
	white-space: nowrap;
}

/* ---------- "Ik leg de verbinding" ---------- */
.river-connect {
	align-items: center;
	gap: 10px !important;
	flex-wrap: nowrap;
}

.river-connect p {
	font-family: var(--river-display);
	font-size: 1.3125rem;
	font-weight: 600;
	margin: 0 !important;
	white-space: nowrap;
}

.wp-block-separator.river-wire {
	flex: 1 1 32px;
	min-width: 28px;
	width: auto !important;
	height: 3px;
	border: none !important;
	background: var(--river-amber);
	opacity: 1;
	margin: 0 !important;
	position: relative;
}

.wp-block-separator.river-wire::before,
.wp-block-separator.river-wire::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border: 2px solid var(--river-navy);
	border-radius: 50%;
	background: #FFFFFF;
	transform: translateY(-50%);
	box-sizing: border-box;
}

.wp-block-separator.river-wire::before {
	left: -2px;
}

.wp-block-separator.river-wire::after {
	right: -2px;
}

/* ---------- Iconen (via CSS, zodat de koppen gewone tekst blijven) ---------- */
.river-icon {
	display: flex;
	align-items: center;
	gap: 14px;
}

.river-icon::before {
	content: "";
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background-color: var(--river-navy);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
}

.river-icon--bolt::before { background-image: url(assets/icons/bliksem.svg); }
.river-icon--battery::before { background-image: url(assets/icons/batterij.svg); }

/* Kenmerken "Zo werk ik" */
.river-trait {
	position: relative;
	padding-left: 68px;
	min-height: 52px;
}

.river-trait > * {
	margin-top: 0;
	margin-bottom: 0;
}

.river-trait > * + * {
	margin-top: 6px !important;
}

.river-trait h3 {
	font-size: 1.25rem;
}

.river-trait::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background-color: var(--river-navy-2);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
}

.river-trait--pareto::before {
	content: "80/20";
	background: var(--river-amber);
	color: var(--river-navy);
	font-family: var(--river-display);
	font-size: 0.9375rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.river-trait--agile::before { background-image: url(assets/icons/cyclus.svg); }
.river-trait--structuur::before { background-image: url(assets/icons/structuur.svg); }
.river-trait--communicatie::before { background-image: url(assets/icons/gesprek.svg); }
.river-trait--netwerk::before { background-image: url(assets/icons/netwerk.svg); }
.river-trait--misbaar::before { background-image: url(assets/icons/vinkje.svg); }

/* ---------- Diensten ---------- */
.river-service {
	background: #FFFFFF;
	border: 1px solid var(--river-line);
	border-radius: 14px;
	padding: 40px;
}

.river-service + .river-service {
	margin-top: 24px !important;
}

.river-service .wp-block-columns {
	gap: 32px 48px;
}

.river-section .river-service__title {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2;
}

.river-services {
	margin-top: 36px !important;
}



.river-badge {
	font-family: var(--river-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--river-navy);
	background: var(--river-amber);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.river-box {
	background: var(--river-sand);
	border-radius: 10px;
	padding: 26px;
}

.river-box ul {
	padding-left: 20px;
}

.river-box li + li {
	margin-top: 6px;
}

/* ---------- Over mij ---------- */
.river-point {
	border-top: 3px solid var(--river-navy);
	padding-top: 20px;
}

.river-point > * {
	margin-top: 0;
	margin-bottom: 0;
}

.river-point > * + * {
	margin-top: 10px !important;
}

ul.river-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 26px;
	border-left: 2px solid var(--river-line);
}

ul.river-timeline li {
	position: relative;
	font-family: var(--river-display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.35;
	padding-bottom: 26px;
}

ul.river-timeline li::before {
	content: "";
	position: absolute;
	left: -34px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--river-navy);
}

ul.river-timeline li:first-child::before {
	background: var(--river-amber);
}

ul.river-timeline li strong {
	display: block;
	font-family: var(--wp--preset--font-family--inter, Inter, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--river-muted);
	margin-bottom: 4px;
}

ul.river-timeline li em {
	display: block;
	font-family: var(--wp--preset--font-family--inter, Inter, sans-serif);
	font-style: normal;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--river-ink);
	margin-top: 4px;
}

/* ---------- Oproep tot contact ---------- */
.river-cta {
	background:
		linear-gradient(rgba(14, 31, 50, 0.86), rgba(14, 31, 50, 0.86)),
		url(assets/images/windturbine.jpg) center 40% / cover no-repeat;
	color: #FFFFFF;
}

.river-cta h2,
.river-cta p {
	color: #FFFFFF;
}

.river-cta .river-intro {
	color: var(--river-mist);
}

/* ---------- Cases (automatisch uit "Cases" in het beheer) ---------- */
.river-cases {
	margin-top: 36px !important;
}

.river-case-grid {
	gap: 24px !important;
	list-style: none;
	padding: 0;
	margin: 0;
}

.river-case-grid > li {
	margin: 0 !important;
}

.river-case-grid > li > .river-card {
	height: 100%;
	box-sizing: border-box;
}

.river-case-title {
	font-size: 1.3rem !important;
	font-weight: 600;
	line-height: 1.3;
}

.river-case-title a {
	color: var(--river-navy);
	text-decoration: none;
}

.river-case-title a:hover {
	text-decoration: underline;
}

.river-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Altijd ruimte tussen de tekst en de streep met de rol */
.river-card .river-readmore {
	margin: 12px 0 20px !important;
	font-weight: 600;
	font-size: 0.9375rem;
}

.river-card .river-readmore a {
	color: var(--river-navy);
	text-underline-offset: 4px;
}

.river-card .wp-block-post-excerpt__more-text {
	display: none;
}

.river-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0;
}

.river-terms a {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	background: var(--river-amber);
	color: var(--river-navy);
	padding: 5px 10px;
	border-radius: 999px;
	text-decoration: none;
	pointer-events: none;
}

.river-terms .wp-block-post-terms__separator {
	display: none;
}

.river-role::before {
	content: "Rol: ";
	font-weight: 700;
	color: var(--river-navy);
}

.river-role:empty,
.river-year:empty {
	display: none;
}

.river-single .wp-block-post-title {
	margin-top: 12px;
}

.river-single .river-year {
	font-size: 0.9375rem;
}

.river-single .river-role {
	margin-top: 0 !important;
	border-top: 0;
	padding-top: 0;
	font-size: 0.9375rem;
}

@media (max-width: 781px) {
	.river-case-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Voetregel in kaarten (werkvormen) ---------- */
.river-foot {
	border-top: 1px solid #E6E1DB;
	padding-top: 12px;
	margin-top: auto !important;
}

.river-section--navy .river-foot {
	border-top-color: var(--river-line-dark);
	color: var(--river-mist) !important;
}

/* ---------- Contactgegevens ---------- */
.river-contactlist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 32px;
	margin-top: 28px !important;
}

.river-contactlist > p {
	margin: 0 !important;
	font-size: 1.0625rem;
}

.river-contactlist strong {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--river-muted);
	margin-bottom: 2px;
}

.river-contactlist a {
	font-weight: 600;
	text-underline-offset: 4px;
}

@media (max-width: 600px) {
	.river-contactlist {
		grid-template-columns: 1fr;
	}
}

/* ---------- Contactformulier (Contact Form 7) ---------- */
.river-form .wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
}

.river-form .wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.river-form .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 12px 14px;
	font: inherit;
	color: var(--river-navy);
	background: #FFFFFF;
	border: 1px solid #C9C1B8;
	border-radius: 6px;
}

.river-form .wpcf7 input:focus,
.river-form .wpcf7 textarea:focus {
	outline: 2px solid var(--river-amber);
	outline-offset: 1px;
}

.river-form .wpcf7 input[type="submit"] {
	background: var(--river-navy);
	color: #FFFFFF;
	border: 0;
	border-radius: 6px;
	padding: 15px 22px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.river-form .wpcf7 input[type="submit"]:hover {
	background: #24476E;
}

/* ---------- Footer ---------- */
.river-footer {
	border-top: 1px solid #DDD7D0;
	background: var(--river-sand);
}

.river-footer__inner {
	padding-top: 28px;
	padding-bottom: 40px;
	justify-content: space-between;
	font-size: 0.875rem;
	color: var(--river-muted);
}

.river-footer__inner p {
	margin: 0;
}

/* ---------- Kleine schermen ---------- */
@media (max-width: 781px) {
	.river-section {
		padding: 60px 0;
	}

	.river-kicker {
		font-size: 0.75rem;
		letter-spacing: 0.05em;
	}

	.river-lead {
		font-size: 1.125rem;
	}

	.river-section--tight {
		padding-top: 0;
	}

	.river-photo img {
		height: 280px;
	}

	.river-service {
		padding: 24px;
	}

	.river-connect p {
		font-size: 1.125rem;
	}

	.river-portrait--square img {
		width: 200px;
		height: 200px;
	}
}
