/*
Theme Name: Maxx
Description: Maxx Tuinen — lichte SaaS/service-landingsstijl (herbouw staging 2026-08).
Version: 1.0.0
Author: Maxx Tuinen
Text Domain: maxx
*/

/* == design tokens — uitsluitend deze gebruiken, geen losse hex in componenten == */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --dark: #14181C;
  --text: #14181C;
  --text-muted: #5A6472;
  --text-muted-dark: #C9D1D9; /* gedempte tekst op donkere vlakken */
  --accent: #2F7A46;
  --accent-soft: #E7F3EB;

  --radius-block: 24px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.10);
  --maxw: 1200px;
  --pad-section: clamp(56px, 9vw, 120px);
  --edge: 16px; /* marge van donkere blokken tot de viewport-rand */
  --ease: 200ms ease;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

/* == basis == */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
section { padding-block: var(--pad-section); }

/* sectiekop-patroon: gecentreerde H2 met accentwoorden + subtekst */
.sectiekop { text-align: center; margin: 0 auto; max-width: 60ch; }
.sectiekop h2 { font-size: clamp(28px, 4vw, 40px); color: var(--text); }
.sectiekop .accent { color: var(--accent); }
.sectiekop p { color: var(--text-muted); max-width: 60ch; margin: 14px auto 0; }
.sectiekop + * { margin-top: clamp(32px, 5vw, 56px); }

/* pill-knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 28px; min-height: 48px;
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: scale var(--ease), background-color var(--ease), color var(--ease);
}
.btn:active { scale: 0.96; }
.btn--light { background: var(--surface); color: var(--dark); }
.btn--light:hover { background: var(--accent-soft); }
.btn--accent { background: var(--accent); color: var(--surface); }
.btn--accent:hover { background: #276A3B; } /* hover: verdiepte accent, enige uitzondering op tokens */
.btn--outline { background: transparent; color: var(--surface); border: 1.5px solid rgba(255, 255, 255, 0.65); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: var(--radius-pill);
}
.skip:focus-visible { left: 8px; }

/* == navbar: donker, geïntegreerd in het hero-blok; sticky wordt wit == */
.nav {
  position: absolute; top: var(--edge); left: var(--edge); right: var(--edge);
  z-index: 20; color: var(--surface);
  border-radius: var(--radius-block) var(--radius-block) 0 0;
}
.nav[data-plek='pagina'] { background: var(--dark); }
.nav-binnen {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 3vw, 32px);
}
.nav-logo img { height: 38px; width: auto; }
.nav-menu { margin-inline: auto; }
.nav-menu ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; text-decoration: none; color: inherit;
  transition: background-color var(--ease);
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.12); }
.nav-cta { font-size: 14px; padding: 10px 20px; min-height: 42px; }

.nav.is-stuck {
  position: fixed; top: 0; left: 0; right: 0; border-radius: 0;
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-card);
}
.nav.is-stuck .nav-menu a:hover { background: var(--accent-soft); }
.nav.is-stuck .nav-cta { border-color: var(--accent); color: var(--accent); }
.nav.is-stuck .nav-cta:hover { background: var(--accent-soft); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-pill);
}
.nav-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 30;
  background: var(--dark); color: var(--surface);
  display: none; align-items: center; justify-content: center; text-align: center;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nav-overlay a:not(.btn) {
  display: inline-block; font-size: 24px; font-weight: 600;
  text-decoration: none; padding: 10px 20px; border-radius: var(--radius-pill);
}
.nav-overlay .btn { margin-top: 18px; }

@media (max-width: 880px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
}

/* == hero: donker blok met marge, foto met gradient van links == */
.hero-shell { padding: var(--edge); }
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-block);
  background: var(--dark);
  min-height: min(85vh, 860px);
  display: flex; align-items: center;
  padding-block: 0;
}
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 28, 0.65) 0%, rgba(20, 24, 28, 0) 22%),
    linear-gradient(90deg, rgba(20, 24, 28, 0.85) 8%, rgba(20, 24, 28, 0.45) 45%, rgba(20, 24, 28, 0) 78%);
}
.hero-inhoud { position: relative; z-index: 2; width: 100%; padding-block: 120px; }
.hero-inhoud h1 { color: var(--surface); font-size: clamp(32px, 4.5vw, 56px); max-width: 17ch; }
.hero-inhoud p { color: var(--text-muted-dark); max-width: 45ch; margin: 20px 0 32px; font-size: 17px; }
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-inhoud { padding-block: 130px 64px; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 24, 28, 0.85) 0%, rgba(20, 24, 28, 0.55) 100%); }
}

/* == secties op wit == */
.sectie-wit { background: var(--surface); }

