/*
Theme Name: Jouw Mediapartner
Theme URI: https://www.jouwmediapartner.nl/
Author: Lef Creative
Author URI: https://lefcreative.nl/
Description: Child theme van leflite voor Jouw Mediapartner.
Version: 1.0.0
Template: leflite
Text Domain: jouwmediapartner

Rules (design-to-leflite):
- General rules only (tokens, elements, components). Never per page or per section.
- Prefer custom-leftheme.json tokens over CSS; prefer theme options over both.
- One block per selector. Prefix overrides with `body ` (theme component CSS loads lazily, after this file).
- Order: fonts -> tokens -> basis -> layout -> header -> buttons -> media sections -> components -> footer -> mobile.

Design classes (set via "Extra CSS-klasse(n)" in the editor):
  section: edge-slant-bottom (+ edge-stripe), edge-curve-bottom, edge-slant-top, has-signal, section-tight, section-snug
  image-block: shape-arch, shape-signal, shape-inset, shape-tilt
  buttons: is-link (text link with arrow)
  card-default: card-photo
*/

/* FONTS (self-hosted, AVG) -------------------------------------------------- */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/outfit-variable.woff2) format("woff2");
}

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/dm-sans-variable.woff2) format("woff2");
}

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/dm-sans-italic-variable.woff2) format("woff2");
}


/* TOKENS ------------------------------------------------------------------- */
:root {
	--ink-soft: #4a5966;            /* body text on light backgrounds */
	--on-dark-soft: rgba(255, 255, 255, 0.72);
	--heading-accent-light: var(--tertiary);
	--heading-accent-dark: rgba(255, 255, 255, 0.5);
	--slant: 88px;                  /* height of the diagonal section edges */
	--shape-big-radius: 160px;      /* the one "big corner" of shape-signal */
	--float-gap: 18px;              /* space above the floating menu bar */
	--stripe: 12px;                 /* thickness of the red edge-stripe */
}

/* Text colours per background. Every .bg-* element (section, card col, card) sets its own, so a white card
   inside a dark section (or a dark card inside a white one) is always readable. Rules below only use these. */
:root,
.bg-white,
.bg-gray,
.bg-darkgray,
.bg-yellow {
	--jmp-text: var(--ink-soft);
	--jmp-heading: var(--black);
	--jmp-accent: var(--heading-accent-light);
	--jmp-icon: var(--secondary);
	--jmp-tile: var(--white);
	--jmp-line: var(--card-border-color);
	--jmp-check: var(--secondary);
	--jmp-raised: var(--white);
}

.bg-white {
	--jmp-tile: var(--gray);
	--jmp-raised: var(--gray);
}

.bg-primary,
.bg-quaternary,
.bg-black,
.bg-secondary {
	--jmp-text: var(--on-dark-soft);
	--jmp-heading: var(--white);
	--jmp-accent: var(--heading-accent-dark);
	--jmp-icon: var(--white);
	--jmp-tile: rgba(255, 255, 255, 0.1);
	--jmp-line: rgba(255, 255, 255, 0.16);
	--jmp-check: var(--secondary);
	--jmp-raised: rgba(255, 255, 255, 0.06);
}

.bg-secondary {
	--jmp-check: var(--white);
	--jmp-text: rgba(255, 255, 255, 0.86);
	--jmp-accent: rgba(255, 255, 255, 0.7);
	--jmp-tile: rgba(255, 255, 255, 0.16);
}

/* BASIS -------------------------------------------------------------------- */
/* leflite sets overflow-x: hidden on html AND body: position sticky then never sticks. clip fixes it. */
html,
body {
	overflow-x: clip;
}

body {
	font-family: var(--body-font);
	color: var(--white-content);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
	letter-spacing: -0.025em;
	text-wrap: balance;
}

h1 {
	letter-spacing: -0.035em;
}

/* Two-tone headings: second part in <strong> (WYSIWYG bold) = muted colour, same family and weight. */
h1 strong,
h2 strong,
h3 strong {
	display: inline-block;
	font-weight: inherit;
	color: var(--jmp-accent);
}

