/*
Theme Name: ECHT.BON Herstel 22
Theme URI: https://echtbon.com/
Author: ECHT.BON
Description: ECHT.BON-thema (PAP/NL/EN) met vijf afzonderlijke pagina's, compact mobiel menu en rustige stapsgewijze presentatie. Gebaseerd op Herstel 18 / 21.0.0; teksten en vormgeving ongewijzigd. Gutenberg blijft bewerkbaar.
Version: 22.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: echtbon
*/

/* One consolidated stylesheet. The values are the ones the 21.0.0 site actually
   rendered (measured in the browser), without the layered !important overrides. */

:root {
	--ink: #15171d;
	--pink: #f50065;
	--pink-cta: #e6007e;
	--pink-light: #ff77aa;
	--page: 1110px;
	--gutter: 5vw;
	--line: #e8e7ed;
	--grey: #f2f3f5;
	--card: #fafafa;
	--dark: #171722;
	--footer: #10121a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: #f7f7f8;
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-wrap: break-word;
}
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--pink-cta); outline-offset: 3px; }

.eb-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.eb-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
.topbar { width: min(94%, var(--page)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; text-decoration: none; line-height: 1; }
.brand-logo-image { display: block; width: 139px; height: auto; }

.eb-controls { display: flex; align-items: center; gap: 20px; flex: 0 1 auto; }
.site-nav { order: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 19px; }
.site-nav a { display: inline-block; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--ink); padding: 4px 0; }
.site-nav a:hover { color: var(--pink); }
/* Active page: pink with a short underline. Higher specificity than any leftover
   Customizer CSS so only the current page is marked. */
