/* ==========================================================================
   Elegant popup — Mother fragrance, post-splash
   ========================================================================== */

/* ── Full-screen overlay ── */
.lbv-popup {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer, 1100) + 200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  /* Opacity is the animated property; pointer-events blocks clicks while closed */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease, ease);
}

.lbv-popup[hidden] {
  display: none !important;
}

.lbv-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Backdrop ── */
.lbv-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* ── Shell ── */
.lbv-popup__shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  overflow: hidden;
  outline: none;
  /* Entry animation: scale up from slightly smaller */
  transform: scale(0.96) translateY(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lbv-popup.is-open .lbv-popup__shell {
  transform: scale(1) translateY(0);
}

/* ── Background image — fills shell ── */
.lbv-popup__bg-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.lbv-popup__bg-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Gradient scrim for text legibility ── */
.lbv-popup__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 4, 2, 0.90) 0%,
    rgba(6, 4, 2, 0.52) 40%,
    rgba(6, 4, 2, 0.12) 68%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Text + CTA body ── */
.lbv-popup__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(28px, 6%, 44px) clamp(28px, 6%, 44px) clamp(36px, 8%, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.lbv-popup__eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow, 0.6875rem);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow, 0.18em);
  color: var(--gold-warm, #C9A05B);
  margin: 0 0 14px;
}

.lbv-popup__display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory, #F6F3EC);
  margin: 0 0 10px;
}

.lbv-popup__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: rgba(246, 243, 236, 0.65);
  margin: 0 0 28px;
  letter-spacing: 0.04em;
}

/* ── CTA button ── */
.lbv-popup__cta {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid var(--ivory, #F6F3EC);
  color: var(--ivory, #F6F3EC);
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow, 0.6875rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: transparent;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.lbv-popup__cta:hover {
  background: var(--ivory, #F6F3EC);
  color: var(--ink, #111);
  border-color: var(--ivory, #F6F3EC);
}

.lbv-popup__cta:focus-visible {
  outline: 2px solid var(--gold-warm, #C9A05B);
  outline-offset: 3px;
}

/* ── Close button ── */
.lbv-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(246, 243, 236, 0.3);
  border-radius: 50%;
  background: rgba(6, 4, 2, 0.45);
  color: rgba(246, 243, 236, 0.85);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lbv-popup__close svg {
  width: 14px;
  height: 14px;
}

.lbv-popup__close:hover {
  background: rgba(6, 4, 2, 0.72);
  border-color: rgba(246, 243, 236, 0.6);
  color: var(--ivory, #F6F3EC);
}

.lbv-popup__close:focus-visible {
  outline: 2px solid var(--gold-warm, #C9A05B);
  outline-offset: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .lbv-popup,
  .lbv-popup__shell {
    transition: none;
  }
}
