/* ==========================================================
   Tom's Tuinonderhoud
   Kleuren en lettertypes pas je hier bovenin aan.
   ========================================================== */

/* Glacial Indifference: zet de bestanden in assets/fonts/ (zie LEESMIJ.md) */
@font-face {
  font-family: "Glacial Indifference";
  src: local("Glacial Indifference"), local("GlacialIndifference-Regular"),
       url("assets/fonts/GlacialIndifference-Regular.woff2") format("woff2"),
       url("assets/fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: local("Glacial Indifference Bold"), local("GlacialIndifference-Bold"),
       url("assets/fonts/GlacialIndifference-Bold.woff2") format("woff2"),
       url("assets/fonts/GlacialIndifference-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Kleuren */
  --cream: #f4f3ec;
  --green: #434a33;
  --sage: #afbe98;
  --black: #111310;
  --white: #ffffff;

  /* Afgeleid van bovenstaande */
  --accent: color-mix(in srgb, var(--green) 72%, var(--sage));   /* de schuine koppen */
  --tint: color-mix(in srgb, var(--sage) 22%, var(--cream));     /* licht groene vlakken */
  --line: color-mix(in srgb, var(--sage) 55%, var(--cream));     /* dunne randen */
  --muted: color-mix(in srgb, var(--green) 78%, var(--cream));   /* rustige tekst */

  /* Lettertypes */
  --font-head: "Libre Baskerville", Georgia, serif;
  --font-body: "Glacial Indifference", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--green);
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.eyebrow {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.7rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 30%, transparent); }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ico-lg { width: 2rem; height: 2rem; color: var(--accent); }

/* Knoppen en links */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; font-family: inherit;
  font-size: 1rem; font-weight: 700; padding: 1.05rem 1.6rem; border-radius: var(--radius);
  border: 0; cursor: pointer; transition: transform .2s, background .2s;
}
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--black); transform: translateY(-1px); }
.link-line { display: inline-flex; gap: .6rem; align-items: center; font-weight: 700; text-decoration: none; padding-bottom: .5rem; border-bottom: 1.5px solid var(--sage); }
.link-line:hover { border-color: var(--green); }

/* Kop */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { padding: .85rem 1.3rem; }

/* Hero */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding: 3rem 0 4rem; }
.hero-text h1 { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin: 2rem 0 1.6rem; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; padding: 0; margin: 0; font-size: .95rem; color: var(--muted); }
.checks li { display: flex; gap: .5rem; align-items: center; }

.hero-visual { position: relative; aspect-ratio: 4 / 4.2; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; border-radius: 140px 6px 6px 6px; }
.hero-visual > img { object-position: 50% 40%; }
.shade { position: absolute; inset: auto 0 0 0; height: 30%; border-radius: 0 0 6px 6px; background: linear-gradient(to top, rgba(30,34,22,.6), transparent); pointer-events: none; }
.photo-note { position: absolute; top: 1.2rem; right: 1.2rem; background: color-mix(in srgb, var(--black) 40%, transparent); color: var(--cream); font-size: .75rem; padding: .3rem .7rem; border-radius: 4px; }
.badge { position: absolute; left: -64px; bottom: 36px; width: 160px; height: 160px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.12)); }
.badge text { font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: .22em; fill: var(--green); }
.hero-caption { position: absolute; left: 3.5rem; bottom: 1.4rem; display: flex; gap: .8rem; align-items: center; color: var(--cream); font-size: .95rem; line-height: 1.35; margin: 0; }
.hero-caption .ico { width: 2.4rem; height: 2.4rem; padding: .5rem; border: 1px solid color-mix(in srgb, var(--cream) 60%, transparent); border-radius: 50%; }

.trustbar { background: var(--tint); border-top: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.5rem 0; font-size: .98rem; }
.trust-inner span, .trust-link { display: inline-flex; gap: .7rem; align-items: center; }
.trust-link { font-weight: 700; text-decoration: none; }
.trust-link:hover { color: var(--accent); }

