/* ThuisVolt — shared styles for /laadpaal-installeren/, /zekeringskast-installeren/ and future service pages (extends styles.css) */

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  background: var(--offwhite);
  border-bottom: 1px solid rgba(23,24,26,0.06);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-muted);
}
.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--bordeaux); }
.breadcrumbs li[aria-current="page"] { color: var(--bordeaux); font-weight: 600; }

/* ─── Hero (service variant) ─── */
.hero-service-grid {
  padding-top: 48px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero-service .lead { max-width: 48ch; }
.hero-photo-frame-wide { max-width: 480px; width: 100%; }

.hero-service-photo-background {
  background:
    linear-gradient(90deg, rgba(13,12,14,0.96) 0%, rgba(39,10,20,0.88) 40%, rgba(39,10,20,0.38) 68%, rgba(13,12,14,0.18) 100%),
    url('/images/laadpaal-hero-installateur-v2.webp') 62% center / cover no-repeat;
}
.hero-service-photo-background .hero-service-grid {
  grid-template-columns: minmax(0, 620px);
  min-height: 620px;
}
.hero-service-photo-background .hero-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.36);
}

/* Cutout photos (transparent PNG, no background): no card frame, no shadow, no gradient overlay */
.hero-photo-frame-cutout {
  box-shadow: none;
  overflow: visible;
}
.hero-photo-frame-cutout::after { display: none; }

/* When the hero uses a cutout photo, size it larger and let the section end at the photo's feet (no extra dark space below).
   The image aligns to the bottom of the row; the (shorter) text column top-aligns instead of centering, so it starts
   near the top of the row instead of floating in a sea of empty space above it. */
.hero-service:has(.hero-photo-frame-cutout) .hero-service-grid {
  padding-bottom: 0;
}
.hero-service:has(.hero-photo-frame-cutout) .hero-copy {
  align-self: flex-start;
}
.hero-service:has(.hero-photo-frame-cutout) .hero-visual {
  align-self: flex-end;
}
.hero-service:has(.hero-photo-frame-cutout) .hero-photo-frame-wide {
  max-width: 560px;
}

/* Landscape cutouts (e.g. a car) are much shorter relative to their width than the portrait
   person cutouts, so at the same max-width they leave the whole hero feeling cramped/short.
   Give them more width (still fluid, capped by max-width, so it never overflows on narrow
   screens), give the image column more of the grid's fr-share so it has room to actually use
   that width, and give the row a minimum height for breathing room above/below both columns.
   (Selector matches the specificity of the 560px rule above so it wins on source order.) */
.hero-service:has(.hero-photo-frame-cutout) .hero-photo-frame-wide.hero-photo-frame-landscape {
  max-width: 980px;
}
@media (min-width: 860px) {
  .hero-service:has(.hero-photo-frame-landscape) .hero-service-grid {
    grid-template-columns: 0.6fr 1.4fr;
    min-height: 780px;
  }
}

.trust-note {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
}

@media (min-width: 860px) {
  .hero-service-grid { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; }
  .hero-service-photo-background .hero-service-grid {
    grid-template-columns: minmax(0, 620px);
  }
}

@media (max-width: 859px) {
  .hero-service-photo-background {
    background-position: 68% center;
    background-image:
      linear-gradient(90deg, rgba(13,12,14,0.94) 0%, rgba(39,10,20,0.82) 64%, rgba(13,12,14,0.46) 100%),
      url('/images/laadpaal-hero-installateur-v2.webp');
  }
  .hero-service-photo-background .hero-service-grid {
    min-height: 650px;
  }
}

