/* ══════════════════════════════════════════════════════════
   Dr. Lucas Andrade · Página PONTE (clique em "Agendar" → WhatsApp)
   Cartão único, centralizado, sem navegação. Herda os tokens de
   style.css; nada aqui é reutilizado pelo resto do site.
   ══════════════════════════════════════════════════════════ */

.bridge {
  min-height: 100vh;
  min-height: 100dvh;      /* barra de endereço do mobile não corta o botão */
  display: grid;
  place-items: center;
  padding: 40px 24px;
  text-align: center;
}

.bridge__inner {
  max-width: 440px;
  width: 100%;
  animation: bridgeRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bridge__mark {
  width: 54px;
  height: auto;
  opacity: 0.85;
  margin: 0 auto 26px;
}

.bridge__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 18px;
}

.bridge__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.bridge__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  max-width: 38ch;
  margin: 0 auto 36px;
}

/* ══════════════════════ Barra de progresso ══════════════════════
   Sem JS não existe redirecionamento automático, então a barra não tem
   o que representar: fica atrás de html.js, como todo estado inicial
   escondido do projeto (CLAUDE.md §7). Nunca oculta por padrão aqui. */
.bridge__progress { display: none; }

html.js .bridge__progress {
  display: block;
  max-width: 220px;
  margin: 0 auto 36px;
}

.bridge__progress-track {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(35, 35, 35, 0.08);
}

/* O preenchimento anima por `transform`, nunca por `width` (CLAUDE.md §8:
   só transform/opacity/filter/clip-path). A duração vive numa custom
   property lida pelo JS, para a barra e o redirecionamento nunca saírem
   de sincronia. Uma única fonte de verdade para os dois. */
.bridge__progress-fill {
  --bridge-duration: 1800ms;
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-text) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}
.bridge.is-running .bridge__progress-fill {
  transition: transform var(--bridge-duration) cubic-bezier(0.33, 0, 0.18, 1);
  transform: scaleX(1);
}

/* fio de luz que atravessa a barra uma única vez, eco discreto da
   cintilação do CTA de vidro da /bio (ver bio.css) */
.bridge__progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  opacity: 0;
}
.bridge.is-running .bridge__progress-track::after {
  opacity: 1;
  animation: bridgeSheen var(--bridge-duration) cubic-bezier(0.33, 0, 0.18, 1) forwards;
}

.bridge__progress-label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.bridge__actions {
  display: flex;
  justify-content: center;
}

/* ══════════════════════ Animações ══════════════════════ */
@keyframes bridgeRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bridgeSheen {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ══════════════════════ Responsivo ══════════════════════ */
@media (max-width: 560px) {
  .bridge { padding: 32px 20px; }
  .bridge__title { font-size: clamp(25px, 7vw, 32px); }
  .bridge__text { font-size: 15px; }
}

/* ══════════════════════ Acessibilidade ══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .bridge__inner {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .bridge__progress-fill {
    transition: none !important;
    transform: scaleX(1);
  }
  .bridge__progress-track::after {
    display: none;
  }
}