/* h6 = small label (footer widget titles). No eyebrows/kickers above headings in this design. */
h6 {
	margin-bottom: 18px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.content-wrapper p {
	color: var(--jmp-text);
	max-width: 62ch;
}

.content-wrapper p[style*="center"] {
	margin-inline: auto;
}

.content-wrapper p + h2,
.content-wrapper p + h3 {
	margin-top: 1.2em;
}

.content-wrapper p.lead,
.content-wrapper h2 + p {
	font-size: 18px;
}

#main a:not(.btn):not(.button) {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* LAYOUT ------------------------------------------------------------------- */
/* Same-colour neighbours: collapse the double padding. */
section.bg-white + section.bg-white,
section.bg-gray + section.bg-gray,
section.bg-primary + section.bg-primary {
	padding-top: 0;
}

/* Tighter variant for short bands (logo strip, sub-intro). */
section.lef-section.section-tight {
	padding-top: calc(var(--section-padding) * 0.5);
	padding-bottom: calc(var(--section-padding) * 0.5);
}

/* Snug: less padding for a compact hero. Redefines the padding token for this section, so the edges
   and the theme's half-background mobile margins follow. */
section.lef-section.section-snug {
	--section-padding: 64px;
	padding-top: var(--section-padding);
	padding-bottom: var(--section-padding);
}

section.lef-section.section-snug.transparent-top-section-padding {
	padding-top: calc(var(--fake-menu-height) + var(--section-padding));
}

/* Diagonal edges (Fortuna reference). The next/previous section slides under the slant. */
section.lef-section.edge-slant-bottom {
	z-index: 1;                     /* above the next section, which slides up under the cut */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
	padding-bottom: calc(var(--section-padding) + var(--slant));
}

section.lef-section.edge-slant-top {
	clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
	margin-top: calc(var(--slant) * -1);
	padding-top: calc(var(--section-padding) + var(--slant));
}

/* Both edges slanted: one polygon (two separate clip-paths would override each other). */
section.lef-section.edge-slant-top.edge-slant-bottom {
	clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}

/* Curved bottom edge: a wide ellipse, the sides are cut off by about the slant height. */
section.lef-section.edge-curve-bottom {
	z-index: 1;
	clip-path: ellipse(160% 100% at 50% 0);
	padding-bottom: calc(var(--section-padding) + var(--slant));
}

/* Red stripe running along a diagonal bottom edge (signal red from the logo). */
body section.lef-section.edge-slant-bottom.edge-stripe::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: calc(var(--slant) + var(--stripe));
	background: var(--secondary);
	clip-path: polygon(0 var(--slant), 100% 0, 100% var(--stripe), 0 100%);
	pointer-events: none;
}

section.lef-section.edge-slant-bottom + section.lef-section:not(.edge-slant-top),
section.lef-section.edge-curve-bottom + section.lef-section:not(.edge-slant-top) {
	margin-top: calc(var(--slant) * -1);
	padding-top: calc(var(--section-padding) + var(--slant));
}

/* Decorative signal arcs from the logo, in the top-right corner of a section. */
body section.lef-section.has-signal::before {
	content: "";
	position: absolute;
	top: 12%;
	right: -90px;
	width: 360px;
	height: 360px;
	background: url(images/signaal.svg) center / contain no-repeat;
	opacity: 0.14;
	pointer-events: none;
	z-index: 1;
}

/* Text column + stretched image column fill the same height. */
.row.align-stretch > .wp-block-custom-section-block-col > .image-outer,
.row.align-stretch > .wp-block-custom-section-block-col > .image-outer .image-holder {
	height: 100%;
}

.row.align-stretch > .wp-block-custom-section-block-col > .image-outer .image-holder img {
	height: 100%;
	object-fit: cover;
}

/* HEADER ------------------------------------------------------------------- */
/* Floating menu: the header itself stays transparent (theme option), the bar inside is a
   navy island (20px corners) with a gap to the top of the viewport, on top of the hero and while scrolling. */
body header.navigation {
	padding-top: var(--float-gap);
	transition: padding var(--general-transition);
}

body header.navigation.scrolled {
	padding-top: calc(var(--float-gap) * 0.6);
}

body header.navigation .navigation-inner-main {
	padding: 12px 12px 12px 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--general-border-radius);
	background-color: var(--quaternary);
	box-shadow: 0 18px 40px -16px rgba(5, 12, 20, 0.6);
}

body header.navigation .nav-holder-primary-1 {
	margin-left: 28px;
}

