/* ============================================================
   Gerben Terpstra — Openhaardhout & Boswerkzaamheden
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* Color tokens */
  --bark:      #241a14;
  --bark-2:    #372a20;
  --birch:     #f2ead9;
  --birch-2:   #e6dabd;
  --rood:      #b23b2e;
  --rood-dark: #8f2e23;
  --mos:       #5c6b3f;
  --eiken:     #c9925c;
  --as:        #837a6d;
  --wit:       #fffdf9;

  /* Type */
  --f-display: "Fraunces", serif;
  --f-body: "Work Sans", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --radius: 4px;
  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  background: var(--birch);
  color: var(--bark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

:focus-visible{
  outline: 3px solid var(--rood);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rood);
}
.eyebrow.on-dark{ color: var(--eiken); }

/* ---------------- Log-round mark (signature element) ---------------- */
.mark{
  width: 34px; height: 34px;
  flex: none;
}
.mark circle, .mark path{ vector-effect: non-scaling-stroke; }

/* ---------------- Header / nav ---------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--bark);
  border-bottom: 1px solid rgba(242,234,217,.12);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
  color: var(--birch);
}
.brand .mark circle{ stroke: var(--eiken); fill:none; }
.brand .mark .pith{ fill: var(--rood); stroke:none; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 700;
}
.brand-text span{
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing:.09em;
  color: var(--eiken);
  text-transform: uppercase;
}
.nav-links{
  display:flex; gap: 28px;
  align-items:center;
}
.nav-links a{
  color: var(--birch);
  font-size: .95rem;
  font-weight: 500;
  position:relative;
  padding: 6px 2px;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:2px; background: var(--rood);
  transition: right .22s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ right:0; }
.nav-links a[aria-current="page"]{ color: var(--wit); }
.nav-cta{
  background: var(--rood);
  color: var(--wit) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight:600 !important;
}
.nav-cta::after{ display:none; }
.nav-cta:hover{ background: var(--rood-dark); }

.nav-toggle{
  display:none;
  background:none; border:0; color:var(--birch);
  width:40px; height:40px; cursor:pointer;
}
.nav-toggle svg{ width:24px; height:24px; }

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background: var(--bark);
    flex-direction:column; align-items:stretch;
    padding: 6px 24px 20px;
    gap: 4px;
    display:none;
    border-bottom: 1px solid rgba(242,234,217,.12);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding: 12px 4px; }
  .nav-links a::after{ display:none; }
  .nav-cta{ margin-top:8px; text-align:center; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  color: var(--wit);
  min-height: 78vh;
  display:flex; align-items:flex-end;
  overflow:hidden;
}
.hero-media{
  position:absolute; top:0; left:0; right:0; bottom:0;
  background-size: cover;
  background-position: center 62%;
}
.hero-media::after{
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, rgba(36,26,20,.30) 0%, rgba(36,26,20,.55) 55%, rgba(36,26,20,.94) 100%);
}
.hero-inner{
  position:relative;
  padding: 120px 24px 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  width:100%;
}
.hero h1{
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 15ch;
  color: var(--wit);
}
.hero h1 em{
  font-style: italic;
  color: var(--eiken);
}
.hero-sub{
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 46ch;
  color: var(--birch-2);
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 26px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight:600;
  font-size: .96rem;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--rood); color: var(--wit); }
.btn-primary:hover{ background: var(--rood-dark); }
.btn-ghost{ border-color: rgba(255,255,255,.55); color: var(--wit); }
.btn-ghost:hover{ border-color: var(--wit); background: rgba(255,255,255,.08); }
.btn-dark{ background: var(--bark); color: var(--birch); }
.btn-dark:hover{ background: #150f0b; }

/* ---------------- Stapel divider (signature) ---------------- */
.stapel-divider{
  display:flex;
  height: 20px;
  background: var(--bark);
}
.stapel-divider span{
  flex:1;
  border-right: 1px solid rgba(242,234,217,.09);
}
.stapel-divider span:nth-child(3n){ background: rgba(178,59,46,.5); }
.stapel-divider span:nth-child(5n){ background: rgba(201,146,92,.35); }

