/* ============================================================
   Homepage (index.html) — pagina-specifieke stijl
   Bouwt op het DESIGNSYSTEEM v2 in assets/css/style.css (tokens,
   .card, .btn, .status-note, .photo-slot). Alleen tokens voor maten.
   ============================================================ */

/* ── Iconen (Lucide-lijnstijl via <use href="#i-…">) ── */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* Sectiekoppen links uitgelijnd, met leesbare intro */
.home-head { margin-bottom: var(--space-l); }
.home-head p { max-width: 60ch; }

/* ── 1 · Hero: rustiger, direct leesbaar ──────────────────────── */
/* Tekst verschijnt zonder vertraging (LCP); alleen de labelkaart beweegt. */
.hero__badge, .hero__title, .hero__sub, .hero__actions, .hero__call { animation: none; }
.energy-visual { animation: none; }
.energy-grade__row.active .energy-grade__bar::before,
.energy-grade__row--target .energy-grade__bar::after { animation: none; display: none; }

.hero__inner { gap: var(--space-2xl); grid-template-columns: 1.25fr .75fr; }
.hero__title { font-size: var(--step-4); max-width: 24ch; margin-bottom: var(--space-m); text-wrap: balance; }
.hero__title em { display: block; margin-top: var(--space-2xs); font-size: .6em; line-height: 1.2; letter-spacing: -.015em; }
.hero__sub { font-size: var(--step-1); max-width: 52ch; margin-bottom: var(--space-m); }

/* Statusregel op de donkere hero: zelfde inhoud, donkere variant voor contrast */
.hero__status {
  background: rgba(14,124,176,.16);
  border-color: rgba(21,144,204,.45);
  color: rgba(255,255,255,.88);
  max-width: 58ch;
  margin-bottom: var(--space-l);
  line-height: 1.5;
}
.hero__status svg { color: #7CC7EA; }

.hero__actions .btn--outline { border-color: rgba(255,255,255,.45); }
.hero__call a { padding-block: .5rem; }

/* Labelkaart iets kleiner, zonder de losse stat-kaartjes */
.energy-label-card { max-width: 340px; }

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .hero__sub { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
  .energy-visual { align-items: flex-start; margin-inline: 0; }
}
@media (max-width: 768px) {
  /* Bellen en WhatsApp staan op mobiel al in de vaste actiebalk onderin */
  .hero__call { display: none; }
  .hero__sub { font-size: var(--step-0); }
  .hero__status { margin-bottom: var(--space-m); }
}

/* Mobiel: compacte kaart (± 230px hoog i.p.v. een heel scherm) */
@media (max-width: 768px) {
  .energy-visual { max-width: 340px; width: 100%; }
  .energy-label-card { padding: var(--space-s) var(--space-m); }
  .energy-label-card__title { margin-bottom: var(--space-xs); }
  .energy-grade { gap: 3px; margin-bottom: var(--space-xs); }
  .energy-grade__bar { height: 20px; font-size: .78rem; padding: 0 1.1rem 0 .55rem; }
  .energy-grade__row { gap: var(--space-xs); }
  .energy-grade__row .energy-grade__label { font-size: 0; }             /* omschrijvingen weg … */
  .energy-grade__row .energy-pill { font-size: .62rem; }               /* … alleen de pillen blijven */
  .energy-grade__row.active { transform: none; }
  .energy-label-card__footer { padding-top: var(--space-2xs); }
}

/* ── 2 · Vertrouwensrij ──────────────────────────────────────── */
.trust-row {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-m) 0;
}
.trust-row__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
}
.trust-row__list li {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: var(--step--1); color: var(--text-muted); line-height: 1.35;
}
.trust-row__list strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; display: block; }
.trust-row__list svg { color: var(--info); }
@media (max-width: 1100px) {
  .trust-row__list { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (max-width: 640px) {
  .trust-row__list { grid-template-columns: 1fr; gap: var(--space-xs); }
  .trust-row__list strong { display: inline; }
}

/* ── 3 · Keuzehulp: drie routes ──────────────────────────────── */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-m);
}
.route { display: flex; flex-direction: column; gap: var(--space-xs); }
.route p { font-size: var(--step--1); color: var(--text-muted); }
.route__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(46,125,79,.09); color: var(--action);
}
.route__title { font-size: var(--step-1); margin-top: var(--space-2xs); }
.route__advice {
  margin-top: auto; padding-top: var(--space-xs);
  border-top: 1px solid var(--border);
  color: var(--ink) !important; font-family: var(--font-head); font-weight: 600;
}
.route__advice span {
  display: block; font-size: var(--eyebrow); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; margin-bottom: 2px;
}
.route__status { font-size: var(--step--2) !important; display: inline-flex; align-items: center; gap: .4rem; }
.route__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.route__status--now::before { background: var(--action); }
.route__status--later::before { background: var(--info); }
.route__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.route__links .btn--link, .route__more { min-height: 44px; display: inline-flex; align-items: center; }
.route__more { font-size: var(--step--1); color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(90,100,120,.4); }
.route__more:hover { color: var(--ink); }

