/* ==========================================================================
   Componentes reutilizáveis: ícones, botões, painel, cabeçalho de seção.
   ========================================================================== */

/* ---------- Ícones (sprite SVG inline no index.html) ---------- */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 0.3s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn .icon {
  width: 1.3em;
  height: 1.3em;
}

.btn--primary {
  background: var(--c-primary-ink);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
}

.btn--ghost {
  border-color: #cbd5e1;
  background: var(--c-white);
  color: var(--c-ink);
}

.btn--ghost:hover {
  border-color: var(--c-ink);
}

/* Sobre fundo escuro */
.btn--light {
  background: var(--c-white);
  color: var(--c-ink);
}

.btn--light:hover {
  background: var(--c-surface-2);
}

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  font-size: 0.8rem;
}

.btn--lg {
  min-height: 58px;
  padding: 1rem 1.9rem;
  font-size: 0.98rem;
}

/* ---------- Painel (cartão branco com borda fina) ---------- */
.panel {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}

/* ---------- Cabeçalho de seção ---------- */
.section-head {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  max-width: 46rem;
}

/* ---------- Bloco de ícone ---------- */
.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-primary-ink);
  font-size: 1.1rem;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* ---------- Link com seta ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--c-primary-ink);
  font-weight: 700;
}

.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translate(3px, -3px);
}