/* Secties */
.section { padding: 6rem 0; }
.tint { background: var(--tint); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.side { text-align: right; max-width: 34em; margin: 0; }

/* Diensten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(67,74,51,.45); }
.card-top { display: flex; justify-content: space-between; align-items: start; font-size: .8rem; color: var(--muted); margin-bottom: 1.8rem; }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--muted); flex: 1; font-size: 1rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1rem; text-decoration: none; font-size: .92rem; }
.card-foot:hover { color: var(--accent); }

/* Voor / na */
.compare { position: relative; aspect-ratio: 4 / 5; max-width: 760px; margin-inline: auto; border-radius: 10px; overflow: hidden; user-select: none; --pos: 50%; background: var(--sage); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--cream); transform: translateX(-1px); pointer-events: none; }
.handle span { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.handle .ico { width: 28px; height: 28px; }
.tag { position: absolute; top: 1.8rem; background: var(--cream); font-weight: 700; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; padding: .55rem 1rem; border-radius: 4px; }
.tag-l { left: 1.8rem; } .tag-r { right: 1.8rem; }
.hint { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: color-mix(in srgb, var(--green) 80%, transparent); color: var(--cream); font-size: .85rem; padding: .6rem 1.2rem; border-radius: 99px; display: flex; gap: .6rem; align-items: center; pointer-events: none; white-space: nowrap; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-foot { max-width: 760px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 1rem; margin-top: 1.6rem; }
.compare-foot p { margin: 0; }

/* Over Tom */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-visual .about-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 52% 30%; border-radius: 6px 160px 6px 6px; }
.about-visual .about-second { position: absolute; right: -1rem; bottom: -2.5rem; width: 34%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 60%; border: 6px solid var(--cream); border-radius: 10px; box-shadow: 0 10px 28px -14px rgba(0,0,0,.35); }
.tint .about-second { border-color: var(--tint); }
.stamp { position: absolute; left: -0.8rem; top: 1.6rem; background: var(--green); color: var(--cream); font-family: var(--font-head); font-style: italic; font-size: 1.5rem; padding: 1.4rem 1.8rem; border-radius: 4px; text-decoration: none; display: flex; gap: 1.2rem; align-items: center; transform: rotate(-4deg); }
.about-text h2 { margin-bottom: 1.8rem; }
.about-text p { color: var(--muted); }
.note { display: flex; gap: 1rem; align-items: center; margin: 2rem 0 !important; color: var(--accent) !important; font-size: .98rem; }
.note .ico { width: 2rem; height: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; }
.contact-intro h2 { margin-bottom: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .ico { width: 2.6rem; height: 2.6rem; padding: .6rem; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--sage); word-break: break-word; }
.contact-list a:hover { border-color: var(--green); }
.form { display: grid; gap: 1.4rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
label { display: block; font-weight: 700; font-size: .95rem; }
label input, label select, label textarea { margin-top: .5rem; }
.req { color: var(--accent); } .opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--green); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; width: 100%;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--green) 55%, var(--cream)); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--green); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.form-foot p { margin: 0; }
.invalid { border-color: #a8442f !important; }

/* Voet */
.site-footer { background: var(--green); color: var(--cream); padding: 4rem 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid color-mix(in srgb, var(--cream) 20%, transparent); }
.footer-logo { height: 90px; width: auto; }
.footer-quote { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; color: var(--sage); margin: 0; }
.footer-up { text-decoration: none; font-size: .95rem; display: inline-flex; gap: .7rem; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: color-mix(in srgb, var(--cream) 70%, var(--green)); }

/* Tablet en telefoon */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .badge { left: 12px; bottom: auto; top: -48px; width: 120px; height: 120px; }
  .side { text-align: left; }
  .about-visual { margin-bottom: 2rem; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { width: min(var(--maxw), 100% - 36px); }
  .nav a:not(.btn) { display: none; }
  .logo img { height: 52px; }
  .section { padding: 4rem 0; }
  .cards, .row { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 3; }
  .hint { display: none; }
  .hero-visual { aspect-ratio: 4 / 4.6; }
  .stamp { left: -0.4rem; top: 1rem; font-size: 1.05rem; padding: .9rem 1.2rem; }
  .about-visual .about-second { right: -.4rem; bottom: -2rem; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
