/* Swan Center Promo Popup */
.swan-popup {
  --swan-cream: #fbf8f3;
  --swan-gold: #d3c39f;
  --swan-gold-text: #796021;
  --swan-ink: #17262c;
  --swan-teal: #355c6d;
  --swan-sub: #355c6d;
  --swan-note: #7b7b7b;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.swan-popup *,
.swan-popup *::before,
.swan-popup *::after {
  box-sizing: border-box;
}

.swan-popup[hidden] {
  display: none;
}

.swan-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 32, 0.6);
  animation: swan-popup-fade 0.3s ease-out;
}

.swan-popup__card {
  position: relative;
  display: flex;
  width: 900px;
  max-width: 100%;
  height: 540px;
  max-height: calc(100vh - 32px);
  background: var(--swan-cream);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: swan-popup-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.swan-popup__media {
  flex: 0 0 46.667%;
  display: block;
  margin: 0;
}

.swan-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swan-popup__panel {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px 52px;
  text-align: center;
  overflow-y: auto;
}

/* thin gold frame */
.swan-popup__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--swan-gold);
  pointer-events: none;
}

.swan-popup__close {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--swan-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.swan-popup__close svg {
  width: 13px;
  height: 13px;
}

.swan-popup__close:hover {
  transform: scale(1.08);
}

.swan-popup__close:focus-visible,
.swan-popup__btn:focus-visible {
  outline: 2px solid var(--swan-teal);
  outline-offset: 3px;
}

.swan-popup__eyebrow {
  margin: 0 0 22px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--swan-gold-text);
}

.swan-popup__heading {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  color: var(--swan-ink);
}

.swan-popup__heading em {
  display: block;
  font-style: italic;
}

.swan-popup__sub {
  margin: 0 0 30px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.3;
  color: var(--swan-sub);
}

.swan-popup__sub em,
.swan-popup__note em {
  font-style: italic;
}

.swan-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  height: 45px;
  padding: 0 32px;
  background: var(--swan-teal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* beat theme link styles (a:link, a:visited, a:hover...) */
.swan-popup a.swan-popup__btn,
.swan-popup a.swan-popup__btn:link,
.swan-popup a.swan-popup__btn:visited,
.swan-popup a.swan-popup__btn:hover,
.swan-popup a.swan-popup__btn:focus,
.swan-popup a.swan-popup__btn:active,
.swan-popup a.swan-popup__btn span {
  color: #fff;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
}

.swan-popup a.swan-popup__btn:hover,
.swan-popup a.swan-popup__btn:focus {
  background: var(--swan-ink);
}

.swan-popup__btn-m {
  display: none;
}

.swan-popup__note {
  max-width: 330px;
  margin: 24px 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--swan-note);
}

.swan-popup__sparkle {
  display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .swan-popup__card {
    flex-direction: column;
    width: 360px;
    height: auto;
    overflow-y: auto;
  }

  /* mobile image keeps its own height; its transparent bottom (ribbon) overlaps the panel */
  .swan-popup__media {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-bottom: calc(-1 * var(--swan-m-overlap, 0%));
    pointer-events: none;
  }

  .swan-popup__media img {
    height: auto;
    object-fit: contain;
  }

  .swan-popup__panel {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 46px 26px 40px;
    overflow: visible;
  }

  /* frame runs down from the image: sides + bottom only */
  .swan-popup__panel::before {
    inset: 0 10px 10px;
    border-top: 0;
  }

  .swan-popup__eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.25em;
  }

  .swan-popup__heading {
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.06;
  }

  .swan-popup__sub {
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.3;
  }

  .swan-popup__btn {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .swan-popup__btn-d {
    display: none;
  }

  .swan-popup__btn-m {
    display: inline;
  }

  .swan-popup__note {
    margin-top: 20px;
  }

  /* soft four-point sparkles */
  .swan-popup__sparkle {
    display: block;
    position: absolute;
    width: 52px;
    height: 52px;
    pointer-events: none;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, rgba(232, 196, 150, 0.55) 3px, transparent 9px),
      linear-gradient(90deg, transparent 0, rgba(214, 178, 132, 0.7) 50%, transparent 100%) center / 100% 1.5px no-repeat,
      linear-gradient(0deg, transparent 0, rgba(214, 178, 132, 0.7) 50%, transparent 100%) center / 1.5px 100% no-repeat;
    opacity: 0.8;
  }

  .swan-popup__sparkle--1 {
    top: 34px;
    left: 30px;
  }

  .swan-popup__sparkle--2 {
    bottom: 128px;
    right: 26px;
    width: 40px;
    height: 40px;
  }
}

@keyframes swan-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes swan-popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .swan-popup__overlay,
  .swan-popup__card {
    animation: none;
  }
}

body.swan-popup-open {
  overflow: hidden;
}
