/*
 * Offer presentation primitives.
 *
 * The offer cards sit inside the SIVEVIS studio shell, and their visual
 * layers belong to this component. Keeping gradients, masks and
 * responsive atmosphere here makes the HTML describe the offer rather than
 * the rendering technique.
 */

.sivevis-offer-showcase {
  position: relative;
  overflow-x: clip;
  padding: 4rem 0 5rem;
  color: #fff;
}

.sivevis-offer-showcase__heading {
  margin-top: 0;
  padding: 0 12vw;
  text-align: center;
}

.sivevis-offer-showcase__heading h2 {
  scroll-margin-top: 5rem;
}

.sivevis-offer-showcase__packs-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

.sivevis-offer-showcase__packs {
  position: relative;
  display: flex;
  gap: 5rem;
  isolation: isolate;
}

.sivevis-offer-showcase__pack {
  width: 440px;
  align-self: flex-start;
}

.sivevis-offer-pack {
  position: relative;
  isolation: isolate;
}

/* The business offer is the card itself; keep its visual shell on the
 * semantic component instead of relying on a discarded utility wrapper. */
.sivevis-offer-card {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(249, 115, 22, 0.55);
  border-radius: 20px;
  background: rgba(14, 14, 16, 0.92);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  transition:
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 500ms ease-out;
  will-change: transform;
}

[data-pack-variant="business"]:hover .sivevis-offer-card {
  transform: scale(1.055);
  border-color: rgba(249, 115, 22, 0.9);
}

.offer-showcase__atmosphere {
  pointer-events: none;
  position: absolute;
  z-index: -10;
  left: 50%;
  transform: translateX(-50%);
}

.offer-showcase__atmosphere--wide {
  top: -10rem;
  width: 1720px;
  height: 104%;
  background: radial-gradient(
    60% 54% at 50% 32%,
    rgba(96, 142, 224, 0.26) 0%,
    rgba(96, 142, 224, 0.11) 44%,
    transparent 74%
  );
  filter: blur(56px);
}

.offer-showcase__atmosphere--compact {
  top: -3rem;
  width: 125%;
  height: 55%;
  background: radial-gradient(
    78% 68% at 50% 8%,
    rgba(var(--atmosphere-blue-close), 0.6) 0%,
    rgba(var(--atmosphere-blue-close), 0.24) 40%,
    transparent 74%
  );
  filter: blur(28px);
}

.offer-pack__glow {
  pointer-events: none;
  position: absolute;
  z-index: -6;
  filter: blur(46px);
}

.offer-pack__glow--business {
  inset: -6rem;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(249, 115, 22, 0.62),
    rgba(249, 115, 22, 0.3) 45%,
    rgba(249, 115, 22, 0) 72%
  );
  filter: blur(52px);
}

.offer-pack__glow--restaurant {
  inset: -4rem;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(249, 115, 22, 0.32),
    rgba(168, 85, 247, 0.18) 45%,
    rgba(249, 115, 22, 0) 70%
  );
  filter: blur(40px);
}

.offer-pack__glow--pointer {
  inset: -5rem;
  z-index: -5;
  opacity: 0;
  background: radial-gradient(
    260px circle at calc(var(--mx) + 80px) calc(var(--my) + 80px),
    rgba(249, 115, 22, 0.55),
    rgba(168, 85, 247, 0.18) 40%,
    rgba(249, 115, 22, 0) 65%
  );
  transition: opacity 500ms ease-out;
}

[data-pack-variant="business"]:hover .offer-pack__glow--pointer,
[data-pack-variant="restaurant"]:hover .offer-pack__glow--pointer {
  opacity: 1;
}

.offer-card__surface {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    95% 75% at 50% 105%,
    rgba(249, 115, 22, 0.34) 0%,
    rgba(217, 70, 179, 0.2) 38%,
    rgba(168, 85, 247, 0.1) 60%,
    transparent 80%
  );
}

.offer-card__border-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  opacity: 0;
  background: radial-gradient(
    200px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.95),
    rgba(255, 180, 140, 0.55) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 500ms ease-out;
}

[data-pack-variant="business"]:hover .offer-card__border-glow,
[data-pack-variant="restaurant"]:hover .offer-card__border-glow {
  opacity: 1;
}

.offer-badge-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin-top: 0.75rem;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
}

.offer-badge--launch {
  gap: 0.5rem;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.offer-badge--launch::before {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #f97316;
  content: "";
}

.offer-badge--discount {
  background: #fbc49a;
  color: #0a0a0f;
  font-weight: 600;
}

.sivevis-offer-card__launch-badge {
  position: absolute;
  z-index: 1;
  top: -0.75rem;
  left: 1.5rem;
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  padding: 0 0.75rem;
  color: #0a0a0f;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.25);
}

.sivevis-offer-card__cta {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 3.5rem;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: #fff;
  padding: 0 1.5rem;
  color: #0a0a0f;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: box-shadow 200ms ease-out;
}

.sivevis-offer-card__cta:hover {
  box-shadow: 0 4px 28px rgba(255, 255, 255, 0.28);
}

@media (max-width: 639px) {
  .offer-badge--launch::before { display: none; }
}

@media (max-width: 1023px) {
  .sivevis-offer-showcase {
    padding: 0 0 5rem;
  }

  .sivevis-offer-showcase__heading {
    margin-top: 2rem;
    padding: 0 1.5rem;
  }

  .sivevis-offer-showcase__packs-wrap {
    margin-top: 3rem;
  }

  .sivevis-offer-showcase__packs {
    width: 100%;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1.5rem;
  }

  .sivevis-offer-showcase__pack {
    width: 100%;
  }

  .offer-showcase__atmosphere--wide {
    top: -3rem;
    width: 125%;
    height: 55%;
    background: radial-gradient(
      78% 68% at 50% 8%,
      rgba(var(--atmosphere-blue-close), 0.6) 0%,
      rgba(var(--atmosphere-blue-close), 0.24) 40%,
      transparent 74%
    );
    filter: blur(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-pack__glow--pointer,
  .offer-card__border-glow,
  .sivevis-offer-card,
  .sivevis-offer-card__cta { transition: none; }

}
