/* ============================================================
   Productpagina IFC Data Enrichment (prefix ie-)
   ============================================================ */

/* --- Productnavigatie (sticky onder de banner) --- */
.ie-subnav {
    position: sticky; top: var(--banner-h); z-index: 30;
    background: var(--navy-2); border-bottom: 1px solid var(--navy-line); color: var(--on-dark);
}
.ie-subnav__inner {
    max-width: var(--wrap); margin: 0 auto;
    display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
    gap: 12px clamp(20px, 3vw, 32px);
    padding: 10px var(--gutter);
    overflow-x: auto; scrollbar-width: none;
}
.ie-subnav__inner::-webkit-scrollbar { display: none; }
.ie-subnav__left { flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 16px clamp(20px, 3vw, 32px); white-space: nowrap; }
.ie-subnav__name { font: 600 clamp(16px, 2vw, 18px) var(--font-display); }
.ie-subnav__links { display: flex; flex-wrap: nowrap; gap: 12px clamp(16px, 2.2vw, 24px); font-size: 14px; color: var(--on-dark-2); }
.ie-subnav__cta {
    flex: none; white-space: nowrap;
    padding: 9px 16px; border-radius: 10px;
    background: var(--orange); color: var(--navy);
    font-size: clamp(14px, 1.7vw, 15px); font-weight: 600;
}

/* Het ontwerp gebruikt de standaardregelhoogte; afwijkende waarden staan per element */
.ie-subnav, .ie-hero, .ie-data, .ie-flow, .ie-who, .ie-offer { line-height: normal; }

/* Ankers vallen onder banner + productnavigatie (samen ±134px) */
.ie-data, .ie-flow, .ie-who, .ie-demo { scroll-margin-top: var(--sticky-h); }

/* --- Hero ------------------------------------------------------------ */
.ie-hero { background: var(--navy); color: var(--on-dark); }
.ie-hero__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(28px, 4vw, 56px); align-items: center;
    padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(52px, 8.5vw, 104px);
}
.ie-hero__copy { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); animation: rise .8s ease-out both; }
.ie-hero__meta { font: 400 14px var(--font-mono); color: var(--on-dark-3); }

/* Voorbeeldkaart: een IfcDoor die stap voor stap wordt aangevuld */
.ie-card {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
    padding: clamp(16px, 2.6vw, 28px);
    background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 20px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
    animation: rise 1s .15s ease-out both;
}
.ie-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.ie-card__title { font: 600 clamp(18px, 2.4vw, 22px) var(--font-display); }
.ie-card__guid { font: 400 13px var(--font-mono); color: var(--on-dark-3); }
.ie-card__script {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
    padding-bottom: 4px; border-bottom: 1px solid var(--navy-line);
    font: 400 13px/1.32 var(--font-mono); /* vaste regelhoogte: "✓" valt terug op een ander font */
}
.ie-card__file { color: var(--blue-pale); }
.ie-card__phase { height: 1.32em; color: var(--orange); }
.ie-card__note { font-size: 13px; font-style: italic; color: var(--on-dark-3); }

.ie-prop {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: center;
    padding: 9px 12px; border-radius: 8px;
    background: transparent; transition: background-color .4s;
}
.ie-prop.is-current { background: #1c3a6b; }
.ie-prop__key { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ie-prop__set { font: 400 12px var(--font-mono); color: var(--on-dark-3); overflow-wrap: anywhere; }
.ie-prop__name { font-size: clamp(14px, 1.7vw, 15px); color: var(--on-dark-4); overflow-wrap: anywhere; }
.ie-prop__value {
    font: 500 clamp(13px, 1.6vw, 15px) var(--font-mono); text-align: right; overflow-wrap: anywhere;
    color: var(--text-3); transition: color .4s;
}
.ie-prop.is-done .ie-prop__value { color: var(--orange); }

.ie-ids {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--navy-line); transition: border-color .4s;
}
.ie-ids__label { font: 500 14px var(--font-mono); color: var(--on-dark-2); }
.ie-ids__value { height: 1.32em; font: 600 14px/1.32 var(--font-mono); color: var(--on-dark-3); text-align: right; transition: color .4s; }
.ie-ids.is-ok { border-color: var(--orange); }
.ie-ids.is-ok .ie-ids__value { color: var(--orange); }

/* --- 01 Wat we toevoegen --------------------------------------------- */
.ie-data {
    display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px);
    padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.ie-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px clamp(28px, 4vw, 48px); }
