/* ==========================================================
   QR Share Modal — opens from "Scan QR" nav button
   Shared across microsites; relies on var(--enmovil-green) etc.
   ========================================================== */

button.nav-book-meeting {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* brand.css sets .nav-book-meeting { opacity: 0 } expecting an inline
   GSAP fade-in. A handful of pages (pepsico-siteops, perdue-itsc,
   pg-beautycare, wedgewood-demand) never had that script — so the
   button was invisible. Default to visible here. Pages with the
   inline GSAP still animate cleanly because gsap.fromTo writes
   style.opacity='0' inline, which wins over this class rule. */
.nav-book-meeting {
  opacity: 1;
}

/* ----------------------------------------------------------
   Header responsiveness
   ----------------------------------------------------------
   The pre-existing .micro-nav__inner is a 3-up flex (Scan QR
   button · brand mark · "For [logo]" meta) with NO mobile
   breakpoints — it overflows on phones. Compact it here:
   ≤640px → button collapses to icon-only, "For" label drops,
   ≤380px → brand mark shrinks too. Touch target stays ≥40px.
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .micro-nav__inner {
    gap: 10px;
  }
  .nav-book-meeting {
    padding: 10px 11px;
    gap: 0;
  }
  .nav-book-meeting > span {
    /* visually hidden — screen readers still get the aria-label */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-book-meeting svg {
    width: 17px;
    height: 17px;
  }
  /* Drop the "For" word so the prospect logo has room to breathe */
  .micro-nav__meta > span:first-child {
    display: none;
  }
  /* Trim prospect logo a hair on phone */
  .micro-nav__meta img {
    max-height: 18px;
    width: auto;
  }
}

@media (max-width: 380px) {
  .brand-mark img {
    height: 22px;
  }
  .micro-nav__meta img {
    max-height: 16px;
  }
}

.qr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 20, 0.5);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  padding: 16px;
  box-sizing: border-box;
}

.qr-backdrop.is-open {
  pointer-events: auto;
}

.qr-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 26px;
  width: 100%;
  max-width: 340px;
  box-shadow:
    0 28px 60px rgba(8, 18, 32, 0.32),
    0 6px 18px rgba(8, 18, 32, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif);
  overflow: hidden;
}

/* Soft accent glow ring behind the card */
.qr-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg,
    var(--enmovil-green, #2E8B62) 0%,
    var(--enmovil-blue, #20749B) 50%,
    var(--enmovil-green, #2E8B62) 100%);
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: qrGradientShift 6s ease-in-out infinite;
}
@keyframes qrGradientShift {
  0%,100% { background-position: 0% 0%; }
  50%     { background-position: 100% 100%; }
}

.qr-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 31, 30, 0.55);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.qr-card__close:hover {
  background: rgba(0, 0, 0, 0.09);
  color: rgba(10, 31, 30, 0.85);
}
.qr-card__close:active {
  transform: scale(0.92);
}

.qr-card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--enmovil-green, #2E8B62);
  margin: 0 0 8px;
}

.qr-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--enmovil-ink, #0a1f1e);
  margin: 0 0 6px;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.qr-card__sub {
  font-size: 0.8125rem;
  color: rgba(10, 31, 30, 0.6);
  margin: 0 0 20px;
  line-height: 1.5;
}

.qr-card__qr-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.qr-card__qr {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(10, 31, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-card__qr svg {
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
  display: block;
}

/* Decorative scanner corners around the QR */
.qr-card__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--enmovil-green, #2E8B62);
  pointer-events: none;
}
.qr-card__corner--tl { top: -4px;    left: -4px;    border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.qr-card__corner--tr { top: -4px;    right: -4px;   border-left: none;  border-bottom: none; border-radius: 0 6px 0 0; }
.qr-card__corner--bl { bottom: -4px; left: -4px;    border-right: none; border-top: none;    border-radius: 0 0 0 6px; }
.qr-card__corner--br { bottom: -4px; right: -4px;   border-left: none;  border-top: none;    border-radius: 0 0 6px 0; }

/* Scanning line that sweeps top → bottom */
.qr-card__scan {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--enmovil-green, #2E8B62) 50%,
    transparent 100%);
  box-shadow: 0 0 16px var(--enmovil-green, #2E8B62);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
}

.qr-card__hint {
  margin-top: 16px;
  font-size: 0.6875rem;
  color: rgba(10, 31, 30, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.qr-card__copy {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(10, 31, 30, 0.04);
  border: 1px solid rgba(10, 31, 30, 0.1);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--enmovil-ink, #0a1f1e);
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}
.qr-card__copy:hover {
  background: rgba(10, 31, 30, 0.07);
  border-color: rgba(10, 31, 30, 0.16);
}
.qr-card__copy:active {
  transform: scale(0.97);
}
.qr-card__copy.is-copied {
  background: var(--enmovil-green, #2E8B62);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 480px) {
  .qr-card { padding: 26px 22px 22px; }
  .qr-card__title { font-size: 1.125rem; }
  .qr-card__qr-wrap { width: 200px; height: 200px; }
}

/* iPad / larger phones — slightly bigger QR */
@media (min-width: 600px) and (max-width: 1024px) {
  .qr-card { max-width: 380px; padding: 36px 32px 28px; }
  .qr-card__qr-wrap { width: 240px; height: 240px; }
}

/* Reduced motion users get instant transitions */
@media (prefers-reduced-motion: reduce) {
  .qr-card::before { animation: none; }
  .qr-card__scan { display: none; }
}
