/*
Theme Name: KLJ Lier-Noord
Text Domain: klj-lier-noord
Description: Speels, modern rood-wit thema voor KLJ Lier-Noord
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--klj-red: #D01C24;
	--klj-red-dark: #A8141B;
	--klj-ink: #2B1114;
	--klj-cream: #FFF6F0;
	--klj-pink: #FFE3DF;
	--klj-sun: #FFD23F;
	--klj-grass: #5FA33A;
	--klj-font-head: 'Fredoka', system-ui, sans-serif;
	--klj-font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.klj {
	margin: 0;
	background: var(--klj-cream);
	color: var(--klj-ink);
	font-family: var(--klj-font-body);
	font-size: 17px;
	line-height: 1.65;
}
.klj img { max-width: 100%; height: auto; }
.klj a { color: var(--klj-red-dark); font-weight: 700; }
.klj a:hover { color: var(--klj-ink); }
.klj h1, .klj h2, .klj h3, .klj h4 { font-family: var(--klj-font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
.klj-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klj-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.klj-skip:focus { left: 8px; }
.klj-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.klj-ill { display: block; height: auto; }

/* ---------- Header ---------- */
.klj-header { background: #fff; border-bottom: 4px solid var(--klj-red); position: relative; z-index: 20; }
.klj-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.klj-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--klj-ink) !important; }
.klj-brand__logo { width: 56px; height: 56px; object-fit: contain; transform: rotate(-6deg); transition: transform .3s; }
.klj-brand:hover .klj-brand__logo { transform: rotate(6deg) scale(1.06); }
.klj-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.klj-brand__name { font-family: var(--klj-font-head); font-weight: 700; font-size: 24px; }
.klj-brand__tag { font-size: 13px; font-weight: 700; color: var(--klj-red-dark); }

