/* ============================================================================
   DEDERT ICESTICKS · "Zonnevorst" design system
   Proof of concept · willem.com  ·  Dutch-first
   ----------------------------------------------------------------------------
   Anchor: Dedert-blue + ice-cyan, rainbow flavour-accent system,
   frosty glass against warm sun-gradients, playful but premium.
   ========================================================================== */

/* ─────────────────────────  TOKENS  ───────────────────────── */
:root {
  /* brand */
  --blue:        #0a4ea2;
  --blue-deep:   #07356f;
  --blue-ink:    #0c2a4d;
  --cyan:        #2fb8ee;
  --cyan-soft:   #bfe9fb;
  --ice:         #eaf7ff;

  /* flavour rainbow */
  --lemon:   #ffce2e;
  --orange:  #ff8a2b;
  --straw:   #ff4d57;
  --rasp:    #ff2e93;
  --berry:   #8b5cf6;
  --apple:   #38c86b;

  /* surfaces */
  --paper:    #f6fbff;
  --cream:    #fff6e6;
  --white:    #ffffff;
  --ink:      #11335c;
  --ink-soft: #4a6788;

  /* type */
  --display: 'Fredoka', system-ui, sans-serif;
  --body:    'Nunito', system-ui, sans-serif;

  /* shape */
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 34px;
  --r-xl: 48px;

  /* shadow */
  --sh-sm: 0 4px 14px rgba(10,78,162,.10);
  --sh:    0 14px 36px rgba(10,78,162,.16);
  --sh-lg: 0 30px 70px rgba(10,78,162,.22);
  --sh-pop:0 18px 40px rgba(255,46,147,.22);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ─────────────────────────  RESET  ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--blue-ink);
}

::selection { background: var(--lemon); color: var(--blue-deep); }

/* ─────────────────────────  LAYOUT  ───────────────────────── */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rasp);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: "❄"; font-size: 1rem; color: var(--cyan);
}
.section-title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem);
  margin: .7rem 0 1rem;
}
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

/* ─────────────────────────  BUTTONS  ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600;
  padding: .95rem 1.6rem;
  border-radius: 100px;
  font-size: 1.02rem;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: linear-gradient(135deg, var(--rasp), var(--orange));
  color: #fff;
  box-shadow: var(--sh-pop);
}
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 24px 50px rgba(255,46,147,.34); }
.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: var(--sh);
}
.btn-blue:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.btn-ghost {
  background: rgba(255,255,255,.7);
  color: var(--blue);
  border: 2px solid rgba(10,78,162,.16);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--blue-deep); }

/* ─────────────────────────  HEADER / NAV  ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: .75rem 0;
}
.site-header.scrolled {
  background: rgba(246,251,255,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgba(10,78,162,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 8px rgba(10,78,162,.16)); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-family: var(--display); font-weight: 500;
  padding: .5rem .85rem; border-radius: 100px;
  color: var(--blue-ink); font-size: .98rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(47,184,238,.16); color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: .7rem; }
.lang {
  display: flex; gap: .15rem; padding: .25rem;
  background: rgba(10,78,162,.07); border-radius: 100px;
}
.lang button {
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  padding: .3rem .6rem; border-radius: 100px; color: var(--ink-soft);
  transition: .2s;
}
.lang button.active { background: var(--white); color: var(--blue); box-shadow: var(--sh-sm); }
.lang button:not(.active):hover { color: var(--blue); }

.burger { display: none; flex-direction: column; gap: 5px; padding: .6rem; border-radius: 12px; background: rgba(10,78,162,.07); }
.burger span { width: 24px; height: 3px; border-radius: 3px; background: var(--blue); transition: .3s var(--ease); }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────────────────  HERO  ───────────────────────── */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(120% 90% at 85% -10%, #fff2c9 0%, rgba(255,242,201,0) 55%),
    radial-gradient(120% 120% at 10% 0%, #d9f3ff 0%, rgba(217,243,255,0) 50%),
    linear-gradient(180deg, #eaf7ff 0%, #f6fbff 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(2rem, 4vw, 4rem);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(10,78,162,.12);
  padding: .45rem .95rem; border-radius: 100px;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  color: var(--blue); box-shadow: var(--sh-sm);
}
.hero h1 {
  font-size: clamp(2.7rem, 1.6rem + 5vw, 5.4rem);
  margin: 1.2rem 0 1.1rem;
  letter-spacing: -.02em;
}
.hero h1 .rainbow {
  background: linear-gradient(100deg, var(--straw), var(--orange) 30%, var(--lemon) 50%, var(--apple) 68%, var(--cyan) 86%, var(--berry));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .ice {
  position: relative; color: var(--blue);
}
.hero p.lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual { position: relative; }
.hero-photo-wrap {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 38%, #fff 0%, #eef9ff 55%, #d6f0ff 100%);
  box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,.8);
  overflow: hidden;
  animation: floatY 7s var(--ease) infinite;
}
.hero-photo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.65), transparent 40%);
  pointer-events: none; z-index: 2;
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-mascot {
  position: absolute; width: 38%; height: auto;
  left: -7%; bottom: -9%;
  filter: drop-shadow(0 14px 22px rgba(10,78,162,.28));
  animation: floatY 5s var(--ease) infinite .4s;
  z-index: 4;
}
.hero-bee {
  position: absolute; width: 9%; height: auto; top: 0; right: 6%;
  animation: beeFly 9s linear infinite;
  z-index: 4;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  opacity: .85; pointer-events: none; z-index: 0;
}

