/* ============================================================================
 * COMPONENTS — buttons, pills, icon buttons, back-to-top
 *
 * Reusable atoms used across multiple sections.
 * ==========================================================================*/

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal); color: #04241F;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px -10px rgba(0,180,166,0.7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.24) inset, 0 0 0 4px rgba(0,180,166,0.16), 0 14px 32px -10px rgba(0,180,166,0.85);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--teal-line); color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,180,166,0.10);
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 13px; font-size: 13px; }

/* ========== PILLS ========== */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  background: rgba(0,180,166,0.08); color: #5EE6D8;
  border: 1px solid rgba(0,180,166,0.18);
  transition: background 160ms, color 160ms;
}
.pill:hover { background: rgba(0,180,166,0.16); color: var(--teal); }
.pill.dim {
  background: rgba(148,163,184,0.06);
  color: var(--text-dim);
  border-color: var(--border);
}

/* ========== ICON BUTTONS (hero socials) ========== */
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color 160ms, border-color 160ms, transform 160ms, background 160ms;
}
.icon-btn:hover {
  color: var(--teal); border-color: var(--teal-line);
  transform: translateY(-2px);
  background: rgba(0,180,166,0.08);
}

/* ========== BACK-TO-TOP ========== */
.top-btn {
  position: fixed; right: 28px; bottom: 28px; z-index: 30;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(30,41,59,0.85);
  border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: all 240ms ease;
}
.top-btn.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.top-btn:hover {
  color: var(--teal); border-color: var(--teal-line);
}
