.carousel {
  --index: 1;
  --dur: 560ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --paused: 0;
  --title-offset: clamp(36px, 12vw, 72px);
  --badge-offset: clamp(120px, 11vw, 160px);
  --viewport-gap: clamp(170px, 12vw, 220px);
  --dot-size: clamp(16px, 4vw, 22px);
  --dots-offset: clamp(8px, 3vw, 24px);
  --dots-nudge: 10px;
  --dot-fudge: 10px;
  --after-dots-gap: clamp(24px, 15vw, 72px);
  position: relative;
  overflow: hidden;
  background-color: var(--color-grey-tint);
  --dot-icon: url("images/assets/carousel-burger.png");
  display: flex;
  flex-direction: column;
}

.carousel::after {
  content: "";
  display: block;
  height: var(--after-dots-gap);
}

.carousel__title {
  width: min-content;
  align-self: center;
  margin: 0;
  font-family: var(--headline-expanded);
  font-weight: 800;
  font-size: clamp(28px, 6.2vw, 64px);
  letter-spacing: 0.08em;
  color: #111;
  text-transform: uppercase;
  line-height: 1.05;
  z-index: 4;
}

.carousel__viewport {
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  overflow: hidden;
  perspective: clamp(700px, 45vw, 1400px);
  perspective-origin: 50% 50%;
  padding-bottom: calc(
    clamp(40px, 6vw, 110px) + var(--dot-size) + var(--dots-offset) +
      var(--dots-nudge) + var(--dot-fudge)
  );
}

.carousel__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__viewport.is-dragging img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.carousel [data-track] {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform var(--dur) var(--ease);
  transform: translate3d(calc(var(--index) * -100%), 0, 0);
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel [data-track].no-anim {
  transition: none !important;
}

.carousel .slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 48vw, 560px);
  transform-style: preserve-3d;
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --scale: 1;
  justify-items: center;
}

.carousel .slide img {
  width: min(660px, 100vw);
  height: auto;
  transform-origin: 50% 60%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz))
    scale(var(--scale));
  transition: transform 0.35s ease, filter 0.35s ease;
  background: transparent;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .carousel .slide:hover {
    --tz: 22px;
    --scale: 1.02;
  }
  .carousel .slide:hover img {
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz))
      scale(var(--scale));
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36))
      drop-shadow(0 42px 68px rgba(0, 0, 0, 0.26)) !important;
  }
}

.carousel .slide.has-tilt::after {
  opacity: 1;
  filter: blur(8px);
}

.slide__title {
  margin: clamp(10px, 1.8vw, 16px) auto 0;
  font-family: var(--headline-expanded);
  font-weight: 900;
  font-size: clamp(16px, 5vw, 28px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.1;
  position: relative;
  z-index: 3;
  transform: translateZ(calc(var(--tz) * 0.35));
  transition: transform 0.35s ease;
  text-align: center;
  justify-self: center;
  display: inline-block;
}

.carousel [data-dots] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dots-offset) - var(--dots-nudge));
  transform: none;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 18px);
  pointer-events: auto;
  z-index: 6;
}

.carousel [data-dots] button {
  width: clamp(16px, 4vw, 22px);
  height: clamp(16px, 4vw, 22px);
  border-radius: 50%;
  border: 2.5px solid var(--color-details);
  background-color: #fff;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
  transform-origin: 50% 100%;
}

.carousel [data-dots] button[aria-current="true"] {
  background-image: var(--dot-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 125% 125% !important;
  background-color: transparent !important;

  border: 2.5px solid var(--color-details);
  border-radius: 50%;
  transform: scale(1.2);
  box-shadow: none;
}

.carousel [data-dots] button:hover {
  transform: scale(1.08);
}

.carousel [data-dots] button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.carousel:hover,
.carousel:focus-within {
  --paused: 1;
}

@media (prefers-reduced-motion: reduce) {
  .carousel {
    --dur: 1ms;
  }
}

.carousel [data-animate="reveal"] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease),
    filter 560ms var(--ease);
}

