/* ==========================================================================
   Linkfluencers – aanvullende stijl bovenop theme.json
   ========================================================================== */

:root {
	--lf-ink: var(--wp--preset--color--ink, #121212);
	--lf-paper: var(--wp--preset--color--paper, #F8F7F4);
	--lf-accent: var(--wp--preset--color--accent, #2F4BFF);
	--lf-accent-light: var(--wp--preset--color--accent-light, #8F9DFF);
	--lf-line: rgba(18, 18, 18, .14);
	--lf-header-h: 76px;
	--lf-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--lf-accent); color: var(--lf-ink); }
img { height: auto; }

/* Skip link + focus */
.skip-link.screen-reader-text:focus { background: var(--lf-ink); color: var(--lf-paper); padding: .75rem 1rem; z-index: 1000; }

/* ---------- Header ---------- */
.wp-site-blocks > .wp-block-template-part:has(.lf-header) {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; margin-block-start: 0;
	transition: background-color .3s var(--lf-ease), box-shadow .3s var(--lf-ease);
}
.is-scrolled .wp-site-blocks > .wp-block-template-part:has(.lf-header) { background: rgba(248, 247, 244, .94); backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 1px 0 var(--lf-line); }
.lf-logo { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: -.045em; font-size: 1.55rem; line-height: 1; text-decoration: none; color: var(--lf-ink); white-space: nowrap; }
.lf-logo span { color: var(--lf-accent); }
.lf-header a { text-decoration: none; }
.lf-header .wp-block-navigation-item.is-cta > a {
	background: var(--lf-ink); color: var(--lf-paper); padding: .6rem 1.1rem; border-radius: 3px; font-weight: 600;
	transition: background-color .2s var(--lf-ease), color .2s var(--lf-ease);
}
.lf-header .wp-block-navigation-item.is-cta > a:hover { background: var(--lf-accent); color: var(--lf-ink); }
.lf-header .wp-block-navigation-item:not(.is-cta) > a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--lf-accent); text-decoration-thickness: 2px; }

/* Transparante header met lichte tekst boven een donkere hero */
.lf-has-dark-hero:not(.is-scrolled) .lf-header,
.lf-has-dark-hero:not(.is-scrolled) .lf-header .lf-logo,
.lf-has-dark-hero:not(.is-scrolled) .lf-header .wp-block-navigation-item:not(.is-cta) > a,
.lf-has-dark-hero:not(.is-scrolled) .lf-header .lfml-switcher a,
.lf-has-dark-hero:not(.is-scrolled) .lf-header .lfml-switcher span,
.lf-has-dark-hero:not(.is-scrolled) .lf-header .wp-block-navigation__responsive-container-open { color: var(--lf-paper); }
.lf-has-dark-hero:not(.is-scrolled) .lf-header .wp-block-navigation-item.is-cta > a { background: var(--lf-accent); color: var(--lf-ink); }
.lf-has-dark-hero main#main { margin-top: calc(-1 * var(--lf-header-h)) !important; }

/* Taalwisselaar */
.lfml-switcher { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lfml-switcher a, .lfml-switcher span { display: inline-block; padding: .35rem .45rem; text-decoration: none; color: inherit; border-radius: 2px; opacity: .6; }
.lfml-switcher a:hover { opacity: 1; }
.lfml-switcher .is-current span { opacity: 1; box-shadow: inset 0 -2px 0 var(--lf-accent); }

/* ---------- Typografische helpers ---------- */
.is-style-lf-eyebrow {
	font-size: .8125rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: .7rem;
}
.is-style-lf-eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--lf-accent); display: inline-block; }
.has-text-align-center.is-style-lf-eyebrow { justify-content: center; display: flex; }
.lf-accent { color: var(--lf-accent); }
.has-ink-background-color .lf-accent, .lf-dark .lf-accent { color: var(--lf-accent); }
.has-paper-background-color .lf-accent, .has-sand-background-color .lf-accent { color: var(--wp--preset--color--accent-deep); }
.lf-balance { text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Grote cijfers */
.lf-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .9375rem; letter-spacing: .04em; color: var(--wp--preset--color--accent-deep); }
.has-ink-background-color .lf-num { color: var(--lf-accent); }