/* Menu items get a soft block on hover; the current item carries a red "on air" dot. */
body header.navigation .main-nav-menu > li:not(.menu-item-has-button) > a {
	position: relative;
	border-radius: var(--general-border-radius-small);
	color: rgba(255, 255, 255, 0.86);
	transition: var(--general-transition);
}

body header.navigation .main-nav-menu > li:not(.menu-item-has-button) > a:hover {
	background-color: var(--primary);
	color: var(--white);
}

body header.navigation .main-nav-menu > li.current-menu-item > a,
body header.navigation .main-nav-menu > li.current-menu-ancestor > a {
	background-color: var(--primary);
	color: var(--white);
}

body header.navigation .main-nav-menu > li.current-menu-item > a::before,
body header.navigation .main-nav-menu > li.current-menu-ancestor > a::before {
	content: "";
	position: absolute;
	top: 6px;
	right: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--secondary);
	box-shadow: 0 0 0 3px rgba(207, 53, 48, 0.25);
}

/* BUTTONS ------------------------------------------------------------------ */
.btn {
	letter-spacing: 0.005em;
}

.btn:active {
	transform: translateY(1px);
}

.btn .icon {
	font-size: 0.85em;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .icon-arrow-right {
	transform: translateX(3px);
}

/* btn-big has no rule in leflite: give it the big tokens. */
.btn.btn-big {
	padding: var(--btn-big-padding);
	font-size: var(--btn-big-font-size);
}

/* Outline = colour transparent. Navy text and border on light sections, white on dark ones. */
.btn.bg-transparent {
	color: var(--white-content);
	border-color: rgba(17, 33, 47, 0.25);
}

.btn.bg-transparent:hover {
	color: var(--white-content);
	background-color: rgba(17, 33, 47, 0.06);
	border-color: var(--white-content);
}

.bg-primary .btn.bg-transparent,
.bg-quaternary .btn.bg-transparent,
.bg-secondary .btn.bg-transparent {
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.4);
}

.bg-primary .btn.bg-transparent:hover,
.bg-quaternary .btn.bg-transparent:hover,
.bg-secondary .btn.bg-transparent:hover {
	color: var(--white);
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--white);
}

/* buttons block with extra class "is-link": text link with arrow, for cards and lists.
   The card-photo card's own button gets the same look (its holder can't carry a class). */
.buttons-holder.is-link .btn,
body .card.card-default.card-photo .buttons-holder .btn {
	padding: 4px 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--secondary);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.buttons-holder.is-link .btn:hover,
body .card.card-default.card-photo .buttons-holder .btn:hover {
	background: none;
	color: inherit;
}

.wp-block-custom-section-block-col > .buttons-holder:first-child {
	margin-top: 0;
}

/* MEDIA SECTIONS ----------------------------------------------------------- */
/* Shape system: no pills. Cards/images/menu bar 20px, buttons/menu items/icon tiles 10-14px, inputs 12px.
   Images can carry ONE expressive shape via an extra class on the image block: */

/* Arch: portrait with a full round top (hero portraits). */
.image-outer.shape-arch .image-holder {
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px var(--media-border-radius) var(--media-border-radius);
	overflow: hidden;
}

