/* Mar Lounge — Higgsfield upgrades (pairs with mar-upgrades.js) */

/* 1 · Shisha flavour worlds — sits behind the pipe, dial and copy */
.mar-flav {
  position: absolute;
  inset: 0 9%;
  pointer-events: none;
  overflow: hidden;
  /* soft ellipse around the pipe, plus side fades that keep the title and flavour card clean */
  -webkit-mask-image: radial-gradient(64% 64% at 50% 55%, #000 46%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 64%, transparent 84%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(64% 64% at 50% 55%, #000 46%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 64%, transparent 84%);
  mask-composite: intersect;
}
.mar-flav img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.mar-flav img.on { opacity: .8; transform: scale(1); }
/* the art is shot on black — it belongs to the dark theme only */
html[data-theme="light"] .mar-flav { display: none; }
@media (max-width: 900px) {
  /* portrait: the whole flavour ring framing the pipe, feathered on every edge */
  .mar-flav { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .mar-flav img {
    inset: auto; left: 50%; top: 50%; width: 200%; height: auto; object-fit: fill;
    transform: translate(-50%, -50%) scale(1.06);
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  }
  .mar-flav img.on { opacity: .62; transform: translate(-50%, -50%); }
}

/* 2 · Every Pour, Named — reuses the burger section's .inside-* styles */
.mar-pour { height: calc(var(--n, 4) * 130svh + 100svh); }
.mar-pour .inside-stage { position: sticky; top: 0; }
.mar-pour-kicker {
  margin: 0;
  font: 500 13px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea);
}
[lang="ar"] .mar-pour-kicker { letter-spacing: 0; font-size: 15px; }
.mar-pour .mar-in { animation: marIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.mar-pour .inside-desc.mar-in { animation-delay: .06s; }
.mar-pour .inside-price.mar-in { animation-delay: .12s; }
@keyframes marIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.mar-pour.is-static { height: auto; }
/* 3 · Living drink cards — sits exactly over the carousel photo */
.cf-card .mar-live {
  position: absolute; left: 0; top: 0; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px;
  pointer-events: none; opacity: 0; transition: opacity .6s ease;
  -webkit-box-reflect: below 6px linear-gradient(transparent 60%, rgba(255, 255, 255, .42));
}
.cf-card.sq .mar-live { aspect-ratio: 1 / 1; }
.cf-card.on .mar-live.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mar-flav img { transition: opacity .4s; }
  .mar-pour .mar-in { animation: none; }
}