/* ─── Trust points floating card ─── */
.trust-points { margin-top: -56px; position: relative; z-index: 2; padding: 0; }
.trust-points-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  text-align: center;
}
.trust-point .tp-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(122,24,50,0.08);
  color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.trust-point .tp-title { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.trust-point p { font-size: 13.5px; color: var(--text-muted); }

@media (min-width: 700px) {
  .trust-points-card { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Layout: main content + sticky offerte sidebar ─── */
.content-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-top: 76px;
  align-items: start;
}
.content-main { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
/* Direct child sections already get spacing from the flex gap above; the site-wide
   "section { padding: 68px 0 }" default would otherwise stack on top of it, doubling
   the gap between every block (as already worked around for .faq-service below). */
.content-main > section { padding: 0; }

/* Prevent shared section padding and separate margins from stacking into large gaps. */
.service-sections-compact {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 48px;
}
.service-sections-compact > section {
  padding: 0;
  margin: 0;
}

@media (max-width: 639px) {
  .service-sections-compact {
    gap: 38px;
    padding-top: 38px;
  }
}

@media (min-width: 980px) {
  .content-columns { grid-template-columns: 1.7fr 0.85fr; }
  .content-side {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ─── Section heading helpers ─── */
.content-main section > .eyebrow-small,
.loadbalancing-copy > .eyebrow-small { display: block; margin-bottom: 8px; }
.content-main section > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--anthracite); margin-bottom: 20px; }

/* ─── Benefits (list + image split) ─── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.benefits-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text);
}
.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(122,24,50,0.1);
  border: 1.5px solid var(--bordeaux);
}
.benefits-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--bordeaux);
  border-bottom: 2px solid var(--bordeaux);
  transform: rotate(-45deg);
}
.benefits-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ─── Inline link card (blog aanbeveling) ─── */
.inline-link-card {
  background: var(--offwhite);
  border: 1px solid rgba(23,24,26,0.07);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inline-link-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.inline-link-card p { font-size: 14px; color: var(--text-muted); }
.inline-link-card .btn { align-self: flex-start; }

/* Laat de volledige artikelverwijzing werken als link, niet alleen de knoptekst. */
.inline-link-card-clickable {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.inline-link-card-clickable:hover {
  border-color: var(--bordeaux);
  box-shadow: 0 8px 20px -14px rgba(23,24,26,0.2);
  transform: translateY(-2px);
}
.inline-link-card-clickable:hover .btn {
  background: var(--bordeaux);
  color: var(--white);
}

.inline-link-card-accent {
  background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  border: none;
  color: var(--white);
}
.inline-link-card-accent p { color: rgba(255,255,255,0.8); }

@media (min-width: 640px) {
  .inline-link-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}

/* ─── Kennisbank cards (2-up variant of inline-link-card) ─── */
.kennisbank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.kennisbank-card {
  background: var(--offwhite);
  border: 1px solid rgba(23,24,26,0.07);
  border-radius: var(--radius);
  padding: 22px;
}
.kennisbank-card .kb-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(122,24,50,0.08);
  color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.kennisbank-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.kennisbank-card a { font-size: 13.5px; font-weight: 700; color: var(--bordeaux); text-decoration: none; }
.kennisbank-card a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .kennisbank-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Article cards (photo + title + text + link, e.g. kennisbank teasers) ─── */
.article-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.article-card {
  background: var(--offwhite);
  border: 1px solid rgba(23,24,26,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card .image-placeholder { border-radius: 0; }
.article-card .card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.article-card-body { padding: 20px; }
.article-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.article-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }
.article-card a { font-size: 13.5px; font-weight: 700; color: var(--bordeaux); text-decoration: none; }
.article-card a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .article-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Reason cards (2x2 icon-card grid, e.g. "wanneer is X nodig") ─── */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.reason-card {
  background: var(--offwhite);
  border: 1px solid rgba(23,24,26,0.07);
  border-radius: var(--radius);
  padding: 20px;
}
.reason-card .rc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(122,24,50,0.08);
  color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.reason-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.reason-card p { font-size: 13.5px; color: var(--text-muted); }

@media (min-width: 560px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Icon feature row (4-up icon + title + text, no card chrome) ─── */
.icon-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.icon-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.icon-feature .if-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(201,160,43,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.icon-feature h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.icon-feature p { font-size: 13px; color: var(--text-muted); }

@media (min-width: 700px) {
  .icon-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Process (alt, service page) ─── */
.process-alt-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}
.process-alt-steps li { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.process-alt-steps li:nth-child(even) .step-num {
  background: var(--gold);
  color: var(--anthracite);
}
.process-alt-steps h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.process-alt-steps p { font-size: 14px; color: var(--text-muted); }

@media (min-width: 640px) {
  .process-alt-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Load balancing (media split: image + copy + checklist) ─── */
.loadbalancing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
.loadbalancing-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.loadbalancing-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.loadbalancing-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text);
}
.loadbalancing-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--bordeaux);
  font-weight: 800;
  font-size: 13px;
}

@media (min-width: 640px) {
  .loadbalancing { grid-template-columns: 0.9fr 1.1fr; }
}

/* ─── Waarom ThuisVolt (alt, bullet list variant) ─── */
.why-alt-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.why-alt-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text);
}
.why-alt-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ─── FAQ grid on service page ─── */
.faq-service { background: transparent; padding: 0; }
.faq-list-grid { max-width: none; margin: 0; }
@media (min-width: 700px) {
  .faq-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ─── FAQ with side photo (single-column list + image) ─── */
.faq-with-photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}
.faq-with-photo .faq-list { max-width: none; }
.faq-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  .faq-with-photo { grid-template-columns: 1.1fr 0.9fr; }
}

/* ─── Image placeholder (pending real asset) ─── */
.image-placeholder {
  width: 100%;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  border-radius: var(--radius);
  border: 1.5px dashed rgba(255,255,255,0.35);
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}
.image-placeholder.on-light {
  border-color: rgba(23,24,26,0.18);
  background: rgba(23,24,26,0.03);
  color: var(--text-muted);
}

/* ─── Offerte form (sidebar) ─── */
.quote-form-card {
  background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.quote-form-card h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.quote-form-card > p { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.8); margin-bottom: 14px; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-step-indicator {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.form-step {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-step-actions {
  display: flex;
  gap: 10px;
}
.form-step-actions .form-back { flex: none; padding: 10px 16px; font-size: 13.5px; }
.form-step-actions .form-submit { flex: 1; }

.form-back {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.form-back:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.form-row { margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-row label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.96);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; }

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 10px;
  min-width: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
  margin: 10px 0 12px;
}
.consent-row input { margin-top: 2px; }
.consent-row a { color: var(--gold-light); text-decoration: underline; }

.form-submit {
  width: 100%;
  padding: 10px 20px;
  font-size: 13.5px;
}

.form-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

.form-status {
  min-height: 16px;
  font-size: 12px;
  margin-top: 8px;
  color: var(--gold-light);
}

.form-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.form-call {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.form-call a { color: var(--white); font-weight: 700; text-decoration: none; }

/* ─── Final CTA ─── */
.final-cta {
  background: linear-gradient(160deg, var(--anthracite) 0%, var(--bordeaux-darker) 70%, var(--bordeaux-dark) 100%);
  color: var(--white);
  margin-top: 52px;
}
.final-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.final-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.final-cta-inner p { color: rgba(255,255,255,0.75); }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 760px) {
  .final-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── Footer (4-column variant) ─── */
.footer-grid-wide { grid-template-columns: 1fr; }
.footer-contact address { display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.footer-contact address a { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 14.5px; }
.footer-contact address a:hover { color: var(--gold-light); }
.footer-contact address span { font-size: 14.5px; color: rgba(255,255,255,0.65); }

@media (min-width: 760px) {
  .footer-grid-wide { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