.image-outer.shape-arch .image-holder img {
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* Signal: one big rounded corner top-left, the rest 20px (Fortuna reference). */
.image-outer.shape-signal .image-holder img {
	border-radius: var(--shape-big-radius) var(--media-border-radius) var(--media-border-radius) var(--media-border-radius);
	aspect-ratio: 5 / 6;
	object-fit: cover;
}

/* Inset: a second, smaller image that overlaps the previous one (overlogopedie reference). */
.image-outer.shape-inset {
	position: relative;
	width: 52%;
	margin: -34% 0 0 auto;
	z-index: 2;
}

.image-outer.shape-inset .image-holder img {
	aspect-ratio: 1;
	object-fit: cover;
	border: 8px solid var(--gray);
	border-radius: var(--general-border-radius);
	transform: rotate(4deg);
}

/* Tilt: slightly rotated photo, for playful pages (DJ, fotoshoot). */
.image-outer.shape-tilt .image-holder img {
	transform: rotate(-3deg);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Signal arcs breaking out of the arch portrait. */
.image-outer.shape-arch {
	position: relative;
}

.image-outer.shape-arch::after {
	content: "";
	position: absolute;
	top: 6%;
	right: -14%;
	width: 42%;
	aspect-ratio: 1;
	background: url(images/signaal.svg) center / contain no-repeat;
	pointer-events: none;
}

/* Video previews: no title bar over the poster (the client's Vimeo titles are file names). */
body .lef-video-preview__label {
	display: none;
}

/* Mosaic gallery: rounded tiles in the shape system. */
body .gallery-outer--mosaic .gallery-item img {
	border-radius: var(--media-border-radius);
}

/* COMPONENTS --------------------------------------------------------------- */
/* Card cols: no border, generous padding, used for the bento tiles. */
body .card.col-card {
	border: 0;
	padding: var(--general-padding);
	border-radius: var(--general-border-radius);
}

body .card.col-card.bg-white {
	border: 1px solid var(--card-border-color);
}

body .card.col-card .icon-outer {
	margin-bottom: 26px;
}

body .card.col-card .icon-outer .icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--jmp-tile);
	color: var(--jmp-icon);
	font-size: 22px;
	margin: 0;
}

.card.col-card .content-wrapper h3 {
	margin-bottom: 0.5em;
}

/* card-default with extra class card-photo: big photo on top, text below. */
body .card.card-default.card-photo {
	border: 0;
	background: var(--gray);
	border-radius: var(--general-border-radius);
	overflow: hidden;
	margin: 0;
	height: 100%;
}

body .card.card-default.card-photo .image-outer .image-holder {
	padding-bottom: 58%;
}

body .card.card-default.card-photo .image-outer .image-holder img {
	border-radius: 0;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body .card.card-default.card-photo:hover .image-outer .image-holder img {
	transform: scale(1.03);
}

body .card.card-default.card-photo .content-outer {
	padding: var(--general-padding);
}

body .card.card-default.card-photo h4 {
	font-size: var(--h3-size);
	margin-bottom: 0.4em;
}

body .card.card-default.card-photo .excerpt-holder p {
	color: var(--ink-soft);
	font-size: var(--p-size);
	line-height: var(--p-line-height);
}

/* Post cards in a featured grid (publicaties): equal heights, button on the bottom line. */
body .featured:not(.slider-element) .row > .wp-block-custom-section-block-col {
	display: flex;
}

body .featured:not(.slider-element) .row > .wp-block-custom-section-block-col > .card.card-default {
	display: flex;
	flex-direction: column;
	width: 100%;
}

body .featured:not(.slider-element) .card.card-default .content-outer {
	display: flex;
	flex: 1;
	flex-direction: column;
}

body .featured:not(.slider-element) .card.card-default .buttons-holder {
	margin-top: auto;
	padding-top: 20px;
}

/* Icon list as USP list: bold title + text per item. */
.icons-list {
	display: grid;
	gap: 26px;
	margin: 34px 0 0;
}

body .icons-list li {
	align-items: flex-start;
}

body .icons-list li > .icon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-right: 18px;
	border-radius: 14px;
	background: var(--jmp-tile);
	color: var(--jmp-icon);
	font-size: 18px;
}

.icons-list .li-content p {
	margin: 0;
	color: var(--jmp-text);
}

.icons-list .li-content p strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--heading-font);
	font-size: 19px;
	font-weight: 600;
	color: var(--jmp-heading);
}

/* Counters: big numerals in a 2x2 grid with hairlines. */
body .counter-outer {
	margin: 0;
	row-gap: 0;
}

