/* ============================================================
   Smillywood — Site CSS
   Gedeelde basis voor index.html, privacy.html en /projecten/*.
   Pagina-specifieke styles blijven inline per pagina.
   Wijzigingen hier raken alle pagina's.
   ============================================================ */

/* Design tokens */
:root{
  --bg:        #08090A;
  --bg-2:      #0E1012;
  --bg-3:      #14171A;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.18);
  --ink:       #08090A;
  --paper:     #F5F6F7;
  --paper-2:   #E6E8EA;
  --mute:      rgba(245,246,247,0.55);
  --mute-2:    rgba(245,246,247,0.70);
  --accent:    #C8A876; /* warm champagne — adds warmth to the cool palette */
  --accent-2:  #8AA8C5; /* cool steel as secondary */

  --sans:  "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 64px);
}

/* Reset & base */
*{ box-sizing: border-box; margin:0; padding:0; }
html,body{ background: var(--bg); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html{ scroll-behavior: smooth; scroll-padding-top: 90px; }
body{ font-weight: 300; line-height: 1.5; font-size: 16px; overflow-x: hidden; }
img{ max-width: 100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

::selection{ background: var(--accent); color: var(--ink); }

/* Layout */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Section base */
section{ position: relative; }
section.block{ padding: clamp(100px, 14vh, 200px) 0; }

.section-head{
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 96px;
}
.section-head .lead p{
  max-width: 50ch; font-size: 17px; line-height: 1.55; color: var(--mute-2);
}
@media (max-width: 880px){ .section-head{ grid-template-columns: 1fr; gap: 16px; } }

/* Image placeholder (ph) — voor afbeeldingen met of zonder bron */
.ph{
  position: relative; width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #15181B, #0B0C0D);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ph.has-img{ background: #0B0C0D; }
.ph.has-img > img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.ph.has-img::after, .ph.has-img .ph-meta{ display: none; }
.ph::after{
  content: attr(data-ph);
  position: absolute; left: 18px; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--accent); opacity: .85;
}
.ph .ph-meta{
  position: absolute; right: 18px; bottom: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--mute);
}

/* Type */
h1,h2,h3,h4,h5{ font-family: var(--sans); font-weight: 400; letter-spacing: -.025em; }
.display{
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .96; letter-spacing: -.035em; font-weight: 300;
}
.display b{ font-weight: 600; }
.h2{
  font-size: clamp(40px, 6vw, 96px); line-height: .96; letter-spacing: -.035em; font-weight: 300;
}
.h2 b{ font-weight: 600; }
.eyebrow{
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mute-2);
  display:inline-flex; align-items:center; gap: 12px;
}
.eyebrow .dt{ width: 6px; height: 6px; background: var(--accent); border-radius: 0; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap: 12px;
  padding: 14px 22px; border-radius: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--line-2); background: transparent; color: var(--paper);
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.btn .arr{ transition: transform .35s; }
.btn:hover{ background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn:hover .arr{ transform: translateX(4px); }
.btn.primary{ background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.primary:hover{ background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.dark{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark:hover{ background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Nav */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 50;
  display:flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease, padding .4s ease, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid{
  background: rgba(8,9,10,0.78); backdrop-filter: blur(22px);
  padding: 12px var(--pad); border-bottom-color: var(--line);
}
.nav .logo img{ height: 26px; }
.nav nav ul{ display:flex; gap: 36px; list-style: none; font-size: 13px; }
.nav nav a{ opacity: .85; transition: opacity .2s; position: relative; text-shadow: 0 1px 14px rgba(8,9,10,.85); }
.nav nav a:hover{ opacity: 1; }
.nav nav a::after{
  content:""; position:absolute; left:0; bottom: -4px; height:1px; width:0;
  background: var(--accent); transition: width .3s ease;
}
.nav nav a:hover::after{ width: 100%; }
.nav .cta{ font-size: 12px; padding: 10px 18px; gap: 10px; }

/* Diensten-dropdown in de hoofdnavigatie (desktop; nav is < 880px verborgen) */
.nav nav li.has-sub{ position: relative; }
.nav nav .subnav{
  position: absolute; top: 100%; left: -16px; margin: 0; padding: 10px 0; list-style: none;
  min-width: 232px; background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav nav li.has-sub:hover .subnav,
.nav nav li.has-sub:focus-within .subnav{ opacity: 1; visibility: visible; transform: translateY(0); }
.nav nav .subnav a{ display: block; padding: 11px 18px; }
.nav nav .subnav a::after{ display: none; }
@media (max-width: 880px){ .nav nav{ display:none } }

/* Footer */
footer{ background: var(--bg); padding: 80px var(--pad) 36px; }
.foot-top{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-top .logo img{ height: 30px; margin-bottom: 22px; }
.foot-top h5{ font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.foot-top ul{ list-style: none; display:flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-top li{ opacity: .8; }
.foot-top a:hover{ color: var(--accent); }
.foot-bot{ display:flex; justify-content: space-between; align-items: center; padding-top: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; opacity:.55; gap: 24px; flex-wrap: wrap; }
.foot-bot .legal{ display:flex; gap: 28px; }
@media (max-width: 880px){ .foot-top{ grid-template-columns: 1fr 1fr; } }

/* Reveals */
.rv{ opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.in{ opacity: 1; transform: none; }
.rv.d1{ transition-delay: .08s; }
.rv.d2{ transition-delay: .18s; }
.rv.d3{ transition-delay: .28s; }
.rv.d4{ transition-delay: .38s; }

.word-rv{ display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-rv > span{ display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.word-rv.in > span{ transform: none; }

@media (prefers-reduced-motion: reduce){
  .rv, .word-rv > span{ opacity: 1 !important; transform: none !important; transition: none !important; }
}
