/* ============================================================
   Kruim: concept van MotionWeb.
   Voor een andere klant: pas de kleuren hieronder aan, en vervang het logo en de foto's in /img.
   ============================================================ */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* kleuren uit het logo */
  --cream: #fbf4e9;
  --peach: #f3dcc0;
  --brown: #5d3213;
  --caramel: #a5642f;
  --choc: #2b160d;
  --accent: var(--caramel);
  --ink: var(--choc);
  --soft: rgba(43, 22, 13, .72);
  --line: rgba(43, 22, 13, .18);
}
body[data-theme="dark"] { --ink: #f6e9d4; --soft: rgba(246, 233, 212, .72); --line: rgba(246, 233, 212, .2); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main { overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 18px/1.6 Inter, system-ui, sans-serif;
  transition: background-color .7s ease, color .7s ease;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, .brand { font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 800; letter-spacing: -.035em; margin: 0; }
em { font-style: italic; font-weight: 500; color: var(--accent); }
body[data-theme="dark"] em { color: #e9b98a; }

/* concept bar + nav */
.concept { position: fixed; z-index: 30; top: 0; left: 0; right: 0; text-align: center; font-size: 13px; padding: 7px 12px; background: var(--choc); color: #f6e9d4; letter-spacing: .01em; }
.concept a { color: #e9b98a; font-weight: 600; }
.nav { position: fixed; z-index: 20; top: 34px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(20px, 4vw, 56px); }
.nav { transition: background-color .7s ease, padding .3s ease; }
body.scrolled .nav { background: var(--navbg, var(--cream)); padding-top: 6px; padding-bottom: 6px; }
.brand { display: block; line-height: 0; }
.brand img { height: 70px; width: auto; transition: height .3s ease; }
body.scrolled .brand img { height: 56px; }
.brand .logo-c, body[data-theme="dark"] .brand .logo-b { display: none; }
body[data-theme="dark"] .brand .logo-c { display: block; }
.nav nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: .8; }
.nav nav a:hover { opacity: 1; }
.order { font: 600 15px Inter, sans-serif; color: var(--cream); background: var(--brown); border: 0; padding: 13px 20px; border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s; }
.order:hover { transform: translateY(-2px) rotate(-1.5deg); background: var(--choc); }
body[data-theme="dark"] .order { background: var(--peach); color: var(--choc); }
body[data-theme="dark"] .order:hover { background: var(--cream); color: var(--choc); }

/* zwevende productfoto's (uitgeknipt) */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; perspective: 1200px; overflow: hidden; }
.obj { position: absolute; left: 50%; top: 50%; will-change: transform; visibility: hidden; }
.obj img { display: block; width: 100%; height: auto; filter: drop-shadow(0 38px 34px rgba(43, 22, 13, .32)); }
#o-cro { width: min(40vw, 600px); }
#o-cup { width: min(40vw, 600px); }
body[data-theme="dark"] .obj img { filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .55)); }
.steam { position: absolute; left: 30%; width: 32%; bottom: 82%; height: 90%; opacity: var(--steam, 0); }
.steam i { position: absolute; bottom: 0; width: 38%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,250,242,.55), rgba(255,250,242,0)); filter: blur(14px); animation: steam 4.5s ease-in infinite; opacity: 0; }
.steam i:nth-child(1) { left: 0; animation-delay: 0s; }
.steam i:nth-child(2) { left: 32%; animation-delay: 1.5s; }
.steam i:nth-child(3) { left: 62%; animation-delay: 3s; }
@keyframes steam { 0% { transform: translateY(30%) scaleX(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-45%) scaleX(1.3) skewX(12deg); opacity: 0; } }