body .counter-outer > [class*="col-lg"] {
	margin: 0;
	padding: 34px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body .counter-outer .count-outer {
	text-align: left;
}

body .counter-outer .top-layer {
	justify-content: flex-start;
	font-family: var(--heading-font);
	font-size: 64px;
	line-height: 1;
	letter-spacing: -0.04em;
}

body .counter-outer .top-layer .counter,
body .counter-outer .top-layer .counter-prefix {
	font-size: 1em;
	font-weight: 600;
}

body .counter-outer .top-layer .counter-surfix {
	font-size: 0.7em;
	color: var(--secondary);
}

body .counter-outer .counter-ondertitle {
	margin-top: 14px;
	text-align: left;
	font-size: 16px;
	opacity: 0.72;
}

/* Reviews in the slider. */
body .card.card-reviews {
	height: 100%;
	margin: 0;
	padding: 36px;
	border: 1px solid var(--card-border-color);
	border-radius: var(--general-border-radius);
	background: var(--white);
}

body .card.card-reviews .content-outer {
	display: flex;
	flex-direction: column;
	padding: 0;
	height: 100%;
}

body .card.card-reviews .review-intro {
	order: 2;
	margin-top: auto;
	padding-top: 24px;
}

body .card.card-reviews .star-count {
	order: 0;
	margin-bottom: 18px;
}

body .card.card-reviews .star-count .icon {
	color: var(--secondary);
}

body .card.card-reviews .review-intro h4 {
	margin: 0;
	font-size: 17px;
	color: var(--white-content);
}

body .card.card-reviews .excerpt-holder p {
	font-family: var(--heading-font);
	font-size: 21px;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--white-content);
}

body .card.card-reviews .excerpt-holder p small {
	display: block;
	font-family: var(--body-font);
	font-size: 15px;
	color: var(--ink-soft);
}

body .featured.slider-element .tns-controls button,
body .image-slider .tns-controls button {
	background: var(--white);
	color: var(--white-content);
	border: 1px solid var(--card-border-color);
	border-radius: var(--general-border-radius-small);
}

/* Logo strip: logos in colour, a slight zoom on hover. */
body .image-slider.logo-strip .slide .image-holder {
	display: grid;
	place-items: center;
	height: 96px;
}

body .image-slider.logo-strip .slide .image-holder img {
	width: auto;
	max-width: min(150px, 100%); /* never wider than its slide: at 2.5 per row on mobile they overlapped */
	max-height: 64px;
	border-radius: 0;
	object-fit: contain;
	transition: var(--general-transition);
}

body .image-slider.logo-strip .slide:hover .image-holder img {
	transform: scale(1.12);
}

/* Logo strip on mobile: a bit of air between logos, and the half-visible logos at the edges fade out. */
@media (max-width: 991.98px) {
	body .tns-ovh:has(.logo-strip) {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	}

	body .image-slider.logo-strip .slide .image-holder {
		height: 80px;
		padding-inline: 6px;
	}

	body .image-slider.logo-strip .slide .image-holder img {
		max-height: 52px;
	}
}

/* Lists with checks inside text (price/offer cards). */
.content-wrapper ul {
	padding-left: 0;
	list-style: none;
}

.content-wrapper ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
	color: var(--jmp-text);
}

.content-wrapper ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--jmp-check);
	border-bottom: 2px solid var(--jmp-check);
	transform: rotate(-45deg);
}

/* Accordion (FAQ on landing pages). */
body .accordions .accordion {
	border: 0;
	background: var(--jmp-raised);
	border-radius: var(--general-border-radius);
}

body .accordions .accordion-title {
	font-family: var(--heading-font);
	font-weight: 500;
	font-size: 18px;
	padding: 20px 24px;
}

body .accordions .accordion-content {
	border-top: 1px solid var(--card-border-color);
	padding: 0 24px 6px;
}

/* Price in a card: <h3>Package</h3><p><strong>€ 350</strong> per maand</p> = big price tag. */
.card.col-card .content-wrapper h3 + p > strong:first-child {
	display: inline-block;
	margin-right: 4px;
	color: inherit;
	font-family: var(--heading-font);
	font-size: 44px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.04em;
}

/* Label/value rows (acf/list list-split: tarieven, genres): hairlines between rows, the value wraps. */
body .list-split {
	margin: 0;
	padding: 0;
}

body .list-split li {
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--jmp-line);
	color: var(--jmp-text);
}

body .list-split li:first-child {
	border-top: 1px solid var(--jmp-line);
}

body .list-split .li-content-right {
	max-width: 55%;
	white-space: normal;
	text-align: right;
	color: var(--jmp-heading);
	font-weight: 600;
}

.list-split + .content-wrapper {
	margin-top: 24px;
}

/* Partner logo in a card (image block with extra class logo-booking): whole logo, no crop. */
.image-outer.logo-booking {
	margin-bottom: 20px;
}

.image-outer.logo-booking .image-holder {
	height: auto;
	padding-bottom: 0;
	background: none;
}