/* ---------- Hero ---------- */
.lf-hero { min-height: min(100svh, 980px); position: relative; overflow: hidden; }
.lf-hero .wp-block-cover__inner-container { width: 100%; }
.lf-hero h1 { max-width: 15ch; }
.lf-hero::before {
	content: ""; position: absolute; z-index: 0; right: -8vw; top: 10%; width: min(62vw, 880px); aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, rgba(47,75,255,.55), rgba(47,75,255,.18) 45%, rgba(47,75,255,0) 70%);
	filter: blur(6px); pointer-events: none; animation: lf-drift 18s ease-in-out infinite alternate;
}
.lf-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
	background-image: linear-gradient(to right, #F8F7F4 1px, transparent 1px); background-size: calc(100% / 12) 100%;
}
.lf-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
@keyframes lf-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw, 4vh, 0) scale(1.08); } }

/* Scroll-indicator */
.lf-scrollcue { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* ---------- Kaarten / pijlers ---------- */
.is-style-lf-card {
	border-top: 2px solid var(--lf-ink);
	padding-top: var(--wp--preset--spacing--30) !important;
	transition: transform .4s var(--lf-ease);
	height: 100%;
}
.has-ink-background-color .is-style-lf-card { border-top-color: var(--lf-accent); }
.is-style-lf-card:hover { transform: translateY(-4px); }
.lf-pillars > .wp-block-column { display: flex; }
.lf-pillars > .wp-block-column > * { flex: 1; }

/* Visueel blok (vervangt foto's tot de shoots er zijn) */
.lf-visual { position: relative; overflow: hidden; border-radius: 2px; }
.lf-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(47,75,255,.35), transparent 55%); pointer-events: none; }
.lf-visual--sand::after { background: radial-gradient(ellipse at 20% 80%, rgba(47,75,255,.22), transparent 55%); }
.lf-phone {
	width: min(240px, 60%); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 26px; border: 2px solid rgba(248,247,244,.85);
	background: linear-gradient(160deg, #2a2a2a, #121212 60%, #141c55); position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.lf-phone::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 32%; height: 6px; border-radius: 6px; background: rgba(248,247,244,.4); }
.lf-phone::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%; height: 8px; border-radius: 8px; background: var(--lf-accent); box-shadow: 0 -18px 0 rgba(248,247,244,.35), 0 -34px 0 rgba(248,247,244,.2); }
.lf-frame {
	aspect-ratio: 4 / 5; width: min(320px, 78%); margin-inline: auto; background: var(--lf-paper); position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.18);
}
.lf-frame::before { content: ""; position: absolute; inset: 8% 8% 26% 8%; background: linear-gradient(150deg, #E6DDD1, #cbbfaf); }
.lf-frame::after { content: ""; position: absolute; left: 8%; bottom: 9%; width: 46%; height: 10px; background: var(--lf-ink); box-shadow: 0 18px 0 -2px #cbbfaf; }

/* ---------- Stappen (lijn) ---------- */
.lf-steps { counter-reset: lfstep; position: relative; }
.lf-steps > .wp-block-column { position: relative; padding-top: 2.25rem; }
.lf-steps > .wp-block-column::before {
	counter-increment: lfstep; content: "0" counter(lfstep);
	position: absolute; top: 0; left: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--wp--preset--color--accent-deep); font-size: .9375rem; letter-spacing: .04em;
}
.has-ink-background-color .lf-steps > .wp-block-column::before { color: var(--lf-accent); }
.lf-steps > .wp-block-column::after { content: ""; position: absolute; top: .55rem; left: 2.6rem; right: 0; height: 1px; background: currentColor; opacity: .25; }

/* ---------- Lijsten met vinkjes ---------- */
.is-style-lf-checks { list-style: none; padding-left: 0; }
.is-style-lf-checks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.is-style-lf-checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2px solid var(--wp--preset--color--accent-deep); border-bottom: 2px solid var(--wp--preset--color--accent-deep); transform: rotate(-45deg); }
.has-ink-background-color .is-style-lf-checks li::before { border-color: var(--lf-accent); }

/* Lijn-knop */
.wp-block-button.is-style-lf-ghost .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.wp-block-button.is-style-lf-ghost .wp-block-button__link:hover { background: var(--lf-ink); color: var(--lf-paper); box-shadow: inset 0 0 0 1.5px var(--lf-ink); }
.has-ink-background-color .wp-block-button.is-style-lf-ghost .wp-block-button__link:hover,
.lf-hero .wp-block-button.is-style-lf-ghost .wp-block-button__link:hover { background: var(--lf-paper); color: var(--lf-ink); box-shadow: inset 0 0 0 1.5px var(--lf-paper); }
.wp-block-button__link { transition: background-color .2s var(--lf-ease), color .2s var(--lf-ease), box-shadow .2s var(--lf-ease); }
.wp-block-button__link::after { content: " →"; display: inline-block; transition: transform .2s var(--lf-ease); }
.wp-block-button__link:hover::after { transform: translateX(3px); }

/* ---------- Pakketten ---------- */
.lf-packages > .wp-block-column { display: flex; }
.lf-package { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--lf-line); }
.lf-package .wp-block-buttons { margin-top: auto !important; padding-top: 1rem; }
.lf-package.is-featured { background: var(--lf-ink); color: var(--lf-paper); border-color: var(--lf-ink); }
.lf-package.is-featured .is-style-lf-checks li::before { border-color: var(--lf-accent); }
.lf-badge { display: inline-block; background: var(--lf-accent); color: var(--lf-ink); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 2px; }

