/* Hoveniersbedrijf – stylesheet
   Opzet: rustige, groene huisstijl. Foto's dragen de site, tekst blijft kort en duidelijk.
   Kleuren en lettertypes staan hieronder als variabelen; pas die aan voor een eigen huisstijl. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f5f7f2;          /* papier met een zweem groen */
  --surface: #ffffff;
  --ink: #1c2a20;         /* bijna-zwart, groen getint */
  --muted: #56655a;
  --line: #dde4da;
  --moss: #24432f;        /* hoofdkleur */
  --moss-ink: #f1f5ee;    /* tekst op moskleur */
  --leaf: #3d6a48;
  --honey: #b9852b;       /* accent, spaarzaam gebruikt */
  --shade: rgba(20, 35, 25, 0.08);

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a15; --surface: #18231c; --ink: #e6ede4; --muted: #a3b2a6; --line: #2a3a2f;
    --moss: #2f5a3d; --moss-ink: #eef4ec; --leaf: #8fc29b; --honey: #ddb066; --shade: rgba(0,0,0,0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a15; --surface: #18231c; --ink: #e6ede4; --muted: #a3b2a6; --line: #2a3a2f;
  --moss: #2f5a3d; --moss-ink: #eef4ec; --leaf: #8fc29b; --honey: #ddb066; --shade: rgba(0,0,0,0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; color: transparent; } /* verberg alt-tekst als een foto (nog) niet laadt */
a { color: var(--leaf); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--honey); outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.stack { display: grid; gap: 1rem; }
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--moss); color: var(--moss-ink); }
.btn--primary:hover { background: var(--leaf); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--leaf); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Kop */
.topbar { background: var(--moss); color: var(--moss-ink); font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar a { color: inherit; text-decoration: none; font-weight: 600; }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.logo span { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--leaf); }
.nav .btn { padding: 0.6rem 1.1rem; }
.nav a.btn--primary, .nav a.btn--primary[aria-current] { color: var(--moss-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.75rem; color: var(--ink); font: inherit; font-weight: 600; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.75rem; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px 22px 22px 120px; background: var(--line); }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; box-shadow: 0 10px 30px var(--shade);
  font-size: var(--step--1); max-width: 240px;
}
.hero-badge strong { display: block; font-size: 1rem; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 0.4rem; }
.checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.6-4.2 5a.8.8 0 0 1-1.2 0L4.4 8.8a.8.8 0 1 1 1.2-1.1l1.2 1.3 3.6-4.4a.8.8 0 1 1 1.2 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.6-4.2 5a.8.8 0 0 1-1.2 0L4.4 8.8a.8.8 0 1 1 1.2-1.1l1.2 1.3 3.6-4.4a.8.8 0 1 1 1.2 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; border-radius: 18px 18px 18px 72px; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* Diensten */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service {
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px var(--shade); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.service-body { display: grid; gap: 0.6rem; align-content: start; padding: 1.2rem 1.25rem 1.4rem; }
.service-body h3 { font-size: 1.4rem; }
.service-body p { color: var(--muted); font-size: 0.98rem; }
.more { font-weight: 600; color: var(--leaf); font-size: 0.95rem; }

/* Werkwijze */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: stap; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: stap; display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 2px solid var(--moss); min-width: 0; }
.steps li::before { content: "Stap " counter(stap); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--honey); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Over ons */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--line); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.usps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.usps li { display: grid; gap: 0.15rem; padding-left: 1.1rem; border-left: 3px solid var(--honey); }
.usps strong { font-weight: 650; }
.usps span { color: var(--muted); font-size: 0.98rem; }

/* Projecten */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: var(--step--1); color: var(--muted); }
.chip { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--leaf) 14%, transparent); color: var(--leaf); font-weight: 600; font-size: var(--step--1); }
.project-card { display: grid; gap: 0.75rem; align-content: start; min-width: 0; text-decoration: none; color: var(--ink); }
.project-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.project-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-photo img { transform: scale(1.03); }
.photo-count { position: absolute; right: 10px; bottom: 10px; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(15, 25, 18, .72); color: #fff; font-size: 0.8rem; font-weight: 600; }
.project-card h3 { font-size: 1.35rem; }
.project-card:hover h3 { color: var(--leaf); }
.project-card p { color: var(--muted); font-size: 0.98rem; }

.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; }
.carousel-btn:hover { border-color: var(--leaf); color: var(--leaf); }

/* Fotoserie op de projectpagina */
.slideshow { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; max-width: 100%; background: var(--line); }
@media (max-width: 620px) { .slideshow { aspect-ratio: 4 / 3; } }
.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.slideshow .slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow a.slide { display: block; color: #fff; text-decoration: none; }
.slideshow a.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.35rem; justify-items: start; padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 3rem; background: linear-gradient(to top, rgba(10, 20, 13, .78), rgba(10, 20, 13, 0)); }
.slide-caption strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; text-wrap: balance; }
.slide-caption > span:last-child { font-size: 0.95rem; opacity: .9; }
.slide-caption .chip { background: rgba(255,255,255,.18); color: #fff; }
.slideshow--projects { aspect-ratio: 21 / 9; }
@media (max-width: 900px) { .slideshow--projects { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .slideshow--projects { aspect-ratio: 4 / 5; } .slideshow .carousel-btn { display: none; } }
.slideshow .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.slide-dots button[aria-current="true"] { background: #fff; }
.section-foot { margin-top: 2rem; }

/* Losse pagina's */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }
.page-head .wrap { display: grid; gap: 0.9rem; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li::marker { color: var(--leaf); }
.dienst-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.dienst-layout > * { min-width: 0; }
@media (max-width: 860px) { .dienst-layout { grid-template-columns: 1fr; } }
.dienst-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; background: var(--line); }
.aside-card { position: sticky; top: 100px; display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h3 { font-size: 1.4rem; }
.aside-card p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.form small { color: var(--muted); }
.form-status { font-weight: 600; color: var(--leaf); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list span { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.contact-list a, .contact-list strong { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }

/* Afsluitende oproep */
.cta { background: var(--moss); color: var(--moss-ink); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.5fr auto; gap: 1.5rem; align-items: center; }
.cta > * { min-width: 0; }
.cta p { opacity: 0.85; margin-top: 0.5rem; }
.cta .btn--primary { background: var(--moss-ink); color: var(--moss); }
.cta .btn--primary:hover { background: #fff; }
.cta .btn--ghost { color: var(--moss-ink); border-color: color-mix(in srgb, var(--moss-ink) 40%, transparent); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Voet */
.footer { margin-top: clamp(56px, 8vw, 104px); background: var(--surface); border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 48px 32px; }
.footer .wrap > * { min-width: 0; }
.footer h4 { margin: 0 0 0.6rem; color: var(--ink); font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1rem; grid-template-columns: none; font-size: var(--step--1); }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service, .btn, .project-photo img, .slideshow .slide { transition: none; }
  .service:hover { transform: none; }
}

/* Veelgestelde vragen */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-wrap > * { min-width: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--leaf); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 62ch; }
.footer-bottom a { color: inherit; }
