/* Shared tablet and phone background treatment for the restaurant pages. */
@media (max-width: 1024px) {
  .stage .scene img,
  .smoke-backdrop,
  .smoke-steam-art,
  .verweilen-scene img,
  .footer-scene img,
  .footer-backdrop {
    object-fit: cover;
  }

  .feast-table {
    background-size: cover;
    background-position: center top;
  }

  .smoke-art {
    width: 100%;
    min-width: 0;
    height: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .smoke-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #fae9d5ed 0%, #fae9d5ce 34%, transparent 72%);
  }

  .verweilen-scene::after {
    background: linear-gradient(180deg, #00351f82 0%, transparent 48%, #00351f45 100%);
  }

  .hero-art {
    object-fit: cover;
    object-position: center;
  }

  .loaded .hero-art {
    filter: blur(8px);
    opacity: .86;
    transform: scale(1.06);
  }

  .hero-wash {
    background: linear-gradient(90deg, rgba(248, 237, 217, .42) 0%, rgba(248, 237, 217, .18) 48%, transparent 82%);
  }

  .occasion-slide {
    background-size: cover;
    background-position: center;
  }

  .inquiry-panel {
    background-size: cover;
    background-position: center;
  }

  body.contact-page .kc-hero::before {
    background-size: cover;
    filter: blur(calc(var(--kc-bg-blur, 0px) + 8px)) !important;
  }
}

body.contact-page .kc-hero::before {
  filter: blur(var(--kc-bg-blur, 0px)) !important;
  opacity: var(--kc-bg-opacity, 1) !important;
  transform: scale(1.04);
  transition: filter .24s linear, opacity .24s linear, transform .24s linear;
  will-change: filter, opacity, transform;
}

body.contact-page .kc-info.kc-scroll-panel,
body.contact-page .kc-arrival.kc-scroll-panel {
  isolation: isolate;
}

body.contact-page .kc-info.kc-scroll-panel::before,
body.contact-page .kc-arrival.kc-scroll-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 18%, #fff9eb 0%, transparent 55%),
    radial-gradient(ellipse at 82% 78%, #ead6b5 0%, transparent 60%),
    url("ivory-texture.webp") center / cover no-repeat;
  opacity: var(--kc-bg-opacity, 1);
  filter: blur(var(--kc-bg-blur, 0px));
  transform: scale(1.04);
  transition: filter .24s linear, opacity .24s linear, transform .24s linear;
  will-change: filter, opacity, transform;
}

/* The active section's image resolves from a soft blur while its copy stays crisp. */
.occasion-slide {
  background-image: none !important;
}

.occasion-slide::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  pointer-events: none;
  background-image: var(--occasion-art);
  background-position: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(var(--catering-bg-blur, 20px));
  transform: scale(var(--catering-bg-scale, 1.04));
  transition: filter 0.24s linear, transform 0.24s linear;
  will-change: filter, transform;
}

.occasion-slide::before {
  z-index: 0;
}

.occasion-slide .occasion-feature-copy {
  position: relative;
  z-index: 1;
}

/* Keep a clear text-safe gutter before the food photography on every screen. */
@media (min-width: 1025px) {
  .occasion-feature-copy {
    width: 43%;
    padding-right: clamp(58px, 6vw, 112px);
  }

  .occasion-feature h3,
  .occasion-feature-copy > p:last-child {
    max-width: 94%;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .occasion-feature-copy {
    width: 44%;
    padding-right: clamp(46px, 6.5vw, 82px);
  }

  .occasion-feature h3,
  .occasion-feature-copy > p:last-child {
    max-width: 92%;
  }
}

@media (max-width: 700px) {
  .occasion-feature-copy {
    width: 58%;
    height: 100%;
    padding: 22px 18px 24px 20px;
    background: linear-gradient(90deg, #f8eedf 0%, #f8eedf 82%, rgba(248, 238, 223, .82) 100%);
  }

  .occasion-feature h3,
  .occasion-feature-copy > p:last-child {
    max-width: 94%;
  }
}

.inquiry-panel {
  isolation: isolate;
  background-image: none !important;
}

.inquiry-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px;
  pointer-events: none;
  background: #f7ead5 url("catering-inquiry-background.png") center / cover no-repeat;
  opacity: var(--catering-bg-opacity, 1);
  filter: blur(var(--catering-bg-blur, 0px));
  transform: scale(var(--catering-bg-scale, 1.04));
  transition: filter .24s linear, opacity .24s linear, transform .24s linear;
  will-change: filter, opacity, transform;
}

.site-footer .footer-backdrop {
  filter: blur(var(--kc-bg-blur, 20px));
  opacity: var(--kc-bg-opacity, .8);
  transform: scale(1.04);
  transition: filter .24s linear, opacity .24s linear, transform .24s linear;
}

@media (max-width: 700px) {
  .feast-table {
    background-size: auto 106%;
    background-position: center top;
  }

  .smoke-art {
    width: auto;
    min-width: max(100%, calc(100svh * 1672 / 941));
    left: 32%;
    transform: translate(-32%, -50%);
  }

  .occasion-slide::after {
    background-position: right center;
    background-size: auto 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .occasion-slide::after {
    filter: none !important;
    transform: none;
    transition: none;
  }

  body.contact-page .kc-hero::before,
  body.contact-page .kc-info.kc-scroll-panel::before,
  body.contact-page .kc-arrival.kc-scroll-panel::before {
    filter: none !important;
    transition: none;
  }

  .inquiry-panel::before,
  .site-footer .footer-backdrop {
    filter: none !important;
    opacity: 1;
    transition: none;
  }
}
