/* =========================================================
   Invenso — front-end + editor stylesheet
   Kleuren, spacing en typografie komen uit theme.json
   (--wp--preset--*). Dit bestand bevat de sectie-opmaak
   uit invenso-site.html.
   ========================================================= */

:root {
	--invenso-radius-sm: var(--wp--custom--radius--sm, 6px);
	--invenso-radius-md: var(--wp--custom--radius--md, 12px);
	--invenso-shadow-sm: var(--wp--preset--shadow--sm, 0 1px 2px #09162B1A);
	--invenso-check-success: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%231B8A5A'/%3E%3Cpath d='M6 11l3 3 7-7' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
	--invenso-check-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%232E75B6'/%3E%3Cpath d='M6 11l3 3 7-7' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
}

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

/* Toetsenbordfocus */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-deep);
	outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--wp--preset--color--neutral-200);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .wp-block-site-logo img {
	max-height: 48px;
	width: auto;
}

.site-header .wp-block-navigation {
	flex: 1 1 auto;
}

.site-header .wp-block-buttons .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 900px) {
	.site-header .header-cta {
		display: none;
	}
}

/* Mobiel: hamburger rechts uitlijnen */
@media (max-width: 599px) {
	.site-header .wp-block-navigation {
		justify-content: flex-end;
	}
}

/* ---------- Paragraafstijlen ---------- */
.is-style-kicker,
.kicker {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.85rem;
	color: var(--wp--preset--color--accent-deep);
	margin-bottom: var(--wp--preset--spacing--10) !important;
}

.is-style-lead,
.lead {
	font-size: 1.1rem;
}

.is-style-note,
.note {
	font-size: 0.9rem;
	color: var(--wp--preset--color--neutral-700);
}

.is-style-highlight,
.highlight {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.is-style-tag,
.tag {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-deep);
	background: var(--wp--preset--color--accent-soft);
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	margin-bottom: var(--wp--preset--spacing--10) !important;
}

/* ---------- Kaarten ---------- */
.is-style-card,
.card {
	background: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--invenso-radius-md);
	box-shadow: var(--invenso-shadow-sm);
	border: 1px solid var(--wp--preset--color--neutral-200);
}

.is-style-card > :first-child,
.card > :first-child {
	margin-top: 0;
}

.is-style-card > :last-child,
.card > :last-child {
	margin-bottom: 0;
}

.wp-block-columns.cards-grid {
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--40);
}

.service-card svg {
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
}

.service-card h3 {
	font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.hero h1 {
	margin-bottom: var(--wp--preset--spacing--20);
}

.hero .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--20);
}

/* ---------- Secties ---------- */
.site-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* ---------- Vinkjeslijsten ---------- */
.is-style-checklist,
.is-style-checklist-accent {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.is-style-checklist li,
.is-style-checklist-accent li {
	position: relative;
	padding-left: calc(22px + var(--wp--preset--spacing--20));
	margin-bottom: var(--wp--preset--spacing--20);
}

.is-style-checklist li::before,
.is-style-checklist-accent li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2rem;
	width: 22px;
	height: 22px;
	background: var(--invenso-check-success) no-repeat center / 22px 22px;
}

.is-style-checklist-accent li::before {
	background-image: var(--invenso-check-accent);
}

.feature-list li {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* ---------- Stack-diagram (Onderscheid) ---------- */
.onderscheid-grid {
	gap: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--40);
}

.stack-diagram {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.stack-diagram > .stack-row {
	margin: 0;
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--invenso-radius-sm);
	font-weight: 600;
	text-align: center;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
}

.stack-diagram > .stack-row:nth-child(1) {
	background: var(--wp--preset--color--accent);
}

.stack-diagram > .stack-row:nth-child(2) {
	background: var(--wp--preset--color--accent-deep);
}

/* ---------- Klantreis ---------- */
.klantreis h2 {
	color: var(--wp--preset--color--base);
}

.wp-block-columns.journey-steps {
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40);
}

.journey-step {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	border-radius: var(--invenso-radius-md);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
}

.journey-step.is-active {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.journey-step .step-num {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 var(--wp--preset--spacing--10);
}

.journey-step p {
	margin-top: var(--wp--preset--spacing--10);
	font-size: 0.95rem;
}

.journey-step > :last-child {
	margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact .is-style-checklist-accent {
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.contact .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--30);
}

.contact .is-style-note {
	margin-top: var(--wp--preset--spacing--30);
}

/* ---------- FAQ ---------- */
.faq .wp-block-details {
	margin-top: 0;
	margin-bottom: 0;
}

.faq .wp-block-details summary {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.faq .wp-block-details summary:hover {
	color: var(--wp--preset--color--accent);
}

.faq .wp-block-details p {
	margin-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--neutral-700);
}

/* ---------- Footer ---------- */
.site-footer {
	font-size: 0.9rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--wp--preset--color--base);
}

/* ---------- Blog / overige pagina's ---------- */
.entry-content > * + * {
	margin-top: var(--wp--preset--spacing--20);
}

.post-card {
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--neutral-200);
}

.post-card .wp-block-post-title {
	font-size: 1.35rem;
}

.post-card .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero,
	.site-section {
		padding-top: var(--wp--preset--spacing--50);
		padding-bottom: var(--wp--preset--spacing--50);
	}
}

/* Kolommen stapelen onder 900px, net als in het ontwerp (782px is de WP-standaard). */
@media (min-width: 782px) and (max-width: 900px) {
	.wp-block-columns.cards-grid:not(.is-not-stacked-on-mobile),
	.wp-block-columns.journey-steps:not(.is-not-stacked-on-mobile),
	.wp-block-columns.onderscheid-grid:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.cards-grid:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.wp-block-columns.journey-steps:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.wp-block-columns.onderscheid-grid:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Editor ---------- */
.editor-styles-wrapper .site-header {
	position: static;
}
