/* IAM Services thema
 * Alleen wat Elementor (gratis) niet zelf kan: hovers, decoratie, menu, tijdlijn, formulier.
 * Kleuren en lettertypen staan als globale stijlen in de Elementor kit.
 */

/* ---------- basis ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: #102038; font-family: Inter, system-ui, sans-serif; font-size: clamp(16px, 15.5px + 0.124vw, 17px); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: #0558BF; text-decoration: none; }
a:hover { color: #05427F; }
img { max-width: 100%; height: auto; }
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title { text-wrap: balance; }
.elementor-widget-text-editor p, .elementor-widget-heading p.elementor-heading-title { text-wrap: pretty; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Span koppen als blok, zodat de regelhoogte van de kop zelf telt */
.elementor-widget-heading span.elementor-heading-title { display: block; }
.elementor-widget-text-editor p { margin-top: 0; }
:focus-visible { outline: 2px solid #0B97FC; outline-offset: 2px; }
.iam-main:focus { outline: none; }

.iam-skiplink { position: absolute; left: 12px; top: -60px; z-index: 100; background: #052553; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.iam-skiplink:focus { top: 12px; color: #fff; }

.iam-anker { scroll-margin-top: 72px; }
.iam-max-720 { max-width: 720px !important; }
.iam-min0 { min-width: 0; }
.iam-breek .elementor-heading-title { overflow-wrap: anywhere; }

/* Bovenkop met streepje */
.iam-eyebrow .elementor-heading-title { display: flex; align-items: center; gap: 10px; }
.iam-eyebrow .elementor-heading-title::before { content: ""; width: 20px; height: 4px; border-radius: 2px; background: #0B97FC; flex-shrink: 0; }

/* Afbeeldingen met link: geen inline gat */
.elementor-widget-image a { display: block; }
.elementor-widget-image img { display: block; }

/* ---------- header ---------- */
.iam-site-header { position: sticky; top: 0; z-index: 50; }
.iam-header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.elementor-widget.iam-logo a { display: flex; padding: 4px 0; }
.elementor-widget.iam-logo img { height: clamp(28px, 24.1px + 0.99vw, 36px); width: auto !important; max-width: none; min-width: 120px; }
/* Smalle telefoons: logo past naast de twee knoppen, zonder horizontaal scrollen */
@media (max-width: 389px) {
	.iam-header .elementor-widget.iam-logo img { height: auto; width: calc(100vw - 160px) !important; max-width: 240px; }
}
.iam-nav-link .elementor-heading-title a { display: block; padding: 6px 0; transition: color .15s ease; }
.iam-nav-actief .elementor-heading-title a,
.iam-nav-actief .elementor-heading-title a:hover { color: #052553; box-shadow: inset 0 -3px 0 #0B97FC; }

.iam-alleen-smal { display: none !important; }
.iam-mobiel-menu { display: none !important; }
@media (max-width: 959px) {
	.iam-alleen-breed { display: none !important; }
	.iam-alleen-smal { display: flex !important; }
	.iam-menu-open .iam-mobiel-menu { display: flex !important; }
}
.iam-mobiel-menu { border-top: 1px solid #E4EBF4; }
.iam-mobiel-link .elementor-heading-title a { display: block; padding: 14px 0; border-bottom: 1px solid #EEF2F8; }
.iam-mobiel-knop { margin-top: 16px; }
.iam-mobiel-knop .elementor-button { width: 100%; justify-content: center; }

.iam-icoonknop .elementor-icon { width: 44px; height: 44px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; }
.iam-burger .elementor-icon { border: 1px solid #D9E2EE; }
.iam-burger .elementor-icon svg { width: 22px; height: 22px; }
.iam-icoonknop .elementor-icon svg { width: 20px; height: 20px; }
.iam-burger .elementor-icon svg { width: 22px; height: 22px; }

/* ---------- knoppen ---------- */
.iam-knop .elementor-button { display: inline-flex; align-items: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.iam-knop .elementor-button-content-wrapper { align-items: center; }
.iam-knop-20 .elementor-button-icon svg { width: 20px; height: 20px; }
.iam-knop-18 .elementor-button-icon svg { width: 18px; height: 18px; }
.iam-pijl-accent .elementor-button-icon { color: #0B97FC; }
.elementor-button-icon svg { fill: none !important; }
.elementor-icon svg { flex-shrink: 0; display: block; }
/* Iconen zonder extra regelruimte eronder */
.elementor-widget-icon .elementor-icon-wrapper { line-height: 0; }
.elementor-widget-icon .elementor-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: top; }

/* ---------- hero ---------- */
.e-con.iam-hero { overflow-x: clip; }
.e-con.iam-hero-tekst { max-width: 640px; min-width: 0; }
.iam-lead { max-width: 560px !important; }
.e-con.iam-hero-beeld { max-width: 560px; min-width: 0; margin: 0 auto; }
.elementor-widget.iam-hero-schema img { width: 121.4286% !important; max-width: none !important; height: auto; margin: -10.7143% -10.7143% -16.0714% -10.7143%; }
.elementor-widget.iam-hero-schema-mobiel { display: none; max-width: 368px; width: 100%; margin: 0 auto; }
.elementor-widget.iam-hero-schema-mobiel img { width: 112.5% !important; max-width: none !important; height: auto; margin: -6.25%; }
@media (max-width: 510px) {
	.elementor-widget.iam-hero-schema { display: none; }
	.elementor-widget.iam-hero-schema-mobiel { display: block; }
}
.elementor-widget.iam-partner-logo img { height: 32px; width: auto !important; max-width: none; }
.iam-scheiding { flex-shrink: 0; }

/* ---------- donkere secties ---------- */
/* Elementor gebruikt ::before van een container voor de overlay; die waarden zetten we hier terug. */
.e-con.iam-probleem::before, .e-con.iam-helloid::before, .e-con.iam-kaartkop::before, .e-con.iam-stappen::before, .e-con.iam-stap::before { border: 0; border-radius: 0; opacity: 1; mix-blend-mode: normal; transition: none; display: block; z-index: 0; left: auto; top: auto; width: auto; height: auto; }
.e-con.iam-probleem, .e-con.iam-helloid { position: relative; overflow: hidden; }
.iam-probleem > .e-con-inner, .iam-helloid > .e-con-inner { position: relative; z-index: 1; }
.e-con.iam-probleem::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 0% 0%, rgba(5,88,191,0.35) 0%, rgba(5,88,191,0) 70%), radial-gradient(45% 60% at 100% 100%, rgba(11,151,252,0.14) 0%, rgba(11,151,252,0) 70%); }
.e-con.iam-probleem::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.12) 1.2px, transparent 1.7px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%); mask-image: linear-gradient(100deg, transparent 30%, #000 100%); }
.e-con.iam-helloid::before { content: ""; position: absolute; right: -120px; top: -40px; width: 420px; height: calc(100% + 80px); pointer-events: none; clip-path: polygon(46% 0, 100% 0, 54% 100%, 0 100%); background: linear-gradient(165deg, rgba(11,151,252,0.16), rgba(11,151,252,0)); }

/* ---------- dienstkaarten ---------- */
.iam-kaart { box-shadow: 0 1px 2px rgba(5,37,83,0.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.iam-kaart:hover { transform: translateY(-4px); border-color: #B9CBE3 !important; box-shadow: 0 24px 48px rgba(5,37,83,0.10); }
@media (prefers-reduced-motion: reduce) { .iam-kaart, .iam-kaart:hover { transition: none; transform: none; } }
.iam-kaartkop { position: relative; }
.iam-kaartkop > .elementor-element { position: relative; z-index: 1; }
.e-con.iam-kaartkop::before, .e-con.iam-kaartkop::after { content: ""; position: absolute; width: 84px; clip-path: polygon(46% 0, 100% 0, 54% 100%, 0 100%); pointer-events: none; }
.e-con.iam-kaartkop::before { right: 28px; top: -8px; height: 136px; background: linear-gradient(165deg, #0563C4 0%, #0A8DF3 45%, #0B96FB 60%, #036CD4 100%); }
.e-con.iam-kaartkop::after { right: -12px; top: 10px; height: 118px; background: linear-gradient(160deg, #0A5A9E 0%, #053B73 60%, #042955 100%); }
.iam-icoon-schaduw .elementor-icon { box-shadow: 0 6px 16px rgba(5,37,83,0.08); }

.iam-kaartlink .elementor-button { width: 100%; border-top: 1px solid #E4EBF4 !important; white-space: normal; text-align: left; }
.iam-kaartlink .elementor-button-content-wrapper { justify-content: space-between; align-items: center; gap: 12px !important; }
.iam-kaartlink .elementor-button-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: #F3F7FC; flex-shrink: 0; }
.iam-kaartlink .elementor-button-icon svg { width: 18px; height: 18px; }

.iam-ook-item { transition: background-color .2s ease, border-color .2s ease; }
.iam-ook-item .elementor-icon svg { display: block; }

/* ---------- werkwijze tijdlijn ---------- */
.iam-stappen { position: relative; list-style: none; margin: 0; padding: 0; }
.e-con.iam-stappen::before { content: ""; position: absolute; left: 28px; right: calc(25% - 52px); top: 27px; height: 2px; background: linear-gradient(90deg, #B9CBE3 0%, #0558BF 70%, #0B97FC 100%); }
.iam-stap { position: relative; }
.iam-stap-icoon { position: relative; z-index: 1; }
.iam-stap-icoon .elementor-icon { box-shadow: 0 0 0 8px #F3F7FC; }
.iam-stap-icoon-laatst .elementor-icon { box-shadow: 0 0 0 8px rgba(11,151,252,0.18); }
.iam-stap-tekst { min-width: 0; }
@media (max-width: 959px) {
	.iam-stappen { --e-con-grid-template-columns: minmax(0, 1fr) !important; }
	.e-con.iam-stappen::before { display: none; }
	.iam-stap { --flex-direction: row !important; --gap: 20px !important; --row-gap: 20px !important; --column-gap: 20px !important; flex-direction: row !important; align-items: flex-start !important; }
	.iam-stap-tekst { flex: 1 1 0 !important; }
	.e-con.iam-stap::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: -32px; width: 2px; background: #B9CBE3; }
	.e-con.iam-stap-3::before { background: linear-gradient(180deg, #0558BF, #0B97FC); }
	.e-con.iam-stap-4::before { display: none; }
}

/* ---------- contact ---------- */
.e-con.iam-contact-intro { max-width: 480px; }
.iam-formulier-kaart { box-shadow: 0 12px 32px rgba(5,37,83,0.06); min-width: 0; }

.iam-form { font-family: Inter, system-ui, sans-serif; line-height: 1.6; }
.iam-form__form { display: flex; flex-direction: column; gap: 20px; }
.iam-form__form[hidden] { display: none; }
.iam-form__kop { display: flex; flex-direction: column; gap: 6px; }
.iam-form__titel { font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(21px, 19.6px + 0.37vw, 24px); line-height: 1.25; color: #052553; }
.iam-form__intro { font-size: 15px; color: #53647B; }
.iam-form__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.iam-form__veld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iam-form__label { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 14px; color: #052553; line-height: 1.6; }
.iam-form__optioneel { font-family: Inter, sans-serif; font-weight: 400; color: #53647B; }
.iam-form__input { width: 100%; font-family: Inter, sans-serif; font-size: 16px; line-height: normal; color: #102038; background: #fff; border: 1px solid #D9E2EE; border-radius: 10px; padding: 13px 14px; outline: none; margin: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.iam-form__input::placeholder { color: #7A8799; opacity: 1; }
.iam-form__input:focus { border-color: #0558BF; box-shadow: 0 0 0 3px rgba(5,88,191,0.15); }
.iam-form__textarea { resize: vertical; min-height: 132px; line-height: 1.5; display: block; }
.iam-form__input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180,35,24,0.12); }
.iam-form__fout { font-size: 14px; color: #B42318; line-height: 1.4; }
.iam-form__fout[hidden] { display: none; }
.iam-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.iam-form__voet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.iam-form__privacy { flex: 1 1 220px; font-size: 14px; color: #53647B; text-wrap: pretty; }
.iam-form__knop { display: flex; align-items: center; gap: 10px; background: #0558BF; color: #fff; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 16px; line-height: normal; padding: 15px 26px; border-radius: 10px; border: 0; cursor: pointer; transition: background-color .15s ease; }
.iam-form__knop:hover, .iam-form__knop:focus-visible { background: #05427F; color: #fff; }
.iam-form__knop svg { width: 18px; height: 18px; }
.iam-form__melding { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
.iam-form__melding[hidden] { display: none; }
.iam-form__melding:focus { outline: none; }
.iam-form__melding-icoon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #F3F7FC; color: #0B97FC; }
.iam-form__melding p { color: #102038; text-wrap: pretty; }
.iam-form__direct { display: flex; flex-direction: column; gap: 10px; }
.iam-form .iam-form__direct a { display: inline-flex; align-items: center; gap: 10px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(17px, 16px + 0.3vw, 20px); color: #052553; }
.iam-form .iam-form__direct a svg { color: #0558BF; }
.iam-form .iam-form__direct a:hover { color: #0558BF; }
.iam-form__terug { background: none; border: 0; padding: 8px 0; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 15px; color: #0558BF; cursor: pointer; }
.iam-form__terug:hover { color: #05427F; }

/* ---------- footer ---------- */
.e-con.iam-footer-merk { max-width: 380px; }
.iam-footer .elementor-heading-title a { transition: color .15s ease; }

/* ---------- juridische pagina's ---------- */
.iam-juridisch > .e-con-inner { max-width: 760px; }
.iam-prose p, .iam-prose ul, .iam-prose ol { margin: 0 0 1em; }
.iam-prose > :last-child, .iam-prose .elementor-widget-container > :last-child { margin-bottom: 0; }
.iam-prose ul, .iam-prose ol { padding-left: 1.25em; }
.iam-prose li { margin-bottom: .35em; }
.iam-prose a { text-decoration: underline; text-underline-offset: 2px; }

.iam-kruimelpad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: #53647B; }
.iam-kruimelpad li { display: inline-flex; align-items: center; gap: 8px; }
.iam-kruimelpad ol a { color: #53647B; }
.iam-kruimelpad ol a:hover { color: #0558BF; }
.iam-kruimelpad svg { color: #B9CBE3; }
.iam-kruimelpad [aria-current] { color: #052553; font-weight: 500; }

/* ---------- 404 en eenvoudige weergave ---------- */
.iam-404, .iam-eenvoudig { padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 48px); background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FC 100%); }
.iam-404__binnen, .iam-eenvoudig > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.iam-eenvoudig > * + * { margin-top: 20px; }
.iam-404__binnen { display: flex; flex-direction: column; gap: 20px; }
.iam-404__label { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #0558BF; }
.iam-404 h1, .iam-eenvoudig h1 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(32px, 26.2px + 1.48vw, 44px); line-height: 1.15; letter-spacing: -0.01em; color: #052553; text-wrap: balance; }
.iam-404 p { color: #53647B; }
.iam-404__knoppen { display: flex; flex-wrap: wrap; gap: 12px; }
.iam-404 a.iam-404__knop { display: inline-flex; align-items: center; background: #0558BF; color: #fff; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 16px; padding: 16px 26px; border-radius: 10px; }
.iam-404 a.iam-404__knop:hover { background: #05427F; color: #fff; }
.iam-404 a.iam-404__knop--rand { background: #fff; color: #0558BF; border: 1px solid #0558BF; padding: 15px 25px; }
.iam-404 a.iam-404__knop--rand:hover { background: #F3F7FC; color: #05427F; }

/* ---------- terugval zonder Elementor ---------- */
.iam-fallback-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(20px, 5vw, 48px); background: #fff; border-bottom: 1px solid #E4EBF4; }
.iam-fallback-header nav { display: flex; flex-wrap: wrap; gap: 20px; font-family: Montserrat, sans-serif; font-weight: 500; }
.iam-fallback-header nav a, .iam-fallback-header nav a:hover { color: #102038; }
.iam-fallback-logo img { height: 36px; width: auto; display: block; }
.iam-fallback-footer { background: #052553; color: #C3D1E6; padding: 40px clamp(20px, 5vw, 48px); font-size: 15px; }
.iam-fallback-footer p a { color: #C3D1E6; }

/* ---------- cookiemelding ---------- */
.iam-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.iam-cookie[hidden] { display: none; }
.iam-cookie__binnen { pointer-events: auto; max-width: 720px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border-radius: 16px; background: #052553; color: #C3D1E6; box-shadow: 0 16px 40px rgba(5,37,83,0.28); font-size: 15px; }
.iam-cookie__tekst { flex: 1 1 320px; }
.iam-cookie__tekst strong { color: #fff; font-family: Montserrat, sans-serif; font-weight: 600; display: block; margin-bottom: 4px; }
.iam-cookie .iam-cookie__tekst a { color: #8CC8FF; text-decoration: underline; }
.iam-cookie__knoppen { display: flex; gap: 10px; flex-wrap: wrap; }
.iam-cookie__knop { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 10px; border: 1px solid #0558BF; background: #0558BF; color: #fff; cursor: pointer; }
.iam-cookie__knop:hover { background: #05427F; border-color: #05427F; }
.iam-cookie__knop--weiger { background: transparent; border-color: rgba(255,255,255,0.3); }
.iam-cookie__knop--weiger:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