/* Tabellen */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--lf-line); padding: .9rem .75rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { border-bottom: 2px solid var(--lf-ink); font-family: var(--wp--preset--font-family--display); font-size: 1rem; }
.wp-block-table td:first-child { font-weight: 600; }

/* FAQ (details) */
.wp-block-details { border-bottom: 1px solid var(--lf-line); padding: 1.1rem 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.6rem; font-weight: 400; transition: transform .2s var(--lf-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .75rem; }

/* ---------- Formulieren ---------- */
.lf-form { display: grid; gap: 1.5rem; }
.lf-form fieldset { border: 0; padding: 0; margin: 0; }
.lf-form legend { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.375rem; margin-bottom: 1rem; padding: 0; }
.lf-form .lf-step-label { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--accent-deep); margin-bottom: .35rem; font-family: var(--wp--preset--font-family--body); }
.lf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.lf-tile { position: relative; }
.lf-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lf-tile span { display: block; height: 100%; border: 1.5px solid var(--lf-line); padding: 1.1rem 1.1rem 1.1rem 3rem; background: #fff; transition: border-color .15s, background-color .15s; position: relative; }
.lf-tile span strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.0625rem; margin-bottom: .2rem; }
.lf-tile span small { display: block; font-size: .875rem; opacity: .75; line-height: 1.45; }
.lf-tile span::before { content: ""; position: absolute; left: 1.1rem; top: 1.25rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--lf-ink); border-radius: 2px; background: #fff; }
.lf-tile input:checked + span { border-color: var(--lf-ink); background: #f3f5ff; }
.lf-tile input:checked + span::before { background: var(--lf-accent); border-color: var(--lf-ink); box-shadow: inset 0 0 0 3px #fff; }
.lf-tile input:focus-visible + span { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.lf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.lf-fields .is-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .lf-fields { grid-template-columns: 1fr; } }
.lf-field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.lf-field .lf-optional { font-weight: 400; opacity: .65; }
.lf-field input, .lf-field select, .lf-field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--lf-ink); background: #fff; border: 1.5px solid var(--lf-line); border-radius: 2px; padding: .8rem .9rem; transition: border-color .15s;
}
.lf-field input:focus, .lf-field select:focus, .lf-field textarea:focus { outline: none; border-color: var(--lf-ink); box-shadow: 0 0 0 3px rgba(47,75,255,.35); }
.lf-field textarea { min-height: 140px; resize: vertical; }
.lf-consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; }
.lf-consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--lf-ink); flex: none; }
.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lf-submit { font: inherit; font-weight: 600; font-size: 1rem; background: var(--lf-accent); color: var(--lf-ink); border: 0; border-radius: 3px; padding: 1rem 1.75rem; cursor: pointer; justify-self: start; transition: background-color .2s, color .2s; }
.lf-submit:hover { background: var(--lf-ink); color: var(--lf-paper); }
.lf-submit:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 3px; }
.lf-notice { padding: 1.25rem 1.5rem; border-left: 4px solid var(--lf-accent); background: #fff; }
.lf-notice.is-error { border-left-color: #b42318; }
.lf-notice h2, .lf-notice h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.lf-footer a { text-decoration: none; }
.lf-footer a:hover { text-decoration: underline; text-underline-offset: .25em; color: var(--lf-accent); }
.lf-footer .lf-payoff { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.lf-footer ul { list-style: none; padding: 0; margin: 0; }
.lf-footer li { margin-bottom: .45rem; }

/* ---------- Cases ---------- */
.lf-case-card { text-decoration: none; }
.lf-case-card .wp-block-post-featured-image img { transition: transform .6s var(--lf-ease); }
.lf-case-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.lf-case-card .wp-block-post-featured-image { overflow: hidden; }

/* ---------- Inschuiven ---------- */
.js .is-style-lf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--lf-ease), transform .8s var(--lf-ease); }
.js .is-style-lf-reveal.is-in { opacity: 1; transform: none; }
.block-editor-page .is-style-lf-reveal, .editor-styles-wrapper .is-style-lf-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .is-style-lf-reveal { opacity: 1; transform: none; }
}