.klj-menu, .klj-menu ul { list-style: none; margin: 0; padding: 0; }
.klj-menu { display: flex; flex-wrap: wrap; gap: 2px; }
.klj-menu li { position: relative; }
.klj-menu a { display: block; text-decoration: none; color: var(--klj-ink) !important; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.klj-menu a:hover, .klj-menu .current-menu-item > a, .klj-menu .current-menu-ancestor > a { background: var(--klj-pink); color: var(--klj-red-dark) !important; }
.klj-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 3px solid var(--klj-ink); border-radius: 18px; padding: 8px; box-shadow: 4px 4px 0 var(--klj-ink); z-index: 30; }
.klj-menu li:hover > .sub-menu, .klj-menu li:focus-within > .sub-menu { display: block; }
.klj-burger { display: none; background: var(--klj-red); border: 3px solid var(--klj-ink); border-radius: 14px; width: 48px; height: 48px; cursor: pointer; padding: 0; position: relative; box-shadow: 3px 3px 0 var(--klj-ink); }
.klj-burger__bars, .klj-burger__bars::before, .klj-burger__bars::after { content: ''; position: absolute; left: 11px; width: 20px; height: 3px; background: #fff; border-radius: 2px; }
.klj-burger__bars { top: 19px; }
.klj-burger__bars::before { left: 0; top: -7px; }
.klj-burger__bars::after { left: 0; top: 7px; }

@media (max-width: 960px) {
	.klj-burger { display: block; }
	.klj-header__inner { flex-wrap: wrap; }
	.klj-nav { display: none; width: 100%; }
	.klj-nav.is-open { display: block; }
	.klj-menu { flex-direction: column; padding: 8px 0 12px; }
	.klj-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
}

/* ---------- Knoppen ---------- */
.klj-btn, .klj .klj-btn { display: inline-block; text-decoration: none; font-family: var(--klj-font-head); font-weight: 600; font-size: 18px; padding: 12px 26px; border-radius: 999px; border: 3px solid var(--klj-ink); box-shadow: 4px 4px 0 var(--klj-ink); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.klj-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--klj-ink); }
.klj .klj-btn--white { background: #fff; color: var(--klj-ink); }
.klj .klj-btn--sun { background: var(--klj-sun); color: var(--klj-ink); }
.klj .klj-btn--red { background: var(--klj-red); color: #fff; }

/* ---------- Hero ---------- */
.klj-hero { background: var(--klj-red); color: #fff; position: relative; overflow: hidden;
	background-image: radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.5px); background-size: 26px 26px; }
.klj-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 150px; }
.klj-hero__copy { flex: 1 1 440px; min-width: 0; }
.klj-hero__badge { display: inline-block; background: var(--klj-sun); color: var(--klj-ink); font-weight: 800; padding: 6px 16px; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 20px; }
.klj .klj-hero h1 { font-size: clamp(44px, 7vw, 78px); font-weight: 700; margin-bottom: 18px; color: #fff; }
.klj-hero__lead { font-size: 21px; max-width: 560px; margin: 0 0 28px; }
.klj-hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.klj-hero__art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.klj-polaroid { position: relative; background: #fff; padding: 14px 14px 52px; border: 4px solid var(--klj-ink); border-radius: 8px; transform: rotate(3deg); box-shadow: 8px 8px 0 var(--klj-ink); max-width: 380px; width: 100%; }
.klj-polaroid img { display: block; width: 100%; border: 3px solid var(--klj-ink); }
.klj-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--klj-font-head); font-weight: 600; color: var(--klj-ink); font-size: 20px; }
.klj-sticker { position: absolute; top: -26px; right: -22px; width: 110px; height: 110px; border-radius: 50%; background: var(--klj-sun); color: var(--klj-ink); border: 4px solid var(--klj-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(12deg); font-family: var(--klj-font-head); line-height: 1; }
.klj-sticker strong { font-size: 34px; font-weight: 700; }
.klj-sticker span { font-size: 16px; font-weight: 600; }
.klj-hero__sun { position: absolute; right: 4%; top: 18px; width: 90px; opacity: .95; animation: klj-spin 40s linear infinite; }
.klj-hero__field { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; pointer-events: none; }
.klj-hero__field .klj-grass { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; display: block; z-index: 2; }
.klj-hero__field .klj-ill { position: absolute; z-index: 3; }
.klj-hero__barn { bottom: 14px; right: 3%; width: 170px; }
.klj-hero__hay { bottom: 12px; right: 21%; width: 120px; }
.klj-hero__farmer { bottom: 12px; left: 3%; width: 84px; }
.klj-hero__field .klj-hero__tractor { bottom: 30px; width: 190px; z-index: 1; animation: klj-drive 28s linear infinite; }
.klj-hero__cow { bottom: 12px; right: 34%; width: 130px; }
@keyframes klj-drive { from { left: -220px; } to { left: 100%; } }
@keyframes klj-spin { to { transform: rotate(360deg); } }
.klj-wave { transform-box: fill-box; transform-origin: 85% 90%; animation: klj-wave .9s ease-in-out infinite alternate; }
@keyframes klj-wave { from { transform: rotate(-14deg); } to { transform: rotate(20deg); } }
.klj-chew { transform-box: fill-box; transform-origin: 50% 0; animation: klj-chew .45s ease-in-out infinite alternate; }
@keyframes klj-chew { from { transform: translate(-2px, 0); } to { transform: translate(2px, 3px); } }
@media (prefers-reduced-motion: reduce) {
	.klj-hero__field .klj-hero__tractor { animation: none; left: 8%; }
	.klj-hero__sun, .klj-wave, .klj-chew { animation: none; }
}
@media (max-width: 900px) { .klj-hero__cow, .klj-hero__hay { display: none; } }
@media (max-width: 700px) { .klj-hero__barn { width: 120px; } .klj-hero__farmer { width: 64px; } }
.klj-hero__inner { padding-bottom: 190px; }

/* ---------- Secties ---------- */
.klj-section { padding: 72px 0; }
.klj-section--pink { background: var(--klj-pink); }
.klj-section--red { background: var(--klj-red); color: #fff; }
.klj .klj-title { font-size: clamp(32px, 5vw, 46px); color: var(--klj-red-dark); }
.klj .klj-section--red .klj-title { color: #fff; }
.klj-lead { font-size: 19px; max-width: 760px; }

.klj-card { background: #fff; border: 4px solid var(--klj-ink); border-radius: 28px; padding: 28px 32px; box-shadow: 8px 8px 0 var(--klj-red); }
.klj-card--sun { background: var(--klj-sun); box-shadow: 6px 6px 0 var(--klj-ink); }
.klj-card--red { background: var(--klj-red); color: #fff; box-shadow: 6px 6px 0 var(--klj-ink); }
.klj-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 32px; }
.klj-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--klj-ink) !important; background: #fff; border: 4px solid var(--klj-ink); border-radius: 28px; padding: 24px; box-shadow: 6px 6px 0 var(--klj-ink); transition: transform .15s, box-shadow .15s; }
.klj-tile:hover { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 3px 3px 0 var(--klj-ink); }
.klj-tile h3 { color: var(--klj-red-dark); font-size: 28px; margin: 0; }
.klj-tile p { margin: 0; font-weight: 600; }
.klj-tile .klj-ill { height: 74px; width: auto; align-self: flex-start; }
.klj-tile:nth-child(2n) { transform: rotate(1deg); }
.klj-tile:nth-child(2n+1) { transform: rotate(-1deg); }

/* ---------- Leiding ---------- */
.klj-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin-top: 36px; }
.klj-member { background: #fff; border: 3px solid var(--klj-ink); border-radius: 10px; padding: 10px 10px 14px; text-align: center; box-shadow: 5px 5px 0 var(--klj-ink); transition: transform .2s; }
.klj-member:nth-child(3n+1) { transform: rotate(-2deg); }
.klj-member:nth-child(3n+2) { transform: rotate(1.5deg); }
.klj-member:nth-child(3n) { transform: rotate(-1deg); }
.klj-member:hover { transform: rotate(0) scale(1.04); }
.klj-member img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--klj-ink); border-radius: 4px; }
.klj-member h3 { margin: 12px 0 0; font-size: 20px; }

/* ---------- Lidgeld ---------- */
.klj-prices { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; align-items: stretch; }
.klj-prices > * { flex: 1 1 260px; min-width: 0; }
.klj-price { font-family: var(--klj-font-head); font-size: 68px; font-weight: 700; line-height: 1.05; }

/* ---------- Boerderij-strook ---------- */
.klj-farm { position: relative; height: 150px; background: var(--klj-cream); overflow: hidden; }
.klj-farm .klj-grass { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; }
.klj-farm .klj-ill { position: absolute; bottom: 10px; }
.klj-farm .a { left: 6%; width: 150px; }
.klj-farm .b { left: 30%; width: 80px; }
.klj-farm .c { left: 50%; width: 36px; }
.klj-farm .d { left: 60%; width: 170px; }
.klj-farm .e { left: 82%; width: 36px; }
@media (max-width: 700px) { .klj-farm .d, .klj-farm .e { display: none; } }

/* ---------- Pagina's ---------- */
.klj-pagehead { background: var(--klj-red); color: #fff; position: relative; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.5px); background-size: 26px 26px; }
.klj-pagehead__inner { padding-top: 48px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.klj .klj-pagehead h1 { color: #fff; font-size: clamp(36px, 6vw, 60px); margin: 0; }
.klj-pagehead .klj-ill { width: 130px; flex: 0 0 auto; transform: rotate(4deg); }
.klj-pagehead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; background: var(--klj-cream); border-radius: 24px 24px 0 0; }
.klj-pagebody { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; }
.klj-pagebody > .klj-card { box-shadow: 8px 8px 0 var(--klj-sun); }
@media (max-width: 700px) { .klj-pagehead .klj-ill { display: none; } }

/* Inhoud uit de WordPress-editor */
.klj-content > *:first-child { margin-top: 0; }
.klj-content > *:last-child { margin-bottom: 0; }
.klj-content h2, .klj-content h3, .klj-content h4 { color: var(--klj-red-dark); margin-top: 1.4em; }
.klj-content ul, .klj-content ol { padding-left: 1.4em; list-style: revert; margin: 0 0 1em; }
.klj-content p { margin: 0 0 1em; }
.klj-content figure { margin: 1.2em 0; }
.klj-content img { border: 3px solid var(--klj-ink); border-radius: 14px; }
.klj-content table { border-collapse: collapse; width: 100%; }
.klj-content td, .klj-content th { border: 2px solid var(--klj-ink); padding: 8px 12px; }
.klj-content blockquote { margin: 1em 0; padding: 12px 18px; background: var(--klj-pink); border-radius: 16px; border: 0; }
.klj-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.klj-content .wp-block-column { flex: 1 1 240px; min-width: 0; }
.klj-content iframe, .klj-content video { max-width: 100%; border-radius: 16px; }

/* Beveiligde pagina's (zoals Foto's): wachtwoordformulier */
.post-password-form { background: var(--klj-pink); border: 4px solid var(--klj-ink); border-radius: 24px; padding: 28px 32px; text-align: center; }
.post-password-form p { margin: 0 0 14px; }
.post-password-form label { display: block; font-weight: 800; }
.post-password-form input[type="password"] { font: inherit; padding: 12px 16px; border: 3px solid var(--klj-ink); border-radius: 999px; min-width: 240px; max-width: 100%; background: #fff; }
.post-password-form input[type="submit"] { font-family: var(--klj-font-head); font-weight: 600; font-size: 18px; padding: 12px 28px; border-radius: 999px; border: 3px solid var(--klj-ink); background: var(--klj-red); color: #fff; box-shadow: 4px 4px 0 var(--klj-ink); cursor: pointer; }
.klj-lock { display: flex; justify-content: center; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.klj-footer { margin-top: 0; }
.klj-footer__grass { height: 40px; background: var(--klj-cream); line-height: 0; }
.klj-footer__grass .klj-grass { width: 100%; height: 40px; display: block; }
.klj-footer__body { background: var(--klj-ink); color: #fff; padding: 56px 0 24px; }
.klj-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.klj .klj-footer__title { color: var(--klj-sun); font-size: 26px; }
.klj-footer a { color: #fff !important; }
.klj-footer p { margin: 0; }
.klj-footer__copy { text-align: center; margin-top: 36px !important; font-size: 14px; opacity: .8; }

/* Standaard WordPress-uitlijning */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.klj .wp-caption-text, .klj figcaption { font-size: 14px; text-align: center; }

/* ---------- Overzicht: kopjes, agenda, hek ---------- */
.klj-kicker { display: inline-block; background: var(--klj-sun); color: var(--klj-ink); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--klj-ink); transform: rotate(-2deg); margin-bottom: 14px; }
.klj-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.klj-head .klj-ill { width: 90px; flex: 0 0 auto; }
.klj-head--red .klj-kicker { background: #fff; }

.klj-agenda { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.klj-agenda li { margin: 0; }
.klj-agenda a { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--klj-ink) !important; background: #fff; border: 4px solid var(--klj-ink); border-radius: 24px; padding: 16px 22px; box-shadow: 5px 5px 0 var(--klj-ink); transition: transform .12s, box-shadow .12s; }
.klj-agenda a:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--klj-ink); }
.klj-date { flex: 0 0 96px; height: 96px; border-radius: 50%; background: var(--klj-red); color: #fff; border: 4px solid var(--klj-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--klj-font-head); line-height: 1; }
.klj-date strong { font-size: 32px; font-weight: 700; }
.klj-date span { font-size: 13px; font-weight: 600; margin-top: 4px; padding: 0 6px; }
.klj-agenda__txt { min-width: 0; }
.klj-agenda__txt h3 { margin: 0 0 2px; font-size: 24px; color: var(--klj-red-dark); }
.klj-agenda__txt p { margin: 0; }
.klj-agenda__go { margin-left: auto; font-family: var(--klj-font-head); font-weight: 600; color: var(--klj-red-dark); white-space: nowrap; }
@media (max-width: 640px) { .klj-agenda a { flex-wrap: wrap; } .klj-agenda__go { margin-left: 118px; } }

.klj-fence { height: 44px; background-repeat: repeat-x; background-position: bottom;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='44'%3E%3Cg fill='%23fff' stroke='%232B1114' stroke-width='3'%3E%3Crect x='-5' y='20' width='150' height='8'/%3E%3Crect x='64' y='6' width='12' height='38' rx='3'/%3E%3C/g%3E%3C/svg%3E"); }
.klj-divider { position: relative; background: var(--klj-cream); padding-top: 24px; overflow: hidden; }
.klj-divider .klj-ill { position: absolute; bottom: 14px; z-index: 1; }
.klj-divider .klj-fence { position: relative; z-index: 0; }
.klj-divider { padding-top: 90px; }
.klj-divider .d2 { left: 8%; width: 130px; }
.klj-divider .d3 { left: 46%; width: 120px; }
.klj-divider .d4 { right: 8%; width: 90px; }
@media (max-width: 700px) { .klj-divider .d3 { display: none; } }

/* Nieuws op de voorpagina: dubbele inbedkaartjes weg, video netjes */
.klj-news .wp-embedded-content, .klj-news p:has(> .wp-embedded-content) { display: none; }
.klj-news .wp-video { width: 100% !important; max-width: 680px; margin: 0 0 1.4em; }
.klj-news .wp-video video { width: 100% !important; height: auto !important; border: 4px solid var(--klj-ink); border-radius: 20px; }
.klj-news .mejs-container { width: 100% !important; }
.klj-letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.klj-letters a { display: block; }
.klj-letters img { display: block; width: 100%; border: 4px solid var(--klj-ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--klj-red); transition: transform .15s; }
.klj-letters a:nth-child(odd) img { transform: rotate(-1deg); }
.klj-letters a:nth-child(even) img { transform: rotate(1deg); }
.klj-letters a:hover img { transform: rotate(0) scale(1.02); }
.klj-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
