/* De Groene Vingers - homepage
   Vormregel: alles wat je kunt aanklikken is een pil, vlakken en foto's hebben 6px. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f1f3ea;
  --bg-2: #e6eadb;
  --ink: #1f2c18;
  --ink-2: #4a5542;
  --line: #c9cfba;
  --lime: #c1cd23;
  --lime-2: #d3dd4a;
  --olive: #5d6300;
  --deep: #18220f;
  --deep-2: #24311a;
  --on-deep: #eef1e2;
  --on-deep-2: #b9c2a6;
  --r: 6px;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Source Sans 3", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, label, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(193, 205, 35, .25); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--lime); }

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Koppen: vet cursief en klein, zoals het woordmerk */
.h2, .h3, .hero__title, .intro__lead, .fact__num {
  font-weight: 700; font-style: italic; letter-spacing: -.02em;
}
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; padding-bottom: .1em; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font: 600 1rem/1 "Source Sans 3", sans-serif; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s ease-out;
}
.btn:active { transform: scale(.97); }
.btn--fill { background: var(--lime); color: var(--ink); }
.btn--fill:hover { background: var(--lime-2); }
.btn--fill .ic { transition: transform .25s var(--ease); }
.btn--fill:hover .ic { transform: translateX(3px); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* Navigatie */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 243, 234, .82);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 2rem; height: 76px; }
.nav__logo img { width: 150px; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2); padding: .4rem 0; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.nav__links a:hover { color: var(--ink); background-size: 100% 2px; }
.nav__cta { display: flex; gap: .6rem; }