/* floating flavour chips around hero */
.chip {
  position: absolute; z-index: 4;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: .5rem .9rem; border-radius: 100px; color: #fff;
  box-shadow: var(--sh); white-space: nowrap;
  animation: floatY 6s var(--ease) infinite;
}
.chip.c1 { top: 8%;  right: -4%; background: var(--rasp);   animation-delay: .2s; }
.chip.c2 { top: 46%; right: -8%; background: var(--orange); animation-delay: 1.1s; }
.chip.c3 { bottom: 6%; right: 12%; background: var(--apple); animation-delay: .7s; }

@keyframes floatY { 0%,100% { transform: translateY(0) rotate(-4deg);} 50% { transform: translateY(-16px) rotate(-2deg);} }
@keyframes beeFly { 0%{transform:translate(0,0) rotate(8deg)} 25%{transform:translate(-30px,18px) rotate(-6deg)} 50%{transform:translate(-60px,-6px) rotate(10deg)} 75%{transform:translate(-26px,20px) rotate(-4deg)} 100%{transform:translate(0,0) rotate(8deg)} }

/* ─────────────────────────  MARQUEE (trust)  ───────────────────────── */
.marquee {
  background: var(--blue);
  color: #fff; overflow: hidden;
  padding: .9rem 0;
  border-block: 3px solid var(--blue-deep);
}
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: scrollX 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: .7rem; opacity: .95;
}
.marquee-track span::after { content: "❄"; color: var(--cyan); }
@keyframes scrollX { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ─────────────────────────  DRIP DIVIDER  ───────────────────────── */
.drip { display: block; width: 100%; height: clamp(28px,4vw,56px); }

/* ─────────────────────────  VALUE CARDS  ───────────────────────── */
.values { background: var(--white); }
.value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--paper);
  border: 1px solid rgba(10,78,162,.08);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--sh); }
.value-ico {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.9rem;
  margin-bottom: 1.1rem; color: #fff;
  box-shadow: var(--sh-sm);
}
.value-card:nth-child(1) .value-ico { background: linear-gradient(135deg,var(--apple),#1fae54); }
.value-card:nth-child(2) .value-ico { background: linear-gradient(135deg,var(--lemon),var(--orange)); }
.value-card:nth-child(3) .value-ico { background: linear-gradient(135deg,var(--rasp),var(--berry)); }
.value-card:nth-child(4) .value-ico { background: linear-gradient(135deg,var(--cyan),var(--blue)); }
.value-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.value-card p { color: var(--ink-soft); font-size: .98rem; }

/* ─────────────────────────  PRODUCTS  ───────────────────────── */
.products { background: linear-gradient(180deg, var(--ice), var(--paper)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 3rem;
}
.product-card {
  position: relative; background: var(--white);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--sh-lg); }
.product-media {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: .76rem;
  padding: .35rem .75rem; border-radius: 100px; color: #fff;
  box-shadow: var(--sh-sm); letter-spacing: .02em;
}
.product-body { padding: 1.5rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.product-body p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.product-meta { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.pill {
  font-family: var(--display); font-weight: 500; font-size: .76rem;
  padding: .28rem .7rem; border-radius: 100px;
  background: rgba(10,78,162,.08); color: var(--blue);
}

/* ─────────────────────────  FLAVOURS  ───────────────────────── */
.flavours { background: var(--blue-ink); color: #fff; overflow: hidden; }
.flavours .section-title, .flavours .eyebrow { color: #fff; }
.flavours .eyebrow { color: var(--lemon); }
.flavours .lead { color: rgba(255,255,255,.75); }
.flavour-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.flavour {
  flex: 1 1 140px;
  border-radius: var(--r); padding: 1.4rem 1.2rem;
  color: #fff; position: relative; overflow: hidden;
  min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease);
  box-shadow: inset 0 -40px 60px rgba(0,0,0,.16);
}
.flavour:hover { transform: translateY(-8px) scale(1.02); }
.flavour b { font-family: var(--display); font-size: 1.2rem; }
.flavour small { opacity: .85; font-weight: 600; }
.flavour::before {
  content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  right: -20px; top: -20px; background: rgba(255,255,255,.22);
}

/* ─────────────────────────  STORY / TIMELINE  ───────────────────────── */
.story { background: var(--cream); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,4vw,4.5rem); align-items: center; }
.story-art { position: relative; }
.story-art .frame {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg); border: 7px solid #fff;
  transform: rotate(-2deg);
  aspect-ratio: 1/1;
}
.story-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.story-art .badge {
  position: absolute; right: -4%; bottom: 6%; z-index: 3;
  background: var(--white); color: var(--blue-deep);
  border-radius: var(--r); padding: 1rem 1.3rem;
  box-shadow: var(--sh-lg); transform: rotate(3deg);
  font-family: var(--display); text-align: center; line-height: 1;
}
.story-art .badge b { display: block; font-size: 2.1rem; color: var(--rasp); }
.story-art .badge span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.timeline { margin-top: 2.4rem; position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--cyan), var(--rasp)); border-radius: 3px;
}
.t-item { position: relative; padding: 0 0 1.6rem 1.2rem; }
.t-item::before {
  content: ""; position: absolute; left: -1.6rem; top: .35rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rasp); box-shadow: var(--sh-sm);
}
.t-item .yr { font-family: var(--display); font-weight: 700; color: var(--rasp); font-size: 1.05rem; }
.t-item p { color: var(--ink-soft); font-size: .98rem; }