/* ── 4 · Diensten als rijen ──────────────────────────────────── */
.service-rows {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xs) var(--space-m);
  align-items: start;
  padding: var(--space-m) var(--space-l);
  transition: background-color 150ms ease;
}
.service-row + .service-row { border-top: 1px solid var(--border); }
.service-row:hover { background: #FAFBFC; }
.service-row__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--bg-muted); color: var(--ink);
}
.service-row__title { font-size: var(--step-1); margin-bottom: var(--space-3xs); hyphens: manual; }
.service-row__title a { color: var(--ink); }
/* Hele rij klikbaar (stretched link) */
.service-row__title a::after { content: ''; position: absolute; inset: 0; }
.service-row__title a:focus-visible { outline: none; }
.service-row:has(a:focus-visible) { outline: 3px solid var(--green-light); outline-offset: -3px; }
.service-row:hover .service-row__title a { color: var(--action); }
.service-row__body p { font-size: var(--step--1); color: var(--text-muted); max-width: 58ch; }
.service-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); text-align: right; white-space: nowrap; }
.service-row__price { font-size: var(--step--1); color: var(--text-muted); }
.service-row__price strong { font-family: var(--font-head); font-size: var(--step-1); color: var(--ink); font-variant-numeric: tabular-nums; }
.avail {
  font-size: var(--step--2); font-weight: 600; font-family: var(--font-head);
  border-radius: 100px; padding: .2rem .6rem; line-height: 1.4;
}
.avail--now { background: rgba(46,125,79,.1); color: #256B42; }
.avail--later { background: var(--info-bg); color: #0B5F88; }
.split__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.split__cta .btn--link { min-height: 44px; }

@media (max-width: 700px) {
  .service-row { grid-template-columns: auto 1fr; padding: var(--space-m); }
  .service-row__meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: var(--space-xs); white-space: normal; }
}

/* ── 5 · Prijsindicatie ──────────────────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
}
.calc-intro p { color: var(--text-muted); margin-bottom: var(--space-m); }
.calc-extras { list-style: none; display: grid; gap: var(--space-2xs); font-size: var(--step--1); color: var(--text-muted); }
.calc-extras li { padding-left: 1.1rem; position: relative; }
.calc-extras li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.calc-extras a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }

.calc { box-shadow: var(--shadow); display: grid; gap: var(--space-s); }
.calc__field { border: 0; min-width: 0; }
.calc__label { display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--step--1); color: var(--ink); margin-bottom: var(--space-2xs); }
.calc__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2xs); }
.calc__seg label { position: relative; }
.calc__seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc__seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .4rem .5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: var(--step--1); line-height: 1.2;
  color: var(--ink); background: var(--surface); cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.calc__seg input:checked + span { border-color: var(--action); background: rgba(46,125,79,.08); color: #1F5C39; }
.calc__seg input:focus-visible + span { outline: 3px solid var(--green-light); outline-offset: 2px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.calc select, .calc input[type="text"] {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-family: var(--font-body);
}
.calc select:focus-visible, .calc input[type="text"]:focus-visible { outline: 3px solid var(--green-light); outline-offset: 1px; border-color: var(--action); }
.calc__unit { position: relative; }
.calc__unit input { padding-right: 2.75rem; font-variant-numeric: tabular-nums; }
.calc__unit span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.calc__hint { font-size: var(--step--2); color: var(--text-muted); margin-top: calc(-1 * var(--space-2xs)); }

.calc__result {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: var(--space-s) var(--space-m);
}
.calc__price { display: flex; align-items: baseline; gap: var(--space-2xs); flex-wrap: wrap; }
.calc__amount { font-family: var(--font-head); font-weight: 700; font-size: var(--step-3); color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.calc__btw { font-size: var(--step--2); color: var(--text-muted); }
.calc__breakdown { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--space-3xs); }
.calc__note { font-size: var(--step--2); color: #0B5F88; margin-top: var(--space-2xs); }
.calc__cta { justify-content: center; width: 100%; }
.calc__small { font-size: var(--step--2); color: var(--text-muted); text-align: center; }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
}
@media (max-width: 420px) {
  .calc__row { grid-template-columns: 1fr; }
  .calc__seg span { font-size: var(--step--2); white-space: nowrap; padding-inline: .25rem; }
}

/* ── 6 · Uw adviseur ─────────────────────────────────────────── */
.advisor-split {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}
.advisor-split__photo { width: 100%; }
.advisor-split__body p { color: var(--text-muted); margin-bottom: var(--space-s); }
.advisor-split__body .lead { color: var(--ink); }
.advisor-facts { list-style: none; display: grid; gap: var(--space-2xs); margin: var(--space-m) 0; font-size: var(--step--1); }
.advisor-facts li { display: flex; align-items: center; gap: var(--space-xs); color: var(--ink); }
.advisor-facts svg { color: var(--info); }
.advisor-split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); }
.advisor-split__actions .btn--link { min-height: 44px; }
@media (max-width: 760px) {
  .advisor-split { grid-template-columns: 1fr; gap: var(--space-l); }
  .advisor-split__photo { max-width: 240px; }
}