.ie-head__copy { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.ie-head__intro { font-size: clamp(16px, 2vw, 18px); line-height: 1.55; color: var(--text-2); max-width: 400px; text-wrap: pretty; }
.ie-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ie-feature {
    display: flex; flex-direction: column; gap: 10px;
    padding: clamp(18px, 2.4vw, 24px);
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.ie-feature__title { font: 600 clamp(17px, 2.2vw, 20px) var(--font-display); }
.ie-feature__text { color: var(--text-2); line-height: 1.5; }
.ie-feature__code { font: 400 13px var(--font-mono); color: var(--blue-dark); overflow-wrap: anywhere; }

/* --- 02 Hoe het werkt -------------------------------------------------- */
.ie-flow { background: var(--navy); color: var(--on-dark); }
.ie-flow__inner {
    display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px);
    padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.ie-flow__head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
/* Vier kaarten op één rij; onder 820px containerbreedte onder elkaar */
.ie-steps { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ie-step {
    flex: 1 1 calc((820px - 100%) * 999); min-width: 0;
    display: flex; flex-direction: column; gap: 12px;
    padding: clamp(18px, 2.4vw, 24px); border-radius: 16px;
}
.ie-step__label { font: 500 14px var(--font-mono); }
.ie-step__title { font: 600 clamp(18px, 2.4vw, 22px) var(--font-display); }
.ie-step__text { line-height: 1.5; }
.ie-step__list { display: flex; flex-direction: column; gap: 6px; color: var(--on-dark-4); font-size: clamp(14px, 1.7vw, 15px); }
.ie-step--dark { background: var(--navy-2); border: 1px solid var(--navy-line); }
.ie-step--dark .ie-step__label { color: var(--orange); }
.ie-step--dark .ie-step__text { color: var(--on-dark-4); }
.ie-step--blue { background: var(--blue); }
.ie-step--blue .ie-step__label { color: var(--orange-soft); }
.ie-step--blue .ie-step__text { color: #e4eefa; }
.ie-step--light { background: var(--bg); color: var(--navy); }
.ie-step--light .ie-step__label { color: var(--blue-dark); }
.ie-step--light .ie-step__text { color: var(--text-2); }

/* --- 03 Voor wie -------------------------------------------------------- */
.ie-who { background: var(--blue); color: var(--on-dark); }
.ie-who__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(32px, 5vw, 64px);
    padding-top: clamp(52px, 8.5vw, 104px); padding-bottom: clamp(52px, 8.5vw, 104px);
}
.ie-who__copy { display: flex; flex-direction: column; gap: 18px; }
.ie-who__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ie-who__chip { padding: 8px 14px; border: 1px solid #9cc4ef; border-radius: 999px; }
.ie-who__uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(20px, 2.6vw, 28px); }
.ie-use { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid #5b9be0; }
.ie-use__title { font: 600 clamp(18px, 2.4vw, 22px) var(--font-display); }
.ie-use__text { color: #e4eefa; line-height: 1.5; }

/* --- Dienst / scripts + demo ------------------------------------------- */
.ie-offer {
    display: flex; flex-direction: column; gap: 20px;
    padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.ie-kicker-sm { font-size: 14px; }
.ie-offer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.ie-offer__card {
    display: flex; flex-direction: column; gap: 10px;
    padding: clamp(22px, 3vw, 32px);
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
.ie-offer__text { color: var(--text-2); line-height: 1.5; }

.ie-demo {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(24px, 4vw, 56px); border-radius: 20px;
    background: var(--navy); color: var(--on-dark);
}
.ie-demo__copy { display: flex; flex-direction: column; gap: 18px; }
.ie-demo__title { font: 600 clamp(26px, 4.2vw, 42px)/1.08 var(--font-display); text-wrap: balance; }
.ie-demo__list { display: flex; flex-direction: column; gap: 12px; color: var(--on-dark-2); font-size: clamp(15px, 1.8vw, 16px); }
.ie-demo__list div { display: flex; align-items: center; gap: 12px; }
.ie-demo__list div::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--orange); }
.ie-demo__contact { margin-top: auto; font-size: 14px; color: var(--on-dark-3); }
.ie-demo__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ie-demo__form { gap: 12px; }
.ie-demo__submit { min-height: 0; padding: 16px; font-size: clamp(15px, 1.9vw, 17px); }
.ie-demo__note { font-size: 14px; color: var(--on-dark-3); text-align: center; }