/* ─────────────────────────  B2B  ───────────────────────── */
.b2b { background: var(--white); }
.b2b-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.b2b-feats { display: grid; gap: 1rem; margin: 2rem 0; }
.b2b-feat { display: flex; gap: 1rem; align-items: flex-start; }
.b2b-feat .fi {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--ice); color: var(--blue);
}
.b2b-feat h4 { font-size: 1.15rem; color: var(--blue-ink); }
.b2b-feat p { color: var(--ink-soft); font-size: .95rem; }
.b2b-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.b2b-photos img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--sh);
  aspect-ratio: 1/1;
}
.b2b-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* ─────────────────────────  CTA BAND  ───────────────────────── */
.cta-band { background: var(--paper); }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--rasp), var(--orange));
  border-radius: var(--r-xl);
  padding: clamp(2.5rem,5vw,4.5rem);
  color: #fff; text-align: center;
  box-shadow: var(--sh-pop);
}
.cta-card h2 { color: #fff; font-size: clamp(2rem,1.4rem+2.6vw,3.2rem); }
.cta-card p { max-width: 50ch; margin: 1rem auto 2rem; opacity: .95; font-size: 1.1rem; }
.cta-card .btn-ghost { background: #fff; border-color: #fff; color: var(--rasp); }
.cta-card .btn-ghost:hover { color: var(--berry); }
.cta-card .sun {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--lemon), transparent 70%);
  top: -60px; right: -40px; opacity: .6;
}

/* ─────────────────────────  FOOTER  ───────────────────────── */
.footer { background: var(--blue-ink); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h5 { font-family: var(--display); color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .03em; }
.footer a { display: block; padding: .25rem 0; transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer-brand img { height: 58px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer-bottom .poc { color: var(--lemon); font-family: var(--display); }
.credit a { display: inline; color: var(--cyan); }

/* ─────────────────────────  REVEAL ANIM  ─────────────────────────
   Progressive enhancement: visible by default; only hidden once JS
   adds .js to <html>. No-JS / no-IntersectionObserver → full content. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .story-grid, .b2b-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-art { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .lang { display: none; }
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(246,251,255,.97); backdrop-filter: blur(16px);
    padding: 1rem; margin: .5rem 1rem 0; border-radius: var(--r);
    box-shadow: var(--sh-lg); transform-origin: top;
  }
  .nav-open .nav-links { display: flex; animation: dropIn .3s var(--ease); }
  .nav-links a { padding: .8rem 1rem; font-size: 1.1rem; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-10px) scale(.98);} to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .value-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  /* Shorter hero visual + tighter spacing so the main CTAs sit above the fold on phones */
  .hero { padding-top: 1.25rem; }
  .hero-grid { gap: 1rem; }
  .hero-visual { max-width: 360px; }
  .hero-photo-wrap { aspect-ratio: 16/10; }
  .hero h1 { margin: .85rem 0 .85rem; }
  .hero p.lead { margin-bottom: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
