/*
 * WordPress / Elementor integration for the Makki design system (makki.css).
 * makki.css is the design's stylesheet as-is; this file maps it onto
 * Elementor's markup and the Site Kit's global colors and fonts.
 */

/* Design tokens come from Elementor → Site Settings → Global Colors / Fonts */
.mk{
	--paper:var(--e-global-color-mkpaper,#EEECE7);
	--night:var(--e-global-color-mknight,#151311);
	--ink:var(--e-global-color-mkink,#111110);
	--ivory:var(--e-global-color-mkivory,#ECE6DC);
	--mute:var(--e-global-color-mkmute,#67655F);
	--mute-d:var(--e-global-color-mkmuted,#9D958B);
	--frame-l:var(--e-global-color-mkframel,#D6D2CA);
	--frame-d:var(--e-global-color-mkframed,#26221F);
	--sigf:'Ms Madi',cursive;--sigs:58px;--sigw:400;
	font-family:var(--e-global-typography-primary-font-family,'Geist'),system-ui,sans-serif;
}
body.mk{margin:0;min-height:100vh}
.mk .mono{font-family:var(--e-global-typography-secondary-font-family,'Geist Mono'),ui-monospace,monospace}

/* Elementor wrappers must not alter the design's layout */
.mk .elementor-widget:not(:last-child){margin-block-end:0}
.mk .e-con.mk-sec{--gap:0px;--row-gap:0px;--column-gap:0px;--padding-left:0px;--padding-right:0px}
.mk .e-con.mk-sec>.elementor-widget{width:100%}
.mk .elementor-widget-container{height:100%}
.mk img{max-width:100%;height:auto}
.mk .fr img{height:100%;max-width:none}
.mk .fr.has-img .in{background:none}
.mk .fr.has-img>.in>img,.mk .fr.has-img>.in>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mk .fr video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mk h1,.mk h2,.mk h3,.mk h4{font-family:inherit;color:inherit}
.mk button{font-family:inherit}
.mk button:focus:not(:focus-visible){outline:none}

/* Theme Builder header: the design header is sticky against the page itself */
body.mk:not(.elementor-editor-active) .elementor-location-header,
body.mk:not(.elementor-editor-active) .elementor-location-header>.e-con,
body.mk:not(.elementor-editor-active) .elementor-location-header>.e-con>.e-con-inner,
body.mk:not(.elementor-editor-active) .elementor-location-header .elementor-widget-makki-header{display:contents}
/* Pages that do not start with a full-bleed hero */
.mk .hdr+.mk-hdr-space{display:none}

/* In the editor the reveal animations are off so everything is visible and editable */
.elementor-editor-active .hdr>*{opacity:1;animation:none}
.elementor-editor-active .hero{margin-top:0}
.elementor-editor-active [data-r]{opacity:1}

/* Hidden overlays (menu, film modal) */
.mk [hidden]{display:none !important}

/* Film modal player */
.modal .fr iframe,.modal .fr video{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:3}

/* Screen-reader only helper used by Elementor */
.mk .elementor-screen-only,.mk .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Section classes rendered inside a widget keep their descendant styles;
   the Elementor container provides padding and background instead. */
.mk .mk-in{padding-top:0;padding-bottom:0;background:transparent}
.mk .in>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Paper "sheet" that rounds into place while scrolling in (Home → Marketing) */
.js .e-con.mk-sheet{clip-path:inset(0 calc((1 - var(--p,1)) * 3.5%) round calc((1 - var(--p,1)) * 56px) calc((1 - var(--p,1)) * 56px) 0 0)}

/* Contact: text left, Elementor form right */
.mk .e-con.mk-ct-body{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:20px;align-items:start;padding-left:var(--gut);padding-right:var(--gut);margin-top:100px}
.mk .e-con.mk-ct-body>.elementor-element{grid-column:6/13;width:auto;max-width:none}
.mk .e-con.mk-ct-body>.elementor-widget-makki-contact-side,.mk .e-con.mk-ct-body>.elementor-widget-makki-wf-contact-side{grid-column:1/5}
@media (max-width:1000px){
.mk .e-con.mk-ct-body{margin-top:48px}
.mk .e-con.mk-ct-body>.elementor-element,.mk .e-con.mk-ct-body>.elementor-widget-makki-contact-side,.mk .e-con.mk-ct-body>.elementor-widget-makki-wf-contact-side{grid-column:1/13}
}

/* Elementor Pro Form in the design's style: add CSS class "mk-form" to a Form widget */
.mk .mk-form .elementor-form-fields-wrapper{display:flex;flex-wrap:wrap;margin:0;align-items:center}
.mk .mk-form .elementor-field-group{position:relative;display:block;width:100%;max-width:100%;flex:0 0 100%;margin:0;padding:20px 0;border-top:1px solid var(--line-d)}
.mk .mk-form .elementor-field-group:not(.elementor-field-type-submit):not(.elementor-field-type-html)::after{content:"";position:absolute;left:0;right:0;bottom:12px;height:1px;background:var(--ivory);transform:scaleX(0);transform-origin:left;transition:transform .8s var(--io)}
.mk .mk-form .elementor-field-group:focus-within::after{transform:scaleX(1)}
.mk .mk-form .elementor-field-group .elementor-field-label{font-size:14px;color:var(--mute-d);display:block;margin:0 0 6px;padding:0;font-weight:400}
.mk .mk-form .elementor-field-group .elementor-field-textual{width:100%;background:none;border:0;border-radius:0;color:var(--ivory);font:inherit;font-size:22px;letter-spacing:-.02em;padding:6px 0;min-height:0;outline:none;color-scheme:dark;box-shadow:none}
.mk .mk-form .elementor-field-group textarea.elementor-field-textual{resize:vertical;min-height:84px}
.mk .mk-form .elementor-field-textual::placeholder{color:#7f786f;opacity:1}
.mk .mk-form .elementor-mark-required .elementor-field-label::after{color:var(--mute-d)}
.mk .mk-form .elementor-field-subgroup{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.mk .mk-form .elementor-field-subgroup .elementor-field-option{margin:0;padding:0;position:relative}
.mk .mk-form .elementor-field-option input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mk .mk-form .elementor-field-option label{display:inline-flex;align-items:center;background:none;border:1px solid var(--line-d);color:var(--ivory);font-size:15px;padding:10px 16px;border-radius:999px;cursor:pointer;min-height:44px;margin:0;transition:background-color .4s,color .4s,border-color .4s}
.mk .mk-form .elementor-field-option label:hover{border-color:var(--ivory)}
.mk .mk-form .elementor-field-option input:checked+label{background:var(--ivory);color:var(--night);border-color:var(--ivory)}
.mk .mk-form .elementor-field-option input:focus-visible+label{outline:2px solid var(--ivory);outline-offset:2px}
/* Last row: note + button share one top line (both stretch to the row height; the note stays centred next to the button) */
.mk .mk-form .elementor-field-type-html{flex:1 1 300px;width:auto;margin-top:28px;padding:28px 20px 0 0;font-size:13px;line-height:1.4;color:var(--mute-d);align-self:stretch;display:flex;align-items:center}
.mk .mk-form .elementor-field-type-submit{flex:0 0 auto;width:auto;margin-top:28px;padding:28px 0 0;border-top:1px solid var(--line-d);align-self:stretch}
.mk .mk-form .elementor-field-type-html+.elementor-field-type-submit{margin-left:auto}
.mk .mk-form .elementor-button{display:inline-flex;align-items:center;gap:12px;background:var(--ivory);color:var(--night);font:inherit;font-size:15px;font-weight:500;padding:18px 28px;border-radius:999px;min-height:52px;border:0;transition:transform .45s var(--ease)}
.mk .mk-form .elementor-button:hover{background:var(--ivory);color:var(--night)}
.mk .mk-form .elementor-message{color:var(--ivory);font-size:18px;margin-top:20px}
.mk .mk-form .elementor-message.elementor-message-danger{color:#E0573A}
/* Spam protection (inc/forms.php): honeypot and invisible reCAPTCHA v3 take no space; Google's badge is replaced by a line of text */
.mk .mk-form .elementor-field-group-hp,.mk .mk-form .elementor-field-type-recaptcha_v3,.mk .mk-form .elementor-field-type-honeypot{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden;clip-path:inset(50%);flex:none!important}
.mk .mk-form .elementor-field-group-hp::after,.mk .mk-form .elementor-field-type-recaptcha_v3::after{content:none}
.grecaptcha-badge{visibility:hidden!important}
.mk .mk-rc-note{margin:14px 0 0;font-size:12px;line-height:1.4;opacity:.68}
.mk .mk-rc-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.mk .mk-form .elementor-field-group .elementor-field-textual:-webkit-autofill{-webkit-text-fill-color:var(--ivory);transition:background-color 9999s}
@media (max-width:1000px){
.mk .mk-form .elementor-field-group .elementor-field-textual{font-size:20px}
.mk .mk-form .elementor-field-type-html{flex-basis:100%;padding-right:0}
.mk .mk-form .elementor-field-type-submit{flex-basis:100%;border-top:0;margin-top:0;padding-top:16px}
.mk .mk-form .elementor-button{width:100%;justify-content:center}
}

/* Long-form text (Makki Text widget) */
.mk .mk-prose-row{align-items:start;margin-top:88px}
.mk .mk-prose-l{grid-column:1/4}
.mk .mk-prose{grid-column:4/11;font-size:18px;line-height:1.55}
.mk .mk-prose>:first-child{margin-top:0}
.mk .mk-prose h2,.mk .mk-prose h3{font-weight:500;letter-spacing:-.03em;line-height:1.1;text-transform:lowercase;margin:56px 0 16px}
.mk .mk-prose h2{font-size:clamp(28px,2.6vw,40px)}
.mk .mk-prose h3{font-size:22px}
.mk .mk-prose p,.mk .mk-prose ul,.mk .mk-prose ol{margin:0 0 18px}
.mk .mk-prose a{text-decoration:underline;text-underline-offset:3px}
.dark .mk-prose{color:var(--ivory)}
@media (max-width:1000px){
.mk .mk-prose-row{margin-top:36px}
.mk .mk-prose-l,.mk .mk-prose{grid-column:1/13}
.mk .mk-prose{font-size:17px}
}

/* Title widgets with the H1 option get the same sizes as the design's h2 */
.mk .sec-head h1{translate:max(0%,calc((.55 - var(--p,.55)) * 14%)) 0;grid-column:1/10;font-size:clamp(84px,13.4vw,232px)}
.mk .ct h1{grid-column:1/13;font-size:clamp(64px,9.8vw,168px)}
@media (max-width:1000px){
.mk .sec-head h1{grid-column:1/13;font-size:17vw}
.mk .ct h1{font-size:12.4vw}
}

/* Pages that do not open with a full-screen hero: the first section slides under the header too */
.mk [data-elementor-type="wp-page"]>.e-con:first-child:not(:has(.hero,.wfh,.ovh,.ctp,.px,.sr)){margin-top:-84px}
@media (max-width:1000px){
.mk [data-elementor-type="wp-page"]>.e-con:first-child:not(:has(.hero,.wfh,.ovh,.ctp,.px,.sr)){margin-top:-64px}
}
.elementor-editor-active [data-elementor-type="wp-page"]>.e-con:first-child{margin-top:0 !important}

/* Hidden form fields never take up a row */
.mk .mk-form .elementor-field-type-hidden{display:none}

/* Project list (Home, Marketing): kind of work and place on two lines, like the Projecten overview */
.mk .crow .mt{display:flex;flex-direction:column;align-items:flex-end;gap:2px;align-self:center}
.mk .crow .mt span+span{opacity:.6}
@media (max-width:1000px){
.mk .crow .mt{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:10px;align-self:auto}
}

/* Next project: place after the kind of work */
.mkp-project .nxt-m .nxt-p{margin-left:14px;opacity:.6}

/* Project template: a media carousel without film or images hides its whole section */
.mk .e-con:has(>.elementor-widget-makki-project-media .mk-empty){display:none}


/* Archive parallax: same 10% travel as the design, centred (+5% → -5%) so it never
   moves past the image's 6% overscan and uncovers the grey frame at the sides */
.mk .it .in{translate:calc((.5 - var(--p,0)) * 10%) 0}
/* Screen height (--vh) right from the first paint, same rule as measure() in makki.js: no jump of the
   hero when the script replaces the 860px default with the real height (layout shift / CLS). */
.mk{--vh:max(560px,100vh);--vh:max(560px,100svh)}
@media (max-width:699.98px){.mk{--vh:clamp(560px,100vh,900px);--vh:clamp(560px,100svh,900px)}}
@media (min-height:2201px){.mk{--vh:1000px}}

/* ---------- Accessibility: readable contrast (WCAG AA) in every state ----------
   Dimmed states (unread words, inactive rows/chapters/steps) stay dimmed, but never below
   3:1 for large text and 4.5:1 for small text. */
.mk .sw{opacity:clamp(.5,calc(var(--p,1) * var(--n) * 1.2 - var(--i)),1)}
.mk .seg{opacity:.62}
.mk .seg:hover,.mk .seg.on{opacity:1}
.mk .seg .sl small{color:#d6cfc4}
@media (min-width:1001px){.mkp-over .ovc{opacity:.62}}
.mkp-projecten .px-list[data-has] .px-row{color:rgba(236,230,220,.56)}
.mkp-projecten .px-list[data-has] .px-row:not([data-act]) .px-m span+span{opacity:1}
.mk .tl-top,.mk .tl-labels span{color:#5c5a54}
.mk .tl-flag{background:#c44126}
/* Header text normally inverts its background (mix-blend-mode); over plain backgrounds makki.js
   switches to solid colours (ink over light, white over dark): the same look, readable for every tool. */
html.hdr-solid .hdr{mix-blend-mode:normal}
html.hdr-solid .hdr>.on-light,html.hdr-solid .hdr>.on-light a,html.hdr-solid .hdr>.on-light button{color:var(--ink)}
/* Tap targets of at least 24px (footer legal links) */
.mk .fb-links a{display:inline-flex;align-items:center;min-height:24px}
/* "Hoe het werkt": the tab list wrapper does not change the layout */
.mk .steps .sb-list{display:contents}
@media (min-width:1001px){.mkp-over .ovc:not([data-act]) .lbl{color:var(--ink)}}
/* Outgoing review: wipes away with the same blur and lift instead of fading (a half-transparent
   quote is unreadable for a moment). */
.mk .rq.out{animation-name:rqOutWipe}
@keyframes rqOutWipe{from{clip-path:inset(-20% -5% -20% -5%)}to{clip-path:inset(-20% -5% 100% -5%);transform:translateY(-36px);filter:blur(6px)}}

/* ---------- "Ik wil dit pakket" (package-pick.js) ---------- */
/* Price rows (home): on hover, keyboard focus or the highlighted row on touch, the price rolls away
   and the button takes its place; the row keeps its height. */
.mk .prow .pr{grid-row:1;transition:opacity .3s ease,transform .5s var(--ease)}
.mk .prow .pk-cta{grid-column:11/13;grid-row:1;justify-self:end;align-self:center;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:12px 22px;border-radius:999px;background:var(--night);color:var(--ivory);font-size:14px;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .5s var(--ease)}
.mk .prow .pk-cta{position:relative;z-index:1;pointer-events:none}
.mk .prow:hover .pk-cta,.mk .prow:focus-within .pk-cta,.mk .prow[data-act] .pk-cta{opacity:1;transform:none;pointer-events:auto}
.mk .prow:hover .pr,.mk .prow:focus-within .pr,.mk .prow[data-act] .pr{opacity:0;transform:translateY(-12px)}
.mk .prow:focus-within::before{transform:scaleY(1)}
.mk .prow:focus-within,.mk .prow:focus-within .h{color:var(--night)}
.mk .prow .pk-cta:focus-visible{outline:2px solid var(--night);outline-offset:3px}
@media (max-width:1000px){
	/* Phones: no hover, so every package card shows the button as a link under its details. */
	.mk .prow .pk-cta{grid-column:1/-1;grid-row:auto;justify-self:start;opacity:1;pointer-events:auto;transform:none;margin-top:8px;min-height:24px;padding:6px 0;border-radius:0;background:none;color:inherit;font-size:15px;text-decoration:underline;text-underline-offset:4px}
	.mk .prow:hover .pr,.mk .prow:focus-within .pr,.mk .prow[data-act] .pr{opacity:1;transform:none}
	.mk .prow .pk-cta:focus-visible{outline-color:currentColor}
}
/* Package accordion (wedding films): the button sits under the description of the opened package. */
.mk .pkr-d{grid-row:1}
.mk .pkr-list{grid-row:1/span 2}
.mk .pkr-cta{grid-column:1/5;grid-row:2;align-self:start;margin:0 0 36px;opacity:0;transform:translateY(-10px);transition:opacity .45s ease,transform .7s var(--ease)}
.mk .pkr.open .pkr-cta{opacity:1;transform:none;transition-delay:.18s}
.mk .pkr:not(.open) .pkr-cta a{visibility:hidden}
@media (max-width:1000px){
	.mk .pkr-d,.mk .pkr-list,.mk .pkr-cta{grid-row:auto}
	.mk .pkr-cta{grid-column:1/-1;margin:4px 0 28px}
}
/* The chosen package lights up briefly in the form. */
.mk .mk-form .elementor-field-option.mk-picked label{animation:mkPick 1.4s var(--ease) .5s both}
@keyframes mkPick{0%{box-shadow:0 0 0 0 rgba(236,230,220,.7)}100%{box-shadow:0 0 0 14px rgba(236,230,220,0)}}

/* No sideways panning on phones: headings that slide in (.sec-head h2 translate) briefly stick out
   past the screen edge. iOS Safari ignores overflow on <body>, so clip the page content itself.
   "clip" (unlike "hidden") is no scroll container, so sticky sections keep working. */
.mk main#main{overflow-x:clip}

/* Menu: focus lands on the dialog itself after a tap (no ring), and after taps/clicks no link or
   button keeps a focus ring (iOS Safari drew a blue one). Keyboard users keep theirs. */
.mk .vf-ov:focus{outline:none}
html.mk-pointer .mk :is(a,button,[tabindex]):focus{outline:none}
html.mk-pointer .mk .vf-it:focus:not(:hover) .vf-fb{opacity:0}
