/* Jordy vd Braak tuinen: demo-homepage.
   Eén scherp thema, rechte hoeken, logogroen als enige accent. */

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f2f3ef;
  --bg-alt: #e7e9e3;
  --surface: #ffffff;
  --ink: #1d2220;
  --muted: #5a5d5c;
  --line: #cfd2cb;
  --accent: #77bc1f;
  --accent-hover: #86cc2b;
  --accent-ink: #3f6a08;       /* groen voor tekst op licht vlak, 5:1 */
  --on-accent: #14210a;
  --header-bg: #f2f3ef;
  --dark: #1b1f1d;
  --dark-2: #252a27;
  --on-dark: #eef0ea;
  --h: 72px;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a18;
    --bg-alt: #1f2321;
    --surface: #232826;
    --ink: #eef0ea;
    --muted: #adb2ab;
    --line: #3a403c;
    --accent-ink: #8fd032;
    --header-bg: #f2f3ef;      /* logo staat op licht vlak */
    --dark: #101312;
    --dark-2: #1b1f1d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
input, textarea { caret-color: var(--accent-ink); }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-line { border-color: #3a3f3c; color: #1d2220; background: transparent; }
.btn-line:hover { background: #1d2220; color: #f2f3ef; }
.btn-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-light:hover { background: #fff; color: #1d2220; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  color: #1d2220;
  transition: box-shadow 0.3s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(20, 28, 22, 0.12); }
.header-in {
  max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut);
  height: var(--h); display: flex; align-items: center; gap: 28px;
}
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav a:hover { border-color: var(--accent); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.nav .nav-m { display: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #1d2220; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 27px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .header-cta .btn-line { display: none; }
  .nav { gap: 20px; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--h);
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 20px;
    background: var(--header-bg); border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 28, 22, 0.16);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.2s, visibility 0s 0.3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 16px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .nav .nav-m { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100dvh - var(--h)));
  display: flex; align-items: flex-end;
  color: #fff; background: var(--dark);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 16, 13, 0.9) 0%, rgba(12, 16, 13, 0.72) 38%, rgba(12, 16, 13, 0.4) 62%, rgba(12, 16, 13, 0) 100%),
    linear-gradient(to right, rgba(12, 16, 13, 0.4) 0%, rgba(12, 16, 13, 0) 55%);
}
.hero-in {
  width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto;
  padding: 96px var(--gut) clamp(40px, 7vh, 72px);
}
.label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; }
.hero-sub { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: #f0f2ec; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- feitenrij ---------- */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts-in { max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-in li { padding: 26px 28px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.facts-in li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts-in strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.facts-in span { color: var(--muted); font-size: 0.98rem; }

/* ---------- sectiekoppen ---------- */
section { position: relative; }
.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.sec-head p { margin-top: 16px; color: var(--muted); max-width: 40rem; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }

/* ---------- van ontwerp tot onderhoud ---------- */
.process { padding: clamp(72px, 11vw, 140px) 0; }
.steps-wrap { position: relative; }
.line { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.line-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); }
.js .line-fill { transform: scaleY(0); }
.step { position: relative; padding-left: 64px; }
.step + .step { margin-top: clamp(64px, 9vw, 110px); }
.node { position: absolute; left: 0; top: 8px; width: 24px; height: 24px; background: var(--bg); border: 2px solid var(--line); transition: background-color 0.4s, border-color 0.4s; }
.step.is-on .node { background: var(--accent); border-color: var(--accent); }
.js .step .node { border-color: var(--line); background: var(--bg); }
.js .step.is-on .node { background: var(--accent); border-color: var(--accent); }
.step-title { display: flex; align-items: center; gap: 16px; }
.step-title img { width: 56px; height: 56px; }
.step-title h3 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.step-intro { margin-top: 22px; max-width: 44rem; color: var(--ink); }
.items { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; max-width: 54rem; }
.items li { display: flex; flex-direction: column; gap: 2px; }
.items strong { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.items span { color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.strip { margin-top: 40px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 21 / 9; max-width: 46rem; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- licht in uw tuin ---------- */
.night { overflow: hidden; background: var(--dark); color: #fff; min-height: clamp(420px, 70vh, 640px); display: flex; align-items: center; isolation: isolate; }
.night-img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.night-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(10, 13, 11, 0.86) 0%, rgba(10, 13, 11, 0.55) 45%, rgba(10, 13, 11, 0.15) 100%); }
.night-in { padding-block: 80px; }
.night h2 { max-width: 12ch; }
.night p { margin-top: 20px; max-width: 30rem; font-size: 1.15rem; line-height: 1.55; color: #eef0ea; }

/* ---------- eerder werk ---------- */
.work { padding: clamp(72px, 11vw, 140px) 0; background: var(--bg-alt); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.gcol { display: flex; flex-direction: column; gap: 14px; }
.g { display: block; width: 100%; padding: 0; border: 0; background: var(--bg); cursor: zoom-in; overflow: hidden; position: relative; }
.g.p { aspect-ratio: 4 / 5; }
.g.l { aspect-ratio: 4 / 3; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.g:hover img { transform: scale(1.035); }
@media (max-width: 899px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gcol { display: contents; }
  .g.p, .g.l { aspect-ratio: 1 / 1; }
}

.lightbox { overscroll-behavior: contain; border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; }
:root:has(dialog[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 13, 11, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88dvh; width: auto; height: auto; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: #fff; color: #111; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------- over ons ---------- */
.about { padding: clamp(72px, 11vw, 140px) 0; }
.about-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.about-text p { margin-top: 22px; max-width: 34rem; }
.about-text h3 { margin-top: 38px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-ink); }
.areas { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.95rem; }
.about-photo { overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-alt); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact { padding: clamp(72px, 11vw, 130px) 0; background: var(--dark); color: var(--on-dark); }
.contact-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: start; }
.contact h2 { max-width: 14ch; }
.contact-info > p { margin-top: 18px; max-width: 28rem; color: #c9cec6; }
.big-phone { display: inline-block; margin-top: 32px; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; border-bottom: 3px solid var(--accent); line-height: 1.15; }
.big-phone:hover { color: var(--accent); }
.contact address { margin-top: 28px; line-height: 1.8; color: #dde1d8; }
.contact address a { text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide, .wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: #eef0ea; }
.req { font-weight: 400; color: #b9beb5; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; min-height: 50px;
  background: #f2f3ef; color: #1d2220; border: 2px solid transparent; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #ff8f7d; }
.err { color: #ffb4a6; font-size: 0.92rem; }
.form-foot { margin-top: 6px; }
.demo-note { padding: 14px 16px; background: rgba(119, 188, 31, 0.16); border: 1px solid var(--accent); color: #eef0ea; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #c9cec6; padding: 0 0 36px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-in { padding-top: 32px; display: flex; flex-wrap: wrap; gap: 6px 36px; font-size: 0.96rem; }
.foot-name { font-weight: 700; color: #fff; }
.site-footer a { text-underline-offset: 3px; }
.copy { margin-left: auto; color: #aab0a6; }

/* ---------- vaste knoppen mobiel ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--header-bg); box-shadow: 0 -8px 24px rgba(20, 28, 22, 0.18);
    transform: translateY(110%); transition: transform 0.4s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 0 10px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- responsief ---------- */
@media (max-width: 900px) {
  .about-in, .contact-in { grid-template-columns: 1fr; }
  .about-photo { order: -1; aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  .facts-in { grid-template-columns: 1fr; }
  .facts-in li, .facts-in li + li { padding: 16px 0; border-left: 0; }
  .facts-in li + li { border-top: 1px solid var(--line); }
  .items { grid-template-columns: 1fr; gap: 18px; }
  .step { padding-left: 44px; }
  .node { width: 20px; height: 20px; top: 12px; }
  .line { left: 9px; }
  .step-title { gap: 12px; }
  .step-title img { width: 44px; height: 44px; }
  .strip { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .copy { margin-left: 0; }
  .hero-in { padding-top: 72px; }
  .label { font-size: 0.74rem; letter-spacing: 0.18em; }
  .form-foot .btn { width: 100%; }
}

/* ---------- beweging (alleen als gewenst) ---------- */
.js [data-hero], .js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .line-fill { transform: none !important; }
  .night-img { top: 0; height: 100%; }
}
