/* ===== Basis ===== */
:root {
  --primary: #0f3d3e;
  --primary-2: #145c5e;
  --accent: #f28c28;
  --accent-dark: #d9741a;
  --ink: #1c2526;
  --muted: #5b6b6c;
  --line: #e2e8e8;
  --tint: #f3f7f6;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 61, 62, .12);
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 72px; /* ruimte voor mobiele belbalk */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.eyebrow.dark { color: var(--primary-2); }

/* ===== Knoppen ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(242, 140, 40, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef5f4; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-block; margin-top: .75rem; }
.link-arrow:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--primary); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: var(--accent); }
.logo-text { font-weight: 800; font-size: 1.1rem; line-height: 1.05; display: flex; flex-direction: column; }
.logo-text small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.main-nav { display: none; gap: 1.6rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--primary-2); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.btn-phone { display: none; }
.header-actions .btn-accent { padding: .55rem 1rem; font-size: .92rem; white-space: nowrap; display: none; }
.menu-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: .5rem 16px 1rem; background: #fff; }
.mobile-menu a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ===== Hero ===== */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d7a7c 0%, transparent 60%), var(--primary); color: #fff; padding: 2.25rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; }
.hero .lead { font-size: 1.1rem; color: #d7e7e6; max-width: 34rem; }
.hero .lead strong { color: #fff; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .45rem; color: #e8f1f0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; margin-top: .2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero .link-arrow { color: #fff; margin-top: 0; }

/* ===== Terugbelkaart ===== */
.callback-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.5rem 1.25rem; box-shadow: var(--shadow); border-top: 6px solid var(--accent); }
.callback-card h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.callback-card.highlight { animation: pulse 1.2s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,140,40,.7); } 100% { box-shadow: 0 0 0 18px rgba(242,140,40,0); } }

/* ===== Formulieren ===== */
.field { margin-bottom: .9rem; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 16px; /* voorkomt zoom op iOS */
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(20,92,94,.15); }
.field input.invalid { border-color: #c0392b; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .25rem 0 1rem; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary-2); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: .75rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1e7d4f; }
.form-status.error { color: #c0392b; }
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: #e3f5ec; color: #1e7d4f; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }

/* ===== Secties ===== */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 2rem; }

.cards { display: grid; gap: 1rem; }
.card { display: block; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon { font-size: 1.8rem; display: block; margin-bottom: .5rem; }

/* ===== Rekenmodule ===== */
.calc { display: grid; gap: 1rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.calc-form { padding: 1.5rem 1.25rem .5rem; }
.input-affix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.input-affix span { padding: 0 .9rem; color: var(--muted); font-weight: 600; }
.input-affix input { border: 0 !important; padding-left: 0 !important; box-shadow: none !important; }
.input-affix:focus-within { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(20,92,94,.15); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
output { color: var(--primary-2); font-weight: 800; }
.calc-result { background: var(--primary); color: #fff; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; }
.calc-result .muted { color: #b9d2d1; }
.calc-amount { font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 800; margin: 0 0 .5rem; letter-spacing: -.02em; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0 0 1rem; }
.calc-breakdown div { background: rgba(255,255,255,.08); border-radius: 10px; padding: .6rem .8rem; }
.calc-breakdown dt { font-size: .8rem; color: #b9d2d1; }
.calc-breakdown dd { margin: 0; font-weight: 700; }
.calc-result .link-arrow { color: #fff; text-align: center; }

.calc-embed { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 1rem; margin-bottom: 2rem; }
.calc-embed iframe { width: 100%; border: 0; min-height: 600px; display: block; }
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Stappen ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps li { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.5rem; background: var(--tint); border-radius: var(--radius); }
.steps li span { position: absolute; left: 1.25rem; top: 1.25rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps p { margin: 0; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; padding: 2.5rem 0; }
.cta-inner { display: grid; gap: 1.25rem; }
.cta-inner p { color: #cfe3e2; margin: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-buttons .btn { flex: 1 1 200px; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; flex-direction: column; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-box { background: var(--tint); border-radius: 20px; padding: 1.75rem 1.5rem; align-self: start; border-left: 6px solid var(--accent); }

/* ===== Footer ===== */
.site-footer { background: #0a2b2c; color: #b9d2d1; padding: 2.5rem 0; font-size: .92rem; }
.site-footer strong { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer a { color: #e8f1f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== Mobiele belbalk ===== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 2fr; gap: .5rem;
  padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  transition: transform .25s;
}
.mobile-bar.hide { transform: translateY(110%); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.mb-call { background: var(--tint); color: var(--primary); }
.mb-callback { background: var(--accent); color: #fff; }

/* ===== Subpagina's ===== */
.page-hero { background: var(--primary); color: #fff; padding: 2.5rem 0; }
.page-hero p { color: #cfe3e2; max-width: 40rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; }
.placeholder { background: #fff8ec; border: 2px dashed var(--accent); border-radius: 12px; padding: 1rem 1.25rem; color: #7a4a12; }

/* ===== Tablet ===== */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .btn-phone { display: inline-flex; }
  .header-actions .btn-accent { display: inline-flex; }
}

/* ===== Desktop ===== */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  :root { --header-h: 76px; }
  .mobile-bar, .menu-toggle, .mobile-menu { display: none !important; }
  .main-nav { display: flex; }
  .header-actions .btn-accent { padding: .7rem 1.3rem; font-size: 1rem; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; }
  .callback-card { padding: 2rem; }
  .section { padding: 5rem 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 4rem 1.25rem 1.5rem; }
  .calc { grid-template-columns: 1.2fr .8fr; }
  .calc-form { padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; align-content: start; }
  .calc-form .field:first-child, .calc-form .field:nth-child(2) { grid-column: 1 / -1; }
  .calc-result { padding: 2rem; justify-content: center; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .cta-buttons .btn { flex: none; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
@media (min-width: 960px) and (max-width: 1100px) { .btn-phone span { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
