/* De Ronny - design tokens
   Radius-systeem: tegels 20px, inputs 12px, knoppen full pill.
   Eén accent: signaalgeel (de O uit het logo). Merkgroen is het vlak, geen accent. */
:root {
  --paper: #f3f6ef;
  --paper-2: #e6ecdf;
  --ink: #101a12;
  --ink-2: #47554a;
  --line: #cfd8c8;
  --green: #1f7a2e;
  --green-deep: #14531f;
  --on-green: #f4f9f1;
  --accent: #ffd21f;
  --on-accent: #17200f;
  --error: #b3261e;
  --road: #a3a09d;

  --r-tile: 20px;
  --r-input: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-scrim: 1;
  --z-beat: 2;
  --z-nav: 50;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d140f;
    --paper-2: #141e16;
    --ink: #e9f0e6;
    --ink-2: #a5b3a6;
    --line: #26332a;
    --green: #217f31;
    --green-deep: #123f1a;
    --error: #ffb4ab;
    --road: #6f6d6b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  text-wrap: pretty;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, 1280px); margin-inline: auto; }

/* ---------- Iconen (Phosphor bold, lokaal, kleur via currentColor) ---------- */
.ico { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico--plant { --ico: url("icons/plant.svg"); }
.ico--scissors { --ico: url("icons/scissors.svg"); }
.ico--road-horizon { --ico: url("icons/road-horizon.svg"); }
.ico--phone { --ico: url("icons/phone.svg"); }
.ico--envelope-simple { --ico: url("icons/envelope-simple.svg"); }
.ico--caret-down { --ico: url("icons/caret-down.svg"); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.14s var(--ease), background-color 0.22s var(--ease), box-shadow 0.14s var(--ease);
  touch-action: manipulation;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 rgba(16, 26, 18, 0.85); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(16, 26, 18, 0.85); }
.btn--accent:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(16, 26, 18, 0.85); }
.btn--sm.btn--accent { box-shadow: 0 4px 0 rgba(16, 26, 18, 0.85); }
.btn--sm.btn--accent:hover { box-shadow: 0 6px 0 rgba(16, 26, 18, 0.85); }
.btn--sm.btn--accent:active { box-shadow: 0 1px 0 rgba(16, 26, 18, 0.85); transform: translateY(3px); }
.btn--ghost { background: rgba(16, 26, 18, 0.55); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(16, 26, 18, 0.75); }
.btn--ghost:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: 0 6px 0 rgba(16, 26, 18, 0.85); }
.btn--accent:focus-visible { outline-color: var(--ink); }   /* geel op geel zou onzichtbaar zijn */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: 72px; padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 32px;
  color: #fff;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 20, 12, 0.55), transparent);
  transition: opacity 0.35s var(--ease);
}
.nav--solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav--solid::before { opacity: 0; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-weight: 500; font-size: 0.9375rem; text-decoration: none; padding: 12px 2px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.logo { font: 800 1.5rem/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; color: inherit; }
.logo__o { display: inline-block; width: 0.78em; height: 0.78em; margin: 0 0.04em; border-radius: 50%; border: 0.19em solid var(--accent); }
.logo--ink { color: var(--ink); font-size: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100lvh; min-height: 560px; overflow: hidden; background: #2c3a2d url("img/bg-1.webp") 50% 62% / cover no-repeat; color: #fff; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* staand scherm: canvas schuift mee (focusX in main.js), poster start op dezelfde plek */
@media (max-aspect-ratio: 1/1) { .hero { background-position: 42% 62%; } }
/* deel van de hero dat achter de gsm-werkbalk valt (lvh - svh) */
@supports (height: 100svh) { .hero { --toolbar: calc(100lvh - 100svh); } }
#sceneBg { opacity: 0; transition: opacity 0.3s var(--ease); }
#sceneBg.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: var(--z-scrim); pointer-events: none;
  background: linear-gradient(75deg, rgba(10, 20, 12, 0.72) 0%, rgba(10, 20, 12, 0.35) 38%, transparent 62%);
  opacity: var(--scrim, 1);
}

.beat { position: absolute; z-index: var(--z-beat); opacity: 0; will-change: transform, opacity; }
.beat--intro { left: clamp(20px, 5vw, 80px); bottom: calc(clamp(40px, 9vh, 96px) + var(--toolbar, 0px)); max-width: 640px; opacity: 1; }
.beat--tl { left: clamp(20px, 5vw, 80px); top: 120px; }
.beat--r { right: clamp(20px, 5vw, 80px); top: 22vh; text-align: right; }
.beat--bl { left: clamp(20px, 5vw, 80px); bottom: calc(clamp(40px, 12vh, 140px) + var(--toolbar, 0px)); }

.sticker { font: 800 clamp(2rem, 4.6vw, 4rem)/1.32 var(--font-display); letter-spacing: -0.025em; transform-origin: left bottom; rotate: -2deg; }
.sticker--xl { font-size: clamp(2.6rem, 6.4vw, 5.5rem); }
.beat--r.sticker { rotate: 2deg; transform-origin: right bottom; }
.sticker__line { display: block; }
.sticker__line > span { display: inline-block; padding: 0.02em 0.3em 0.08em; border-radius: 0.18em; background: var(--green); color: #fff; box-shadow: 0 0.08em 0 rgba(10, 20, 12, 0.55); }
.sticker__line > .is-accent { background: var(--accent); color: var(--on-accent); margin-left: 0.35em; }
.beat--r .sticker__line > .is-accent { margin-left: 0; margin-right: 0.35em; }
.sticker__line + .sticker__line { margin-top: -0.06em; }

/* Scrollhint: de hero staat vast tijdens het verhaal, dus tonen we dat scrollen het afspeelt.
   Verdwijnt zodra er gescrold is (klasse is-hidden vanuit main.js). */
.scrollcue {
  position: absolute; z-index: var(--z-beat);
  left: 50%; translate: -50% 0; bottom: calc(20px + var(--toolbar, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(16, 26, 18, 0.5); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
  color: #fff; font: 600 0.875rem/1 var(--font-body); letter-spacing: 0.02em;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.22s var(--ease);
}
.scrollcue .ico { width: 1.15em; height: 1.15em; }
.scrollcue.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .scrollcue:hover { background: rgba(16, 26, 18, 0.72); }
}
.scrollcue:active { transform: translateY(2px) scale(0.98); }
@media (prefers-reduced-motion: no-preference) {
  .scrollcue .ico { animation: bob 1.9s var(--ease) infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero__sub { margin-top: 28px; max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.55; color: #fff; text-shadow: 0 1px 12px rgba(10, 20, 12, 0.6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .beat--intro .sticker__line > span { animation: pop 0.6s var(--ease) both; }
  .beat--intro .sticker__line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero__sub, .hero__cta { animation: rise 0.6s var(--ease) 0.26s both; }
  .hero__cta { animation-delay: 0.36s; }
}
@keyframes pop { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Strip (enige marquee op de pagina) ---------- */
.strip { background: var(--green); color: var(--on-green); overflow: hidden; padding: 22px 0; }
.strip__track { display: flex; width: max-content; }
.strip__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; font: 700 clamp(1.5rem, 3vw, 2.5rem)/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.strip__group i { color: var(--accent); font-size: 0.8em; }
@media (prefers-reduced-motion: no-preference) {
  .strip__track { animation: marquee 32s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secties ---------- */
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section--tint { background: var(--paper-2); }
.h2 { font: 800 clamp(2.25rem, 5.4vw, 4.75rem)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.52s var(--ease), transform 0.52s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile:hover img { transform: none; }
  .row:hover .row__name { transform: none; }
  .row:hover img { transform: translateY(-50%); }
  .btn--accent:hover, .btn--accent:active, .btn--ghost:active { transform: none; }
}

/* ---------- Bento: 5 items, 5 cellen ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.tile { border-radius: var(--r-tile); overflow: hidden; background: var(--paper-2); display: flex; flex-direction: column; min-height: 240px; }
.tile img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; transition: transform 0.4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.04); }
}
.tile__body { padding: 22px 24px 26px; }
.tile h3 { font: 700 clamp(1.25rem, 1.9vw, 1.625rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--ink-2); max-width: 42ch; }
.tile--a { grid-column: span 4; grid-row: span 2; }
.tile--a img { aspect-ratio: 4 / 3; }
.tile--b, .tile--c { grid-column: span 2; padding: 28px; justify-content: flex-end; }
.tile--b i, .tile--c i { font-size: 2.25rem; margin-bottom: auto; padding-bottom: 32px; }
.tile--green { background: var(--green); color: var(--on-green); }
.tile--green p { color: rgba(244, 249, 241, 0.86); }
.tile--accent { background: var(--accent); color: var(--on-accent); }
.tile--accent p { color: rgba(23, 32, 15, 0.82); }
.tile--d, .tile--e { grid-column: span 3; }
.tile--d img, .tile--e img { height: 240px; flex: none; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a { grid-column: 1 / -1; grid-row: auto; }
  .tile--b, .tile--c { grid-column: span 1; }
  .tile--d, .tile--e { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--b, .tile--c { grid-column: 1 / -1; min-height: 200px; }
}

/* ---------- Terreinen ---------- */
.rows { margin-top: clamp(32px, 5vw, 64px); }
.row { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 360px); align-items: baseline; gap: 8px 32px; padding: clamp(18px, 2.4vw, 30px) 0; border-top: 2px solid var(--ink); cursor: default; }
.row__name { font: 800 clamp(1.75rem, 4.6vw, 4rem)/1.05 var(--font-display); letter-spacing: -0.03em; transition: transform 0.5s var(--ease), color 0.3s var(--ease); }
.row__note { color: var(--ink-2); transition: opacity 0.3s var(--ease); }
.row img { position: absolute; right: 0; top: 50%; z-index: 3; width: 300px; height: 190px; object-fit: cover; border-radius: var(--r-tile); pointer-events: none; opacity: 0; transform: translateY(-50%) rotate(3deg) scale(0.9); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); box-shadow: 0 18px 40px rgba(16, 40, 20, 0.25); }
@media (hover: hover) and (min-width: 901px) {
  .row:hover .row__name { transform: translateX(18px); color: var(--green); }
  .row:hover .row__note { opacity: 0; }
  .row:hover img { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
}
@media (prefers-color-scheme: dark) {
  .row:hover .row__name { color: var(--accent); }
}
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .row img { display: none; }
}

/* ---------- Werkwijze ---------- */
.lane { position: relative; height: 112px; margin: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); overflow: hidden; background: var(--road); }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 44px, transparent 44px 88px); }
.lane__truck { position: absolute; bottom: -8px; left: 0; width: 262px; height: auto; max-width: none; transform: translateX(62vw); will-change: transform; }
.steps { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.step h3 { font: 700 clamp(1.375rem, 2.2vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.025em; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 38ch; }
.step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--green); color: var(--on-green); padding: clamp(72px, 10vw, 140px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro p { margin-top: 20px; font-size: 1.1875rem; max-width: 36ch; color: rgba(244, 249, 241, 0.9); }
.contact__list { margin-top: 36px; display: grid; gap: 14px; font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--font-display); }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list i { color: var(--accent); }
.contact__list a { text-decoration: none; padding: 6px 0; }
.contact__list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-tile); background: var(--paper); color: var(--ink); box-shadow: 0 10px 0 var(--green-deep); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: var(--r-input);
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { font-size: 0.875rem; color: var(--ink-2); }
.field__help a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.field__error { font-size: 0.875rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { color: var(--error); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; grid-template-columns: none; }
.form__status { font-weight: 600; color: var(--green); opacity: 0; transform: translateY(4px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.form__status.is-on { opacity: 1; transform: none; }
.form__foot .btn { min-width: 11.5rem; }   /* "Versturen..." mag de knop niet doen springen */
@media (prefers-color-scheme: dark) { .form__status { color: var(--accent); } }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Tekstpagina (privacy) ---------- */
.page { padding-top: 72px; }                  /* vaste navbalk */
.prose { max-width: 68ch; }
.prose .lead { margin-top: 20px; }
.prose h2 { margin-top: clamp(32px, 4vw, 48px); font: 700 clamp(1.25rem, 1.9vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.02em; }
.prose p, .prose__list { margin-top: 14px; color: var(--ink-2); }
.prose__list { display: grid; gap: 10px; padding-left: 20px; list-style: disc; }
.prose__list strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.todo { background: var(--accent); color: var(--on-accent); padding: 0 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__nav a { text-decoration: none; padding: 6px 0; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.footer__nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.footer__legal { margin-left: auto; }

/* ---------- Mobiel ---------- */
@media (max-width: 767px) {
  .nav { height: 64px; gap: 12px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__scrim { background: linear-gradient(to top, rgba(10, 20, 12, 0.8) 0%, rgba(10, 20, 12, 0.35) 45%, transparent 70%); }
  .beat--intro { right: 20px; bottom: calc(32px + var(--toolbar, 0px)); }
  .beat--tl, .beat--r { top: 96px; left: 20px; right: auto; text-align: left; }
  .beat--r.sticker { rotate: -2deg; transform-origin: left bottom; }
  .beat--r .sticker__line > .is-accent { margin-right: 0; margin-left: 0.35em; }
  .beat--bl { bottom: calc(96px + var(--toolbar, 0px)); }
  .scrollcue { left: auto; right: 14px; translate: none; padding: 0; width: 44px; justify-content: center; }
  .scrollcue__label { display: none; }
  .footer__legal { margin-left: 0; }
}