/* Mobiel */
@media (max-width: 781px) {
	.lf-steps > .wp-block-column::after { display: none; }
	.lf-hero { min-height: 92svh; }
	.lf-hero::before { width: 120vw; right: -50vw; top: 30%; }
	.lf-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--lf-ink) !important; color: var(--lf-paper) !important; }
	.lf-header .wp-block-navigation__responsive-container.is-menu-open a { color: var(--lf-paper) !important; font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; font-weight: 700; }
}

/* Slot-CTA op koraal: primaire knop donker */
.lf-cta .wp-block-button:not(.is-style-lf-ghost) .wp-block-button__link { background: var(--lf-ink); color: var(--lf-paper); }
.lf-cta .wp-block-button:not(.is-style-lf-ghost) .wp-block-button__link:hover { background: var(--lf-paper); color: var(--lf-ink); }
.lf-cta .wp-block-button.is-style-lf-ghost .wp-block-button__link:hover { background: var(--lf-ink); color: var(--lf-paper); box-shadow: inset 0 0 0 1.5px var(--lf-ink); }

/* Split-screen: gelijke hoogte */
.lf-visual { min-height: 360px; display: flex; align-items: center; justify-content: center; }
.lf-visual > * { width: 100%; }
.lf-hero > * { position: relative; z-index: 2; }
.lf-hero { display: flex; flex-direction: column; justify-content: center; }
.lf-noanim .is-style-lf-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
/* Geen witregel tussen laatste sectie en footer */
.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
main#main > .entry-content > .alignfull:last-child, main#main > .wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }
/* Split-visuals: vaste, gelijke hoogte */
.lf-visual { height: clamp(300px, 30vw, 420px); min-height: 0; }
.lf-phone { width: auto; height: 78%; aspect-ratio: 9 / 16; }
.lf-frame { width: auto; height: 72%; aspect-ratio: 4 / 5; }
/* Formulier-correcties */
.lf-form *, .lf-form *::before, .lf-form *::after { box-sizing: border-box; }
.lf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 560px) { .lf-tiles { grid-template-columns: 1fr; } }
.lf-tile { display: flex; }
.lf-tile span { flex: 1; height: auto; }
.lf-form fieldset + fieldset { margin-top: .5rem; }

/* ---------- Kobalt-accent: contrastregels ---------- */
/* Op donker: lichte kobalt voor tekstaccenten; knoppen kobalt met witte tekst */
.has-ink-background-color .lf-accent, .lf-dark .lf-accent, .lf-hero .lf-accent { color: var(--lf-accent-light); }
.has-paper-background-color .lf-accent, .has-sand-background-color .lf-accent { color: var(--wp--preset--color--accent-deep); }
.has-ink-background-color .lf-num, .has-ink-background-color .lf-steps > .wp-block-column::before { color: var(--lf-accent-light); }
.has-ink-background-color .is-style-lf-checks li::before, .lf-package.is-featured .is-style-lf-checks li::before { border-color: var(--lf-accent-light); }
.has-ink-background-color .is-style-lf-card { border-top-color: var(--lf-accent-light); }
.lf-header .wp-block-navigation-item.is-cta > a:hover { background: var(--lf-accent); color: #fff; }
.lf-has-dark-hero:not(.is-scrolled) .lf-header .wp-block-navigation-item.is-cta > a { background: var(--lf-accent); color: #fff; }
.lf-badge { background: var(--lf-accent); color: #fff; }
.lf-submit { background: var(--lf-accent); color: #fff; }
.lf-tile input:checked + span::before { background: var(--lf-accent); }
::selection { background: var(--lf-accent); color: #fff; }
.lf-footer a:hover { color: var(--lf-accent-light); }
/* Slot-CTA op kobalt: lichte tekst, primaire knop wit */
.lf-cta { color: #fff; }
.lf-cta .wp-block-button:not(.is-style-lf-ghost) .wp-block-button__link { background: #fff; color: var(--lf-ink); }
.lf-cta .wp-block-button:not(.is-style-lf-ghost) .wp-block-button__link:hover { background: var(--lf-ink); color: #fff; }
.lf-cta .wp-block-button.is-style-lf-ghost .wp-block-button__link:hover { background: #fff; color: var(--lf-ink); box-shadow: inset 0 0 0 1.5px #fff; }
.lf-cta .is-style-lf-eyebrow::before { background: #fff; }
/* Hybride-sectie */
.lf-hybrid-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; border: 1.5px solid currentColor; border-radius: 2px; }
.wp-block-button__link::after { content: "\00a0→"; }
