/* ============================================================
   kruimel & co — bakkerij in Nijmegen
   paper #f6eedd · ink #17150f · oven-oranje #f28c0a
   ============================================================ */

:root {
  --paper: #f6eedd;
  --paper-deep: #efe3cb;
  --ink: #17150f;
  --ink-soft: #4d493e;
  --orange: #f28c0a;
  --line: rgba(23, 21, 15, 0.16);

  --font: "Outfit", "Avenir Next", sans-serif;

  --ease-spring: cubic-bezier(0.24, 1.35, 0.4, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 14px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- hero ---------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 44px 10px;
  position: relative;
  z-index: 30;
}

.logo img { width: 40px; height: auto; }

.site-header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--orange); }
.site-header .dot { font-size: 0.6rem; color: var(--ink-soft); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.tool:hover { color: var(--orange); }
.bag.bump svg { animation: bag-bump 0.45s var(--ease-spring); }
@keyframes bag-bump {
  30% { transform: scale(1.25) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}

.hero-top {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-stage {
  position: relative;
  flex: 1;
  min-height: 520px;
  z-index: 10;
}

/* de grote naam, full-bleed en aan beide kanten afgesneden zoals de mockup */
.giant {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 30vw;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
  animation: giant-in 1s var(--ease-out) both;
}
@keyframes giant-in {
  from { opacity: 0; transform: translate(-50%, -42%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* gebakjes: buitenste laag springt in, binnenste laag zweeft */
.pastry {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 26px 30px rgba(23, 21, 15, 0.18));
  animation: fly-in 1.1s var(--ease-spring) both;
}
.pastry .float { animation: floaty 7s ease-in-out infinite alternate; }
.pastry img { width: 100%; height: auto; }

.p-croissant { left: 30%;   top: 25%; width: 23vw; --fx: -55vw; --fy: -45vh; --fr: -50deg; animation-delay: 0.25s; }
.p-tart      { left: 72.5%; top: 21%; width: 16.5vw; --fx: 45vw;  --fy: -45vh; --fr: 40deg;  animation-delay: 0.45s; }
.p-roll      { left: 44.5%; top: 66%; width: 18.5vw; --fx: -30vw; --fy: 55vh;  --fr: -60deg; animation-delay: 0.65s; }
.p-cake      { left: 77%;   top: 70%; width: 20vw; --fx: 45vw;  --fy: 55vh;  --fr: 45deg;  animation-delay: 0.85s; }

@keyframes fly-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.55);
  }
  35% { opacity: 1; }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes floaty {
  from { transform: translateY(-1.2%) rotate(-1.1deg); }
  to   { transform: translateY(1.6%) rotate(1.1deg); }
}
.p-tart .float { animation-duration: 6s; animation-delay: -2s; }
.p-roll .float { animation-duration: 8s; animation-delay: -4s; }
.p-cake .float { animation-duration: 6.6s; animation-delay: -1s; }

.hero-footrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 44px 20px;
  position: relative;
  z-index: 25;
}

.hero-info {
  max-width: 400px;
  animation: info-in 0.9s var(--ease-out) 1.15s both;
}
@keyframes info-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-info .price {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hero-info .sub {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 34ch;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), gap 0.3s var(--ease-spring);
}
.cta:hover {
  background: var(--ink);
  color: var(--paper);
  gap: 16px;
}

.hero-counter {
  text-align: right;
  flex-shrink: 0;
  animation: info-in 0.9s var(--ease-out) 1.3s both;
}
.hero-counter .count {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 500;
  margin: 0 0 4px;
}
.hero-counter .season {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.34em;
}

.hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1.5px solid var(--ink);
  margin: 0 44px;
  padding: 16px 0 22px;
  position: relative;
  z-index: 25;
  font-size: 0.92rem;
}
.hero-strip p { margin: 0; }
.strip-brand { letter-spacing: 0.04em; }

/* ---------------- marquee ---------------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- collectie / bestsellers ---------------- */
.collectie { padding: 5.5rem 0 4.5rem; }

.best-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 2.8rem;
}
.best-head h2 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
}
.best-count {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.section-head { max-width: 56ch; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 0.8rem;
}
.section-head .lede { color: var(--ink-soft); margin: 0; }

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product {
  border-radius: 16px;
  padding: 34px 24px 24px;
  display: flex;
  flex-direction: column;
  background: #f1e4cd;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(23, 21, 15, 0.12);
}
.product-visual {
  min-height: 200px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.product-visual img {
  max-height: 195px;
  width: auto;
  filter: drop-shadow(0 16px 18px rgba(23, 21, 15, 0.16));
  transition: transform 0.45s var(--ease-spring);
}
.product:hover .product-visual img { transform: scale(1.06) rotate(1.5deg); }
.product h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-price { font-weight: 500; font-size: 1.05rem; }
.add {
  font: inherit;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.add span {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}
.add:hover { background: var(--ink); color: var(--paper); }
.add:hover span { transform: rotate(90deg); }
.add.is-added span { transform: none; }
.add-solid {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
}
.add-solid:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.add-solid:hover span { transform: none; }

.box-banner {
  margin-top: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--orange);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.box-banner h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.box-banner p { margin: 0; max-width: 52ch; }
.box-cta { display: flex; align-items: center; gap: 20px; }
.box-cta .p-price { font-size: 1.5rem; }

/* ---------------- verhaal ---------------- */
.verhaal {
  background: #f8ecdb;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.verhaal-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
}
.verhaal-foto { padding: 22px; }
.verhaal-foto img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}
.verhaal-content {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  align-self: center;
}
.verhaal-kicker {
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.34em;
}
.verhaal h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 1.8rem;
}
.verhaal-tekst p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 46ch; }
.verhaal-meer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.verhaal-meer.open { max-height: 300px; opacity: 1; }
.lees-meer { margin-top: 0.6rem; background: transparent; }
.lees-meer span { transition: transform 0.3s var(--ease-spring); }
.lees-meer[aria-expanded="true"] span { transform: rotate(90deg); }

