/* Peças reutilizáveis em várias partes da página. */

/* ---------- barra de progresso ---------- */
.progress {
  position: fixed;
  z-index: 30;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- navegação ---------- */
.nav {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}
.nav ul {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-nav);
}
.nav a {
  display: block;
  padding: 7px clamp(8px, 2.8vw, 12px);
  font-size: clamp(13px, 3.6vw, 14px);
  border-radius: 7px;
}
.nav a:hover {
  background: var(--wash);
}
.nav a.destaque {
  background: var(--orange-soft);
}
.nav a.destaque:hover {
  background: var(--orange-soft-hover);
}

/* ---------- etiquetas ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 3px 12px;
  color: var(--accent-text);
  font-size: 12px;
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-pill);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  padding: 5px 13px;
  font-size: 13px;
  background: var(--canvas);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-pill);
  transition:
    border-color 0.2s,
    translate 0.2s;
}
.chips li:hover {
  border-color: var(--accent);
  translate: 0 -2px;
}

/* ---------- botões ---------- */
.links {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 11px 20px;
  line-height: 1.3;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-button);
  transition:
    border-color 0.2s,
    transform 0.25s;
}
.btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.98);
}
.btn span {
  flex: 1;
  min-width: 0;
}
.btn small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.btn > svg:first-child {
  color: var(--accent);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  color: var(--faint);
  transition: transform 0.25s;
}
.btn:hover .arrow {
  transform: translateX(5px);
}

.btn.main {
  color: var(--panel);
  background: var(--ink);
  border-color: var(--ink);
}
.btn.main:hover {
  border-color: var(--accent);
}
.btn.main small,
.btn.main .arrow {
  color: var(--on-dark-muted);
}

/* ---------- cartão e cabeçalho de seção ---------- */
.card {
  padding: clamp(26px, 5vw, 60px);
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-card);
}

.head {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 30px;
}
.head p:not(.label) {
  max-width: 62ch;
  margin-top: 6px;
  color: var(--muted);
}
.label {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- WhatsApp flutuante ---------- */
.float {
  position: fixed;
  z-index: 20;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: var(--panel);
  font-size: 14px;
  background: var(--ink);
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-pill);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}
.float.off {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