.carousel [data-animate="reveal"].is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.carousel .carousel__title[data-animate="reveal"] {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease),
    filter 560ms var(--ease);
}

.carousel .carousel__title[data-animate="reveal"].is-in {
  opacity: 1;
  filter: blur(0);
  transition-delay: 90ms;
}

@media (prefers-reduced-motion: reduce) {
  .carousel [data-animate="reveal"] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.slide__ingredients,
.slide__price {
  margin: 0 auto;
  text-align: center;
  transform: translateZ(calc(var(--tz) * 0.25));
  transition: transform 0.35s ease;
}

.slide__ingredients {
  margin-top: clamp(6px, 1.2vw, 12px);
  max-width: min(720px, 86vw);
  font-family: var(--burger-description-font);
  font-weight: 500;
  font-size: clamp(13px, 1.8vw, 18px);
  line-height: 1.6;
  color: black;
  letter-spacing: 0.02em;
}

.slide__price {
  margin-top: clamp(10px, 1.8vw, 16px);
  font-family: var(--headline-expanded);
  font-weight: 800;
  font-size: clamp(16px, 3.2vw, 32px);
  letter-spacing: 0.06em;
  color: #111;
}

.carousel__text {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 50vw;
  align-self: center;
}

.carousel__halal {
  width: min-content;
  align-self: center;
  padding: 0.5em 0.85em;
  font-family: var(--headline-expanded);
  font-weight: 800;
  font-size: clamp(10px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--color-details);
  border-radius: 999px;
  z-index: 5;
  white-space: nowrap;
}

.carousel .carousel__halal[data-animate="reveal"] {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease),
    filter 560ms var(--ease);
}

.carousel .carousel__halal[data-animate="reveal"].is-in {
  opacity: 1;
  filter: blur(0);
  transition-delay: 120ms;
}

.menu-group {
  margin-top: clamp(18px, 4vw, 28px);
}
.menu-pane .menu-group + .menu-group {
  margin-top: clamp(22px, 5.2vw, 36px);
}

.menu-group__title {
  margin: 0 0 clamp(8px, 1.8vw, 12px);
  font-family: var(--headline-expanded);
  font-weight: 800;
  font-size: clamp(16px, 3.8vw, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  text-align: left;
}
#burgers {
  margin-top: calc(var(--hero-curve-h) * 0.5 + 16px); /* ~50–80px */
}

/* Phones houden we zoals het was (<600px) */

/* Tablet / small-desktop: mag afbreken + iets kleiner */
@media (min-width: 600px) and (max-width: 1399px) {
  .carousel__text {
    width: auto;
    max-width: min(1000px, 92vw);
    align-items: center;
    margin-inline: auto;
  }
  .carousel__title {
    width: 100%; /* i.p.v. min/max-content */
    white-space: normal; /* afbreken toegestaan */
    text-align: center;
    font-size: clamp(28px, 5vw, 56px);
    letter-spacing: 0.06em;
    text-wrap: balance; /* mooier verdelen waar ondersteund */
  }

  .slide__title {
    font-size: clamp(40px, 30vw, 28px);
  }

  .carousel {
    --dot-fudge: -40px;
  }
}

/* Grote desktop: één regel houden */
@media (min-width: 1400px) {
  .carousel__text {
    align-items: center;
  }
  .carousel__title {
    width: max-content;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(40px, 6.2vw, 64px);
  }

  .slide__title {
    font-size: clamp(40px, 30vw, 28px);
  }

  .carousel {
    --dot-fudge: -90px;
  }
}

@media (min-width: 600px) {
  .carousel .slide {
    min-height: clamp(320px, 56vmin, 560px);
  }
  .carousel .slide img {
    width: clamp(500px, 46vmin, 660px);
  }
  .slide__title {
    font-size: clamp(20px, 2.8vmin, 28px);
  }
  .slide__ingredients {
    font-size: clamp(17px, 1.6vmin, 18px);
  }
  .slide__price {
    font-size: clamp(26px, 2.6vmin, 32px);
  }
}