/* ---------------- scroll-reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.product-grid .reveal:nth-child(2) { transition-delay: 0.09s; }
.product-grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.product-grid .reveal:nth-child(4) { transition-delay: 0.27s; }
.verhaal-foto.reveal { transform: translateY(0) scale(0.965); }
.verhaal-foto.reveal.is-in { transform: none; }
.verhaal-content .reveal:nth-of-type(1) { transition-delay: 0.05s; }
.verhaal h2.reveal { transition-delay: 0.12s; }
.verhaal-tekst.reveal { transition-delay: 0.2s; }
.lees-meer.reveal { transition-delay: 0.28s; }

/* ---------------- winkels ---------------- */
.winkels { padding: 5.5rem 0 6rem; }
.winkel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.winkel {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 30px 30px 26px;
}
.winkel h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 600;
}
.winkel .adres { margin: 0 0 20px; color: var(--ink-soft); }
.winkel dl { margin: 0; }
.winkel dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.94rem;
}
.winkel dt { font-weight: 500; }
.winkel dd { margin: 0; color: var(--ink-soft); }

/* ---------------- menukaart ---------------- */
.menukaart {
  border-top: 1.5px solid var(--ink);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

/* het podium met het reuzewoord + de taart erboven */
.menu-stage {
  position: relative;
  min-height: clamp(280px, 30vw, 440px);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.menu-giant {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: clamp(6rem, 27vw, 20rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
  z-index: 10;
}

/* de taart: zelfde fly-in + zweef als de hero, recht boven en dicht op de tekst */
.m-pastry {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 22px 26px rgba(23, 21, 15, 0.18));
}
.m-pastry img { width: 100%; height: auto; }
.m-pastry .float { animation: floaty 6.6s ease-in-out infinite alternate; }

.m-cake { left: 50%; top: 21%; width: clamp(140px, 16vw, 250px); --fx: 0; --fy: -45vh; --fr: -8deg; }

/* de taart vliegt in zodra de sectie in beeld komt */
.menu-stage.is-in .m-pastry {
  animation: fly-in 1.15s var(--ease-spring) both;
}

/* het reuzewoord verschijnt met dezelfde reveal als de rest */
.menu-giant { opacity: 0; transform: translate(-50%, -44%); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.menu-stage.is-in .menu-giant { opacity: 1; transform: translate(-50%, -50%); }

/* prijskolommen */
.menu-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--ink);
}
.menu-col h3 {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-col ul { list-style: none; margin: 0; padding: 0; }
.menu-col li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}
.mi-name { font-size: 1.02rem; }
.mi-price { font-weight: 500; white-space: nowrap; color: var(--ink-soft); }

.menu-foot {
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--ink);
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ---------------- footer ---------------- */
footer {
  border-top: 1.5px solid var(--ink);
  padding: 3rem 0 3.4rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { width: 150px; height: auto; }
.footer-adres { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.footer-credit { margin: 0; font-size: 0.9rem; }
.footer-credit a { text-decoration-color: var(--orange); }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .verhaal-split { grid-template-columns: 1fr; }
  .verhaal-foto img { min-height: 340px; max-height: 440px; }
  .verhaal-content { padding: 2.6rem 24px 3.2rem; }
  .site-header { padding: 20px 24px 8px; }
  .hero-info { left: 24px; }
  .hero-strip { margin: 0 24px; }
  .hero-counter { right: 24px; }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; }
  .site-header nav { order: 3; width: 100%; }
  .site-header nav ul { gap: 14px; justify-content: center; }
  .site-header nav a { font-size: 0.92rem; }
  .header-tools { order: 2; }

  .hero { min-height: auto; }
  /* eerste beeld: alleen kruimel + de 4 gebakjes, schermvullend */
  .hero-top { min-height: 100svh; }
  .hero-stage { flex: 1; min-height: 0; }
  .giant { font-size: 31vw; top: 50%; }

  .p-croissant { width: 40vw; left: 26%; top: 26%; }
  .p-tart      { width: 29vw; left: 78%; top: 23%; }
  .p-roll      { width: 33vw; left: 27%; top: 73%; }
  .p-cake      { width: 35vw; left: 74%; top: 75%; }

  .hero-footrow { flex-direction: column; align-items: stretch; gap: 0; padding: 34px 24px 0; }
  .hero-info { max-width: none; }
  .hero-info .sub { max-width: none; }
  .hero-counter { display: none; }
  .hero-strip { font-size: 0.82rem; justify-content: center; text-align: center; }

  .winkel-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* menukaart: woord compacter, de taart recht erboven, kolommen onder elkaar */
  .menu-stage { min-height: 62vw; margin-bottom: 2rem; }
  .menu-giant { font-size: 27vw; top: 66%; }
  .m-cake { width: 34vw; left: 50%; top: 24%; }
  .menu-cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .box-banner { padding: 24px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .pastry, .giant, .hero-info, .hero-counter { animation: none; }
  .pastry .float { animation: none; }
  .m-pastry, .menu-stage.is-in .m-pastry { animation: none; opacity: 1; }
  .m-pastry .float { animation: none; }
  .menu-giant { transition: none; }
  .marquee-track { animation: none; }
  .product, .product-visual img, .cta, .add span, .lees-meer span { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .verhaal-meer { transition: none; }
}