.image-outer.logo-booking .image-holder img {
	position: static;
	width: auto;
	max-width: 220px;
	height: auto;
	border-radius: 0;
	object-fit: contain;
}

/* Text links stacked under each other (consecutive buttons blocks with is-link). */
.buttons-holder.is-link + .buttons-holder.is-link {
	margin-top: 4px;
}

/* Section header pair (h2 left, intro right, bottom aligned) directly above its grid. */
section.lef-section.section-header {
	padding-bottom: 0;
}

section.lef-section.section-header + section.lef-section {
	padding-top: 40px;
}

/* Article text (publicaties): subheads one step smaller than section titles. */
section.lef-section.section-article .content-wrapper h2 {
	margin-top: 1.4em;
	font-size: var(--h3-size);
}

/* Form card (white card col, e.g. Gravity Forms): lifted off the section. The form itself is styled by the theme. */
body .col-card.bg-white {
	box-shadow: 0 20px 60px -30px rgba(17, 33, 47, 0.35);
}

/* FOOTER ------------------------------------------------------------------- */
/* Slanted top edge with the red stripe (mirror of the hero), sliding over the last section's padding. */
body footer#footer {
	position: relative;
	z-index: 1;
	margin-top: calc(var(--slant) * -1);
	padding-top: var(--slant);
	clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
	overflow: hidden;               /* keeps the watermark from extending the page */
	color: var(--on-dark-soft);
}

body footer#footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: calc(var(--slant) + var(--stripe));
	background: var(--secondary);
	clip-path: polygon(0 var(--slant), 100% 0, 100% var(--stripe), 0 100%);
}

/* Watermark: the signal arcs from the logo, large in the bottom-right corner. */
body footer#footer::after {
	content: "";
	position: absolute;
	right: -140px;
	bottom: -120px;
	width: 560px;
	height: 560px;
	background: url(images/signaal.svg) center / contain no-repeat;
	opacity: 0.07;
	pointer-events: none;
}

body footer#footer .footer-inner,
body footer#footer .socket {
	position: relative;
	z-index: 1;
}

/* Row 1: closing statement + big contact links, separated from the columns below. */
body footer#footer .row-gap > div:nth-child(-n+2) {
	padding-bottom: 56px;
	margin-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body footer#footer .row-gap > div:nth-child(2) {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
}

body footer#footer h2 {
	color: var(--white);
	max-width: 19ch;
}

body footer#footer h3 {
	margin: 0;
	text-align: right;
}

body footer#footer h3 + h3 {
	margin-top: 6px;
}

body footer#footer h3 a {
	color: var(--white);
	background: linear-gradient(var(--secondary), var(--secondary)) left bottom / 0 3px no-repeat;
	transition: var(--general-transition);
}

body footer#footer h3 a:hover {
	color: var(--white);
	text-decoration: none;
	background-size: 100% 3px;
}

body footer#footer h6 {
	margin-bottom: 14px;
	color: var(--white);
}

body footer#footer h6 + p,
body footer#footer .widget-menu {
	margin-top: 0;
}

body footer#footer p,
body footer#footer a {
	color: var(--on-dark-soft);
}

body footer#footer a {
	text-decoration: none;
}

body footer#footer a:hover {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 4px;
}

body footer#footer .content-wrapper img {
	height: 64px;
	width: auto;
}

body footer#footer .clean-list li {
	margin-bottom: 8px;
}

/* Socials as icon tiles; the label stays in the link for screen readers. */
body footer#footer .social-link {
	display: inline-flex;
	margin: 12px 8px 0 0;
	font-size: 0;
	text-decoration: none;
}

body footer#footer .social-link .i-holder {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	font-size: 17px;
	border-radius: var(--general-border-radius-small);
	background: var(--quaternary);
	color: var(--white);
	transition: var(--general-transition);
}

/* The theme gives the icon a right margin (icon-text spacing): center it in the tile instead. */
body footer#footer .social-link .i-holder .icon {
	margin: 0;
	font-size: 18px;
	line-height: 1;
}

body footer#footer .social-link:hover .i-holder {
	background: var(--secondary);
}

body footer#footer .socket {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	font-size: 14px;
}

body footer#footer #socket-menu-ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body footer#footer .socket-half {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 28px;
}