/* ---------------- Sections ---------------- */
section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.on-dark{ background: var(--bark); color: var(--birch); }
.on-alt{ background: var(--birch-2); }
.section-head{ max-width: 62ch; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.on-dark .section-head h2{ color: var(--wit); }
.section-head p{ color: var(--as); font-size: 1.05rem; }
.on-dark .section-head p{ color: var(--birch-2); }

/* ---------------- Quick-nav cards (home) ---------------- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px){ .card-grid{ grid-template-columns: 1fr; } }
.card{
  background: var(--wit);
  border: 1px solid rgba(36,26,20,.09);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,26,20,.10); }
.card .mark{ margin-bottom: 18px; }
.card .mark circle{ stroke: var(--rood); fill:none; }
.card .mark .pith{ fill: var(--eiken); stroke:none; }
.card h3{ font-size: 1.28rem; margin-bottom:.35em; }
.card p{ color: var(--as); font-size: .96rem; margin-bottom: 1.1em; }
.card-link{
  font-family: var(--f-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rood);
  font-weight:500;
}
.card-link::after{ content:" →"; }

/* ---------------- Werkgebied strip ---------------- */
.gebied{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-top: 8px;
}
.gebied span{
  font-family: var(--f-mono);
  font-size: .82rem;
  padding: 7px 14px;
  border: 1px solid rgba(242,234,217,.3);
  border-radius: 999px;
  color: var(--birch);
}
.gebied span.hoofd{
  background: var(--rood);
  border-color: var(--rood);
  color: var(--wit);
}

/* ---------------- Kuub gauge (signature detail on producten/diensten) ---------------- */
.kuub-gauge{
  border: 1px solid rgba(36,26,20,.14);
  background: var(--wit);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-width: 480px;
}
.kuub-gauge .label{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family: var(--f-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color: var(--as);
  margin-bottom:10px;
}
.kuub-gauge .label b{ font-family:var(--f-display); font-size:1.4rem; color:var(--bark); text-transform:none; letter-spacing:0; }
.kuub-row{ display:flex; gap:4px; }
.kuub-row i{
  flex:1; height: 26px; border-radius: 2px;
  background: var(--eiken);
  opacity:.35;
}
.kuub-row i.fill{ opacity:1; background: var(--rood); }

/* ---------------- Over mij ---------------- */
.split{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items:center;
}
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; } }
.split img{
  border-radius: var(--radius);
  width:100%;
  object-fit:cover;
}
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

.pagehead{
  background: var(--bark);
  color: var(--birch);
  padding: 150px 0 60px;
}
.pagehead h1{ color: var(--wit); font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 20ch; }
.pagehead p{ color: var(--birch-2); max-width: 56ch; font-size: 1.05rem; }

.quote-block{
  border-left: 3px solid var(--rood);
  padding-left: 22px;
  margin: 34px 0;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--bark);
}

.feature-list{ display:grid; gap: 16px; margin-top: 24px; }
.feature-list li{
  display:flex; gap:14px; align-items:flex-start;
  font-size: .98rem;
}
.feature-list .mark{ width:24px; height:24px; margin-top:2px; }
.feature-list .mark circle{ stroke: var(--mos); fill:none; }
.feature-list .mark .pith{ fill: var(--rood); stroke:none; }

