/* Homepage – richting 2: rustig en hoogwaardig. Warm wit, diep antraciet, gericht groen.
   Alleen geladen op index.html; de dienstpagina's houden voorlopig de vorige stijl. */

.home .main-nav { background: var(--paper); }
@media (min-width: 961px) { .home .main-nav { background: transparent; } }

/* Hero: tekst links, groot beeld dat tot de rand van het scherm loopt */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(70vh, 680px); }
.home-hero .copy { display: flex; flex-direction: column; justify-content: center; padding: var(--s5) var(--s5) var(--s5) max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.home-hero h1 { font-size: clamp(2.5rem, 3.8vw, 3.7rem); line-height: 1.04; max-width: 15ch; letter-spacing: -.012em; }
.home-hero .lead { margin-top: var(--s3); font-size: 1.25rem; color: var(--ink-soft); max-width: 36ch; }
.home-hero .actions { margin-top: var(--s4); }
.home-hero .area { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-soft); max-width: 40ch; }
.home-hero .area strong { color: var(--ink); font-weight: 600; }
.hero-media { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-hero .copy { padding: var(--s4) 1.25rem var(--s4); }
  .hero-media { aspect-ratio: 4 / 5; max-height: 72vh; }
}
@media (max-width: 480px) { .home-hero .copy { padding: var(--s3) 1rem var(--s4); } .home-hero h1 { font-size: 2.3rem; } }

/* Diensten: 2 x 2, elk met beeld en de belangrijkste taken */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s3); align-items: start; }
.service figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.service h3 a { text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; } /* hele blok klikbaar */
.service p { color: var(--ink-soft); font-size: 1.02rem; }
.service ul { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.service li { padding: .45rem 0 .35rem; border-top: 1px solid var(--line); font-size: 1rem; }
.service .more { display: inline-block; margin-top: var(--s2); font-weight: 600; color: var(--green-text); }
.service:hover img { transform: scale(1.035); }
.service:hover h3 a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; text-decoration-color: var(--green); }
.service:focus-within { outline: 3px solid var(--green); outline-offset: 6px; border-radius: 4px; }
.service h3 a:focus-visible { outline: none; }
@media (max-width: 1080px) { .services { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
@media (max-width: 560px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .service figure { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .service img { transition: none; } }

/* Compact schema verderop */
.overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; }
.overview p { color: var(--ink-soft); margin-top: var(--s2); }
@media (max-width: 960px) { .overview { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.schema.compact { padding: var(--s3); background-size: 20px 20px; }
.schema.compact .schema-caption { position: static; display: block; margin-bottom: var(--s3); }
.schema.compact .part { font-size: .88rem; min-height: 38px; }
.schema.compact .circuit .symbol { width: 56px; height: 56px; }
.schema.compact .circuit .symbol svg { width: 26px; height: 26px; }
.schema.compact .circuit .cname { font-size: 1.05rem; hyphens: auto; overflow-wrap: break-word; }
.schema.compact .circuits li { padding-top: 32px; }
.schema.compact .circuit::before { top: -32px; height: 32px; }
.schema.compact .feed li:last-child::after, .schema.compact .feed-drop { height: 32px; }
@media (max-width: 640px) {
  .schema.compact .circuits li { padding-top: 0; }
  .schema.compact .feed li:last-child::after, .schema.compact .feed-drop { height: 22px; }
  .schema.compact .circuit::before { top: 50%; height: 2px; }
}

/* Titel breekt op hele woorden, niet met een afbreekstreepje */
.home-hero h1 { hyphens: manual; }

/* Subtiel lijnenpatroon in de werkwijze-sectie: alleen rechtsboven, naast de titel.
   Het vervaagt naar links en naar onder, zodat het niet achter tekst of stappen staat. */
.section.lines { position: relative; overflow: hidden; }
.section.lines::before {
  content: ""; position: absolute; top: 0; right: 0; width: min(56%, 780px); height: min(50%, 300px);
  background: url("img/lijnen.svg") right top / cover no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%), linear-gradient(to bottom, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 40%, transparent 100%), linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-composite: intersect;
}
.section.lines > .wrap { position: relative; }
@media (max-width: 860px) { .section.lines::before { display: none; } }

/* Afwerking: bijschrift onder het openingsbeeld */
.hero-media { display: flex; flex-direction: column; background: none; }
.hero-media img { flex: 1 1 auto; min-height: 0; background: var(--paper-2); }
.hero-media .credit { padding: 0 var(--s2) var(--s1); }
@media (max-width: 960px) {
  .hero-media { aspect-ratio: auto; max-height: none; }
  .hero-media img { flex: none; aspect-ratio: 4 / 5; max-height: 72vh; }
}
@media (max-width: 360px) { .home-hero h1 { font-size: 2.05rem; } }
