/* Damn Good Soap Company — stoer, houtachtig, handgemaakt */

:root {
  --ink: #131311;
  --charcoal: #1d1d1a;
  --forest: #1c2a21;
  --moss: #34503a;
  --leaf: #6dbf4b;
  --kraft: #e9dfca;
  --paper: #f5f0e4;
  --text: #1a1a17;
  --muted: #5d5a50;
  --line: rgba(19, 19, 17, .14);
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }

/* korrel over de hele pagina */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--leaf); color: var(--ink); padding: 8px 14px; }

.eyebrow {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .18em;
  color: var(--leaf); margin-bottom: .6em; display: block;
}

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 400 1.25rem/1 var(--display); letter-spacing: .08em;
  padding: .85em 1.4em .75em;
  border: 2px solid currentColor; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; background: none; color: inherit;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }
.btn--solid:hover { background: #7fd35b; border-color: #7fd35b; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--moss); border-color: var(--moss); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(19, 19, 17, .94); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 112px; transition: height .3s; }
.site-header.is-scrolled .wrap, .site-header.is-solid .wrap { height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__img { width: 92px; height: auto; transition: transform .25s, width .3s; }
.site-header.is-scrolled .logo__img, .site-header.is-solid .logo__img { width: 70px; }
.logo:hover .logo__img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-family: var(--display); font-size: 1.2rem; letter-spacing: .08em; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { border: 1px solid rgba(255,255,255,.35); padding: 5px 9px 3px; border-radius: var(--radius); }
.lang::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-header .wrap, .site-header.is-scrolled .wrap, .site-header.is-solid .wrap { height: 84px; }
  .logo__img, .site-header.is-scrolled .logo__img, .site-header.is-solid .logo__img { width: 66px; }
  .nav {
    position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); padding: 8px var(--gutter) 24px;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: -1;
  }
  .nav a { font-size: 1.8rem; padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .lang { border: 0; padding: 10px 0; margin-top: 8px; font-size: 1.3rem; opacity: .75; }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open .site-header { background: var(--ink); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--paper); background: var(--forest); overflow: hidden;
  padding: 150px 0 clamp(48px, 9vh, 110px);
}
.hero__bg { position: absolute; inset: -8% 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19,19,17,.35) 0%, rgba(19,19,17,.1) 40%, rgba(19,19,17,.85) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
@media (max-width: 999px) {
  .hero__bg { inset: -4% 0 40% 0; }
  .hero::before { background: linear-gradient(180deg, rgba(19,19,17,.35) 0%, rgba(28,42,33,0) 25%, rgba(28,42,33,.7) 52%, var(--forest) 60%); }
}
@media (min-width: 1000px) {
  .hero__bg { left: 36%; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--forest) 34%, rgba(28,42,33,.55) 46%, rgba(28,42,33,0) 62%),
      linear-gradient(180deg, rgba(19,19,17,.35) 0%, rgba(19,19,17,0) 30%, rgba(19,19,17,.55) 100%);
  }
  .hero { align-items: center; }
}
.hero h1 { max-width: 11ch; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34rem; opacity: .92; }
.hero .btns { margin-top: 28px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 32px; z-index: 2; font-family: var(--display); letter-spacing: .2em; writing-mode: vertical-rl; opacity: .7; }

.page-hero { position: relative; color: var(--paper); background: var(--ink); padding: 170px 0 80px; overflow: hidden; }
.page-hero__bg { position: absolute; inset: -10% 0; opacity: .38; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; }
.page-hero p { max-width: 40rem; font-size: 1.2rem; opacity: .9; }

/* ---------- secties ---------- */
.section { padding: clamp(64px, 11vw, 140px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--kraft { background: var(--kraft); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { max-width: 30rem; margin: 0; color: var(--muted); }
.section--dark .section-head p, .section--forest .section-head p { color: rgba(245,240,228,.72); }

.lead { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; max-width: 44rem; }

/* manifest */
.manifest { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.manifest__img { position: relative; }
.manifest__img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.manifest__stamp {
  position: absolute; right: -18px; bottom: -18px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--leaf); color: var(--ink); display: grid; place-items: center; text-align: center;
  font: 400 1.3rem/.95 var(--display); letter-spacing: .05em; transform: rotate(-12deg);
}
@media (max-width: 800px) { .manifest { grid-template-columns: 1fr; } .manifest__stamp { right: 10px; } }

/* productgrid */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(19,19,17,.45); }
.card__img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.card__body h3 { margin: 0 0 4px; }
.card__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card__tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--paper); font: 400 .95rem/1 var(--display); letter-spacing: .1em; padding: 6px 9px 4px; border-radius: 2px; }

