/* Wat zit er onder de grond? – stijlblad
   De pagina loopt van boven het maaiveld (lucht) naar steeds diepere lagen:
   dekzand, keileem, veen, ouder zand en ten slotte de diepte (contact). */

@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --lucht: #DDE7EE;
  --dekzand: #EADDB4;
  --keileem: #D6B57A;
  --keileem-donker: #B9853A;
  --veen: #4B3526;
  --zand: #D8C79A;
  --diep: #1F2A44;
  --rood: #C4342C;
  --goud: #E9B44C;
  --inkt: #1F2A44;
  --tekst: #2E3547;
  --licht: #F6F1E4;

  --serif: "Alegreya", Cambria, Georgia, serif;
  --sans: "Alegreya Sans", Calibri, "Segoe UI", sans-serif;

  --maat: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lucht);
  color: var(--tekst);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--rood); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--inkt); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-weight: 700; font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--diep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--maat); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--gutter);
  background: rgba(221, 231, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 42, 68, .12);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--inkt); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--inkt); }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--diep); color: #fff; padding: .45rem .95rem; border-radius: 999px; }
.site-nav .nav-cta:hover { text-decoration: none; background: #2c3a5c; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: block; font: inherit; font-weight: 500; color: var(--inkt);
    background: transparent; border: 1.5px solid var(--inkt); border-radius: 999px; padding: .3rem .9rem; cursor: pointer;
  }
  .site-nav ul {
    display: none; position: absolute; right: var(--gutter); top: calc(100% + .4rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-radius: 10px; padding: .4rem; min-width: 14rem;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .18);
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li a { display: block; padding: .6rem .8rem; }
  .site-nav .nav-cta { margin-top: .3rem; text-align: center; }
  .brand span { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--rood); color: #fff; }
.btn-primary:hover { background: #a92a23; }
.btn-quiet { color: var(--inkt); border-color: var(--inkt); }
.btn-quiet:hover { background: var(--inkt); color: #fff; }
.btn-dark { background: var(--diep); color: #fff; }
.btn-dark:hover { background: #2c3a5c; }
.btn-gold { background: var(--goud); color: var(--diep); }
.btn-gold:hover { background: #f2c66a; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }
.hero-text {
  max-width: var(--maat); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-text > :not(.hero-book) { grid-column: 1; }
.hero-text h1 { max-width: 16ch; }
.hero-book {
  grid-column: 2; grid-row: 1 / span 4; align-self: end; justify-self: center;
  width: min(100%, 300px); margin-bottom: calc(-1 * clamp(4rem, 9vw, 7.5rem)); position: relative; z-index: 2;
  transform: rotate(3deg); transition: transform .2s ease;
}
.hero-book img { border-radius: 3px; box-shadow: 0 18px 40px rgba(31, 42, 68, .35); }
.hero-book:hover { transform: rotate(1deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .hero-book { transition: none; } }
@media (max-width: 860px) {
  .hero-text { grid-template-columns: 1fr; }
  .hero-book { display: none; }
}
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--rood); margin-bottom: .6rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); max-width: 40em; margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.section-cut { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; position: relative; z-index: 1; }
.section-cut svg { display: block; width: 100%; height: clamp(300px, 34vw, 490px); }
.section-cut figcaption {
  background: var(--zand); color: #5a4a2c; font-size: .9rem;
  padding: .2rem var(--gutter) 1rem; text-align: right;
}
.cut-label text { font-family: var(--sans); font-weight: 700; font-size: 17px; fill: #4a3820; }
.cut-label text.on-dark { fill: var(--dekzand); }
.cut-label .sub { font-weight: 500; }
@media (max-width: 700px) { .cut-label text { font-size: 30px; } }

/* ---------- Lagen ---------- */
.layer { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.layer-dekzand { background: var(--dekzand); }
.layer-keileem { background: var(--keileem); }
.layer-veen { background: var(--veen); color: #EFE4CF; }
.layer-veen h2, .layer-veen h3 { color: #fff; }
.layer-zand { background: var(--zand); }
.layer-diep { background: var(--diep); color: #DCE3F0; }
.layer-diep h2 { color: #fff; }

/* dieptemeter in de kantlijn */
.depth {
  position: absolute; left: 0; top: clamp(4rem, 9vw, 7rem);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  padding: .8rem .45rem; border-left: 2px solid currentColor;
  color: rgba(31, 42, 68, .55);
}
.layer-veen .depth, .layer-diep .depth { color: rgba(255, 255, 255, .45); }
@media (max-width: 1240px) { .depth { display: none; } }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.2rem; margin-top: 1rem; }

/* ---------- Tijdschuif ---------- */
.timeslider { margin: 0 0 clamp(3rem, 7vw, 5rem); }
.timeslider-frame {
  position: relative; aspect-ratio: 1100 / 760; overflow: hidden;
  border-radius: 6px; background: #c9bd98;
  box-shadow: 0 0 0 1px rgba(31, 42, 68, .2);
}
.timeslider-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.timeslider-frame img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .timeslider-frame img { transition: none; } }
.timeslider-year {
  position: absolute; left: 1rem; bottom: .8rem;
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.timeslider-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.timeslider-controls button {
  font: inherit; font-weight: 700; color: var(--inkt);
  background: transparent; border: 2px solid rgba(31, 42, 68, .35);
  border-radius: 999px; padding: .35rem 1rem; cursor: pointer;
}
.timeslider-controls button:hover { border-color: var(--inkt); }
.timeslider-controls button[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: #fff; }
.timeslider figcaption { font-size: .85rem; color: #6b5b39; margin-top: .6rem; }

/* ---------- Voorbeeldpagina's ---------- */
.sample { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pages {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 42%);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.2rem; overscroll-behavior-x: contain;
}
.pages figure { margin: 0; scroll-snap-align: start; }
.pages img { border-radius: 3px; box-shadow: 0 6px 18px rgba(75, 53, 38, .25); background: #fff; }
.pages figcaption { font-size: .95rem; margin-top: .6rem; color: #5a4a2c; }
.contents h3 { margin-bottom: 1rem; }
.contents ul { margin: 0 0 1.8rem; padding: 0; list-style: none; }
.contents li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid rgba(75, 53, 38, .18); position: relative; }
.contents li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem;
  background: var(--keileem-donker); border-radius: 50%;
}
@media (max-width: 860px) {
  .sample { grid-template-columns: 1fr; }
  .pages { grid-auto-columns: 70%; }
}

/* ---------- Voor wie ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 0; }
.audiences > div { padding: 1.6rem 0; border-top: 2px solid rgba(75, 53, 38, .35); }
.audiences dt { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--inkt); margin-bottom: .5rem; }
.audiences dd { margin: 0; max-width: 34em; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }

/* Bedrijven en organisaties */
.business { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 2px solid rgba(75, 53, 38, .35); }
.business h3 { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--inkt); margin: 0 0 .5rem; }
.business-intro { margin: 0; max-width: 44rem; }
.business-uses { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.business-uses li { padding-top: 1rem; border-top: 1px solid rgba(75, 53, 38, .25); }
.business-uses h4 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--inkt); margin: 0 0 .4rem; }
.business-uses p { margin: 0; }
.business-cta { margin: 1.6rem 0 0; }
.business-cta a { color: inherit; font-weight: 600; }
@media (max-width: 860px) { .business-uses { grid-template-columns: 1fr; } }

/* ---------- Werkwijze ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: stap; }
.steps li { counter-increment: stap; border-top: 2px solid rgba(239, 228, 207, .35); padding-top: 1.2rem; }
.steps li::before {
  content: counter(stap); display: block;
  font-family: var(--serif); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--goud); margin-bottom: .6rem;
}
.steps h3 { margin-bottom: .6rem; }
.price { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 44rem; padding: 1.6rem 1.8rem; border: 2px solid rgba(233, 180, 76, .6); border-radius: 8px; }
.price h3 { color: var(--goud); margin-bottom: .6rem; }
.price p { margin: 0; }
.price p + p { margin-top: .8rem; }
.audiences-extra { margin: 2rem 0 0; max-width: 44rem; font-size: 1.1rem; }
.audiences-extra a { color: inherit; font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Over mij ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-text h2 { margin-bottom: 1.2rem; max-width: 16ch; }
.about-text p { max-width: 36em; }
.about-photo img { border-radius: 8px; max-height: 40rem; width: auto; margin-inline: auto; box-shadow: 0 10px 30px rgba(75, 53, 38, .25); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 18rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); }
.contact-intro p { font-size: 1.2rem; }
.contact-person { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.contact-person img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--goud); }
.contact-person p { margin: 0; color: #fff; font-weight: 700; font-size: 1.1rem !important; line-height: 1.3; }
.contact-person span { font-weight: 400; color: #AEB9CF; font-size: 1rem; }
.contact-direct { font-size: 1rem !important; color: #AEB9CF; }
.contact-direct a { color: var(--goud); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 500; color: #fff; }
.optional { color: #AEB9CF; font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--diep); background: #F6F1E4;
  border: 2px solid transparent; border-radius: 6px; padding: .65rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--goud); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-note { font-size: .9rem; color: #AEB9CF; margin: 0; max-width: 26em; }
.form-note a { color: #DCE3F0; }
.form-error { grid-column: 1 / -1; color: #ffb4ab; margin: 0; font-weight: 500; }
.form-success { grid-column: 1 / -1; color: var(--goud); margin: 0; font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #151D30; color: #AEB9CF; padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .4rem; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.site-footer a { color: #DCE3F0; }
.copyright { margin-top: 2rem; font-size: .85rem; color: #7F8BA5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Losse pagina's (privacy) ---------- */
.page { background: var(--dekzand); padding: clamp(3rem, 8vw, 5rem) 0; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }

/* Leveringsvorm direct zichtbaar in de hero */
.hero-format { margin: .9rem 0 0; font-weight: 600; color: var(--inkt); }
