/* ==========================================================================
   Tuinaanleg Sven Hendrikx – stylesheet
   ========================================================================== */

/* Lettertype: lokaal gehost (geen externe verzoeken, zie privacybeleid) */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --groen: #2C5444;
  --groen-donker: #1C3A2E;
  --groen-diep: #12241D;
  --groen-licht: #F2F6F3;
  --groen-zacht: #E8EFEA;
  --tekst: #1F2A24;
  --kop: #1A2B23;
  --tekst-zacht: #3E4D45;
  --tekst-muted: #4A5A51;
  --rand: #E0E8E3;
  --rood: #B42318;
  --wit: #FFFFFF;
  --max: 1200px;
  --pad: 24px;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--tekst); background: var(--wit); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--groen); }
a:hover { color: var(--groen-donker); }
h1, h2, h3 { margin: 0; color: var(--kop); line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid #7FB89A; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--wit); color: var(--groen-donker); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 104px; }
.section--licht { background: var(--groen-licht); }
.section--decor { position: relative; overflow: hidden; isolation: isolate; }

.h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.015em; }
.lead { font-size: 17px; line-height: 1.7; color: var(--tekst-zacht); }

/* Knoppen & links ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 700 16px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primair { background: var(--groen); color: var(--wit); }
.btn--primair:hover { background: var(--groen-donker); color: var(--wit); }
.btn--licht { background: var(--wit); color: var(--groen-donker); }
.btn--licht:hover { background: var(--groen-zacht); color: var(--groen-donker); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--groen); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover { color: var(--groen-donker); text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover svg { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.logo .logo--groen { display: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { color: var(--wit); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 2px; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--wit); text-decoration: underline; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: none; color: var(--wit); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

.site-header.is-solid { background: var(--wit); box-shadow: 0 1px 0 #E3E9E5, 0 8px 24px rgba(28,58,46,.06); }
.site-header.is-solid .logo--wit { display: none; }
.site-header.is-solid .logo--groen { display: block; }
.site-header.is-solid .nav__link { color: var(--tekst); }
.site-header.is-solid .nav__link:hover, .site-header.is-solid .nav__link[aria-current="page"] { color: var(--groen); }
.site-header.is-solid .nav-toggle { color: var(--groen-donker); }

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .logo img { height: 42px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; background: var(--wit); box-shadow: 0 16px 32px rgba(28,58,46,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link, .site-header .nav__link { color: var(--tekst); padding: 16px 4px; border-bottom: 1px solid var(--rand); font-size: 17px; }
  .site-header.menu-open { background: var(--wit); }
  .site-header.menu-open .logo--wit { display: none; }
  .site-header.menu-open .logo--groen { display: block; }
  .site-header.menu-open .nav-toggle { color: var(--groen-donker); }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; background: var(--groen-donker); color: var(--wit); }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,36,29,.86) 0%, rgba(18,36,29,.62) 45%, rgba(18,36,29,.2) 100%); }
.hero h1 { color: var(--wit); font-weight: 800; letter-spacing: -0.02em; }
.hero p { color: #E6EEE9; font-size: 19px; line-height: 1.6; max-width: 560px; }
.hero__content { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }

.hero--home { min-height: min(100svh, 760px); align-items: center; }
.hero--home .container { width: 100%; padding-block: calc(var(--header-h) + 56px) 112px; }
.hero--home h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; }

.hero--page { min-height: 440px; align-items: flex-end; }
.hero--page .container { width: 100%; padding-block: calc(var(--header-h) + 80px) 72px; }
.hero--page h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.05; }
.hero--page .hero__content { gap: 18px; max-width: 680px; }

/* Over (home) ------------------------------------------------------------ */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { min-width: 0; }
.split__kop { flex: 1 1 380px; }
.split__tekst { flex: 1.3 1 480px; display: flex; flex-direction: column; gap: 20px; }
.split--midden { align-items: center; }

.decor-plant { position: absolute; z-index: -1; height: auto; pointer-events: none; opacity: .12; }