/* ── 7 · Werkwijze: drie stappen op een donkere band ────────── */
.section--dark .home-head p { color: rgba(255,255,255,.72); }
.steps-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
  counter-reset: none;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: var(--space-l);
}
.steps-row__num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(110,231,160,.55); color: var(--green-badge);
  font-family: var(--font-head); font-weight: 700; margin-bottom: var(--space-s);
}
.steps-row__item h3 { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.steps-row__item p { color: rgba(255,255,255,.75); font-size: var(--step--1); }
.steps-foot { margin-top: var(--space-xl); display: grid; gap: var(--space-m); justify-items: start; max-width: 72ch; }
.steps-foot__prep { color: rgba(255,255,255,.75); font-size: var(--step--1); }
.steps-foot__prep strong { color: #fff; }
.section--dark .status-note { background: rgba(14,124,176,.16); border-color: rgba(21,144,204,.45); color: rgba(255,255,255,.88); }
.section--dark .status-note svg { color: #7CC7EA; }
@media (max-width: 800px) {
  .steps-row { grid-template-columns: 1fr; gap: var(--space-m); }
  .steps-row__item { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--space-s); }
  .steps-row__num { grid-row: span 2; margin-bottom: 0; }
}

/* ── 8 · FAQ + kennisbank ────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); }
.faq-trigger { font-size: var(--step-0); min-height: 56px; }
.faq-body p { font-size: var(--step--1); }
.faq-body a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.kb-links {
  margin-top: var(--space-l);
  padding: var(--space-m);
  border-radius: var(--radius);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
}
.kb-links__title { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--step--1); margin-bottom: var(--space-2xs); color: var(--ink); }
.kb-links__title svg { color: var(--info); }
.kb-links ul { list-style: none; }
.kb-links a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: var(--step--1); text-decoration: underline;
  text-decoration-color: rgba(14,124,176,.45); text-underline-offset: 3px;
}
.kb-links li + li a { border-top: 1px solid var(--info-border); }
.kb-links a:hover { color: var(--info); }
@media (max-width: 900px) {
  /* Mobiel: kennisbank-links ná de vragen */
  .faq-split .split__aside { display: contents; }
  .faq-split .section-header { order: 1; }
  .faq-split .split__main { order: 2; }
  .faq-split .kb-links { order: 3; margin-top: 0; }
  /* Sectiekoppen overal links, zoals de rest van de pagina */
  .split .section-header { text-align: left; }
  .split .section-header p { margin-inline: 0; }
  .split__cta { justify-content: flex-start; }
}

/* ── 9 · Werkgebied: compact, links tekst en rechts plaatsen ── */
.regio-split {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.regio-split h2 { margin-bottom: var(--space-2xs); }
.regio-split .regio-intro { margin: 0; }
.regio-split .regio-lijst { justify-content: flex-start; margin: 0; }
.regio-chip svg { color: var(--action); }
@media (max-width: 900px) {
  .regio-split { grid-template-columns: 1fr; gap: var(--space-m); }
}

/* Slot-CTA: meta-regel leesbaar */
.cta-banner__meta { font-size: var(--step--2); color: rgba(255,255,255,.72); margin-top: var(--space-m); margin-bottom: 0 !important; }

/* Beweging uit bij voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  .service-row, .calc__seg span { transition: none; }
}

/* 320px: rekenhulp-kolommen mogen smaller worden dan hun inhoud */
.calc-layout > * { min-width: 0; }
@media (max-width: 480px) { .calc__seg { grid-template-columns: minmax(0, 1fr); } .calc__seg > * { min-width: 0; } .calc { min-width: 0; grid-template-columns: minmax(0, 1fr); } }