/* foto die openschuift */
.reveal { padding: 40px 0; }
.reveal-sticky { position: relative; height: 92vh; min-height: 520px; overflow: hidden; display: grid; place-items: center; }
.reveal-img { position: absolute; inset: 0; clip-path: inset(20% 22% round 28px); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.reveal-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,19,13,.15), rgba(31,19,13,.55)); }
.reveal-text { position: relative; z-index: 1; margin: 0; text-align: center; color: #fbf1e2; font: 800 clamp(56px, 9vw, 150px)/.92 Fraunces, serif; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.045em; opacity: 0; }
.reveal-text em { color: #f0c9a0; }

/* galerij */
.gallery { padding: 120px clamp(20px, 6vw, 96px) 60px; overflow: hidden; }
.g-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; align-items: start; margin-top: 30px; }
.g { margin: 0; border-radius: 26px; overflow: hidden; will-change: transform; }
.g img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g1 { aspect-ratio: 4 / 3; margin-top: 80px; }
.g2 { aspect-ratio: 3 / 4; }
.g3 { aspect-ratio: 3 / 4; margin-top: 140px; }
main { position: relative; }
section, .band { position: relative; z-index: 2; }

/* hero: logo + grote foto */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding: 140px clamp(20px, 6vw, 96px) 70px; }
.hero-copy h1 { line-height: 0; }
.hero-copy h1 img { width: min(100%, 460px); height: auto; }
.hero-copy h1 .hl-c { display: none; }
.lead { font-size: 21px; color: var(--soft); max-width: 460px; margin: 26px 0 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 600 16px Inter, sans-serif; text-decoration: none; color: var(--cream); background: var(--brown); border: 1.5px solid var(--brown); padding: 15px 24px; border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); background: var(--choc); border-color: var(--choc); }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--brown); color: var(--cream); }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 560px); aspect-ratio: 3 / 4; border-radius: 240px 240px 28px 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(43, 22, 13, .45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero .scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; font-size: 14px; font-weight: 500; color: var(--soft); }
.scroll span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* panels met tekst links of rechts; het 3D-object staat aan de andere kant */
.panel { min-height: 100vh; display: flex; align-items: center; padding: 120px clamp(20px, 6vw, 96px); }
.panel.right { justify-content: flex-end; }
.copy { max-width: 520px; }
.still, .laptop-tip { display: none; }
/* koffie en brood: video vult de sectie en speelt gewoon af; de stappen lopen mee met de video */
.story-cv, .steps, .steps-bar { display: none; }
@media (min-width: 761px) and (hover: hover), (min-width: 761px) and (pointer: fine) {
  .panel.story { display: block; padding: 0; position: relative; }
  .story-stage { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; padding: 110px clamp(20px, 6vw, 96px) 50px; }
  .panel.right .story-stage { justify-content: flex-end; }
  .story-cv { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #120b07; }
  .story-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(18, 10, 6, .88) 0%, rgba(18, 10, 6, .6) 34%, rgba(18, 10, 6, 0) 62%); }
  .panel.right .story-stage::before { background: linear-gradient(270deg, rgba(18, 10, 6, .88) 0%, rgba(18, 10, 6, .6) 34%, rgba(18, 10, 6, 0) 62%); }
  .story .copy { position: relative; z-index: 2; color: #f6e9d4; --soft: rgba(246, 233, 212, .8); }
  .story .copy em { color: #e9b98a; }
  .steps { display: flex; list-style: none; gap: 30px; margin: 40px 0 14px; padding: 0; font: italic 600 24px Fraunces, serif; font-variation-settings: "SOFT" 100, "WONK" 1; }
  .steps li { opacity: .38; transition: opacity .35s; }
  .steps li.on { opacity: 1; }
  .steps li span { display: block; margin-bottom: 4px; font: 600 12px Inter, sans-serif; letter-spacing: .12em; color: #e9b98a; }
  .steps-bar { display: block; height: 2px; max-width: 440px; background: rgba(246, 233, 212, .22); border-radius: 2px; }
  .steps-bar i { display: block; height: 100%; background: #e9b98a; transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px; }
h2 { font-size: clamp(48px, 6.4vw, 96px); line-height: .95; margin-bottom: 28px; }
.copy > p { color: var(--soft); font-size: 19px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 40px; }
.facts b { display: block; font: 800 54px/1 Fraunces, serif; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--caramel); }
.facts span { font-size: 14px; color: var(--soft); }
.link { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* loopband */
.band { background: var(--brown); color: var(--cream); transform: rotate(-2.5deg); margin: -20px -40px; padding: 18px 0; overflow: hidden; z-index: 3; }
.band-in { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.band span { font: italic 600 42px/1 Fraunces, serif; font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; padding-right: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* menu */
.menu { padding: 140px clamp(20px, 6vw, 96px) 120px; }
.menu-head { margin-bottom: 50px; }
.menu h2 { margin: 0; }
.swipe { display: none; margin: 14px 0 0; font-size: 15px; font-weight: 500; color: var(--caramel); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; background: #fffaf2; border: 1.5px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, color .35s, box-shadow .35s; }
.card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover figure img { transform: scale(1.06); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(43, 22, 13, .4); }
.card-body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.card:hover { transform: translateY(-8px) rotate(-1.2deg); background: var(--choc); color: var(--cream); }
.card:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.card .n { font: italic 600 17px Fraunces, serif; color: var(--caramel); }
.card:hover .n { color: #e9b98a; }
.card h3 { font-size: 32px; margin: 6px 0 6px; }
.card p { margin: 0 0 18px; font-size: 16px; opacity: .75; }
.card b { margin-top: auto; font-size: 20px; }

/* bezoek */
.visit { padding: 140px clamp(20px, 6vw, 96px) 40px; color: var(--ink); }
.visit h2 { font-size: clamp(80px, 14vw, 230px); margin-bottom: 60px; }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1.5px solid var(--line); padding-top: 40px; }
.visit-grid p { margin: 0; font-size: 20px; }
.visit-grid .eyebrow { font-size: 12px; margin-bottom: 12px; }
.order.big { margin-top: 24px; font-size: 17px; padding: 16px 26px; }
.foot { margin-top: 120px; padding-top: 24px; border-top: 1.5px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.foot p { margin: 0; }
.foot a { color: #e9b98a; font-weight: 600; text-decoration: none; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--choc); color: var(--cream); padding: 14px 22px; border-radius: 14px; font-size: 15px; transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility .4s; max-width: calc(100vw - 40px); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* gsm */
@media (max-width: 760px) {
  .g-row { grid-template-columns: 1fr 1fr; } .g1 { grid-column: 1 / -1; margin-top: 0; }
  body { font-size: 16px; }
  .nav nav { display: none; }
  .brand img { height: 54px; } body.scrolled .brand img { height: 46px; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 36px; }
  .hero-copy h1 img { width: min(78vw, 360px); }
  .lead { font-size: 18px; }
  .hero-photo { justify-self: stretch; width: 100%; aspect-ratio: 4 / 5; border-radius: 180px 180px 24px 24px; }
  .hero .scroll { display: none; }
  .order { font-size: 14px; padding: 11px 16px; }
  .concept { font-size: 12px; padding: 7px 8px; }
  .nav { padding: 10px 16px; }
  h2 { font-size: 46px; }
  .copy > p { font-size: 17px; }
  .facts { gap: 26px; } .facts b { font-size: 42px; }
  .band span { font-size: 30px; }
  .menu { padding-left: 0; padding-right: 0; }
  .menu-head { padding: 0 22px; margin-bottom: 26px; }
  .swipe { display: block; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 22px 16px; scroll-padding: 0 22px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80vw; scroll-snap-align: start; }
  .card h3 { font-size: 28px; }
  .visit-grid { grid-template-columns: 1fr; gap: 28px; }
  .visit { padding-top: 90px; }
  .menu { padding-top: 50px; }
  .gallery { padding: 40px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-in, .scroll span { animation: none; }
}

/* gsm en tablet: rustige versie zonder zwevende producten of scrolleffecten */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .stage { display: none; }
  .panel, .panel.right, .panel.left { min-height: 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 56px 22px 64px; }
  .still { display: block; align-self: center; width: min(78vw, 460px); height: auto; margin: 0 0 18px; filter: drop-shadow(0 26px 24px rgba(43, 22, 13, .3)); }
  .laptop-tip { display: block; margin: -12px 0 24px; padding: 12px 14px; max-width: 460px; border: 1.5px dashed var(--caramel); border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--brown); }
  .reveal-sticky { height: 64vh; min-height: 420px; }
  .reveal-img { clip-path: none !important; }
  .reveal-img img { transform: none !important; }
  .reveal-text { opacity: 1 !important; transform: none !important; }
  .hero-photo img { transform: none !important; }
  .g { transform: none !important; }
  .g3 { margin-top: 40px; }
  /* begin: foto vult het scherm, logo in crème erover */
  .hero { position: relative; display: flex; align-items: stretch; min-height: 100svh; padding: 92px 22px 26px; gap: 0; overflow: hidden; }
  .hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 16, 9, .72) 0%, rgba(28, 16, 9, .25) 30%, rgba(28, 16, 9, 0) 44%, rgba(28, 16, 9, .55) 62%, rgba(28, 16, 9, .93) 84%); }
  .hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; }
  .hero-copy h1 .hl-b { display: none; }
  .hero-copy h1 .hl-c { display: block; width: min(50vw, 230px); }
  .hero .lead { margin: auto 0 16px; color: rgba(251, 241, 226, .92); }
  .hero .laptop-tip { margin: 0 0 18px; border-color: rgba(233, 185, 138, .7); color: #f0c9a0; }
  .hero .btn.ghost { color: #fbf1e2; border-color: rgba(251, 241, 226, .7); }
  body:not(.scrolled) .brand { opacity: 0; }
  .brand { transition: opacity .3s; }
  /* croissant schuin naast de titel, met een zachte cirkel erachter */
  #vers { position: relative; overflow: hidden; padding-top: 30px; }
  #vers::before { content: ""; position: absolute; top: 10px; right: -18vw; width: 78vw; aspect-ratio: 1; border-radius: 50%; background: var(--peach); }
  #vers .still { position: relative; align-self: flex-end; width: 64vw; margin: 0 -6vw -34px 0; transform: rotate(-12deg); }
  #vers .copy { position: relative; }

  main > section[data-theme="light"] { --ink: var(--choc); --soft: rgba(43, 22, 13, .72); --line: rgba(43, 22, 13, .18); color: var(--ink); }
  main > section[data-theme="dark"] { --ink: #f6e9d4; --soft: rgba(246, 233, 212, .72); --line: rgba(246, 233, 212, .2); color: var(--ink); }
  main > section[data-theme="light"] em { color: var(--accent); }
  main > section[data-theme="dark"] em { color: #e9b98a; }
  main > section .reveal-text em { color: #f0c9a0; }
}
