/**
 * Ikodak — gedeelde basis voor alle dc-ikodak-pipeline-widgets.
 *
 * Zet de huisstijl op de theme-tokens (dc-tokens.css blijft ongewijzigd; deze
 * regels komen erna en winnen), laadt DM Sans lokaal uit het thema en bevat de
 * bouwstenen die elke sectie deelt: wrap, eyebrow, knoppen, reveal.
 */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../../../../../themes/developercode/assets/fonts/dc-self-hosted/dm-sans-100-1000-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../../../../../themes/developercode/assets/fonts/dc-self-hosted/dm-sans-100-1000-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --dc-primary: #b4a485;
    --dc-primary-rgb: 180, 164, 133;
    --dc-secondary: #2575fc;
    --dc-secondary-rgb: 37, 117, 252;
    --dc-accent: #5f7bff;
    --dc-accent-rgb: 95, 123, 255;
    --dc-title: #000000;
    --dc-title-rgb: 0, 0, 0;
    --dc-bg: #ffffff;
    --dc-bg-rgb: 255, 255, 255;

    --dcip-ink: #15130f;
    --dcip-ink-rgb: 21, 19, 15;
    --dcip-text: #3f3a33;
    --dcip-muted: #6a6257;
    --dcip-sand: #f7f3ec;
    --dcip-sand-2: #efe8db;
    --dcip-line: #e6dfd1;
    --dcip-primary-deep: #8a7a5c;
    --dcip-primary-ink: #5c4f36;

    --dcip-font-head: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dcip-font-body: 'Work Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --dcip-gutter: clamp(20px, 4vw, 48px);
    --dcip-max: 1240px;
    --dcip-section: clamp(64px, 8vw + 16px, 128px);
    --dcip-radius: 20px;
    --dcip-radius-lg: 28px;
    --dcip-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
    --dcip-shadow: 0 24px 60px -28px rgba(21, 19, 15, 0.35);
    --dcip-sticky-h: 0px;
}

body.dcip-site {
    background: #ffffff;
    color: var(--dcip-text);
    font-family: var(--dcip-font-body);
    overflow-x: clip;
}

body.dcip-site #magic-cursor {
    display: none;
}

