/* ═══════════════════════════════════════════════
 *  Shared Article CTA Components — EN + PT
 *  Used on: research articles, research hubs
 *  Version: 1
 * ═══════════════════════════════════════════════ */

/* ── ABOVE-FOLD CTA (after verdict / anvisa-callout) ── */
.article-cta-inline {
  background: linear-gradient(135deg, rgba(219,38,108,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(219,38,108,0.22);
  border-left: 3px solid var(--pink);
  padding: 24px 28px;
  margin: 0 0 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-cta-inline .cta-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 6px;
}

.article-cta-inline .cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.article-cta-inline .cta-desc {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ── Shared CTA button ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--pink-hover);
  border: none;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta:hover {
  background: var(--pink-hover);
  box-shadow: 0 0 40px rgba(219,38,108,0.35);
}

.btn-cta:visited { color: #fff; }

/* Override .container a color on research pages */
.container .btn-cta,
.container .btn-cta:visited,
.container .btn-cta:hover { color: #fff; text-decoration: none; }

/* ── END-OF-ARTICLE CTA (replaces old .cta-section / .article-footnote) ── */
.article-cta-end {
  text-align: center;
  padding: 48px 0;
  margin: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-cta-end .cta-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: 16px;
}

.article-cta-end .section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}

.article-cta-end .section-heading em {
  font-style: italic;
  color: var(--pink);
}

.article-cta-end .cta-desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── WhatsApp CTA button (injected by article-wa-cta.js) ── */
.btn-wa-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--green);
  border: none;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  gap: 8px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-wa-article:hover {
  background: var(--green-hover);
  box-shadow: 0 0 40px rgba(37,211,102,0.3);
}

.btn-wa-article:visited { color: #fff; }

.container .btn-wa-article,
.container .btn-wa-article:visited,
.container .btn-wa-article:hover { color: #fff; text-decoration: none; }

/* ── CTA button row (order + whatsapp side-by-side) ── */
.cta-btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.article-cta-end .cta-btn-row {
  justify-content: center;
}

/* ── STICKY MOBILE CTA ── */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(8,8,8,0.96);
    border-top: 1px solid rgba(219,38,108,0.3);
    padding: 12px 20px;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .mobile-sticky-cta .btn-cta {
    flex: 1;
    max-width: 320px;
    text-align: center;
    min-height: 44px;
    padding: 0 16px;
  }

  /* Prevent sticky bar from covering content */
  body.has-sticky-cta {
    padding-bottom: 68px;
  }

  /* Push WhatsApp float above sticky CTA bar */
  body.has-sticky-cta .wa-float,
  body.has-sticky-cta .whatsapp-float {
    bottom: 100px;
  }

  /* Stack CTA buttons full-width on mobile */
  .article-cta-inline .btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Stack CTA button row on mobile */
  .cta-btn-row {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-row .btn-cta,
  .cta-btn-row .btn-wa-article {
    width: 100%;
    justify-content: center;
  }
}

/* ── H3 Subsection Heading (research articles) ── */
.subsection-heading {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--white, #f8f8f8);
  margin: 48px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