/* Hero */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero__kicker { font-weight: 600; color: var(--olive); font-size: 1rem; margin-bottom: 1rem; }
.hero__title {
  display: flex; flex-direction: column;
  font-size: clamp(2.7rem, 7.4vw, 6.4rem); line-height: 1.1; color: var(--ink);
  border-top: 1px solid var(--line);
}
.hero__line { display: block; overflow: hidden; border-bottom: 1px solid var(--line); padding: .06em 0 .12em; }
.hero__word { display: inline-block; }
.hero__title em { color: var(--olive); }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
  padding: 1.6rem 0 clamp(2rem, 4vw, 3rem);
}
.hero__sub { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.hero__btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__media {
  --inset: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  --round: var(--r);
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: 50% 60%;
  clip-path: inset(0 var(--inset) 0 var(--inset) round var(--round));
}

/* Intro en feiten */
.intro { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.intro__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem 4rem; align-items: end; }
.intro__lead { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.15; max-width: 20ch; }
.intro__text p { color: var(--ink-2); max-width: 54ch; }
.intro__text p + p { margin-top: 1em; }
.facts {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.fact { padding: 2rem 2rem 0 0; }
.fact + .fact { padding-left: 2rem; border-left: 1px solid var(--line); }
.fact__num { font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: .3rem; }
.fact__num small { font-size: 1.1rem; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--olive); }
.fact__label { margin-top: .8rem; color: var(--ink-2); max-width: 36ch; }
.fact--vhg { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; }
.fact--vhg img { width: 96px; mix-blend-mode: multiply; }
.fact--vhg .fact__label { margin-top: 0; }
.fact__label a { color: var(--olive); text-underline-offset: 3px; }

/* Diensten */
.diensten { background: var(--bg-2); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.diensten__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.diensten__side { position: sticky; top: 110px; }
.diensten__img { margin: 2rem 0 0; }
.diensten__img img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dlist { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.dienst {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.dienst:first-child { padding-top: .5rem; }
.dienst__ic {
  width: 56px; height: 56px; padding: 13px; border-radius: 50%;
  background: var(--bg); color: var(--olive); fill: currentColor;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.dienst:hover .dienst__ic { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }
.dienst h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin-bottom: .3rem; }
.dienst p { color: var(--ink-2); max-width: 46ch; }
.dienst a { color: var(--olive); text-underline-offset: 3px; }

/* Werkgebied */
.gebied { padding: clamp(4.5rem, 9vw, 8rem) 0; overflow: hidden; }
.gebied__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.gebied__text > p { margin-top: 1.25rem; color: var(--ink-2); max-width: 44ch; }
.gebied__list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gebied__list li { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.kaart { margin: 0; }
.kaart__svg { width: 100%; height: auto; overflow: visible; font-family: "Source Sans 3", sans-serif; }
.kaart__rings circle { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 6; }
.kaart__km text { fill: var(--ink-2); font-size: 13px; text-anchor: middle; }
.kaart__lines line { stroke: var(--olive); stroke-width: 1.2; opacity: .35; }
.pt circle { fill: var(--ink); }
.pt text { fill: var(--ink); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.pt--home circle { fill: var(--lime); stroke: var(--ink); stroke-width: 3; }
.pt--home .pt__pulse { fill: var(--lime); stroke: none; opacity: .45; }
.pt--home text { font-size: 19px; font-weight: 700; font-style: italic; }

/* Voor en na */
.werk { padding: 0 0 clamp(4.5rem, 9vw, 8rem); }
.werk__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: center; }
.werk__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
  border: 1.5px dashed #aab296;
}
.werk__half { display: flex; align-items: flex-end; padding: 1rem 1.25rem; font-weight: 700; font-style: italic; font-size: 1.4rem; color: var(--ink-2); }
.werk__half--na { justify-content: flex-end; background: rgba(193, 205, 35, .28); color: var(--ink); }
.werk__handle {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: translateX(-1px);
}
.werk__handle .ic {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; padding: 11px; margin: -22px 0 0 -22px;
  background: var(--ink); color: var(--lime); border-radius: 50%;
}
.werk__text p { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; }

/* Contact en offerte (donker vlak, zelfde groen als het logo-embleem) */
.contact { background: var(--deep); color: var(--on-deep); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.contact .h2 { color: #fff; }
.contact__intro { margin-top: 1.25rem; color: var(--on-deep-2); max-width: 40ch; }
.contact__tel {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 2.25rem;
  font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; font-style: italic; letter-spacing: -.02em;
  color: var(--lime); text-decoration: none;
}
.contact__tel:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact__mail { display: flex; align-items: center; gap: .6rem; margin-top: .75rem; color: var(--on-deep); font-size: 1.1rem; text-underline-offset: 4px; }
.contact__adr { margin-top: 2rem; font-style: normal; color: var(--on-deep-2); line-height: 1.7; }

.offerte { background: var(--deep-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.offerte__chips { border: 0; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.offerte__chips legend { font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: .9rem; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px;
  border: 1.5px solid #5d6b4f; color: var(--on-deep); font-weight: 600; font-size: .98rem;
  transition: background-color .2s, border-color .2s, color .2s, transform .1s ease-out;
}
.chip input:hover + span { border-color: var(--on-deep-2); }
.chip input:active + span { transform: scale(.97); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.offerte__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--on-deep); }
.opt { font-weight: 400; color: var(--on-deep-2); }
.field input, .field textarea {
  font: inherit; color: #fff; background: var(--deep); border: 1.5px solid #4c5a40; border-radius: var(--r);
  padding: .8rem .9rem; min-height: 50px; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #6f7d61; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--lime); }
.field input[aria-invalid="true"] { border-color: #f0a58f; }
.field__err { color: #f6b8a6; font-size: .92rem; }
.offerte .btn { margin-top: .4rem; }
.offerte__note {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.1rem; padding: 1rem 1.1rem;
  border-radius: var(--r); background: rgba(193, 205, 35, .14); color: var(--on-deep);
}
.offerte__note .ic { color: var(--lime); width: 1.5em; height: 1.5em; margin-top: .05em; }

/* Footer */
.foot { background: var(--deep); color: var(--on-deep-2); border-top: 1px solid #2f3d24; padding: 2.5rem 0 3rem; }
.foot__in { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.foot__logo { width: 150px; }
.foot a { color: var(--on-deep); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__copy { font-size: .92rem; }

/* Vaste belbalk op mobiel */
.belbalk { display: none; }

/* Animatie: begintoestand alleen als JS en beweging aan staan */
.js-motion .reveal { opacity: 0; transform: translateY(28px); }
@keyframes pulse { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .pt__pulse { animation: pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
}

/* Tablet */
@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .intro__grid, .diensten__grid, .gebied__grid, .werk__in, .contact__grid { grid-template-columns: 1fr; }
  .diensten__side { position: static; }
  .diensten__img img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__foot { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; }
}

/* Mobiel */
@media (max-width: 640px) {
  html { scroll-padding-bottom: 84px; }
  body { font-size: 1rem; }
  .nav__in { height: 64px; gap: 1rem; }
  .nav__logo img { width: 112px; }
  .nav__cta .btn--line { display: none; }
  .nav__offerte { min-height: 42px; padding: 0 1rem; font-size: .92rem; }
  .hero__title { font-size: clamp(2.2rem, 10.6vw, 3.2rem); }
  .hero__sub { font-size: 1.08rem; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__media { --inset: 0px; --round: 0px; }
  .hero__media img { height: auto; aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .offerte__row { grid-template-columns: 1fr; }
  .fact--vhg { grid-template-columns: 72px 1fr; }
  .fact--vhg img { width: 72px; }
  .kaart { margin: 2.5rem -1rem 0; }
  .pt text { font-size: 25px; stroke-width: 6px; }
  .pt--home text { font-size: 30px; }
  .kaart__km text { font-size: 20px; }
  .werk__half { font-size: 1.15rem; }
  .foot { padding-bottom: 6.5rem; }
  .belbalk {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60;
    min-height: 54px; border-radius: 999px; background: var(--ink); color: var(--lime);
    font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(24, 34, 15, .35);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .belbalk.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .belbalk { transition: none; }
}