/* ---------------- Products ---------------- */
.product-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 780px){ .product-grid{ grid-template-columns: 1fr; } }
.product{
  background: var(--wit);
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(36,26,20,.09);
  display:flex; flex-direction:column;
}
.product-media{ aspect-ratio: 4/3; overflow:hidden; }
.product-media img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.product:hover .product-media img{ transform: scale(1.045); }
.product-media.placeholder{
  display:flex; align-items:center; justify-content:center;
  background: var(--birch-2);
  border-bottom: 1px dashed rgba(36,26,20,.2);
}
.product-media.placeholder div{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.product-media.placeholder .mark circle{ stroke: var(--as); fill:none; }
.product-media.placeholder .mark .pith{ fill: var(--as); stroke:none; }
.product-media.placeholder span{
  font-family: var(--f-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em;
  color: var(--as);
}
.product-body{ padding: 26px 26px 28px; flex:1; display:flex; flex-direction:column; }
.product-body h3{ font-size:1.4rem; }
.product-body p{ color: var(--as); }
.spec-row{
  display:flex; flex-wrap:wrap; gap:8px;
  margin: 14px 0 18px;
}
.spec-row span{
  font-family: var(--f-mono);
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--birch-2);
  color: var(--bark);
}
.price-tag{
  margin-top:auto;
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 16px;
  border-top: 1px dashed rgba(36,26,20,.18);
}
.price-tag .p{ font-family: var(--f-display); font-size:1.15rem; font-weight:600; }
.price-tag a{ font-family: var(--f-mono); font-size:.8rem; color: var(--rood); font-weight:600; }

/* ---------------- Diensten ---------------- */
.diensten-list{ display:grid; gap: 1px; background: rgba(36,26,20,.12); border:1px solid rgba(36,26,20,.12); border-radius: var(--radius); overflow:hidden; }
.dienst{
  background: var(--wit);
  padding: 30px 30px;
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items:flex-start;
}
@media (max-width:640px){ .dienst{ grid-template-columns: 40px 1fr; padding:24px 18px; } }
.dienst .mark{ width:46px; height:46px; margin-top:4px; }
.dienst .mark circle{ stroke: var(--rood); fill:none; }
.dienst .mark .pith{ fill: var(--mos); stroke:none; }
.dienst h3{ font-size:1.28rem; margin-bottom:.3em; }
.dienst p{ color: var(--as); margin-bottom:0; }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--rood);
  color: var(--wit);
  padding: 64px 0;
  text-align:center;
}
.cta-band h2{ color:var(--wit); font-size: clamp(1.7rem,3.6vw,2.4rem); }
.cta-band p{ color: rgba(255,255,255,.88); max-width:52ch; margin-inline:auto; }
.cta-band .btn-dark{ background: var(--bark); }
.cta-band .btn-dark:hover{ background:#150f0b; }
.cta-band .actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:24px; }

/* ---------------- Contact ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background: var(--wit);
  border:1px solid rgba(36,26,20,.09);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3{ font-size:1.1rem; }
.contact-line{ display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid rgba(36,26,20,.08); font-size:.98rem; }
.contact-line:last-child{ border-bottom:0; }
.contact-line .mark{ width:20px; height:20px; }
.contact-line .mark circle{ stroke: var(--rood); fill:none; }
.contact-line .mark .pith{ fill: var(--eiken); stroke:none; }
.contact-line a{ color: var(--rood); font-weight:600; }

form.contact-form{ display:grid; gap: 16px; }
.field{ display:grid; gap:6px; }
.field label{ font-family: var(--f-mono); font-size:.74rem; text-transform:uppercase; letter-spacing:.07em; color: var(--as); }
.field input, .field textarea, .field select{
  font-family: var(--f-body);
  font-size: .98rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(36,26,20,.18);
  border-radius: var(--radius);
  background: var(--wit);
  color: var(--bark);
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--rood);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size:.82rem; color: var(--as); }

/* ---------------- Footer ---------------- */
footer{
  background: var(--bark);
  color: var(--birch-2);
  padding: 56px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(242,234,217,.12);
}
@media (max-width: 720px){ .footer-grid{ grid-template-columns:1fr; gap:28px; } }
.footer-grid h4{
  font-family: var(--f-mono);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color: var(--eiken);
  margin-bottom: 14px;
}
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom: 14px; }
.footer-brand strong{ font-family:var(--f-display); font-size:1.2rem; color:var(--wit); }
.footer-grid p{ color: rgba(242,234,217,.7); font-size:.93rem; max-width: 34ch; }
.footer-grid ul li{ margin-bottom:9px; font-size:.93rem; }
.footer-grid a:hover{ color: var(--wit); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top: 22px;
  font-size: .82rem;
  color: rgba(242,234,217,.55);
  font-family: var(--f-mono);
}

/* ---------------- reveal on scroll ---------------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