/* == tuinklussen: wit / gedraaide accentkaart over foto / wit == */
.klussen {
  display: grid; gap: 24px;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
}
.klus-card {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 28px;
}
.klus-card .icoon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.klus-card h3 { font-size: 20px; margin-bottom: 8px; color: inherit; }
.klus-card p { color: var(--text-muted); font-size: 15px; }
.check { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.check li {
  position: relative; padding-left: 28px;
  color: var(--text-muted); font-size: 14px;
}
.check li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: var(--radius-pill);
  background: var(--accent-soft);
}
.check li::after {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.klus-midden { position: relative; padding: 24px 0 0 24px; }
.klus-midden img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.klus-midden .klus-card--accent {
  position: absolute; inset: auto auto -24px -8px; max-width: 78%;
  background: var(--accent); color: var(--surface);
  rotate: -6deg;
  box-shadow: var(--shadow-card-hover);
}
.klus-card--accent .icoon { background: rgba(255, 255, 255, 0.16); color: var(--surface); }
.klus-card--accent p, .klus-card--accent .check li { color: var(--accent-soft); }
.klus-card--accent .check li::before { background: rgba(255, 255, 255, 0.16); }
.klus-card--accent .check li::after { border-color: var(--surface); }
@media (max-width: 960px) {
  .klussen { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .klus-midden { padding: 0; display: grid; gap: 24px; }
  .klus-midden .klus-card--accent { position: static; max-width: none; rotate: none; }
}

/* == diensten: 2-koloms card-grid == */
.diensten { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.dienst-card {
  display: block; background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 28px; text-decoration: none;
  transition: translate var(--ease), box-shadow var(--ease);
}
.dienst-card:hover { translate: 0 -4px; box-shadow: var(--shadow-card-hover); }
.dienst-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.dienst-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.dienst-card img { border-radius: calc(var(--radius-card) - 6px); width: 100%; }
@media (max-width: 760px) { .diensten { grid-template-columns: 1fr; } }

/* == projecten == */
.projecten { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.project-card {
  display: block; background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 12px 12px 4px; text-decoration: none;
  transition: translate var(--ease), box-shadow var(--ease);
}
.project-card:hover { translate: 0 -4px; box-shadow: var(--shadow-card-hover); }
.project-card figure { position: relative; margin: 0; }
.project-card img { border-radius: calc(var(--radius-card) - 6px); width: 100%; }
.label-pill {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-pill); padding: 5px 14px;
  font-size: 13px; font-weight: 600;
}
.project-card h3 { font-size: 17px; padding: 14px 8px; color: var(--text); }
@media (max-width: 900px) { .projecten { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* == footer: donker blok, spiegelbeeld van de hero == */
.voet-shell { padding: var(--edge); }
.voet {
  background: var(--dark); color: var(--surface);
  border-radius: var(--radius-block);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px) 28px;
  max-width: calc(var(--maxw) + 80px); margin: 0 auto;
}
.voet-binnen { display: grid; gap: 40px; grid-template-columns: 1.2fr 2fr; }
.voet-merk img { height: 34px; width: auto; }
.voet-merk p { color: var(--text-muted-dark); margin-top: 16px; max-width: 30ch; }
.voet-kolommen { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.voet-kolom summary {
  font-weight: 600; font-size: 15px; list-style: none; cursor: default;
  padding-block: 4px; min-height: 0;
}
.voet-kolom summary::-webkit-details-marker { display: none; }
.voet-kolom ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.voet-kolom a {
  color: var(--text-muted-dark); text-decoration: none; font-size: 14px;
  display: inline-block; padding-block: 4px;
  transition: color var(--ease);
}
.voet-kolom a:hover { color: var(--surface); }
.voet-juridisch {
  color: var(--text-muted-dark); font-size: 13px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px; padding-top: 22px;
}
@media (max-width: 820px) {
  .voet-binnen { grid-template-columns: 1fr; }
  .voet-kolommen { grid-template-columns: 1fr; gap: 8px; }
  .voet-kolom summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
  .voet-kolom summary::after { content: '+'; color: var(--text-muted-dark); }
  .voet-kolom[open] summary::after { content: '–'; }
}

/* == subpagina's: donkere kopband + inhoud op wit blok == */
.pagina-kop-shell { padding: var(--edge); }
.pagina-kop {
  background: var(--dark); color: var(--surface);
  border-radius: var(--radius-block);
  padding: 140px clamp(20px, 4vw, 56px) 64px;
}
.pagina-kop h1 { font-size: clamp(30px, 4vw, 44px); max-width: var(--maxw); margin: 0 auto; }
.pagina-inhoud {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  max-width: 820px; margin: 40px auto var(--pad-section);
  padding: clamp(24px, 4vw, 48px);
}
.pagina-inhoud a { color: var(--accent); }
.pagina-inhoud img { border-radius: var(--radius-card); }

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