/* ============================================================
   EEFJES FINEST — Design System
   Wit, rustig, toegankelijk-premium. Taarten geven de kleur.
   ============================================================ */

@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap");

:root {
  /* Color — warm neutrals only, cakes provide the color */
  --white: #ffffff;
  --paper: #faf9f6;
  --paper-2: #f4f2ec;
  --ink: #17150f;
  --ink-soft: #6c685e;
  --ink-faint: #9b968b;
  --line: #e9e6de;
  --line-strong: #d9d5cb;

  /* Type */
  --sans: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing rhythm */
  --gut: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --maxw: 1360px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: var(--section); }
.bleed { width: 100%; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-faint);
}
.display {
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2.title {
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3.sub {
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 56px;
  padding: 0 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.45); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.9); color: var(--ink); backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 38px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover { gap: 0.85em; border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Image placeholder system ----------
   Base layer = warm soft gradient + label. Real photo fades over it.
   On error the img removes itself; placeholder remains (never "broken"). */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ede6 0%, #e7e2d8 50%, #efeae1 100%);
  isolation: isolate;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.7;
  transition: opacity 0.6s var(--ease);
  z-index: 0;
  text-align: center;
  padding: 1em;
}
.ph img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.ph.loaded img { opacity: 1; }
.ph.loaded::after { opacity: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 14px;
}
.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}
.brand small { font-weight: 400; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  position: relative; color: var(--ink); opacity: 0.82; white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0; background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.cart-btn { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; opacity: 0.85; transition: opacity 0.3s; }
.cart-btn:hover { opacity: 1; }
.cart-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 100px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #efece4; padding-block: clamp(64px, 9vw, 120px) 40px; }
.footer a { opacity: 0.7; transition: opacity 0.3s; }
.footer a:hover { opacity: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: #fff; font-size: 24px; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom .legal { display: flex; gap: 26px; flex-wrap: wrap; }
