/*
Theme Name: WorkingGreen
Description: Lichtgewicht thema voor WorkingGreen B.V. (uitzendbureau, Abbenes). NL + PL via Polylang.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: workinggreen
*/

:root {
	--wg-green-900: #0f3b24;
	--wg-green-800: #14532d;
	--wg-green-700: #166534;
	--wg-green-600: #15803d;
	--wg-green-500: #22a34a;
	--wg-green-100: #dcfce7;
	--wg-green-50: #f0fdf4;
	--wg-tulip: #e8573a;
	--wg-tulip-dark: #c2410c;
	--wg-sun: #f5b72e;
	--wg-cream: #faf8f2;
	--wg-ink: #17231c;
	--wg-muted: #56655c;
	--wg-line: #e3e8e2;
	--wg-white: #ffffff;
	--wg-radius: 18px;
	--wg-radius-sm: 10px;
	--wg-shadow: 0 1px 2px rgba(15, 59, 36, .06), 0 8px 24px rgba(15, 59, 36, .08);
	--wg-max: 1160px;
	--wg-text: 720px;
	--wg-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--wg-display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--wg-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--wg-ink);
	background: var(--wg-cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--wg-green-700); text-underline-offset: 3px; }
a:hover { color: var(--wg-green-900); }
h1, h2, h3, h4 { font-family: var(--wg-display); line-height: 1.2; color: var(--wg-green-900); letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; clip: auto; width: auto; height: auto; padding: 10px 16px; background: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--wg-sun); outline-offset: 2px; }

.wg-wrap { max-width: var(--wg-max); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.wg-btn, .wg-form button[type=submit] {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	background: var(--wg-tulip); color: #fff; box-shadow: 0 6px 18px rgba(232, 87, 58, .28);
}
.wg-btn:hover, .wg-form button[type=submit]:hover { background: var(--wg-tulip-dark); color: #fff; transform: translateY(-1px); }
.wg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.wg-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.wg-btn--green { background: var(--wg-green-700); box-shadow: 0 6px 18px rgba(22, 101, 52, .25); }
.wg-btn--green:hover { background: var(--wg-green-900); }
.wg-btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.wg-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 242, .92); backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--wg-line);
}
.wg-header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.wg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wg-green-900); }
.wg-logo svg { width: 38px; height: 38px; flex: none; }
.wg-logo__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.wg-logo__name span { color: var(--wg-green-500); }
.wg-logo__tag { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wg-muted); margin-top: 4px; }
.wg-nav { margin-left: auto; }
.wg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.wg-nav li { position: relative; }
.wg-nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--wg-ink); font-weight: 600; font-size: .95rem; }
.wg-nav a:hover, .wg-nav .current-menu-item > a { background: var(--wg-green-50); color: var(--wg-green-800); }
.wg-nav .lang-item { display: none; }
.wg-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--wg-line); border-radius: 14px; box-shadow: var(--wg-shadow); padding: 8px; flex-direction: column; align-items: stretch; }
.wg-nav li:hover > .sub-menu, .wg-nav li:focus-within > .sub-menu { display: flex; }
.wg-header__actions { display: flex; align-items: center; gap: 12px; }
.wg-lang { display: inline-flex; border: 1px solid var(--wg-line); border-radius: 999px; overflow: hidden; background: #fff; }
.wg-lang a { padding: 6px 11px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--wg-muted); }
.wg-lang a.is-current { background: var(--wg-green-800); color: #fff; }
.wg-header .wg-btn { padding: .65em 1.15em; font-size: .92rem; }
.wg-menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--wg-line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.wg-menu-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- hero ---------- */
.wg-hero { position: relative; overflow: hidden; background: var(--wg-green-900); color: #fff; }
.wg-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.wg-hero__art svg { width: 100%; height: 100%; display: block; }
.wg-hero__inner { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(190px, 22vw, 280px); max-width: 680px; }
.wg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,59,36,.85) 0%, rgba(15,59,36,.35) 55%, rgba(15,59,36,0) 80%); pointer-events: none; }
.wg-hero .wg-wrap { position: relative; z-index: 1; }
.wg-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wg-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wg-sun); }
.wg-hero h1 { color: #fff; margin: 22px 0 18px; }
.wg-hero h1 span { color: #86efac; }
.wg-hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 30px; }
.wg-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* windmill */
.wg-blades { transform-box: view-box; transform-origin: 0 0; animation: wg-spin 40s linear infinite; }
@keyframes wg-spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.wg-section { padding: clamp(64px, 9vw, 110px) 0; }
.wg-section--white { background: #fff; }
.wg-section--tint { background: var(--wg-green-50); }
.wg-kicker { display: block; color: var(--wg-tulip); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.wg-section__head { max-width: 680px; margin-bottom: 44px; }

.wg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: -110px; position: relative; z-index: 2; }
.wg-card {
	display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--wg-radius);
	background: #fff; box-shadow: var(--wg-shadow); text-decoration: none; color: var(--wg-ink);
	border: 1px solid var(--wg-line); transition: transform .18s ease, box-shadow .18s ease;
}
.wg-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,59,36,.06), 0 18px 40px rgba(15,59,36,.14); color: var(--wg-ink); }
.wg-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wg-green-100); color: var(--wg-green-700); }
.wg-card__icon svg { width: 26px; height: 26px; }
.wg-card h3 { margin: 6px 0 0; }
.wg-card p { margin: 0; color: var(--wg-muted); font-size: .97rem; }
.wg-card__more svg, .wg-cta__row svg + span svg { width: 1em; height: 1em; }
.wg-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--wg-green-700); display: inline-flex; align-items: center; gap: 6px; }

