/* Pink Boost Blend – Conversion Drivers
   Uses the theme's design tokens when present, with safe fallbacks. */

.pbb-hero,
.pbb-cta,
.pbb-sticky-cta {
  --pbb-d-cta: var(--cta, #9b1b4a);
  --pbb-d-cta-hover: var(--cta-hover, #7a1239);
  --pbb-d-ink: var(--contrast, #3b2a2f);
  --pbb-d-muted: var(--muted, #6e5f63);
  --pbb-d-accent: var(--primary, #ff68c7);
  --pbb-d-blush: var(--surface, #f9e8ee);
  --pbb-d-heading: var(--font-heading, 'Playfair Display', Georgia, serif);
}

/* ---------- Buttons ---------- */

.pbb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 52px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pbb-cta--primary,
.pbb-cta--outline {
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid var(--pbb-d-cta);
}

.pbb-cta--primary {
  background: var(--pbb-d-cta);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(122, 18, 57, 0.55);
}

.pbb-cta--primary:hover,
.pbb-cta--primary:focus-visible {
  background: var(--pbb-d-cta-hover);
  border-color: var(--pbb-d-cta-hover);
  color: #fff;
  transform: translateY(-1px);
}

.pbb-cta--outline {
  background: transparent;
  color: var(--pbb-d-cta);
}

.pbb-cta--outline:hover,
.pbb-cta--outline:focus-visible {
  background: var(--pbb-d-cta);
  color: #fff;
}

.pbb-cta--secondary {
  padding: 12px 4px;
  color: var(--pbb-d-ink);
  border-bottom: 2px solid transparent;
}

.pbb-cta--secondary:hover,
.pbb-cta--secondary:focus-visible {
  color: var(--pbb-d-cta);
}

.pbb-cta__arrow {
  transition: transform 0.2s ease;
}

.pbb-cta--secondary:hover .pbb-cta__arrow,
.pbb-cta--secondary:focus-visible .pbb-cta__arrow {
  transform: translateX(4px);
}

.pbb-cta:focus-visible {
  outline: 3px solid var(--focus-ring, rgba(155, 27, 74, 0.35));
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.pbb-hero {
  padding: clamp(40px, 7vw, 96px) 20px clamp(64px, 9vw, 120px);
}

.pbb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  width: min(100%, var(--container, 1160px));
  margin: 0 auto;
}

.pbb-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--pbb-d-cta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pbb-hero__title {
  margin: 0 0 22px;
  max-width: 14ch;
  color: var(--pbb-d-ink);
  font-family: var(--pbb-d-heading);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pbb-hero__text {
  margin: 0 0 34px;
  max-width: 46ch;
  color: var(--pbb-d-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.pbb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.pbb-hero__info {
  margin: 28px 0 0;
  padding-top: 20px;
  max-width: 46ch;
  border-top: 1px solid rgba(59, 42, 47, 0.12);
  color: var(--pbb-d-muted);
  font-size: 0.92rem;
}

.pbb-hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
}

/* Slides share one frame; the active image cross-fades in. */
.pbb-hero__slides {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 240px 240px 28px 28px;
  background: var(--pbb-d-blush);
  box-shadow: 0 30px 60px -30px rgba(59, 42, 47, 0.35);
}

.pbb-hero__slides .pbb-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: none;
}

/* Offer artwork must remain fully readable in both carousel proportions. */
.pbb-hero__slides .pbb-hero__image--promo {
  object-fit: contain;
}

.pbb-hero__media:has(.pbb-hero__image--promo.is-active) .pbb-hero__slides {
  border-radius: 28px;
}

.pbb-hero__media:has(.pbb-hero__image--promo.is-active) .pbb-badge {
  visibility: hidden;
}

/* Keep navigation below the artwork so it cannot cover offer text. */
.pbb-hero__media:has(.pbb-hero__image--promo) .pbb-hero__controls {
  position: relative;
  inset: auto;
  width: fit-content;
  margin: 14px 0 0 auto;
}

/* Extra specificity so lazy-load plugins (Smush's .lazyloaded fade-in)
   can never make every slide visible at once. */
.pbb-hero__slides .pbb-hero__image.lazyloaded,
.pbb-hero__slides .pbb-hero__image.lazyload {
  opacity: 0;
  transition: none;
}

.pbb-hero__slides[data-pbb-ready] .pbb-hero__image {
  transition: opacity 0.9s ease;
}

.pbb-hero__slides .pbb-hero__image.is-active,
.pbb-hero__slides .pbb-hero__image.is-active.lazyloaded {
  opacity: 1;
}

.pbb-hero__controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--header-bg, rgba(251, 246, 241, 0.88));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pbb-hero__dot,
.pbb-hero__pause {
  padding: 0;
  border: 0;
  cursor: pointer;
}

.pbb-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(59, 42, 47, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pbb-hero__dot.is-active {
  background: var(--pbb-d-cta);
  transform: scale(1.25);
}

.pbb-hero__pause {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: var(--pbb-d-ink);
  font-size: 0.6rem;
  line-height: 22px;
  letter-spacing: -1px;
}

.pbb-hero__dot:focus-visible,
.pbb-hero__pause:focus-visible {
  outline: 2px solid var(--pbb-d-cta);
  outline-offset: 2px;
}

/* The personal badge – a warm circle overlapping the photo. */
.pbb-badge {
  position: absolute;
  left: -48px;
  bottom: 40px;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 0;
  padding: 22px;
  border-radius: 50%;
  background: var(--pbb-d-blush);
  color: var(--pbb-d-cta);
  box-shadow: 0 0 0 8px var(--bg, #fbf6f1), 0 18px 34px -16px rgba(59, 42, 47, 0.4);
  font-family: var(--pbb-d-heading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
}

.pbb-badge::before {
  position: absolute;
  inset: 8px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.35;
  content: '';
}

.pbb-badge span::after {
  display: block;
  margin-top: 4px;
  font-style: normal;
  content: '♡';
}

@media (max-width: 860px) {
  .pbb-hero__inner {
    grid-template-columns: 1fr;
  }

  /* Text and CTA first on small screens – the photo follows. */
  .pbb-hero {
    padding-top: 32px;
  }

  .pbb-hero__media {
    justify-self: center;
    width: min(100%, 420px);
  }

  .pbb-hero__slides {
    aspect-ratio: 4 / 3;
    border-radius: 160px 160px 24px 24px;
  }

  .pbb-hero__controls {
    right: 12px;
    bottom: 12px;
  }

  .pbb-badge {
    left: -8px;
    bottom: -22px;
    width: 118px;
    height: 118px;
    padding: 16px;
    font-size: 0.9rem;
  }

  .pbb-hero__title {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .pbb-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pbb-hero__actions .pbb-cta--secondary {
    justify-content: center;
  }
}

/* ---------- Sticky mobile CTA ---------- */

.pbb-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .pbb-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--header-bg, rgba(251, 246, 241, 0.94));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(59, 42, 47, 0.08);
    transform: translateY(0);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .pbb-sticky-cta[hidden] {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden; /* keeps it out of the tab order while hidden */
    pointer-events: none;
  }

  .pbb-sticky-cta:not([hidden]),
  .pbb-sticky-cta[hidden] {
    display: flex;
    gap: 10px;
  }

  .pbb-sticky-cta__button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .pbb-sticky-cta .pbb-cta--outline {
    background: var(--bg, #fbf6f1);
  }

  /* Give the last content room so the bar never covers the footer. */
  body:has(.pbb-sticky-cta) .site-footer {
    padding-bottom: 110px;
  }

  /* Never compete with the Complianz cookie banner. */
  body:has(.cmplz-cookiebanner.cmplz-show) .pbb-sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbb-hero__slides[data-pbb-ready] .pbb-hero__image,
  .pbb-hero__slides .pbb-hero__image,
  .pbb-hero__slides .pbb-hero__image.lazyloaded,
  .pbb-cta,
  .pbb-cta__arrow,
  .pbb-sticky-cta {
    transition: none;
  }
}
