/*
Theme Name: WeedaGo Veld
Description: Thema voor WeedaGo — de robot voor onkruidbeheersing in gras en akker.
Version: 1.0
Text Domain: weedago-veld
*/

@font-face {
  font-family: 'Lexend';
  src: url('assets/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #12230f;
  --forest: #2e6a28;
  --forest-deep: #173c14;
  --leaf: #9cc865;
  --leaf-soft: #e6f2d6;
  --mist: #f4f7ef;
  --line: #dfe7d5;
  --muted: #5b6b57;
  --white: #fff;
  --radius: 14px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(42px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 3.8vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p + p { margin-top: 1em; }

.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; }

/* Labels & knoppen */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 22px;
}
.label::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0;
  border: 2px solid currentColor; border-radius: 50%;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px);
}
.on-dark .label { color: var(--leaf); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--forest); color: var(--white);
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn.lime { background: var(--leaf); color: var(--ink); }
.btn.lime:hover { background: #b3d98a; }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current=page] { border-color: var(--leaf); }
.nav .btn { padding: 11px 22px; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--leaf) 62%, var(--leaf) 90%, transparent 90%); }
.hero-text p { font-size: 19px; color: var(--muted); max-width: 470px; margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.scan { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.scan > img { width: 100%; height: 100%; object-fit: cover; }
.scan-box {
  position: absolute; border: 2px solid var(--leaf); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(18,35,15,.25), inset 0 0 0 1px rgba(18,35,15,.15);
  animation: pulse 2.8s ease-in-out infinite;
}
.scan-box::before, .scan-box::after {
  content: ''; position: absolute; width: 10px; height: 10px; border: 3px solid var(--leaf);
}
.scan-box::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.scan-box::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.scan-box span {
  position: absolute; left: -2px; bottom: calc(100% + 6px); white-space: nowrap;
  background: var(--leaf); color: var(--ink); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 3px;
}
.scan-box.crop { border-style: dashed; border-color: var(--white); animation: none; }
.scan-box.crop::before, .scan-box.crop::after { display: none; }
.scan-box.crop span { background: var(--white); }
.scan-box:nth-of-type(2) { animation-delay: .9s; }
.scan-caption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(18,35,15,.78); color: var(--white); font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(156,200,101,.25); } }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts div { padding: 26px 24px 26px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: var(--forest); }
.facts span { font-size: 14px; color: var(--muted); }

/* Secties */
.section { padding: 110px 0; }
.section.tint { background: var(--mist); }
.on-dark { background: var(--forest-deep); color: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.section-head > p { color: var(--muted); max-width: 460px; justify-self: end; }
.on-dark .section-head > p { color: #c3d4bd; }

/* Stappen */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 30px;
  border-radius: 50%; background: var(--leaf-soft); color: var(--forest); font-weight: 600; font-size: 15px;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; }
.step:not(:last-child)::after {
  content: '→'; position: absolute; right: -19px; top: 44px; z-index: 1;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--forest); color: var(--white); border-radius: 50%; font-size: 14px;
}

/* Kenmerken */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--white); padding: 38px 34px; transition: background .2s; }
.feature:hover { background: var(--leaf-soft); }
.feature svg { width: 40px; height: 40px; margin-bottom: 26px; color: var(--forest); }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Toepassingen */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.use { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; }
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.use:hover img { transform: scale(1.03); }
.use::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,30,9,.88)); }
.use-body { position: relative; z-index: 1; padding: 36px; max-width: 520px; }
.use-body .label { margin-bottom: 14px; }
.use-body h3 { font-size: 30px; margin-bottom: 12px; }
.use-body p { color: #d5e2cf; font-size: 16px; }

/* Over / team */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; }
.about-intro p { color: var(--muted); margin-top: 22px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--mist); margin-bottom: 18px; }
.member h3 { font-size: 19px; }
.member .role { color: var(--forest); font-size: 14px; font-weight: 500; margin-top: 4px; }
.member p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.member a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; text-decoration-color: var(--leaf); text-underline-offset: 4px; }

/* Partners */
.partners { padding: 70px 0; border-top: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; gap: 56px; }
.partners h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); max-width: 170px; line-height: 1.4; flex-shrink: 0; }
.logos { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; align-items: center; }
.logos a { display: grid; place-items: center; height: 64px; }
.logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* Nieuws */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,35,15,.08); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card-body { padding: 26px 26px 30px; }
.news-card time { font-size: 13px; color: var(--forest); font-weight: 500; }
.news-card h3 { margin: 10px 0 10px; }
.news-card p { color: var(--muted); font-size: 15px; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact-info p { color: #c3d4bd; margin-top: 22px; max-width: 420px; }
.contact-details { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.contact-details dt { color: var(--leaf); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.contact-details dd { margin: 4px 0 18px; }
.contact-form { background: var(--white); color: var(--ink); padding: 38px; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-field { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--mist); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); background: var(--white); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.notice { padding: 16px 20px; border-radius: 10px; background: var(--leaf-soft); color: var(--ink); margin-bottom: 22px; font-size: 15px; }
.notice.error { background: #fbe9e1; }
.honey { position: absolute; left: -9999px; }

/* Subpagina's */
.page-head { padding: 80px 0 56px; background: var(--mist); margin-bottom: 64px; }
.page-head h1 { font-size: clamp(38px, 4.6vw, 62px); max-width: 860px; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 680px; margin-top: 20px; }
.prose { max-width: 760px; padding-bottom: 100px; }
.prose h2 { font-size: 30px; margin: 44px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose img { border-radius: var(--radius); margin: 28px 0; }
.prose a { color: var(--forest); text-decoration-color: var(--leaf); text-underline-offset: 4px; }
.back { display: inline-block; margin-top: 40px; font-weight: 500; text-decoration: none; color: var(--forest); }
.nav-links { display: flex; gap: 24px; padding: 40px 0 100px; }
.nav-links a { color: var(--forest); font-weight: 500; }
.wp-block-html { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c8b3; padding: 64px 0 32px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 160px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 16px; max-width: 300px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: start; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--leaf); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer-bottom a { color: inherit; }

/* 404 */
.not-found { padding: 120px 0; }
.not-found p { color: var(--muted); margin: 20px 0 30px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero-text p { max-width: 620px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 22px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 72px; }
  .brand img { width: 140px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    background: none; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(18,35,15,.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero { padding-top: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .section-head > p { justify-self: start; }
  .steps, .features, .uses, .news-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: '↓'; right: auto; left: 30px; top: auto; bottom: -19px; }
  .use { min-height: 400px; }
  .use-body { padding: 26px; }
  .team { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .partners-inner { flex-direction: column; align-items: start; gap: 28px; }
  .partners h2 { max-width: none; }
  .logos { width: 100%; gap: 28px; }
  .contact-form { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .page-head { padding: 52px 0 40px; margin-bottom: 44px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