html body .site-header .site-nav a.eb-nav-link:not([aria-current]) { color: var(--ink); text-decoration: none; }
html body .site-header .site-nav a.eb-nav-link:not([aria-current]):hover { color: var(--pink); }
html body .site-header .site-nav a.eb-nav-link[aria-current="page"] { color: var(--pink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

.langs { order: 2; display: flex; gap: 6px; flex: 0 0 auto; }
.langs a { display: inline-block; border: 1px solid #ddd; border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 700; line-height: 1.6; text-decoration: none; color: var(--ink); }
.langs a:hover { border-color: var(--pink); }
.langs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.eb-menu-button { order: 3; display: none; }

/* ---------- Layout ---------- */
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; overflow-x: clip; }
.site-main:focus { outline: none; }
.eb-article { flex: 1 0 auto; display: flex; flex-direction: column; margin: 0; }
.entry-content { margin: 0; }
.eb-article > .entry-content:not(.eb-prose) { flex: 1 0 auto; display: flex; flex-direction: column; }
/* The last block of a short page extends its own background down to the footer, so no
   grey band appears under the footer. Its content stays at the top (normal spacing). */
.eb-article > .entry-content:not(.eb-prose) > :last-child { flex-grow: 1; }

/* Neutralise WordPress' generic block gap inside the ECHT.BON sections. */
/* Specificity (0,1,0): beats core's zero-specificity block gap, loses to every rule below. */
.entry-content :where(.hero, .section, .contact) :where(*) { margin-block-start: 0; }
.entry-content > :is(.hero, .section, .contact) { margin: 0; width: 100%; max-width: none; }

.entry-content .hero,
.entry-content .section,
.entry-content .contact { position: relative; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content .section-in,
.entry-content .hero-content { width: min(100%, var(--page)); margin-left: auto; margin-right: auto; }

/* ---------- Hero (Home) ---------- */
.entry-content .hero { background: radial-gradient(ellipse at 70% 38%, #ffebf1 0, transparent 57%), #fafafa; padding-top: 44px; padding-bottom: 38px; }
.hero-glow, .hero-decor, .orbit.center, .eyebrow:empty { display: none; }
.hero h1 { font-size: clamp(54px, 7.5vw, 99px); line-height: 1.09; letter-spacing: -.057em; font-weight: 900; margin: 0 0 31px; max-width: 1050px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero h2 { max-width: 740px; font-size: clamp(24px, 2.35vw, 30px); line-height: 1.31; letter-spacing: -.027em; margin: 0 0 20px; }
.hero-detail { border-left: 3px solid var(--pink); padding-left: 20px; max-width: 800px; margin-top: 15px; }
.hero-detail p { margin: 0 0 10px; line-height: 1.65; }
.hero .down { display: inline-block; font-size: 30px; color: var(--pink); text-decoration: none; }
.hero p:has(> .down) { margin: 14px 0 0; }
/* On the separate Home page the arrow pointed at a section that now has its own page. */
.eb-home-split .hero p:has(> .down), .eb-home-split .hero .down { display: none; }

/* ---------- Sections ---------- */
.entry-content .section { background: #fff; padding-top: 55px; padding-bottom: 58px; border-bottom: 1px solid #eee; }
.entry-content .section:last-child { border-bottom: 0; }
.entry-content .about, .entry-content .values, .entry-content .eb-grey { background: var(--grey); }
.section-label, .section .section-label { margin: 0 0 18px; color: var(--pink); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .10em; line-height: 1.68; }
.section h2 { font-size: clamp(32px, 3.8vw, 47px); line-height: 1.19; letter-spacing: -.035em; margin: 0 0 24px; }
.section h3 { line-height: 1.33; letter-spacing: -.015em; }
.section p { margin: 0 0 15px; line-height: 1.68; }
.section .body-copy { max-width: 790px; }
.section .body-copy p { margin-bottom: 18px; }
.entry-content .brush { height: 12px; width: 136px; background: var(--pink); border-radius: 45% 12% 40% 10%; transform: rotate(-3deg); margin-top: 26px; opacity: .82; }

/* Services */
/* About: the founder's story and "ECHT.BON staat voor" read as one continuous story;
   the pink brush stroke closes the page. */
.eb-kind-about .entry-content .about { padding-bottom: 0; border-bottom: 0; }
.eb-kind-about .entry-content .values { padding-top: 34px; }
.section .body-copy a { color: var(--pink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section .body-copy a:hover { text-decoration-thickness: 2px; }
/* 22.2.1 colour correction (About page only): the bright ECHT.BON magenta-pink #e6007e,
   the colour chosen in Herstel 9 as "visibly magenta-pink, not reddish hot pink", for the
   Initiatives link, "ECHT.BON staat voor", the four core values and the closing brush stroke. */
.eb-kind-about { --eb-about-pink: #e6007e; }
.eb-kind-about .section .body-copy a,
.eb-kind-about .entry-content .values .section-label,
.eb-kind-about .entry-content .values .values-line { color: var(--eb-about-pink); }
.eb-kind-about .entry-content .brush { background: var(--eb-about-pink); opacity: 1; }
.services .intro { max-width: 780px; font-size: 19px; }
.entry-content .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; width: 100%; }
.entry-content .service-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: 24px; background: var(--card); border: 1px solid #e6e6ea; border-radius: 18px; }
.service-card .service-icon { display: block; width: 36px; height: 36px; color: var(--pink); flex: 0 0 auto; margin: 0 0 16px; }
.service-card h3 { font-size: 20px; margin: 0 0 12px; }
.section .service-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.service-cta { margin-top: 28px; }

/* Values */
.values-line { color: var(--pink); font-weight: 800; }
.section .vision-sign { margin-top: 25px; font-size: 24px; font-weight: 800; }

/* Initiatives / SANAUNDA */
.entry-content .product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 40px; align-items: center; }
.product-layout > * { min-width: 0; }
.section .product-name { font-weight: 900; color: var(--ink); }
.product-name .dot { display: none; }
.product h3 { font-size: 23px; line-height: 1.35; margin: 0 0 20px; }
.entry-content .product-art { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 100%; max-width: 440px; margin: 0 auto; padding: 18px; background: var(--card); border: 1px solid #e8e8ec; border-radius: 24px; }
.product-art img.sanaunda-preview { display: block; width: 100%; max-width: 290px; height: auto; border-radius: 14px; margin: 0 auto 16px; object-fit: contain; }
.product-art .sanaunda-app-icon { display: block; width: 165px; height: 165px; object-fit: contain; margin: 0 auto 14px; }
.section .product-art-head { font-size: 27px; font-weight: 900; line-height: 1.2; letter-spacing: -.04em; margin: 0 0 11px; color: var(--ink); }
.section .product-tagline { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0 0 15px; color: #131a22; }
.section .product-art-foot { font-size: 14px; font-weight: 750; margin: 0; color: #131a22; }

/* Contact */
.entry-content .contact { background: var(--dark); color: #fff; padding-top: 65px; padding-bottom: 66px; }
.contact h2 { font-size: clamp(33px, 4.1vw, 51px); line-height: 1.18; letter-spacing: -.03em; max-width: 820px; margin: 0 0 20px; }
.contact p { max-width: 740px; margin: 0 0 15px; }
.contact .section-label { color: var(--pink-light); margin-bottom: 18px; line-height: 1.6; }
.contact-email { margin-top: 24px; }
.contact-email p { margin: 0 0 15px; }
.contact a:not(.btn) { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 99px; font-size: 15px; font-weight: 750; line-height: 1.68; text-decoration: none; padding: 12px 22px; margin: 10px 0; transition: transform .2s ease, filter .2s ease; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.pink, .contact .btn { background: var(--pink-cta); color: #fff; }
.contact .btn { line-height: 1.6; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ---------- Text pages (privacy and new plain pages) ---------- */
.eb-prose { width: calc(100% - 40px); max-width: 830px; margin: 48px auto 72px; padding-bottom: 8px; }
.eb-prose > * { max-width: 100%; margin-left: 0; margin-right: 0; }
.eb-prose h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.14; margin: 0 0 28px; letter-spacing: -.03em; }
.eb-prose h2 { font-size: clamp(21px, 3vw, 27px); line-height: 1.25; margin: 30px 0 10px; }
.eb-prose p, .eb-prose li { font-size: 16px; line-height: 1.75; }
.eb-prose p { margin: 0 0 16px; }
.eb-prose .notice { background: #fff0f5; border-left: 4px solid var(--pink); padding: 16px; }

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; background: var(--footer); color: #fff; padding: 22px var(--gutter); }
.footer-inner { width: min(100%, var(--page)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--pink-light); }

/* ---------- Calm step-by-step reveal ----------
   Only active when JavaScript runs and the visitor allows motion (html.eb-anim).
   Text is never hidden without JavaScript; a timer shows everything after 2.5 s. */
.eb-anim:not(.eb-anim-done) .entry-content :is(.hero-content > *, .section-in:not(.product-layout) > :not(.service-grid), .service-grid > *, .product-layout > .wp-block-group:not(.product-art) > *, .product-layout > .product-art),
.eb-anim:not(.eb-anim-done) .entry-content.eb-prose > * {
	opacity: 0;
	transform: translateY(10px);
}
.eb-anim .entry-content .is-revealed {
	opacity: 1 !important;
	transform: none !important;
	transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--eb-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 930px) {
	.entry-content .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.entry-content .product-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Compact menu below 960px (all phones, tablets in portrait). */
@media (max-width: 959px) {
	.topbar { min-height: 76px; gap: 10px; padding: 8px 0; }
	.brand-logo-image { width: 116px; }
	.eb-controls { position: relative; gap: 8px; }
	.langs { gap: 4px; }
	.langs a { font-size: 11px; padding: 4px 8px; }
	.eb-menu-button {
		order: 3;
		display: none;
		align-items: center;
		gap: 8px;
		height: 40px;
		min-width: 44px;
		padding: 0 12px;
		border: 1px solid #e3e3e8;
		border-radius: 10px;
		background: #fff;
		color: var(--ink);
		font: 700 14px/1 Arial, Helvetica, sans-serif;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.eb-js .eb-menu-button { display: inline-flex; }
	.eb-menu-button:hover { border-color: var(--pink); }
	.eb-menu-icon { position: relative; width: 18px; height: 12px; display: inline-block; }
	.eb-menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
	.eb-menu-icon span:nth-child(1) { top: 0; }
	.eb-menu-icon span:nth-child(2) { top: 5px; }
	.eb-menu-icon span:nth-child(3) { top: 10px; }
	.eb-menu-button[aria-expanded="true"] .eb-menu-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
	.eb-menu-button[aria-expanded="true"] .eb-menu-icon span:nth-child(2) { opacity: 0; }
	.eb-menu-button[aria-expanded="true"] .eb-menu-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

	/* Compact panel directly under the group PAP · NL · EN · Menu, right-aligned with it. */
	.site-nav {
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		z-index: 120;
		min-width: 100%;
		width: max-content;
		max-width: calc(100vw - 24px);
		padding: 6px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 14px;
		box-shadow: 0 14px 34px rgba(21, 23, 29, .16);
	}
	.eb-js .site-nav { display: none; }
	.eb-js .site-nav.is-open { display: block; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
	.site-nav a:hover { background: #f6f6f8; }
	html body .site-header .site-nav a.eb-nav-link[aria-current="page"] { background: #fff0f6; text-decoration: none; box-shadow: inset 3px 0 0 var(--pink); }
	/* Without JavaScript the five links simply wrap under the header row. */
	html:not(.eb-js) .topbar { flex-wrap: wrap; }
	html:not(.eb-js) .eb-controls { flex-wrap: wrap; justify-content: flex-end; }
	html:not(.eb-js) .site-nav { position: static; order: 4; flex: 1 0 100%; width: auto; max-width: none; padding: 0; border: 0; box-shadow: none; background: none; }
	html:not(.eb-js) .site-nav ul { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 0 14px; }
	html:not(.eb-js) .site-nav a { min-height: 36px; font-size: 13px; padding: 4px 0; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .site-header { top: 0; }
	.topbar { min-height: 68px; }
	.entry-content .hero { padding-top: 34px; padding-bottom: 31px; }
	.brand-logo-image { width: 104px; }
	.hero h1 { font-size: clamp(45px, 11vw, 70px); line-height: 1.13; letter-spacing: -.053em; margin-bottom: 23px; }
	.hero h2 { font-size: clamp(21px, 5vw, 26px); line-height: 1.35; }
	.entry-content .section { padding-top: 41px; padding-bottom: 45px; }
	.section h2 { font-size: clamp(30px, 8vw, 40px); line-height: 1.23; }
	.entry-content .service-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.entry-content .product-art { max-width: 360px; }
	.entry-content .contact { padding-top: 48px; padding-bottom: 50px; }
	.contact h2 { font-size: 33px; }
	.eb-kind-about .entry-content .values { padding-top: 26px; }
}
@media (max-width: 540px) {
	.hero-detail p { font-size: 15px; }
	.section .body-copy { font-size: 16px; }
	.eb-prose { width: calc(100% - 32px); margin: 28px auto 52px; }
}
@media (max-width: 380px) {
	.topbar { width: calc(100% - 24px); gap: 8px; }
	.brand-logo-image { width: 92px; }
	.langs a { padding: 4px 6px; }
	.eb-menu-button { padding: 0 10px; }
	.eb-menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