body footer#footer .socket-company {
	margin-left: 6px;
	opacity: 0.7;
}

/* ANIMATIONS (theme option: fadeInUp on every col) ------------------------- */
/* No held transform after the reveal (it would make every col a containing block), and the section
   background never joins the reveal (avoids flashes on the hero photo). */
/* :not(.notransition): the theme kills all animations for the first 100ms; opacity: 1 in that window showed
   the hero text once before the fade-in started (a double reveal on page load). */
body.lef-animations:not(.notransition) [data-animation].animate__animated {
	opacity: 1;
	animation-fill-mode: backwards;
}

body.lef-animations .background-image-wrapper[data-animation] {
	opacity: 1 !important;
	animation: none !important;
	transform: none !important;
}

/* MOBILE ------------------------------------------------------------------- */
@media (max-width: 991px) {
	/* html:root, not :root: the theme prints its token :root inline after this file and would win. */
	html:root {
		--section-padding: 72px;
		--slant: 36px;
		--general-padding: 26px;
		--shape-big-radius: 110px;
		--logo-height: 52px;
		--fake-menu-height: calc(var(--logo-height) + 2 * var(--padding-inner-navigation-y, 0px) + 44px);
		--transparent-top-section-padding: calc(var(--fake-menu-height) + var(--section-padding));
		--float-gap: 12px;
		--stripe: 8px;
	}

	/* Label/value rows: value under the label, so long prices never break mid-amount. */
	body .list-split li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	body .list-split .li-content-right {
		max-width: none;
		text-align: left;
	}

	/* Mosaic with an odd number of photos: the first one spans both columns, no orphan at the end. */
	body .gallery-outer--mosaic .gallery-item:first-child:nth-last-child(odd) {
		grid-column: span 2;
	}

	body section.lef-section.has-signal::before {
		width: 220px;
		height: 220px;
		right: -80px;
		top: 4%;
	}

	body footer#footer .row-gap > div:nth-child(-n+2) {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: 0;
	}

	body footer#footer .row-gap > div:nth-child(2) {
		align-items: flex-start;
		padding-bottom: 32px;
		margin-bottom: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	body footer#footer h3 {
		text-align: left;
		font-size: 22px;
	}

	body footer#footer::after {
		width: 320px;
		height: 320px;
	}

	body header.navigation .navigation-inner-main {
		margin: 0 -3px;
		padding: 8px 8px 8px 16px;
	}

	/* Split hero: the image (moved below the text by the theme) runs into the cut. */
	section.lef-section.edge-slant-bottom.half-overlay-half-background .background-image-wrapper,
	section.lef-section.edge-curve-bottom.half-background-half-overlay .background-image-wrapper {
		margin-bottom: calc((var(--section-padding) + var(--slant)) * -1);
	}

	section.lef-section.section-snug {
		--section-padding: 48px;
	}

	.image-outer.shape-arch {
		max-width: 420px;
		margin: 24px auto 0;
	}

	.image-outer.shape-arch::after {
		right: -6%;
	}


	body .counter-outer .top-layer {
		font-size: 48px;
	}

	body .counter-outer > [class*="col-lg"] {
		padding: 26px 0;
	}

	body .card.card-reviews {
		padding: 28px;
	}

	body .card.card-reviews .excerpt-holder p {
		font-size: 19px;
	}

	body .mobile-navigation .menu > li > a {
		font-family: var(--heading-font);
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.btn .icon,
	body .card.card-default.card-photo .image-outer .image-holder img {
		transition: none;
	}
}

/* COOKIE BANNER (Complianz, build/complianz.php; avg-cookies-legal skill) --------------------------- */
/* Complianz cookie banner (build/complianz.php): in the site's own look, on the site tokens so it follows light/dark.
   Complianz reads these --cmplz_* variables; the colours saved in the plugin are only fallbacks. */