/* Elementor-containers rond de secties: edge-to-edge, geen eigen ruimte. */
.elementor-widget[class*="elementor-widget-dc-ikodak-pipeline-"] {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.elementor-widget[class*="elementor-widget-dc-ikodak-pipeline-"] > .elementor-widget-container {
    margin: 0;
    padding: 0;
}

.dcip,
.dcip *,
.dcip *::before,
.dcip *::after {
    box-sizing: border-box;
}

.dcip {
    font-family: var(--dcip-font-body);
    font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
    line-height: 1.65;
    color: var(--dcip-text);
    -webkit-font-smoothing: antialiased;
}

.dcip :where(h1, h2, h3, h4) {
    font-family: var(--dcip-font-head);
    color: var(--dc-title);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.dcip :where(p) {
    font-family: var(--dcip-font-body);
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

.dcip :where(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dcip :where(a) {
    color: inherit;
    text-decoration: none;
}

.dcip :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
}

.dcip :where(button) {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.dcip :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--dc-accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.dcip-wrap {
    width: min(var(--dcip-max), 100% - 2 * var(--dcip-gutter));
    margin-inline: auto;
}

.dcip-section {
    padding-block: var(--dcip-section);
}

.dcip-icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.dcip-h2 {
    font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
}

.dcip-lead {
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    color: var(--dcip-muted);
    max-width: 62ch;
}

.dcip-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(36px, 5vw, 64px);
    max-width: 760px;
}

.dcip-head--center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.dcip-head--split {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: end;
    column-gap: clamp(24px, 5vw, 80px);
}

/* ------------------------------------------------------------------
   Eyebrow met eigen SVG-markering
------------------------------------------------------------------ */
.dcip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--dcip-font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dcip-primary-ink);
    --dcip-mark: var(--dcip-primary-deep);
}

.dcip-eyebrow--light {
    color: #f4efe6;
    --dcip-mark: var(--dc-primary);
}

.dcip-eyebrow__mark {
    width: min(2.3em, 30px);
    height: auto;
    flex: none;
    overflow: visible;
}

.dcip-eyebrow__mark path {
    stroke: var(--dcip-mark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dak en schoorsteen tekenen zichzelf */
.dcip-eyebrow__draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.dcip-js .dcip-eyebrow:not(.is-animated) .dcip-eyebrow__draw {
    stroke-dashoffset: 1;
}

.dcip-eyebrow.is-animated .dcip-eyebrow__roof {
    transition: stroke-dashoffset 700ms var(--dcip-ease) 120ms;
}

.dcip-eyebrow.is-animated .dcip-eyebrow__chimney {
    transition: stroke-dashoffset 380ms var(--dcip-ease) 640ms;
}

/* Pannen worden rij voor rij gelegd */
.dcip-eyebrow__mark .dcip-eyebrow__tile {
    stroke-width: 1.4;
    opacity: 0.85;
}

.dcip-js .dcip-eyebrow:not(.is-animated) .dcip-eyebrow__tile {
    opacity: 0;
    transform: translateY(-3px);
}

.dcip-eyebrow.is-animated .dcip-eyebrow__tile {
    transition:
        opacity 260ms var(--dcip-ease),
        transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(820ms + var(--i, 0) * 110ms);
}

/* Rookpluim uit de schoorsteen, rustig herhalend */
.dcip-eyebrow__mark .dcip-eyebrow__smoke {
    stroke-width: 1.4;
    opacity: 0;
}

.dcip-eyebrow.is-animated .dcip-eyebrow__smoke,
html:not(.dcip-js) .dcip-eyebrow__smoke {
    animation: dcip-eyebrow-smoke 3.6s ease-out 1.5s infinite;
}

@keyframes dcip-eyebrow-smoke {
    0% {
        opacity: 0;
        transform: translate(0, 1.5px);
    }

    30% {
        opacity: 0.75;
    }

    100% {
        opacity: 0;
        transform: translate(1px, -3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcip-eyebrow .dcip-eyebrow__smoke {
        animation: none !important;
    }
}

/* ------------------------------------------------------------------
   Knoppen: pill met ronde iconplek
------------------------------------------------------------------ */
.dcip-btn {
    --btn-bg: var(--dc-primary);
    --btn-fg: var(--dcip-ink);
    --btn-icon-bg: rgba(var(--dcip-ink-rgb), 0.12);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 24px 6px 6px;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--dcip-font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}

/* Smalle telefoons: lange labels ("Vraag vrijblijvend offerte aan") passen niet op één regel. */
@media (max-width: 379px) {
    .dcip-btn {
        white-space: normal;
    }
}

.dcip-btn:hover,
.dcip-btn:focus-visible {
    color: var(--btn-fg);
}

.dcip-btn__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--btn-icon-bg);
    flex: none;
}

.dcip-btn__icon .dcip-icon {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease-out;
}

.dcip-btn--dark {
    --btn-bg: var(--dcip-ink);
    --btn-fg: #ffffff;
    --btn-icon-bg: rgba(255, 255, 255, 0.14);
}

.dcip-btn--light {
    --btn-bg: #ffffff;
    --btn-fg: var(--dcip-ink);
    --btn-icon-bg: var(--dcip-sand-2);
}

.dcip-btn--ghost {
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-fg: #ffffff;
    --btn-icon-bg: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.dcip-btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--dcip-ink);
    --btn-icon-bg: var(--dcip-sand-2);
    box-shadow: inset 0 0 0 1.5px var(--dcip-line);
}

@media (hover: hover) {
    .dcip-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -14px rgba(var(--dc-primary-rgb), 0.9);
    }

    .dcip-btn:hover .dcip-btn__icon .dcip-icon {
        transform: translateX(3px);
    }
}

/* ------------------------------------------------------------------
   Reveal: IntersectionObserver zet .is-animated (ikodak-pipeline-base.js)
------------------------------------------------------------------ */
.dcip-js [data-dc-reveal]:not(.dcip-eyebrow) {
    transition: opacity 700ms var(--dcip-ease), transform 700ms var(--dcip-ease);
    transition-delay: var(--dcip-delay, 0ms);
}

.dcip-js [data-dc-reveal]:not(.is-animated):not(.dcip-eyebrow) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

/* ------------------------------------------------------------------
   Kaart (contact en footer): statisch tot de bezoeker klikt
------------------------------------------------------------------ */
.dcip-map {
    position: relative;
    overflow: hidden;
    border-radius: var(--dcip-radius);
    background: var(--dcip-sand);
    aspect-ratio: 16 / 10;
    isolation: isolate;
}

.dcip-map--small {
    aspect-ratio: 16 / 9;
    margin-top: 20px;
    max-width: 320px;
}

.dcip-map__art,
.dcip-map__art svg,
.dcip-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dcip-map__pin {
    position: absolute;
    left: 50%;
    top: 42%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    background: var(--dcip-ink);
    color: var(--dc-primary);
    box-shadow: 0 12px 24px -10px rgba(21, 19, 15, 0.6);
}

.dcip-map__pin .dcip-icon {
    transform: rotate(45deg);
}

.dcip-map__label {
    position: absolute;
    left: 50%;
    top: calc(42% + 34px);
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--dcip-ink);
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 20px -12px rgba(21, 19, 15, 0.45);
}

.dcip-map--small .dcip-map__label {
    display: none;
}

.dcip-map__load {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--dcip-ink);
    color: #ffffff;
    font-family: var(--dcip-font-head);
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 200ms ease-out;
}

@media (hover: hover) {
    .dcip-map__load:hover {
        transform: translateY(-2px);
    }
}

.dcip-map.is-loaded .dcip-map__art,
.dcip-map.is-loaded .dcip-map__load {
    display: none;
}

.dcip-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