/* beeldstrook */
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; height: clamp(260px, 42vw, 520px); overflow: hidden; }
.strip figure { margin: 0; overflow: hidden; }
.strip picture { display: block; height: 100%; }
.strip img { width: 100%; height: 115%; object-fit: cover; }
.strip figure:nth-child(1) img { object-position: 78% 50%; }
.strip figure:nth-child(3) img { object-position: 82% 40%; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; height: auto; } .strip figure:first-child { grid-column: 1 / -1; } .strip figure { aspect-ratio: 1; } .strip img { height: 100%; } }

/* waarden */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.value { border-top: 2px solid var(--leaf); padding-top: 20px; }
.value p { color: rgba(245,240,228,.75); margin: 0; }
.value__num { font-family: var(--display); font-size: 1.1rem; letter-spacing: .15em; color: var(--leaf); }

/* dealer-blok */
.dealer { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.dealer ul { list-style: none; padding: 0; margin: 0 0 28px; }
.dealer li { padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; }
.dealer li::before { content: ''; position: absolute; left: 0; top: 17px; width: 18px; height: 10px; border-left: 3px solid var(--moss); border-bottom: 3px solid var(--moss); transform: rotate(-45deg); }
.dealer__img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .dealer { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--text); font-weight: 600; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.big-mail { font: 400 clamp(2rem, 6vw, 4.2rem)/1 var(--display); letter-spacing: .02em; text-decoration: none; color: var(--leaf); overflow-wrap: anywhere; }
.big-mail:hover { color: #fff; }

/* ---------- productpagina ---------- */
.product { padding: 150px 0 clamp(60px, 9vw, 110px); }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--moss); }
.product__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .product__grid { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 100px; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery__main { background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 78px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: #fff; cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--moss); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.chip { font: 400 1rem/1 var(--display); letter-spacing: .1em; padding: 7px 10px 5px; background: var(--kraft); border-radius: 2px; }
.product__intro { font-size: 1.3rem; line-height: 1.45; }
.product .btns { margin: 26px 0 36px; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; list-style: none; padding: 16px 0; font: 400 1.5rem/1 var(--display); letter-spacing: .05em; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; transition: transform .2s; }
.details details[open] summary::after { transform: rotate(45deg); }
.details details > div { padding: 0 0 18px; color: var(--muted); }
.details ol, .details ul { padding-left: 1.2em; margin: 0; }

.retail-box { margin-top: 40px; background: var(--ink); color: var(--paper); padding: 28px; border-radius: var(--radius); }
.retail-box h3 { color: var(--leaf); }
.retail-box p { color: rgba(245,240,228,.78); }
.retail-box .btns { margin: 18px 0 0; }
.copied { display: inline-block; font-size: .95rem; color: var(--leaf); margin-left: 6px; opacity: 0; transition: opacity .2s; }
.copied.is-visible { opacity: 1; }

.related { padding-top: 0; }

/* ---------- verkoperspagina ---------- */
.kit-list { display: grid; gap: 14px; }
.kit-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; background: #fff; padding: 12px 18px 12px 12px; border-radius: var(--radius); }
.kit-row img { width: 90px; height: 90px; object-fit: contain; }
.kit-row h3 { margin: 0; font-size: 1.5rem; }
.kit-row p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .kit-row { grid-template-columns: 64px 1fr; } .kit-row img { width: 64px; height: 64px; } .kit-row .btn { grid-column: 1 / -1; justify-content: center; } }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.logo-tile { background: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.logo-tile--dark { background: var(--ink); color: var(--paper); }
.logo-tile img { max-height: 90px; width: auto; }
.logo-tile a { font-weight: 600; }

/* ---------- over ons ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.story + .story { margin-top: clamp(60px, 9vw, 120px); }
.story--flip > :first-child { order: 2; }
.story img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.story:nth-child(2) img { object-position: 78% 50%; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .story--flip > :first-child { order: 0; } }
.quote { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1 var(--display); max-width: 18ch; margin: 0 auto; text-align: center; }
.quote em { font-style: normal; color: var(--leaf); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,240,228,.72); padding: 70px 0 34px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 400 1.3rem/1 var(--display); letter-spacing: .1em; color: var(--paper); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.footer-claim { font: 400 2.6rem/.95 var(--display); color: var(--paper); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* ---------- effecten ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

.marquee { overflow: hidden; background: var(--leaf); color: var(--ink); padding: 14px 0 10px; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); letter-spacing: .08em; padding-right: 2.2em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