body .cmplz-cookiebanner {
	--cmplz_banner_background_color: var(--white);
	--cmplz_banner_border_color: var(--darkgray);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 16px;
	--cmplz_banner_margin: 16px;
	--cmplz_text_color: var(--black);
	--cmplz_hyperlink_color: var(--ink-soft);
	--cmplz_text_font_size: 14px;
	--cmplz_text_line_height: 1.55;
	--cmplz_title_font_size: 20px;
	--cmplz_link_font_size: 13px;
	--cmplz_button_font_size: 14px;
	--cmplz_button_border_radius: 10px;
	--cmplz_button_accept_background_color: var(--secondary);
	--cmplz_button_accept_border_color: var(--secondary);
	--cmplz_button_accept_text_color: var(--white);
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: var(--darkgray);
	--cmplz_button_deny_text_color: var(--black);
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: transparent;
	--cmplz_button_settings_text_color: var(--black);
	--cmplz_slider_active_color: var(--secondary);
	--cmplz_slider_inactive_color: var(--darkgray);
	--cmplz_slider_bullet_color: #fff;
	--cmplz_category_header_always_active_color: var(--succes);
	padding: 22px 22px 18px;
	box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .25);
	font-family: var(--body-font);
	color: var(--black);
}

/* title on the left like the site's cards (Complianz centres it between an empty logo and the close button) */
body .cmplz-cookiebanner .cmplz-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

body .cmplz-cookiebanner .cmplz-logo:empty {
	display: none;
}

body .cmplz-cookiebanner .cmplz-title {
	margin: 0;
	font-family: var(--heading-font);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: left;
}

body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-message p {
	color: var(--ink-soft);
}

/* buttons like the site's: accept = the red main button, deny = outline, preferences = quiet text button. leflite
   styles Complianz itself (accept and deny both in the primary colour, hovers on #cmplz-cookiebanner-container), so
   these rules use the same id to win. */
body .cmplz-cookiebanner .cmplz-buttons {
	gap: 8px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border-width: 1px;
	border-style: solid;
	box-shadow: none;
	font-family: var(--body-font);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
	background: var(--secondary);
	border-color: var(--secondary);
	color: var(--white);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny {
	background: transparent;
	border-color: var(--darkgray);
	color: var(--black);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover {
	background: transparent;
	border-color: var(--black);
	color: var(--black);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
	background: transparent;
	border-color: transparent;
	color: var(--black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
	border-color: var(--darkgray);
	text-decoration: none;
}

/* the theme gives every button:hover the primary colour */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
	background: transparent;
	color: var(--primary);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
	background: transparent;
	border-color: var(--black);
	color: var(--black);
}

/* Complianz moves the focus into the banner: a calm primary ring for the keyboard, none for mouse/touch */
body .cmplz-cookiebanner :focus-visible,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 6px;
}

body .cmplz-cookiebanner :focus:not(:focus-visible) {
	outline: none;
}

body .cmplz-cookiebanner .cmplz-links .cmplz-link {
	color: var(--ink-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* the preference categories */
body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	border-radius: 10px;
	background: var(--gray);
}

body .cmplz-cookiebanner .cmplz-category .cmplz-category-title {
	font-family: var(--heading-font);
	font-weight: 700;
}

body .cmplz-cookiebanner .cmplz-category .cmplz-description {
	color: var(--ink-soft);
}

/* the footer button that reopens the banner (functions/site.php) */
body .lef-cookie-settings {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* in the socket it looks like the menu links next to it */
body footer#footer #socket-menu-ul .lef-cookie-settings {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: var(--general-transition);
}

body footer#footer #socket-menu-ul .lef-cookie-settings:hover {
	color: var(--white);
}

/* Cookie table on the cookie statement (build/page-legal.php), like the tables in the legal pdfs */
body .lef-cookie-table {
	width: 100%;
	margin: 8px 0 24px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

body .lef-cookie-table th {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--black);
	color: var(--ink-soft);
	font-family: var(--body-font);
	font-size: 12px;
	font-weight: 400;
	text-align: left;
	text-transform: uppercase;
}

body .lef-cookie-table td {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--darkgray);
	vertical-align: top;
}

body .lef-cookie-table td:first-child {
	font-family: var(--body-font);
	font-size: 13px;
	word-break: break-word;
}

@media (max-width: 767px) {
	/* the table scrolls sideways on a phone instead of squeezing four columns */
	body .lef-cookie-table {
		display: block;
		overflow-x: auto;
	}

	body .lef-cookie-table th,
	body .lef-cookie-table td {
		min-width: 140px;
	}
}

/* NEW BLOCKS (not in leflite yet; each one is documented in NEW-BLOCKS.md) - */