.wg-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.wg-split__media { position: relative; }
.wg-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--wg-shadow); display: block; }
.wg-split__badge { position: absolute; left: -18px; bottom: -18px; background: var(--wg-sun); color: var(--wg-green-900); font-weight: 800; padding: 14px 18px; border-radius: 16px; box-shadow: var(--wg-shadow); font-size: .95rem; }
.wg-prose { font-size: 1.06rem; }
.wg-prose > *:last-child { margin-bottom: 0; }

.wg-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wg-pillar { background: #fff; border-radius: var(--wg-radius); padding: 32px; border: 1px solid var(--wg-line); position: relative; overflow: hidden; }
.wg-pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--wg-green-500), var(--wg-sun)); }
.wg-pillar__num { font-size: .8rem; font-weight: 800; color: var(--wg-tulip); letter-spacing: .14em; }
.wg-pillar h3 { margin-top: 8px; }
.wg-pillar p { color: var(--wg-muted); font-size: .98rem; }

.wg-cta { background: var(--wg-green-800); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.wg-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,46,.35), transparent 70%); }
.wg-cta h2 { color: #fff; }
.wg-cta p { color: rgba(255,255,255,.85); }
.wg-cta__contact { position: relative; z-index: 1; display: grid; gap: 12px; }
.wg-cta__row { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 14px 16px; border-radius: 14px; color: #fff; text-decoration: none; }
.wg-cta__row svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #86efac; }
a.wg-cta__row:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- page ---------- */
.wg-pagehead { background: var(--wg-green-900); color: #fff; position: relative; overflow: hidden; }
.wg-pagehead__art { position: absolute; inset: 0; opacity: .9; }
.wg-pagehead__art svg { width: 100%; height: 100%; display: block; }
.wg-pagehead .wg-wrap { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.wg-pagehead h1 { color: #fff; margin: 0; text-transform: none; }
.wg-crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.wg-crumbs a { color: rgba(255,255,255,.85); }
.wg-page { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.wg-content { max-width: var(--wg-text); margin: 0 auto; background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--wg-line); box-shadow: var(--wg-shadow); }
.wg-content--wide { max-width: 940px; }
.wg-content h2 { margin-top: 1.4em; }
.wg-content h3 { margin-top: 1.3em; }
.wg-content > *:first-child { margin-top: 0; }
.wg-content ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.wg-content ul li { position: relative; padding-left: 32px; margin-bottom: .55em; }
.wg-content ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--wg-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.wg-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1em 0 1.6em; border: 1px solid var(--wg-line); border-radius: 14px; overflow: hidden; font-size: .97rem; }
.wg-content th { background: var(--wg-green-800); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; }
.wg-content td { padding: 11px 16px; border-top: 1px solid var(--wg-line); }
.wg-content tr:nth-child(even) td { background: var(--wg-green-50); }
.wg-content .wg-btn { margin: .4em 0 1.2em; }

.wg-note { display: flex; gap: 12px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; padding: 14px 18px; border-radius: 14px; font-weight: 600; margin: 0 0 1.4em; }
.wg-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.wg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 1.6em; }
.wg-fact { display: flex; gap: 12px; align-items: center; background: var(--wg-green-50); border: 1px solid var(--wg-green-100); padding: 14px 16px; border-radius: 14px; font-weight: 700; color: var(--wg-green-900); }
.wg-fact svg { width: 30px; height: 30px; flex: none; color: var(--wg-green-600); }

.wg-jobs { display: grid; gap: 16px; }
.wg-job { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid var(--wg-line); border-radius: 18px; text-decoration: none; color: var(--wg-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wg-job:hover { border-color: var(--wg-green-500); box-shadow: var(--wg-shadow); transform: translateY(-2px); color: var(--wg-ink); }
.wg-job__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--wg-green-100); color: var(--wg-green-700); display: grid; place-items: center; }
.wg-job__icon svg { width: 28px; height: 28px; }
.wg-job h2 { font-size: 1.2rem; margin: 0 0 4px; }
.wg-job p { margin: 0; color: var(--wg-muted); font-size: .96rem; white-space: pre-line; }
.wg-job__go { color: var(--wg-green-700); font-weight: 700; white-space: nowrap; }

.wg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.wg-contact__card { background: var(--wg-green-50); border: 1px solid var(--wg-green-100); border-radius: 18px; padding: 26px; }
.wg-contact__card h3 { margin-top: 0; }
.wg-contact address { font-style: normal; margin-bottom: 1em; }

/* ---------- form ---------- */
.wg-form { display: grid; gap: 18px; }
.wg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wg-form label, .wg-form legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--wg-green-900); }
.wg-form .req { color: var(--wg-tulip); }
.wg-form input[type=text], .wg-form input[type=email], .wg-form input[type=tel], .wg-form input[type=date], .wg-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfd8d1; border-radius: 12px; background: #fff; color: var(--wg-ink); transition: border-color .15s, box-shadow .15s;
}
.wg-form textarea { min-height: 110px; resize: vertical; }
.wg-form input:focus, .wg-form textarea:focus { outline: none; border-color: var(--wg-green-500); box-shadow: 0 0 0 4px rgba(34,163,74,.15); }
.wg-form fieldset { border: 0; padding: 0; margin: 0; }
.wg-days { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-days label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; padding: 8px 12px; border: 1.5px solid #cfd8d1; border-radius: 999px; cursor: pointer; background: #fff; }
.wg-days input { accent-color: var(--wg-green-600); }
.wg-days label:has(input:checked) { border-color: var(--wg-green-600); background: var(--wg-green-50); }
.wg-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.wg-consent input { margin-top: 5px; accent-color: var(--wg-green-600); }
.wg-hp { position: absolute !important; left: -9999px !important; }
.wg-alert { padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.wg-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.wg-alert--ok { background: var(--wg-green-50); border: 1px solid var(--wg-green-100); color: var(--wg-green-900); }

/* ---------- footer ---------- */
.wg-footer { background: var(--wg-green-900); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: .95rem; }
.wg-footer a { color: #fff; text-decoration: none; }
.wg-footer a:hover { text-decoration: underline; }
.wg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.wg-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.wg-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wg-footer .wg-logo { color: #fff; margin-bottom: 14px; }
.wg-footer .wg-logo__tag { color: rgba(255,255,255,.6); }
.wg-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.wg-cards, .wg-pillars { grid-template-columns: 1fr; }
	.wg-cards { margin-top: -90px; }
	.wg-split, .wg-cta, .wg-contact, .wg-footer__grid { grid-template-columns: 1fr; }
	.wg-split__badge { left: 12px; }
	.wg-menu-toggle { display: block; }
	.wg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wg-cream); border-bottom: 1px solid var(--wg-line); padding: 12px 24px 20px; margin: 0; }
	.wg-nav.is-open { display: block; }
	.wg-nav ul { flex-direction: column; align-items: stretch; }
	.wg-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; min-width: 0; }
	.wg-header__actions .wg-btn { display: none; }
	.wg-header__inner { gap: 12px; }
	.wg-header__actions { order: 2; margin-left: auto; }
	.wg-menu-toggle { order: 3; margin-left: 0; }
	.wg-header .wg-logo { min-width: 0; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wg-form__row { grid-template-columns: 1fr; }
	.wg-job { grid-template-columns: 1fr; }
	.wg-job__icon { display: none; }
	.wg-logo__tag { display: none; }
	.wg-logo__name { font-size: 1.08rem; }
	.wg-logo svg { width: 32px; height: 32px; }
	.wg-lang a { padding: 5px 8px; font-size: .72rem; }
	.wg-job__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .wg-blades { animation: none; } }