/* Diensten-kaarten -------------------------------------------------------- */
.sectie-kop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 48px; }
.sectie-kop .h2 { max-width: 640px; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s ease, transform .2s ease; }
.kaart:hover { border-color: var(--groen); transform: translateY(-2px); }
.kaart h3 { font-size: 21px; font-weight: 800; }
.kaart p { font-size: 16px; line-height: 1.65; color: var(--tekst-zacht); }
.kaart--link { position: relative; }
.kaart__link { color: inherit; text-decoration: none; }
.kaart__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kaart__link:focus-visible { outline: none; }
.kaart--link:has(.kaart__link:focus-visible) { outline: 3px solid #7FB89A; outline-offset: 3px; }
.kaart--link:hover h3 { color: var(--groen); }
.icoon { width: 56px; height: 56px; flex: none; }

/* Projecten -------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 700 14px/1 var(--font); cursor: pointer; background: var(--wit); color: var(--groen); border: 1.5px solid #C9D6CE; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--groen); }
.filter[aria-pressed="true"] { background: var(--groen); color: var(--wit); border-color: var(--groen); }
.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 24px; }
@media (max-width: 380px) { .galerij { grid-template-columns: 1fr; } }
.project { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.project[hidden] { display: none; }
.project__knop { display: block; padding: 0; border: 0; background: var(--groen-zacht); border-radius: 18px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.project__knop img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project__knop:hover img { transform: scale(1.04); }
.project figcaption { display: flex; flex-direction: column; gap: 2px; }
.project__cat { font-size: 13px; font-weight: 600; color: #4A6B5A; }
.project__titel { font-size: 17px; font-weight: 700; color: var(--kop); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,20,16,.92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: var(--wit); text-align: center; font-weight: 600; }
.lightbox__knop { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: var(--wit); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__knop:hover { background: rgba(255,255,255,.26); }
.lightbox__knop svg { width: 22px; height: 22px; }
.lightbox__sluit { top: 20px; right: 20px; }
.lightbox__vorige { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__volgende { right: 20px; top: 50%; transform: translateY(-50%); }

/* CTA-band met plantenachtergrond ----------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--groen) url("../img/brand/bg-planten.webp") right center / cover no-repeat; color: var(--wit); }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 88px; }
.cta h2 { color: var(--wit); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; }
.cta p { color: #D6E2DA; font-size: 17px; margin-top: 8px; max-width: 640px; }

/* Diensten-pagina -------------------------------------------------------- */
.dienst { padding-block: 88px; }
.dienst--alt { background: var(--groen-licht); }
.dienst .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.dienst--alt .container { flex-direction: row-reverse; }
.dienst__tekst { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dienst__beeld { flex: 1 1 440px; min-width: 0; }
.dienst__beeld img { width: 100%; height: 400px; object-fit: cover; border-radius: 18px; }
.vinklijst { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-weight: 600; color: var(--kop); }
.vinklijst li { display: flex; align-items: center; gap: 10px; }
.vinklijst svg { width: 18px; height: 18px; color: var(--groen); flex: none; }

/* Over-pagina ------------------------------------------------------------ */
.feiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feit { background: var(--groen-licht); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.feit h3 { font-size: 19px; font-weight: 800; }
.feit p { color: var(--tekst-zacht); }
.foto-rond { width: 100%; height: 480px; object-fit: cover; border-radius: 18px; }

/* Contact ---------------------------------------------------------------- */
.contact .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; }
.contact-form { flex: 1.7 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-form__kop { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.velden { display: flex; flex-wrap: wrap; gap: 22px 28px; }
.veld { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.veld label { font-size: 15px; font-weight: 600; color: var(--kop); }
.veld .req { color: var(--rood); }
.veld input, .veld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--tekst); background: var(--wit); border: 1px solid #C3CFC8; border-radius: 12px; padding: 16px 18px; }
.veld textarea { min-height: 200px; resize: vertical; }
.veld input::placeholder, .veld textarea::placeholder { color: #6B7A72; }
.veld input:focus, .veld textarea:focus { outline: 2px solid var(--groen); outline-offset: 1px; border-color: var(--groen); }
.veld [aria-invalid="true"] { border-color: var(--rood); }
.veld__fout { font-size: 14px; color: var(--rood); }
.veld__fout:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-noot { font-size: 13px; color: var(--tekst-muted); }
.form-status { font-size: 15px; font-weight: 600; padding: 14px 18px; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--groen-zacht); color: var(--groen-donker); }
.form-status.is-fout { background: #FDECEA; color: var(--rood); }
.contact-form .btn { align-self: flex-start; min-height: 56px; padding: 0 32px; font-weight: 600; font-size: 17px; }

.contact-kaart { flex: 1 1 340px; min-width: 0; position: relative; overflow: hidden; isolation: isolate; background: var(--groen-donker); color: var(--wit); border-radius: 22px; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.contact-kaart::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -50px; width: 240px; height: 230px; background: url("../img/brand/plant-2-wit.png") center / contain no-repeat; opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.contact-kaart h3 { color: var(--wit); font-size: 26px; font-weight: 700; }
.contact-kaart__blok { display: flex; flex-direction: column; gap: 14px; }
.contact-kaart p { font-size: 17px; }
.contact-kaart a { color: #D6E2DA; text-decoration: none; overflow-wrap: anywhere; }
.contact-kaart a:hover { color: var(--wit); text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 999px; background: var(--wit); color: var(--groen-donker); display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: #DCE7E0; color: var(--groen-donker); }
.socials svg { width: 18px; height: 18px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--groen-diep) url("../img/brand/bg-footer.webp") center bottom / cover no-repeat; color: #D6E2DA; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 64px 56px; }
.site-footer__merk { display: flex; flex-direction: column; gap: 4px; }
.site-footer__naam { font-weight: 800; font-size: 16px; color: var(--wit); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #D6E2DA; text-decoration: none; }
.site-footer a:hover { color: var(--wit); text-decoration: underline; }

/* Kleine schermen ---------------------------------------------------------- */
@media (max-width: 640px) {
  .section, .dienst { padding-block: 72px; }
  .sectie-kop { margin-bottom: 32px; }
  .hero p { font-size: 17px; }
  .dienst__beeld img, .foto-rond { height: 280px; }
  .contact-kaart { padding: 36px 28px; }
  .galerij { grid-template-columns: 1fr; }
}

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

/* Privacybeleid ----------------------------------------------------------- */
.hero--kort { min-height: 340px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.75; color: var(--tekst-zacht); }
.prose h2 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--kop); }

/* Cookiebanner ----------------------------------------------------------- */
.cookiebanner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--wit); color: var(--tekst); border: 1px solid var(--rand); border-radius: 18px; box-shadow: 0 12px 40px rgba(18,36,29,.18); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 15px; line-height: 1.6; }
.cookiebanner[hidden] { display: none; }
.cookiebanner__tekst { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cookiebanner__titel { font-weight: 800; color: var(--kop); font-size: 16px; }
.cookiebanner__knoppen { display: flex; flex-wrap: wrap; gap: 10px; }
.cookiebanner .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.cookiebanner .btn--licht { border: 1.5px solid #C9D6CE; }
@media (max-width: 640px) {
  .cookiebanner { padding: 20px; }
  .cookiebanner__knoppen { width: 100%; }
  .cookiebanner__knoppen .btn { flex: 1 1 0; }
}
